/* Evan Gel Jañoso portfolio. OUTVERA brand system: charcoal #111312, ivory #F5F1E9, champagne gold #C5A477,
   slate #343A37, Montserrat with IBM Plex Mono labels. */
:root {
  --ink: #111312;
  --ink-2: #171a19;
  --panel: #1b1e1d;
  --slate: #343A37;
  --ivory: #F5F1E9;
  --stone: #B9B3A8;
  --muted: #8C877E;
  --gold: #C5A477;
  --gold-2: #E2C597;
  --line: rgba(245, 241, 233, 0.09);
  --line-2: rgba(245, 241, 233, 0.16);
  --font: "Montserrat", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(197, 164, 119, 0.55); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.eyebrow a { border-bottom: 1px solid rgba(197, 164, 119, 0.4); transition: border-color 0.25s; }
.eyebrow a:hover { border-color: var(--gold); }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
/* widths in em, not ch: ch is measured from whichever font is loaded first, so it shifts when Montserrat arrives */
.lead { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: var(--stone); max-width: 36em; }
em { font-style: normal; color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #A98252); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(197, 164, 119, 0.55); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(197, 164, 119, 0.7); }
.btn--ghost { border-color: var(--line-2); color: var(--ivory); background: rgba(245, 241, 233, 0.02); }
.btn--ghost:hover { border-color: rgba(197, 164, 119, 0.6); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; gap: 8px; color: var(--gold); font-weight: 600; font-size: 15px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(17, 19, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.mark { font: 600 19px/1 var(--font); letter-spacing: 0.24em; margin-right: auto; }
.mark span { color: var(--gold); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--stone); transition: color 0.2s; }
.nav__links a:hover { color: var(--ivory); }
.nav__cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav__bars, .nav__bars::before, .nav__bars::after { position: absolute; left: 13px; width: 20px; height: 1.6px; background: var(--ivory); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__bars { top: 22px; }
.nav__bars::before, .nav__bars::after { content: ""; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; inset: var(--nav-h) 0 auto; background: rgba(17, 19, 18, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; display: grid; gap: 4px; }
.menu a:not(.btn) { padding: 14px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 16px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 880px; aspect-ratio: 1; right: -220px; top: 50%; translate: 0 -50%; background: radial-gradient(closest-side, rgba(197, 164, 119, 0.13), rgba(197, 164, 119, 0)); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 10%, transparent 75%); opacity: 0.55; }
/* minmax(0, …): the larger portrait may spill into the gap instead of squeezing the headline column */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); margin-bottom: 26px; max-width: 10em; }
.hero .lead { margin-bottom: 36px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.facts li:last-child { border: 0; margin: 0; padding: 0; }
.facts strong { display: block; font-size: 19px; font-weight: 600; color: var(--ivory); margin-bottom: 4px; }
.facts span { font-size: 13px; color: var(--muted); }
.portrait { position: relative; justify-self: center; width: min(540px, 108%); aspect-ratio: 1; }
.portrait__ring { position: absolute; inset: 6%; border-radius: 50%; padding: 10px; background: conic-gradient(from 210deg, rgba(197, 164, 119, 0.05), var(--gold-2), rgba(197, 164, 119, 0.15), var(--gold), rgba(197, 164, 119, 0.05)); box-shadow: 0 40px 90px -40px rgba(197, 164, 119, 0.45); }
.portrait__ring img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--ink-2); border: 6px solid var(--ink); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(27, 30, 29, 0.88); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font: 500 13px/1 var(--font); color: var(--ivory); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); animation: float 6s ease-in-out infinite; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #7FD49B; box-shadow: 0 0 0 4px rgba(127, 212, 155, 0.15); }
.chip--a { top: 9%; right: -3%; }
.chip--b { top: 44%; left: -9%; animation-delay: -3s; font-family: var(--mono); font-size: 12px; color: var(--gold); }

/* name label under the photo, like a profile card */
.portrait__label {
  position: absolute; z-index: 3; left: 50%; bottom: -1%; transform: translateX(-50%);
  display: grid; gap: 4px; justify-items: center; text-align: center; white-space: nowrap;
  padding: 13px 26px 14px; border-radius: 16px;
  background: rgba(27, 30, 29, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 164, 119, 0.45);
  box-shadow: 0 22px 46px -24px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(245, 241, 233, 0.06);
  transition: opacity 0.3s var(--ease);
}
.portrait__label strong { font: 600 17px/1.2 var(--font); letter-spacing: 0.01em; color: var(--ivory); }
.portrait__label span { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.05em; color: var(--gold); }
.xray.is-on .portrait__label { opacity: 0; }
[data-theme="light"] .portrait__label { background: rgba(255, 255, 255, 0.94); border-color: rgba(138, 100, 55, 0.35); box-shadow: 0 22px 46px -26px rgba(17, 19, 18, 0.35); }
@keyframes float { 50% { transform: translateY(-8px); } }
.chip { z-index: 3; transition: opacity 0.3s var(--ease); }
.xray.is-on .chip { opacity: 0; }

/* x-ray lens over the portrait: follows the pointer and shows the tools I connect, like outvera.online/about */
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.xray { --x: 50%; --y: 50%; --r: 0px; transition: --r 420ms var(--ease); }
.xray.is-on { --r: clamp(74px, 7.6vw, 106px); cursor: crosshair; }
.xray__scan {
  /* 20% bigger than the portrait on every side, so the lens is never cut off at the outer apps */
  position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(197,164,119,0.07) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(197,164,119,0.13) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(197,164,119,0.13) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), #1b1d1a, #0f1312 70%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--sx, 50%) var(--sy, 50%), #000 calc(100% - 1px), transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--sx, 50%) var(--sy, 50%), #000 calc(100% - 1px), transparent 100%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.xray.is-on .xray__scan { opacity: 1; }
/* the scan's box is 1.4 x the portrait; the network covers exactly the photo ring (portrait inset 6%):
   (20% + 6%) / 140% = 18.5714% from the edge, 88% / 140% = 62.8571% wide */
.xray__net { position: absolute; left: 18.5714%; top: 18.5714%; width: 62.8571%; height: 62.8571%; overflow: visible; }
.xr-core__plate { fill: #0f1312; stroke: #C5A477; stroke-width: 1.5; transition: stroke 260ms var(--ease), filter 260ms var(--ease); }
.xray.has-app .xr-core__plate { stroke: #E2C597; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(226, 197, 151, 0.45)); }
.xr-core__label { font: 600 15px var(--mono); letter-spacing: 0.28em; fill: #C5A477; }
.xray__net text { font: 500 15px var(--mono); letter-spacing: 0.02em; }
.xr-link { stroke: #C5A477; stroke-width: 1; stroke-opacity: 0.4; stroke-dasharray: 3 5; transition: stroke-opacity 260ms var(--ease); }
.xr-link.is-active { stroke-opacity: 1; stroke-width: 1.5; animation: xr-flow 700ms linear infinite; }
@keyframes xr-flow { to { stroke-dashoffset: -16; } }
.xr-app circle { fill: #151816; stroke: #C5A477; stroke-opacity: 0.6; stroke-width: 1; transition: stroke-opacity 260ms var(--ease), fill 260ms var(--ease); }
.xr-app__glyph { fill: #D3B78E; transition: fill 260ms var(--ease); }
.xr-app__glyph .xr-hole { fill: #151816; }
.xr-app__name { fill: #F5F1E9; opacity: 0; transition: opacity 220ms var(--ease); paint-order: stroke; stroke: #0f1312; stroke-width: 4px; }
.xr-app.is-active circle { fill: #2a2620; stroke-opacity: 1; }
.xr-app.is-active .xr-app__glyph { fill: #F5F1E9; }
.xr-app.is-active .xr-app__glyph .xr-hole { fill: #2a2620; }
.xr-app.is-active .xr-app__name { opacity: 1; }
.xray__ring {
  position: absolute; z-index: 2; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(197,164,119,0.85);
  box-shadow: 0 0 0 1px rgba(17,19,18,0.7), 0 0 48px rgba(197,164,119,0.22), inset 0 0 32px rgba(197,164,119,0.12);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.xray__ring::before, .xray__ring::after { content: ""; position: absolute; background: rgba(197,164,119,0.85); }
.xray__ring::before { left: 50%; top: -7px; width: 1px; height: 12px; box-shadow: 0 calc(var(--r) * 2 + 2px) 0 rgba(197,164,119,0.85); }
.xray__ring::after { top: 50%; left: -7px; height: 1px; width: 12px; box-shadow: calc(var(--r) * 2 + 2px) 0 0 rgba(197,164,119,0.85); }
.xray.is-on .xray__ring { opacity: 1; }
.xray__hint { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; font: 500 11.5px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); transition: opacity 0.3s; }
.xray__hint::before { content: "⌖ "; color: var(--gold); }
.xray.is-on .xray__hint, .xray.was-used .xray__hint { opacity: 0; }
@media (hover: none) { .xray__hint { display: none; } }
/* stacked layout with a mouse: leave room under the photo for the hint */
@media (max-width: 1023px) and (hover: hover) { .portrait { margin-bottom: 56px !important; } }

/* theme switch (same control as outvera.online) */
.theme-toggle { display: grid; place-items: center; flex: none; height: 44px; padding: 0 2px; background: none; border: 0; cursor: pointer; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.theme-toggle__track { position: relative; display: block; width: 82px; height: 32px; border-radius: 999px; background: rgba(245, 241, 233, 0.08); border: 1px solid rgba(167, 164, 156, 0.4); transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.theme-toggle__text { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font: 600 11px/1 var(--font); letter-spacing: 0.04em; color: var(--stone); transition: opacity 300ms var(--ease), transform 450ms var(--ease); }
.theme-toggle__text--dark { right: 11px; }
.theme-toggle__text--light { left: 11px; opacity: 0; transform: translateX(-6px); }
.theme-toggle__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #E2C597, #C5A477 55%, #A98252); color: #111312; box-shadow: 0 2px 6px rgba(0,0,0,0.35); transition: transform 450ms cubic-bezier(0.34, 1.3, 0.5, 1); }
.theme-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 300ms var(--ease), transform 450ms var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle:hover .theme-toggle__track { border-color: #C5A477; }
.theme-toggle:active .theme-toggle__knob { width: 28px; }
.theme-toggle:focus-visible { box-shadow: none; }
.theme-toggle:focus-visible .theme-toggle__track { border-color: #C5A477; box-shadow: 0 0 0 3px rgba(197, 164, 119, 0.28); }
[data-theme="light"] .theme-toggle__text--dark { opacity: 0; transform: translateX(6px); }
[data-theme="light"] .theme-toggle__text--light { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle__track { background: rgba(126, 96, 54, 0.14); border-color: rgba(126, 96, 54, 0.45); }
[data-theme="light"] .theme-toggle__knob { transform: translateX(50px); }
[data-theme="light"] .theme-toggle:active .theme-toggle__knob { transform: translateX(46px); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color 450ms var(--ease), color 450ms var(--ease), border-color 450ms var(--ease) !important; }

/* entrance */
.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 0.09s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* tools strip */
.tools { border-block: 1px solid var(--line); background: var(--ink-2); }
.tools__row { display: flex; align-items: center; gap: 36px; padding-block: 24px; flex-wrap: wrap; }
.tools ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.tools li { font: 600 15px/1.2 var(--font); color: var(--stone); letter-spacing: 0.01em; }
.tools li + li::before { content: "·"; color: var(--gold); margin-right: 28px; margin-left: -18px; opacity: 0; }

/* sections */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section--panel { background: var(--ink-2); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 18px; }

/* case studies */
.case { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case > * { min-width: 0; } /* let the thumbnail row scroll instead of widening the grid */
.case--flip .case__media { order: 2; }
.case__main { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel); cursor: zoom-in; aspect-ratio: 16 / 10; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9); transition: border-color 0.3s, transform 0.5s var(--ease); }
.case__main:hover { border-color: rgba(197, 164, 119, 0.5); transform: translateY(-3px); }
.case__main img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.25s; }
.case__main--light { background: #f4f4f2; }
.case__main--light img { object-fit: contain; }
.case__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.case__thumbs button { flex: none; width: 84px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.case__thumbs button[aria-pressed="true"], .case__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.case__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__tag { font: 500 12px/1.4 var(--mono); letter-spacing: 0.05em; color: var(--gold); margin-bottom: 14px; }
.case h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 12px; }
.case__sum { color: var(--stone); font-size: 16.5px; margin-bottom: 26px; }
.case__pts dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case__pts dd { color: var(--ivory); font-size: 15px; margin-bottom: 22px; }
.case__pts dd li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--stone); }
.case__pts dd li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 9px; height: 1px; background: var(--gold); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.stack li { font: 500 12px/1 var(--mono); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--stone); }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc li { position: relative; padding: 30px 28px 32px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); overflow: hidden; }
.svc li::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(197, 164, 119, 0.16), transparent); opacity: 0; transition: opacity 0.4s; }
.svc li:hover { border-color: rgba(197, 164, 119, 0.45); transform: translateY(-4px); }
.svc li:hover::after { opacity: 1; }
.svc span { display: block; font: 500 12.5px/1 var(--mono); color: var(--gold); margin-bottom: 26px; }
.svc h3 { font-size: 19px; margin-bottom: 10px; }
.svc p { color: var(--stone); font-size: 15px; }

/* why */
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__list li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list h3 { font-size: 18px; }
.why__list p { color: var(--stone); font-size: 15px; }

/* timeline */
.timeline { position: relative; display: grid; gap: 0; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), var(--line) 60%); }
.timeline > li { position: relative; padding: 0 0 48px 48px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-2); border: 1.5px solid var(--gold); }
.timeline > li:first-child::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(197, 164, 119, 0.15); }
.timeline__when { font: 500 12.5px/1.4 var(--mono); color: var(--gold); margin-bottom: 8px; }
.timeline h3 { font-size: 22px; margin-bottom: 4px; }
.timeline__org { color: var(--stone); font-size: 15px; margin-bottom: 14px; }
.timeline__org a { border-bottom: 1px solid rgba(197, 164, 119, 0.45); }
.timeline ul li { position: relative; padding-left: 22px; color: var(--stone); font-size: 15px; margin-bottom: 6px; }
.timeline ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 9px; height: 1px; background: var(--gold); }

/* contact */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before { content: ""; position: absolute; z-index: -1; left: -200px; bottom: -300px; width: 760px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(197, 164, 119, 0.12), transparent); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact .lead { margin-bottom: 32px; }
.contact__card { padding: 34px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-2); }
.contact__list li { display: grid; gap: 6px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__list a, .contact__list span:not(.label) { font-size: 17px; font-weight: 500; }
.contact__list a:hover { color: var(--gold); }
.contact__find { margin: 6px 0 14px; }
.profiles { display: flex; flex-wrap: wrap; gap: 10px; }
.profiles a { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.profiles a:hover { border-color: var(--gold); color: var(--gold); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--gold); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 9, 9, 0.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 14px; border: 1px solid var(--line-2); }
.lightbox__close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(17, 19, 18, 0.8); color: var(--ivory); font-size: 26px; line-height: 1; cursor: pointer; }

/* scroll reveal (only with JS on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* light theme: ivory paper, charcoal ink, deeper bronze-gold so text keeps its contrast */
[data-theme="light"] {
  --ink: #F5F1E9; --ink-2: #EEE8DC; --panel: #FFFFFF; --ivory: #111312; --stone: #4A4F4C; --muted: #6F6A61;
  --gold: #8A6437; --line: rgba(17, 19, 18, 0.10); --line-2: rgba(17, 19, 18, 0.18);
}
.btn--gold { color: #111312; }
[data-theme="light"] .btn--gold { background: linear-gradient(135deg, #E2C597, #C5A477 55%, #A98252); }
[data-theme="light"] .nav.is-scrolled { background: rgba(245, 241, 233, 0.86); }
[data-theme="light"] .menu { background: rgba(245, 241, 233, 0.97); }
[data-theme="light"] .chip { background: rgba(255, 255, 255, 0.92); box-shadow: 0 18px 40px -22px rgba(17, 19, 18, 0.35); }
[data-theme="light"] .portrait__ring { box-shadow: 0 40px 90px -40px rgba(138, 100, 55, 0.45); }
[data-theme="light"] .portrait__ring img { border-color: #F5F1E9; }
[data-theme="light"] .case__main { box-shadow: 0 30px 70px -45px rgba(17, 19, 18, 0.45); }
[data-theme="light"] .hero::before { background: radial-gradient(closest-side, rgba(197, 164, 119, 0.22), rgba(197, 164, 119, 0)); }
[data-theme="light"] .lightbox::backdrop { background: rgba(17, 19, 18, 0.8); }

/* responsive */
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .theme-toggle { margin-left: auto; }
  .mark { margin-right: 0; }
  .hero__grid, .case, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .portrait { width: min(460px, 100%); grid-row: 1; margin-bottom: 18px; }
  .hero { min-height: auto; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero .eyebrow { flex-wrap: wrap; row-gap: 6px; }
  .chip--a { right: -2%; }
  .chip--b { display: none; } /* the name label already says it; keeps the photo clear on phones */
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .facts li { border: 0; padding: 0; margin: 0; }
  .actions .btn { flex: 1 1 100%; }
  .svc { grid-template-columns: 1fr; }
  .why__list li { grid-template-columns: 1fr; gap: 8px; }
  .contact__card { padding: 26px; }
  .tools__row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
