/* docaohieu.com — styles.css
   Light: one source, upper left, late afternoon. Every shadow falls down-right (positive x/y), layered: contact + long soft.

   Contrast (WCAG 2.x, computed from relative luminance):
   ink        #1c1a17 on paper   #f5efe6  15.2:1   body / headlines
   ink-2      #57514a on paper            6.9:1   secondary text
   ink-3      #6b655c on paper            5.0:1   meta / grey status  (on paper-2 #ede5d8: 4.6:1)
   ink        #1c1a17 on amber   #e0913a  6.8:1   primary button label
   amber-deep #99570f on paper            4.9:1   link hover, focus ring
   on-night   #ece7de on night   #0e131a  15.1:1  dark-band text
   on-night-2 #a7aeb8 on night            8.3:1   dark-band secondary (on sheet #1a2230: 7.1:1)
   node-label #d9d3c8 on node    #222b39  9.6:1   diagram mono labels
   on-night   #ece7de on dusk    #2b221d  12.6:1  shelf band text
   amber-lit  #eba35a on night            8.8:1   dark-band link hover, focus ring
   Hero: ink over the garden sits on a paper veil ≥ 0.86 opacity behind body copy (≥ 11:1);
   the name's right half crosses a 0.30 veil — large type, ≥ 4:1.
*/

:root {
  --paper: #f5efe6;
  --paper-2: #ede5d8;
  --surface: #fbf8f2;
  --ink: #1c1a17;
  --ink-2: #57514a;
  --ink-3: #6b655c;
  --line: rgba(28, 26, 23, 0.12);
  --amber: #e0913a;
  --amber-hover: #d8872f;
  --amber-press: #c97a22;
  --amber-deep: #99570f;
  --amber-lit: #eba35a;
  --night: #0e131a;
  --night-2: #141b24;
  --sheet: #1a2230;
  --node: #222b39;
  --dusk: #2b221d;
  --on-night: #ece7de;
  --on-night-2: #a7aeb8;
  --node-label: #d9d3c8;
  --line-night: rgba(236, 231, 222, 0.14);

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  --gut: 32px;
  --edge: max(var(--gut), calc((100vw - 1200px) / 2));
  --curve: 80px;

  --sh-1: 1px 1px 2px rgba(58, 40, 22, 0.10), 8px 12px 24px -8px rgba(58, 40, 22, 0.18);
  --sh-2: 1px 2px 3px rgba(58, 40, 22, 0.10), 16px 24px 48px -12px rgba(58, 40, 22, 0.24);
  --sh-3: 1px 3px 4px rgba(58, 40, 22, 0.10), 24px 36px 64px -12px rgba(58, 40, 22, 0.30);
  --sh-night: 1px 2px 3px rgba(0, 0, 0, 0.35), 20px 32px 64px -16px rgba(0, 0, 0, 0.60);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s ease; }
a:hover { color: var(--amber-deep); }
:focus-visible, .is-focus { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: var(--r-1); }
.skip { position: absolute; left: var(--s-2); top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-1) var(--s-2); border-radius: var(--r-1); }
.skip:focus { top: var(--s-2); }

.wrap { max-width: calc(1200px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }

.h2 {
  font-size: 56px;
  line-height: 64px;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section { padding: var(--s-8) 0; position: relative; }
.section__head { margin-bottom: var(--s-6); }
.section__head .h2 { max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 48px;
  padding: 0 var(--s-3);
  border-radius: var(--r-1);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn--sm { height: 40px; padding: 0 var(--s-2); font-size: 15px; }
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 1px 1px 1px rgba(90, 50, 10, 0.20), 6px 8px 16px -6px rgba(90, 50, 10, 0.35);
}
.btn--primary:hover, .btn--primary.is-hover {
  background: var(--amber-hover);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 1px 2px 2px rgba(90, 50, 10, 0.20), 10px 14px 24px -8px rgba(90, 50, 10, 0.42);
}
.btn--primary:active, .btn--primary.is-active {
  background: var(--amber-press);
  transform: translateY(1px);
  box-shadow: 0 0 1px rgba(90, 50, 10, 0.30), 2px 3px 6px -2px rgba(90, 50, 10, 0.30);
}
.btn--secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.32);
}
.btn--secondary:hover, .btn--secondary.is-hover {
  background: rgba(28, 26, 23, 0.05);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.56);
}
.btn--secondary:active, .btn--secondary.is-active {
  background: rgba(28, 26, 23, 0.10);
  transform: translateY(1px);
}
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--amber-deep); outline-offset: 3px; }

.on-night .btn--secondary { color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(236, 231, 222, 0.36); }
.on-night .btn--secondary:hover, .on-night .btn--secondary.is-hover { background: rgba(236, 231, 222, 0.07); color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(236, 231, 222, 0.60); }
.on-night .btn--secondary:active, .on-night .btn--secondary.is-active { background: rgba(236, 231, 222, 0.12); }
.on-night .btn--primary { box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.30), 6px 8px 16px -6px rgba(0, 0, 0, 0.55); }
.on-night .btn--primary:hover, .on-night .btn--primary.is-hover { box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.30), 10px 14px 24px -8px rgba(0, 0, 0, 0.65); }
.on-night a:hover { color: var(--amber-lit); }
.on-night :focus-visible, .on-night .is-focus, .on-night .btn:focus-visible { outline-color: var(--amber-lit); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nav--solid { background: var(--paper); border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; margin-right: auto; }
.nav__brand:hover { color: var(--ink); }
.nav__avatar { display: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav__links { display: flex; gap: var(--s-4); font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; padding: var(--s-1) 0; }
.nav__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-1); margin-right: -10px; }
.nav__menu svg, .menu__close svg, .drawer__close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }

/* Mobile menu sheet */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 0 var(--s-2) var(--s-4);
}
.menu[hidden] { display: none; }
.menu__top { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.menu__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-right: -10px; border-radius: var(--r-1); }
.menu__links { margin-top: var(--s-3); border-top: 1px solid var(--line); }
.menu__links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-size: 32px;
  line-height: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu__foot { margin-top: auto; display: grid; gap: var(--s-2); }
.menu__foot .btn { width: 100%; }
.menu__mail { text-align: center; font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 820px; isolation: isolate; overflow-x: clip; --mx: 0; --my: 0; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--mx) * -3px), calc(var(--my) * -3px), 0) scale(1.08);
  transition: transform 0.6s ease-out;
}
.hero__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(255, 206, 148, 0.50) 0%, rgba(255, 206, 148, 0) 60%),
    linear-gradient(180deg, rgba(245, 239, 230, 0) 68%, var(--paper) 100%),
    linear-gradient(90deg, rgba(245, 239, 230, 0.94) 0%, rgba(245, 239, 230, 0.86) 40%, rgba(245, 239, 230, 0.42) 68%, rgba(245, 239, 230, 0.30) 100%),
    radial-gradient(120% 100% at 60% 30%, rgba(38, 26, 16, 0) 55%, rgba(38, 26, 16, 0.30) 100%);
}
.hero__stage { position: relative; height: 100%; }
.hero__copy { position: absolute; top: 152px; left: var(--gut); width: 600px; z-index: 4; }
.hero__headline {
  font-size: 44px;
  line-height: 48px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__sub { margin-top: var(--s-2); max-width: 520px; color: var(--ink-2); }
.hero__actions { margin-top: var(--s-4); display: flex; gap: 12px; }
.hero__name {
  position: absolute;
  top: 432px;
  left: calc(var(--gut) - 10px);
  z-index: 2;
  font-size: min(200px, calc((100vw - 64px) / 6.1));
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.058em;
  white-space: nowrap;
  transform: translate3d(calc(var(--mx) * 3px), calc(var(--my) * 2px), 0);
  transition: transform 0.6s ease-out;
}
.hero__portrait {
  position: absolute;
  /* Sit just after the name instead of over it. The name is 5.04em wide; the visible body spans
     17%–89% of the cutout, so size the portrait to fit the space between the name and the viewport edge. */
  --fs: min(200px, calc((100vw - 64px) / 6.1));
  --stage-off: max(0px, calc((100vw - 1264px) / 2));
  --pw: min(420px, calc((100vw - var(--stage-off) - var(--gut) + 10px - 5.04 * var(--fs) - 44px) / 0.72));
  top: calc(760px - var(--pw));
  left: calc(var(--gut) - 10px + 5.04 * var(--fs) + 16px - 0.17 * var(--pw));
  width: var(--pw);
  height: var(--pw);
  z-index: 3;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 5px), 0);
  transition: transform 0.6s ease-out;
  /* The cutout's flat bottom edge now sits partly outside the metrics card; fade it out. */
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(1px 0 0 rgba(168, 198, 236, 0.55)) drop-shadow(18px 24px 32px rgba(40, 26, 14, 0.26));
}

.metrics {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: -88px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--s-4) 0;
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: var(--sh-2);
}
.metrics__item { padding: 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); }
.metrics__item + .metrics__item { border-left: 1px solid var(--line); }
.metrics dt { order: 2; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.metrics dd { order: 1; font-size: 48px; line-height: 56px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* ---------- Perspective ---------- */
.perspective { padding-top: calc(88px + var(--s-8)); }
.perspective__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
.perspective__title { grid-column: 1 / 6; }
.points { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); padding-top: var(--s-1); }
.point { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.point h3 { font-size: 17px; line-height: 28px; font-weight: 600; }
.point p { margin-top: var(--s-1); color: var(--ink-2); }
.perspective__close {
  grid-column: 1 / 10;
  margin-top: var(--s-7);
  font-size: 28px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ---------- Journey ---------- */
.journey { padding-top: var(--s-6); }
.journey__row {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--edge);
  padding: var(--s-1) var(--edge) var(--s-6);
  scrollbar-width: none;
}
.journey__row::-webkit-scrollbar { display: none; }
/* The row hides its scrollbar, so mouse users step through it with these. */
.journey__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.journey__nav { display: flex; gap: 12px; flex: none; }
.jnav { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.32); transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.jnav:hover:not(:disabled) { background: rgba(28, 26, 23, 0.05); box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.56); }
.jnav:disabled { opacity: 0.35; cursor: default; }
.jnav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey__row > li { flex: 0 0 auto; width: calc((100vw - var(--edge) - var(--s-3) * 4) / 4.5); display: flex; scroll-snap-align: start; }
.jcard {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: var(--s-4) var(--s-3) var(--s-3);
  background: var(--surface);
  border-radius: var(--r-2);
  box-shadow: var(--sh-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.jcard.is-active { box-shadow: inset 0 0 0 1px var(--ink), var(--sh-2); }
.jcard__years { font-size: 32px; line-height: 40px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.jcard__title { margin-top: var(--s-3); font-size: 17px; line-height: 24px; font-weight: 600; }
.jcard__place { font-size: 15px; line-height: 24px; color: var(--ink-3); }
.jcard__line { margin-top: var(--s-2); font-size: 15px; line-height: 24px; color: var(--ink-2); }
.jcard__more { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; gap: 4px; font-size: 15px; line-height: 24px; font-weight: 600; }
.jcard__more svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.jcard:hover .jcard__more { color: var(--amber-deep); }
.jcard:hover .jcard__more svg { transform: translateX(2px); }

/* Drawer */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(14, 19, 26, 0.36);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 80;
  width: 480px;
  background: var(--surface);
  padding: var(--s-5) var(--s-5) var(--s-5);
  overflow-y: auto;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.drawer[hidden], .scrim[hidden] { display: none; }
.drawer--left { left: 0; transform: translateX(-100%); border-radius: 0 var(--r-3) var(--r-3) 0; box-shadow: 1px 0 2px rgba(58, 40, 22, 0.10), 32px 24px 64px -16px rgba(20, 14, 8, 0.40); }
.drawer--right { right: 0; transform: translateX(100%); border-radius: var(--r-3) 0 0 var(--r-3); box-shadow: 1px 2px 3px rgba(58, 40, 22, 0.10), 16px 24px 64px -16px rgba(20, 14, 8, 0.40); }
.drawer.is-open { transform: none; }
.drawer__grab { display: none; }
.drawer__close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-1); }
.drawer__close:hover { background: rgba(28, 26, 23, 0.05); }
.drawer__years { font-size: 15px; line-height: 24px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.drawer__title { margin-top: var(--s-1); font-size: 40px; line-height: 48px; font-weight: 650; letter-spacing: -0.035em; padding-right: var(--s-5); }
.drawer__sub { margin-top: var(--s-1); color: var(--ink-2); }
.drawer__list { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.drawer__list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }

/* ---------- Capabilities ---------- */
.caps { padding-top: var(--s-6); }
.caps__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
.caps__lead { grid-column: 1 / 5; font-size: 32px; line-height: 40px; font-weight: 650; letter-spacing: -0.03em; }
.caps__list { grid-column: 5 / 13; border-top: 1px solid var(--line); }
.caps__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.caps__row dt { font-weight: 600; }
.caps__row dd { color: var(--ink-2); }

/* ---------- Dark bands & curves ---------- */
.band-night { background: var(--night); color: var(--on-night); border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0; }
.band-cover { margin-top: calc(var(--curve) * -1); border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0; }

/* ---------- Fleet ---------- */
.fleet {
  padding: calc(var(--curve) + var(--s-7)) 0 calc(var(--curve) + var(--s-8));
  background:
    radial-gradient(70% 50% at 10% 0%, rgba(110, 140, 190, 0.12) 0%, rgba(110, 140, 190, 0) 70%),
    var(--night);
}
.fleet .h2 { color: var(--on-night); }
.fleet__sub { margin-top: var(--s-2); color: var(--on-night-2); max-width: 640px; }
.sheet {
  position: relative;
  margin-top: var(--s-6);
  padding: var(--s-5) 40px 40px;
  border-radius: var(--r-3);
  background:
    radial-gradient(65% 75% at 28% 18%, rgba(255, 196, 130, 0.13) 0%, rgba(255, 196, 130, 0.04) 45%, rgba(255, 196, 130, 0) 75%),
    linear-gradient(160deg, #1d2634 0%, var(--sheet) 55%, #161d29 100%);
  box-shadow: var(--sh-night);
}
.sheet__top { display: flex; justify-content: center; }
.dnode {
  background: var(--node);
  border-radius: var(--r-2);
  padding: var(--s-2) 20px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35), 8px 12px 24px -8px rgba(0, 0, 0, 0.50);
}
.dnode--dns { width: 360px; height: 72px; padding: 12px 20px; text-align: center; }
.dnode__title { display: block; font-family: var(--mono); font-size: 14px; line-height: 24px; font-weight: 500; color: var(--node-label); }
.dnode__note { display: block; font-size: 13px; line-height: 24px; color: var(--on-night-2); }
.sheet__fan, .sheet__drop { display: block; width: 100%; position: relative; z-index: 1; overflow: visible; }
.sheet__fan { height: 104px; margin-bottom: -24px; }
.sheet__drop { height: 104px; margin-top: -56px; margin-bottom: 0; }
.wire { fill: none; stroke: rgba(236, 231, 222, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire-dot { fill: var(--node-label); }
.fan-label { font-family: var(--mono); font-size: 12px; fill: var(--on-night-2); }
.mesh {
  position: relative;
  padding: var(--s-3) 20px 56px;
  border: 1px dashed rgba(236, 231, 222, 0.26);
  border-radius: var(--r-3);
}
.mesh__nodes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.mesh__label { position: absolute; left: 20px; bottom: var(--s-2); font-size: 13px; line-height: 24px; color: var(--on-night-2); }
.mesh__label strong { font-family: var(--mono); font-weight: 500; color: var(--node-label); }
.node {
  background: var(--node);
  border-radius: var(--r-2);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35), 10px 16px 28px -10px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.node__head { padding: 14px var(--s-2) 12px; }
.node__name { display: block; font-family: var(--mono); font-size: 15px; line-height: 24px; font-weight: 500; color: var(--on-night); }
.node__region { display: block; font-size: 13px; line-height: 16px; color: var(--on-night-2); }
.node__edge { padding: 6px var(--s-2); font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--on-night-2); background: rgba(236, 231, 222, 0.05); border-top: 1px solid var(--line-night); border-bottom: 1px solid var(--line-night); }
.node__svc { padding: 12px var(--s-2) var(--s-2); font-family: var(--mono); font-size: 12.5px; line-height: 20px; color: var(--node-label); display: flex; flex-direction: column; gap: 6px; }
.sheet__base { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-2); align-items: stretch; }
.dnode--status { display: flex; flex-direction: column; justify-content: center; gap: 4px; background: transparent; box-shadow: none; border: 1px dashed rgba(236, 231, 222, 0.26); }
.dnode--status .dnode__note { line-height: 20px; }
.s3 { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: 20px var(--s-3); }
.s3__tier { display: grid; gap: var(--s-1); }
.s3__label { font-size: 13px; line-height: 16px; color: var(--on-night-2); }
.s3__disks { display: flex; gap: var(--s-1); }
.s3__disk { padding: 4px 10px; border-radius: var(--r-1); background: rgba(236, 231, 222, 0.07); box-shadow: inset 0 0 0 1px var(--line-night); font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--node-label); }
.s3__arrow { width: 40px; height: 12px; stroke: rgba(236, 231, 222, 0.5); fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.s3__note { grid-column: 1 / -1; font-size: 13px; line-height: 20px; color: var(--on-night-2); border-top: 1px solid var(--line-night); padding-top: 12px; }

/* ---------- Work ---------- */
.work { position: relative; isolation: isolate; padding: calc(var(--curve) + var(--s-7)) 0 var(--s-8); margin-top: calc(var(--curve) * -1); }
.work::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  z-index: -1;
  background: var(--paper-2);
  border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0;
}
.work__large { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.work__large::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: 50%;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: var(--paper-2);
}
.work__small { margin-top: var(--s-3); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: var(--sh-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wcard:hover, .wcard.is-hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.wcard--sm { padding: var(--s-3) var(--s-4); border-radius: var(--r-2); box-shadow: var(--sh-1); }
.wcard--sm:hover, .wcard--sm.is-hover { box-shadow: var(--sh-2); }
.wcard:focus-within, .wcard.is-focus { outline: 2px solid var(--amber-deep); outline-offset: 4px; border-radius: var(--r-2); }
.wcard__status { display: flex; align-items: center; gap: var(--s-1); font-size: 14px; line-height: 24px; color: var(--ink-3); }
.wcard__status--live { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(224, 145, 58, 0.22); }
.wcard__title { margin-top: var(--s-2); font-size: 28px; line-height: 32px; font-weight: 650; letter-spacing: -0.03em; }
.wcard--sm .wcard__title { margin-top: var(--s-1); font-size: 22px; line-height: 32px; letter-spacing: -0.025em; }
.wcard__text { margin-top: var(--s-2); font-size: 16px; line-height: 24px; color: var(--ink-2); text-wrap: pretty; }
.wcard__foot { margin-top: auto; padding-top: var(--s-3); display: flex; flex-direction: column; font-size: 14px; line-height: 24px; }
.wcard__tech { color: var(--ink); font-weight: 500; }
.wcard__link { color: var(--ink-3); }
a.wcard__link { color: var(--ink); font-weight: 600; text-decoration: none; }
a.wcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
a.wcard__link:focus-visible { outline: none; }
.wcard:hover a.wcard__link, .wcard.is-hover a.wcard__link { color: var(--amber-deep); }
.work__also { margin-top: var(--s-5); max-width: 880px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.work__also strong { color: var(--ink); font-weight: 600; }

/* ---------- Experience ---------- */
.exp { padding-top: var(--s-6); }
.exp__list { border-top: 1px solid var(--line); }
.exp__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.exp__line { grid-column: 1 / 13; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.exp__role { font-size: 22px; line-height: 32px; font-weight: 650; letter-spacing: -0.02em; }
.exp__place { color: var(--ink-2); }
.exp__years { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.exp__bullets { grid-column: 1 / 10; margin-top: 12px; display: grid; gap: var(--s-1); color: var(--ink-2); }
.exp__bullets li { position: relative; padding-left: 20px; }
.exp__bullets li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 1px; background: var(--ink-3); }

/* ---------- Books ---------- */
.book { --spine: 24px; --tilt: 18deg; position: relative; perspective: 1400px; isolation: isolate; }
.book__body { position: relative; transform: rotateY(var(--tilt)); transform-style: preserve-3d; transform-origin: 50% 50%; }
.book__cover { position: relative; border-radius: 2px 4px 4px 2px; overflow: hidden; }
.book__cover img { width: 100%; }
.book__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0, rgba(255, 255, 255, 0.14) 3px, rgba(0, 0, 0, 0.06) 7px, rgba(0, 0, 0, 0) 12px),
    linear-gradient(118deg, rgba(255, 240, 220, 0.18) 0%, rgba(255, 240, 220, 0) 38%, rgba(20, 12, 6, 0.14) 100%);
}
.book__spine {
  position: absolute;
  top: 0;
  left: calc(var(--spine) * -1);
  width: var(--spine);
  height: 100%;
  transform-origin: right center;
  transform: rotateY(-90deg);
  overflow: hidden;
  border-radius: 2px 0 0 2px;
}
.book__spine img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; filter: brightness(0.92) saturate(0.9); }
.book__spine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(255, 244, 228, 0.16) 45%, rgba(0, 0, 0, 0.18) 100%); }
.book::before {
  content: "";
  position: absolute;
  inset: 4% 2% 0 6%;
  z-index: -1;
  border-radius: 4px;
  box-shadow: 18px 26px 44px rgba(40, 26, 14, 0.34);
}
.book::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -10%;
  bottom: -12px;
  height: 24px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 12, 6, 0.42) 0%, rgba(20, 12, 6, 0) 100%);
}
.book--lg { --spine: 30px; width: 400px; }
.book--thick { --spine: 26px; }

/* ---------- Writing ---------- */
.writing { padding: var(--s-6) 0 0; }
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); margin-top: var(--s-6); }
.feature .book { grid-column: 1 / 6; justify-self: center; width: min(400px, 100% - 32px); }
.feature__text { grid-column: 7 / 13; align-self: start; }
.feature__meta { font-size: 15px; line-height: 24px; color: var(--ink-3); }
.feature__title { margin-top: var(--s-2); font-size: 36px; line-height: 40px; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.feature__desc { margin-top: var(--s-2); color: var(--ink-2); max-width: 540px; }
.feature__cta { margin-top: var(--s-3); }

.shelf-band {
  --overlap: 236px;
  position: relative;
  margin-top: calc(var(--overlap) * -1);
  padding: calc(var(--overlap) + var(--s-7)) 0 calc(var(--curve) + var(--s-8));
  color: var(--on-night);
  border-radius: 50% 50% 0 0 / 64px 64px 0 0;
  background:
    radial-gradient(55% 45% at 22% 38%, rgba(255, 186, 116, 0.16) 0%, rgba(255, 186, 116, 0) 70%),
    linear-gradient(180deg, #33281f 0%, var(--dusk) 45%, #221c19 100%);
}
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.shelf__title { font-size: 28px; line-height: 40px; font-weight: 650; letter-spacing: -0.025em; }
.shelf__note { color: rgba(236, 231, 222, 0.78); font-size: 15px; line-height: 24px; }
.shelf { margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shelf__item { display: flex; flex-direction: column; }
.shelf__item .book { --spine: 14px; --tilt: 14deg; width: 168px; margin: 0 auto 0 36px; }
.shelf__item .book--thick { --spine: 26px; }
.shelf__item .book::before { box-shadow: 14px 18px 30px rgba(0, 0, 0, 0.45); }
.shelf__item .book::after { bottom: -8px; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%); }
.shelf__ledge {
  height: 16px;
  margin-top: 0;
  background: linear-gradient(180deg, #6a543f 0%, #5a4634 30%, #3b2e24 31%, #2c231c 100%);
  box-shadow: 0 18px 28px -10px rgba(0, 0, 0, 0.6);
}
.shelf__item:first-child .shelf__ledge { border-radius: 4px 0 0 4px; }
.shelf__item:last-child .shelf__ledge { border-radius: 0 4px 4px 0; }
.shelf__label { padding: var(--s-3) var(--s-3) 0 36px; }
.shelf__name { font-size: 17px; line-height: 24px; font-weight: 600; }
.shelf__meta { margin-top: 4px; font-size: 14px; line-height: 20px; color: rgba(236, 231, 222, 0.78); }
.shelf__link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.shelf__link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  margin-top: calc(var(--curve) * -1);
  padding: calc(var(--curve) + var(--s-7)) 0 var(--s-5);
  background:
    radial-gradient(60% 60% at 8% 10%, rgba(120, 150, 200, 0.12) 0%, rgba(120, 150, 200, 0) 70%),
    var(--night);
}
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
.contact__main { grid-column: 1 / 7; }
.contact__title { font-size: 64px; line-height: 64px; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
.contact__line { margin-top: var(--s-3); color: var(--on-night-2); max-width: 460px; }
.contact__actions { margin-top: var(--s-5); display: flex; gap: 12px; }
.contact__rows { grid-column: 8 / 13; align-self: end; border-top: 1px solid var(--line-night); }
.crow { display: grid; grid-template-columns: 24px 88px minmax(0, 1fr); align-items: center; gap: var(--s-2); min-height: 64px; border-bottom: 1px solid var(--line-night); text-decoration: none; }
.crow svg { width: 20px; height: 20px; stroke: var(--on-night-2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s ease; }
.crow__label { font-size: 15px; color: var(--on-night-2); }
.crow__value { font-weight: 500; }
.crow:hover svg { stroke: var(--amber-lit); }
.footer { margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--line-night); font-size: 14px; line-height: 24px; color: var(--on-night-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile (≤ 900) ---------- */
@media (max-width: 900px) {
  :root { --gut: 16px; --curve: 40px; }
  body { font-size: 16px; line-height: 24px; }
  .h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
  .section { padding: var(--s-7) 0; }
  .section__head { margin-bottom: var(--s-5); }

  .nav__links, .nav__resume { display: none; }
  .nav__menu { display: flex; }
  .nav__avatar { display: block; }
  .nav__inner { gap: var(--s-2); }

  .hero { height: auto; padding-top: 72px; }
  .hero__light {
    background:
      radial-gradient(120% 50% at 0% 0%, rgba(255, 206, 148, 0.45) 0%, rgba(255, 206, 148, 0) 65%),
      linear-gradient(180deg, rgba(245, 239, 230, 0.30) 0%, rgba(245, 239, 230, 0.55) 30%, rgba(245, 239, 230, 0.94) 44%, var(--paper) 62%);
  }
  .hero__stage { height: auto; display: flex; flex-direction: column; padding-bottom: 0; }
  .hero__portrait { --pw: 300px; position: relative; top: auto; right: auto; left: auto; order: 1; width: 300px; height: 232px; margin: var(--s-2) -8px 0 auto; overflow: hidden; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero__portrait img { width: 300px; height: 300px; margin-top: -40px; }
  .hero__name { position: relative; order: 2; top: auto; left: -3px; margin-top: -36px; font-size: min(60px, calc((100vw - 32px) / 6)); line-height: 56px; letter-spacing: -0.055em; transform: none; }
  .hero__copy { position: relative; order: 3; top: auto; left: auto; width: auto; margin-top: var(--s-3); }
  .hero__headline { font-size: 30px; line-height: 36px; }
  .hero__sub { margin-top: 12px; }
  .hero__actions { flex-direction: column; margin-top: var(--s-3); }
  .hero__actions .btn { width: 100%; }
  .metrics { position: relative; order: 4; left: auto; right: auto; bottom: auto; margin: var(--s-4) 0 -64px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .metrics__item { padding: 20px; }
  .metrics__item + .metrics__item { border-left: 0; }
  .metrics__item:nth-child(even) { border-left: 1px solid var(--line); }
  .metrics__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .metrics dd { font-size: 36px; line-height: 40px; }
  .metrics dt { font-size: 14px; line-height: 20px; }

  .perspective { padding-top: calc(64px + var(--s-7)); }
  .perspective__grid { display: block; }
  .points { grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-5); }
  .perspective__close { margin-top: var(--s-6); font-size: 22px; line-height: 32px; }

  .journey { padding-top: var(--s-4); }
  .journey__nav { display: none; }
  .journey__row { gap: 12px; padding-bottom: var(--s-5); }
  .journey__row > li { width: calc((100vw - var(--gut) - 12px) / 1.25); }
  .jcard { padding: var(--s-3) 20px 20px; }
  .jcard__years { font-size: 28px; line-height: 32px; }

  .drawer { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 86vh; padding: var(--s-4) var(--s-3) var(--s-5); border-radius: var(--r-3) var(--r-3) 0 0; transform: translateY(100%); box-shadow: 0 -1px 2px rgba(58, 40, 22, 0.10), 0 -16px 48px -12px rgba(20, 14, 8, 0.35); }
  .drawer--left, .drawer--right { transform: translateY(100%); border-radius: var(--r-3) var(--r-3) 0 0; }
  .drawer__grab { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(28, 26, 23, 0.18); }
  .drawer__close { top: var(--s-2); right: var(--s-2); }
  .drawer__title { font-size: 30px; line-height: 36px; }
  .drawer__list { margin-top: var(--s-3); }
  .drawer__list li { padding: 12px 0; }

  .caps { padding-top: var(--s-4); }
  .caps__grid { display: block; }
  .caps__lead { font-size: 26px; line-height: 32px; }
  .caps__list { margin-top: var(--s-3); }
  .caps__row { grid-template-columns: 1fr; gap: 0; padding: 12px 0; }

  .fleet { padding: calc(var(--curve) + var(--s-6)) 0 calc(var(--curve) + var(--s-7)); }
  .sheet { padding: var(--s-3) var(--s-2) var(--s-2); margin-top: var(--s-5); }
  .dnode--dns { width: 100%; height: auto; }
  .sheet__fan, .sheet__drop { display: none; }
  .mesh { margin-top: var(--s-4); padding: var(--s-2) 12px 72px; }
  .mesh::before { content: ""; position: absolute; left: 50%; top: -33px; height: 32px; border-left: 1px solid rgba(236, 231, 222, 0.42); }
  .mesh__nodes { grid-template-columns: 1fr; gap: 12px; }
  .mesh__label { left: 12px; right: 12px; bottom: 12px; line-height: 20px; }
  .sheet__base { grid-template-columns: 1fr; margin-top: 12px; }
  .s3 { order: -1; grid-template-columns: 1fr; gap: 12px; padding: var(--s-2); }
  .s3__arrow { transform: rotate(90deg); margin-left: 8px; }

  .work { padding: calc(var(--curve) + var(--s-6)) 0 var(--s-7); }
  .work::before { height: 300px; }
  .work__large, .work__small { grid-template-columns: 1fr; gap: var(--s-2); }
  .work__small { margin-top: var(--s-2); }
  .work__large::before { bottom: auto; height: 240px; }
  .wcard { padding: var(--s-3); }
  .wcard--sm { padding: 20px var(--s-3); }
  .wcard__title { font-size: 24px; line-height: 32px; }

  .exp { padding-top: var(--s-4); }
  .exp__item { display: block; padding: var(--s-3) 0; }
  .exp__line { display: grid; gap: 0; }
  .exp__role { font-size: 20px; line-height: 28px; }
  .exp__years { margin-left: 0; }

  .writing { padding-top: var(--s-4); }
  .feature { display: flex; flex-direction: column; margin-top: var(--s-4); }
  .feature__text { order: 1; }
  .feature__title { font-size: 28px; line-height: 32px; }
  .feature__cta { width: 100%; }
  .feature .book { order: 2; width: 240px; margin: var(--s-5) 0 0 32px; }
  .book--lg { --spine: 22px; width: 240px; }
  .shelf-band { --overlap: 160px; padding: calc(var(--overlap) + var(--s-6)) 0 calc(var(--curve) + var(--s-7)); border-radius: 50% 50% 0 0 / 32px 32px 0 0; }
  .shelf__head { display: block; }
  .shelf__title { font-size: 24px; line-height: 32px; }
  .shelf__note { margin-top: 4px; }
  .shelf { margin: var(--s-4) calc(var(--gut) * -1) 0; padding: 0 var(--gut); scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); }
  .shelf__track { grid-template-columns: repeat(5, 176px); width: max-content; padding-right: var(--gut); }
  .shelf__item { scroll-snap-align: start; }
  .shelf__item .book { width: 128px; margin-left: 28px; }
  .shelf__label { padding: 20px 12px 0 28px; }

  .contact { padding: calc(var(--curve) + var(--s-6)) 0 var(--s-4); }
  .contact__grid { display: block; }
  .contact__title { font-size: 40px; line-height: 44px; }
  .contact__actions { flex-direction: column; margin-top: var(--s-4); }
  .contact__actions .btn { width: 100%; }
  .contact__rows { margin-top: var(--s-5); }
  .crow { grid-template-columns: 24px minmax(0, 1fr); gap: 4px var(--s-2); padding: 12px 0; }
  .crow svg { grid-row: 1 / 3; }
  .crow__label { font-size: 14px; line-height: 20px; }
  .footer { margin-top: var(--s-7); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg img, .hero__name, .hero__portrait { transform: none; }
  .hero__bg img { transform: scale(1.08); }
}
