:root {
  --ink: #17110f;
  --oxblood: #2a0e13;
  --burgundy: #471820;
  --graphite: #24272a;
  --mist: #f0e9e1;
  --champagne: #c89a5a;
  --steel: #6f8798;
  --line: rgb(200 154 90 / 0.28);
  --sans: "Geist", sans-serif;
  --performance: "Barlow Condensed", sans-serif;
  --mono: "Geist Mono", monospace;
  --serif: "Fraunces", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); color-scheme: dark; font-family: var(--sans); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--mist);
  background:
    radial-gradient(circle at 95% 8%, rgb(73 100 121 / 0.2), transparent 26rem),
    var(--ink);
  overscroll-behavior: contain;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

img { display: block; max-width: 100%; }
button, a { font: inherit; }

.portal {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--oxblood);
}

.portal::before {
  position: absolute;
  z-index: 4;
  top: 44%;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--champagne) 25%, var(--steel) 55%, transparent 90%);
  opacity: 0.45;
}

.portal__rail { display: none; }

.portrait {
  position: relative;
  height: 36svh;
  min-height: 17rem;
  overflow: hidden;
  background: var(--graphite);
}

.portrait > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 23%;
  filter: saturate(0.78) contrast(1.06);
  animation: portrait-in 900ms cubic-bezier(.2,.75,.2,1) both;
}

.portrait__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgb(42 14 19 / 0.2) 68%, var(--oxblood) 100%),
    linear-gradient(90deg, rgb(23 17 15 / 0.15), transparent 60%);
}

.portrait__caption {
  display: none;
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  margin: 0;
  color: rgb(240 233 225 / 0.62);
  font: 500 0.58rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait__caption span { margin-right: 0.6rem; color: var(--champagne); }

.interface {
  position: relative;
  z-index: 5;
  margin-top: -4rem;
  padding: 0 1.25rem 2rem;
  background: linear-gradient(180deg, transparent, var(--oxblood) 4.5rem);
}

.identity, .statement, .method, .actions, .credentials {
  animation: rise 440ms cubic-bezier(.2,.75,.2,1) both;
}

.identity { animation-delay: 80ms; }
.statement { animation-delay: 150ms; }
.method { animation-delay: 220ms; }
.actions { animation-delay: 290ms; }
.credentials { animation-delay: 360ms; }

.identity {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  width: 100%;
  margin-inline: auto;
  padding: 0.75rem 0.9rem;
  text-align: center;
  border: 1px solid rgb(200 154 90 / 0.22);
  background:
    linear-gradient(115deg, rgb(240 233 225 / 0.1), rgb(73 100 121 / 0.05)),
    rgb(23 17 15 / 0.34);
  box-shadow:
    inset 0 1px rgb(240 233 225 / 0.1),
    0 0.9rem 2.5rem rgb(0 0 0 / 0.25),
    0 0 2rem rgb(166 79 55 / 0.08);
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
}

.identity > img {
  width: min(100%, 18rem);
  height: auto;
  filter: drop-shadow(0 0.3rem 0.9rem rgb(0 0 0 / 0.42));
}

.identity p {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: rgb(240 233 225 / 0.58);
  font: 500 0.56rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.identity p span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0.8rem var(--champagne);
}

.statement {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 38rem;
  margin-top: 1.75rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--steel);
  font: 500 0.63rem/1.4 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  max-width: 38rem;
  margin: 0;
  font-family: var(--performance);
  font-size: clamp(2.65rem, 11.5vw, 4.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}

h1 > span {
  display: block;
  font-size: clamp(1.85rem, 7.8vw, 3.1rem);
  white-space: nowrap;
}

h1 em {
  display: block;
  margin-top: 0.22em;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.lead {
  width: 100%;
  max-width: 38rem;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1.05rem;
  color: rgb(240 233 225 / 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
  border: 1px solid rgb(200 154 90 / 0.26);
  background:
    linear-gradient(115deg, rgb(240 233 225 / 0.09), rgb(73 100 121 / 0.06)),
    rgb(23 17 15 / 0.28);
  box-shadow:
    inset 0 1px rgb(240 233 225 / 0.08),
    0 1rem 3rem rgb(0 0 0 / 0.14);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.method {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 38rem;
  margin-top: 1rem;
  margin-inline: auto;
  color: rgb(240 233 225 / 0.72);
  font: italic 500 0.9rem/1.4 var(--serif);
}

.method b { color: var(--steel); font: 400 0.68rem var(--sans); }

.actions {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 38rem;
  margin-top: 1.5rem;
  margin-inline: auto;
}

.action {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 4.75rem;
  padding: 0.9rem 1rem;
  color: var(--mist);
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(105deg, rgb(36 39 42 / 0.42), rgb(23 17 15 / 0.56));
  opacity: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.action:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

.action--primary {
  color: var(--ink);
  border-color: var(--mist);
  background: var(--mist);
}

.action__number { color: var(--steel); font: 500 0.63rem var(--mono); }
.action--primary .action__number, .action--primary .action__icon { color: #a64f37; }
.action__text { display: grid; gap: 0.18rem; }
.action__text strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.action__text small { color: rgb(240 233 225 / 0.5); font-size: 0.7rem; }
.action--primary .action__text small { color: rgb(23 17 15 / 0.58); }
.action__icon { justify-self: end; color: var(--champagne); font-size: 1.05rem; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  width: 100%;
  max-width: 38rem;
  margin-top: 1.4rem;
  margin-inline: auto;
  padding-top: 1rem;
  color: rgb(240 233 225 / 0.4);
  border-top: 1px solid var(--line);
  font: 400 0.55rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes portrait-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 52rem) {
  body { padding: 1.5rem; }
  .portal { display: grid; grid-template-columns: 4.5rem minmax(20rem, 0.82fr) minmax(32rem, 1.18fr); min-height: calc(100svh - 3rem); border: 1px solid var(--line); }
  .portal::before { top: auto; right: 0; bottom: 2.4rem; left: auto; width: 60%; }
  .portal__rail { display: flex; flex-direction: column; align-items: center; padding: 1.4rem 0.8rem; border-right: 1px solid var(--line); background: var(--ink); }
  .portal__rail img { width: 2.5rem; }
  .portal__rail span { color: rgb(240 233 225 / 0.42); font: 400 0.52rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; writing-mode: vertical-rl; }
  .portal__rail i { flex: 1; width: 1px; margin: 1rem 0; background: linear-gradient(var(--champagne), transparent, var(--steel)); }
  .portrait { height: auto; min-height: 100%; }
  .portrait > img { position: absolute; inset: 0; object-position: 50% 30%; }
  .portrait__wash { background: linear-gradient(90deg, transparent 52%, var(--oxblood) 100%), linear-gradient(180deg, transparent 68%, rgb(42 14 19 / 0.72)); }
  .portrait__caption { display: block; }
  .interface { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: clamp(2rem, 4vw, 4.5rem); background: radial-gradient(circle at 100% 0, rgb(73 100 121 / 0.12), transparent 24rem), var(--oxblood); }
  .identity {
    position: absolute;
    top: 2.2rem;
    left: clamp(2rem, 4vw, 4.5rem);
    right: clamp(2rem, 4vw, 4.5rem);
    width: auto;
  }
  .statement { margin-top: 5rem; }
  h1 { max-width: 38rem; font-size: clamp(3.35rem, 4.3vw, 5.2rem); }
  h1 > span { font-size: clamp(2.65rem, 3.3vw, 4rem); }
  .lead { font-size: 1rem; }
  .method { margin-top: 1rem; }
  .actions { margin-top: 2rem; }
  .action { transition: border-color 180ms ease, transform 180ms ease; }
  .action:hover { border-color: var(--champagne); transform: translateY(-2px); }
  .action--primary:hover { border-color: var(--mist); }
}

@media (min-width: 80rem) {
  body { padding: 2rem; }
  .portal { min-height: calc(100svh - 4rem); grid-template-columns: 5rem minmax(28rem, 0.9fr) minmax(40rem, 1.1fr); }
  .interface { padding-left: clamp(3.5rem, 5vw, 6rem); }
  .identity { left: clamp(3.5rem, 5vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
