/* ============ TOKENS ============ */
:root {
  --paper: #FDFCFA;
  --cream: #EFECE5;
  --bar: #F4F3F0;
  --ink: #2E2E2E;
  --ink-2: #444;
  --muted: #6B6760;
  --line: rgba(20, 20, 18, .12);

  --coral: #A8512F;
  --hl: #BD7756;
  --peach: #E7C0A0;
  --ok: #7E9B84;
  --blue: #3F6470;

  --dark: #2E2E2E;
  --dark-text: #EDEAE4;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --r: 14px;
  --menubar: 46px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 30px 60px -30px rgba(40, 30, 20, .28), 0 2px 8px rgba(40, 30, 20, .06);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
section { scroll-margin-top: var(--menubar); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .fill { fill: currentColor; stroke: none; }

.dot {
  display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(126, 155, 132, .2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(126, 155, 132, .08); } }

/* ============ TYPE ============ */
.eyebrow { display: block; font: 400 12.5px/1 var(--mono); color: var(--coral); letter-spacing: .02em; }
.h2 {
  margin: .9rem 0 0;
  font: 600 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -.02em;
}
.hl {
  display: inline-block;
  padding: .02em .16em .08em;
  background: var(--hl);
  color: #fff;
  font-style: italic;
  font-weight: 500;
}
.lead { margin: 0; font-size: 1.2rem; line-height: 1.5; color: var(--muted); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px;
  font: 700 13.5px/1 var(--mono); white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.btn--solid:hover { background: var(--ink-2); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ig { font-weight: 400; }
.btn--ig .ico { width: 18px; height: 18px; stroke-width: 1.8; }

/* ============ WINDOW CHROME ============ */
.win {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win__bar {
  display: flex; align-items: center; gap: 14px;
  height: 36px; padding: 0 14px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono);
  color: #8D8982;
}
.win__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__title b { font-weight: 400; color: var(--ink); }
.win__dots { display: flex; gap: 7px; flex: none; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: #CFCBC2; }
.win__dots i:first-child { background: #D2664E; }
.win__dots i:last-child { background: var(--ok); }
.win__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 10px 14px;
  background: var(--bar);
  border-top: 1px solid var(--line);
  font: 400 11.5px/1 var(--mono);
  color: var(--muted);
}
.win__foot > span:first-child { display: inline-flex; align-items: center; gap: .55rem; }
.win__foot .dot { width: 7px; height: 7px; animation: none; }

/* ============ MENU BAR ============ */
.menubar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(253, 252, 250, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.menubar__in { display: flex; align-items: center; gap: 1.8rem; height: var(--menubar); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 16px/1 var(--serif); }
.menubar__links { display: flex; gap: 1.3rem; font: 400 12.5px/1 var(--mono); color: var(--muted); }
.menubar__links a:hover { color: var(--ink); }
.menubar__status { margin-left: auto; display: inline-flex; align-items: center; gap: .55rem; font: 400 12.5px/1 var(--mono); }

/* ============ HERO ============ */
.hero {
  padding: calc(var(--menubar) + clamp(2rem, 5vw, 3rem)) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(50% 45% at 72% 38%, rgba(231, 192, 160, .22), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 400 12.5px/1 var(--mono);
}
.hero__stage {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 350px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.hero__name {
  position: relative; z-index: 2;
  justify-self: end;
  margin: 0 clamp(-6rem, -7vw, -3rem) 0 0;
  text-align: right;
  font: 600 clamp(3.6rem, 6.8vw, 6.2rem)/.92 var(--serif);
  letter-spacing: -.035em;
}
.hero__first { display: block; }
.hero__last {
  display: inline-block;
  margin-top: .1em;
  padding: .02em .16em .1em;
  background: rgba(189, 119, 86, .86);
  color: #fff;
  font-style: italic;
  font-weight: 500;
}
.hero__photo { width: 100%; }
.photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #EFE7DF, #D8C3B4); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.hero__stats { justify-self: start; display: grid; gap: .8rem; }
.hcard {
  display: flex; flex-direction: column; gap: .5rem;
  min-width: 200px;
  padding: 1.05rem 1.2rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .5);
}
.hcard__n { font: italic 500 2.5rem/1 var(--serif); letter-spacing: -.02em; }
.hcard__n em, .hcard__brands i { color: var(--peach); }
.hcard__brands { font: italic 500 1.5rem/1.1 var(--serif); }
.hcard__l { font: 400 11.5px/1.3 var(--mono); color: rgba(255, 255, 255, .62); }

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

/* ============ SECTIONS ============ */
.section { padding: clamp(4.5rem, 10vw, 7rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .eyebrow { color: #E0865C; }
.section--dark .hl { background: #74503F; }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: 2rem;
}
.sec-head .lead { max-width: 30rem; }

/* ============ WORK / FINDER ============ */
.finder__tool {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 11px 16px;
  background: #FAF9F7;
  border-bottom: 1px solid var(--line);
  font: 400 12px/1.2 var(--mono);
  color: var(--muted);
}
.finder__path { color: var(--blue); }

.reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px;
}
.reel__screen {
  position: relative; display: block;
  width: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; border-radius: 10px;
  overflow: hidden;
  background: #1D1D1D;
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.reel__screen:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .55); }
.reel__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.reel__ph {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(165deg, hsl(var(--h, 25) 16% 34%), hsl(var(--h, 25) 12% 17%));
}
.reel__ph b { font: italic 500 2.8rem/1 var(--serif); color: rgba(255, 255, 255, .9); }
.reel__ph span { font: 400 10.5px/1 var(--mono); color: rgba(255, 255, 255, .55); }
.reel.is-missing .reel__ph { display: flex; }
.reel.is-missing .reel__play { display: none; }

.reel__play {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: rgba(255, 255, 255, .94);
  color: #111;
  border-radius: 50%;
  transition: transform .25s var(--ease), opacity .25s;
}
.reel__play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.reel__screen:hover .reel__play { transform: scale(1.08); }
.reel__views {
  position: absolute; right: 10px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 8px;
  background: rgba(20, 20, 20, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  font: 700 11px/1 var(--mono);
  white-space: nowrap;
}
.reel__views svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.reel__views.is-empty { opacity: .6; }
.reel__bar {
  position: absolute; inset: auto 0 0;
  height: 3px;
  background: var(--peach);
  transform: scaleX(0); transform-origin: left;
}
.reel__views { transition: opacity .25s; }
.reel.is-playing .reel__play,
.reel.is-playing .reel__views { opacity: 0; }


/* ============ TESTIMONIALS ============ */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.review { display: flex; flex-direction: column; }
.review__quote { flex: 1; margin: 0; padding: 26px 26px 30px; }
.review__quote::before { content: "\201C"; display: block; height: .55em; font: italic 500 4rem/1 var(--serif); color: var(--hl); }
.review__quote p { margin: 0; font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.5 var(--serif); color: var(--ink); }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.filemeta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; font: 400 11.5px/1.4 var(--mono); color: rgba(255, 255, 255, .42); }
.about .h2 { margin-top: .5rem; }
.about .lead { margin-top: 1.4rem; font-size: 1.35rem; color: rgba(255, 255, 255, .9); }
.about__text p:not(.lead) { margin: 1.1rem 0 0; max-width: 36rem; font-size: 1.05rem; color: rgba(255, 255, 255, .7); }
.about__text b { color: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.info__head { display: flex; align-items: center; gap: 1rem; padding: 20px 20px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.info__avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.info__head b { display: block; font: 600 1.3rem/1.2 var(--serif); }
.info__head span { font: 400 12px/1 var(--mono); color: var(--muted); }
.info { margin: 0; padding: 4px 20px 8px; color: var(--ink); }
.info div { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { font: 400 12px/1.6 var(--mono); color: var(--muted); }
.info dd { margin: 0; display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: 15px; }
.info dd a { color: var(--blue); }
.info dd a:hover { text-decoration: underline; }

/* ============ SYSTEM ============ */
.system { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.pill--build { margin-top: 1.4rem; }
.pill--build .dot { background: #D9A441; box-shadow: 0 0 0 3px rgba(217, 164, 65, .2); animation: none; }
.system .lead { margin-top: 1.2rem; }
.steps { display: grid; margin: 1.8rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps b { font: 700 12.5px/1.6 var(--mono); color: var(--coral); }
.steps span { color: var(--ink-2); }

.win--term { background: #1E1E1E; border-color: rgba(0, 0, 0, .5); }
.win--term .win__bar,
.win--term .win__foot { background: #2A2A2A; border-color: rgba(255, 255, 255, .07); color: #8F8B84; }
.win--term .win__title b { color: #E9E5DE; }
.term {
  margin: 0;
  min-height: 236px;
  padding: 20px 22px 22px;
  overflow-x: auto;
  font: 400 13px/1.9 var(--mono);
  color: #D9D5CE;
}
.term .p { color: var(--peach); }
.term .dim { color: #6F6B65; }
.term .v { color: #fff; }
.term .ok { color: #A6C3AC; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #D9D5CE; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term.is-armed .tl { visibility: hidden; }
.js .term.is-armed .tl.is-on { visibility: visible; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact .lead { margin-top: 1.2rem; max-width: 28rem; }
.direct { margin: 1.1rem 0 0; font: 400 13px/1.5 var(--mono); }
.direct + .direct { margin-top: .5rem; }
.direct a { color: var(--blue); border-bottom: 1px solid rgba(63, 100, 112, .4); }
.direct a:hover { border-color: var(--blue); }

.mail__row {
  display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: .75rem;
  min-height: 50px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.mail__row:focus-within { background: #FBFAF8; }
.mail__row > span { font: 400 11.5px/1 var(--mono); color: var(--muted); }
.mail__row > b { color: var(--blue); }
.mail input, .mail textarea {
  width: 100%; border: 0; outline: 0; background: transparent;
  font: 400 15px/1.5 var(--sans); color: var(--ink);
}
.mail textarea { display: block; min-height: 140px; padding: 16px 18px; resize: vertical; }
.mail input::placeholder, .mail textarea::placeholder { color: #A29E97; }
.mail { position: relative; }
.mail__trap { position: absolute; left: -9999px; }
.mail__status[data-state="error"] { color: var(--coral); font-weight: 700; }
.mail button:disabled { opacity: .7; cursor: progress; transform: none; }

.mail__sent {
  position: absolute; inset: 36px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 24px;
  background: #fff;
  text-align: center;
  animation: sent-in .4s var(--ease);
}
.mail__check {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--ok); color: #fff;
  box-shadow: 0 0 0 8px rgba(126, 155, 132, .16);
  animation: pop .5s var(--ease) .08s both;
}
.mail__check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mail__sent h3 { margin: 0; font: 600 2rem/1.1 var(--serif); letter-spacing: -.015em; outline: none; }
.mail__sent p { margin: 0; max-width: 22rem; color: var(--muted); }
.mail__sentto { font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.mail__sent .btn { margin-top: .9rem; }
.mail__sent .btn:disabled { opacity: .55; cursor: default; }
@keyframes sent-in { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.mail__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 14px 18px;
  background: var(--bar);
  border-top: 1px solid var(--line);
  font: 400 11.5px/1 var(--mono); color: var(--muted);
}

/* ============ FOOTER ============ */
.footer { padding: 2.2rem 0; text-align: center; font: 400 12px/1.8 var(--mono); color: var(--muted); }
.footer a { color: var(--blue); }

/* ============ REVEAL ============ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__stage { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .hero__name { justify-self: center; margin: 0 0 1.4rem; text-align: center; font-size: clamp(2.8rem, 14vw, 5.5rem); }
  .hero__photo { width: min(76vw, 340px); }
  .hero__stats { justify-self: center; grid-template-columns: 1fr 1fr; width: min(100%, 460px); margin-top: 1rem; }
  .hcard { min-width: 0; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .reels {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 40vw, 220px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    padding: 16px;
  }
  .reel { scroll-snap-align: start; }

  .about, .system, .contact, .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menubar__links { display: none; }
  .hcard { padding: .9rem 1rem; }
  .hcard__n { font-size: 2.1rem; }
  .hcard__brands { font-size: 1.2rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .finder__meta, .win__foot > span + span { display: none; }
  .steps li { grid-template-columns: 1fr; gap: .2rem; }
  .term { font-size: 11.5px; padding: 16px; }
  .mail__foot { flex-wrap: wrap; }
  .mail__foot .btn { flex: 1 1 100%; justify-content: center; }
  .mail__status { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
