/* =========================================================================
   Lyndon Jugalbot — portfolio
   Plain CSS, no build. Light theme, Apple-inspired: system type, frosted
   chrome, generous whitespace, one blue accent, restrained motion.
   ========================================================================= */

:root {
  --bg:          #fbfbfd;
  --bg-alt:      #f5f5f7;
  --surface:     #ffffff;
  --ink:         #1d1d1f;
  --muted:       #6e6e73;
  --faint:       #86868b;
  --hairline:    rgba(0, 0, 0, 0.08);
  --hairline-2:  rgba(0, 0, 0, 0.14);
  --blue:        #0071e3;
  --blue-hover:  #0077ed;
  --link:        #0066cc;
  /* Sunset gradient — a nod to the waterfront portrait. */
  --grad: linear-gradient(90deg, #0071e3 0%, #8b5cf6 52%, #ff6a3d 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius:    22px;
  --radius-lg: 32px;
  --wrap:      1120px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }

:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.55); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* keeps descenders from clipping inside the gradient box */
  padding-bottom: 0.08em;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted);
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  --scale: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px;
  border-radius: 980px; border: 1px solid transparent;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  transform: scale(var(--scale));
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
/* Feedback on press, instantly. */
.btn:active { --scale: 0.96; transition-duration: 0.1s; }
.btn--lg { min-height: 52px; padding: 14px 30px; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); box-shadow: 0 8px 24px rgba(0, 113, 227, 0.28); }

.btn--secondary { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn--secondary:hover { background: var(--blue); color: #fff; }

.btn--link { color: var(--link); padding-inline: 8px; }
.btn--link span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--link:hover span { transform: translateX(3px); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f0f2; box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

/* ---------- Header (frosted glass) --------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--hairline); background: rgba(251, 251, 253, 0.8); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: 6px 12px; border-radius: 980px;
  color: var(--ink); opacity: 0.8; font-size: 13px; letter-spacing: -0.005em;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__menu a:hover { opacity: 1; text-decoration: none; background: rgba(0, 0, 0, 0.04); }
.nav__menu .nav__cta { background: var(--blue); color: #fff; opacity: 1; margin-left: 8px; padding: 6px 14px; }
.nav__menu .nav__cta:hover { background: var(--blue-hover); }

.nav__toggle {
  display: none; position: relative; width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer; border-radius: 10px;
}
.nav__toggle-bar, .nav__toggle-bar::before {
  position: absolute; left: 11px; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__toggle-bar { top: 16px; }
.nav__toggle-bar::before { content: ""; left: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { top: 0; transform: rotate(-90deg); }

/* ---------- Reveal ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease) var(--d, 0ms),
              transform 1.1s var(--ease-out) var(--d, 0ms),
              filter 0.9s var(--ease) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Hero --------------------------------------------------------- */

.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(72px, 9vw, 120px); text-align: center; position: relative; }
.hero::before {
  /* soft ambient glow behind the headline */
  content: ""; position: absolute; inset: -10% 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 35%, rgba(0, 113, 227, 0.10), transparent 70%),
    radial-gradient(35% 45% at 72% 30%, rgba(255, 106, 61, 0.09), transparent 70%),
    radial-gradient(30% 40% at 52% 55%, rgba(139, 92, 246, 0.08), transparent 70%);
}
.hero__eyebrow { margin: 0 0 18px; font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }

.hero__title {
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
}
.hero__title .line:nth-child(2) > span { transition-delay: 120ms; }
.is-loaded .hero__title .line > span { transform: none; }

.hero__lead {
  max-width: 640px; margin: 26px auto 0;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; letter-spacing: -0.02em;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 34px; }

.hero__portrait {
  margin: clamp(56px, 8vw, 88px) auto 0;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
  transform: scale(var(--zoom, 1.12));
  transition: transform 0.1s linear;
  will-change: transform;
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 880px; margin: 56px auto 0; padding: 0;
}
.stats__item { padding: 4px 12px; border-left: 1px solid var(--hairline); }
.stats__item:first-child { border-left: 0; }
.stats dt { order: 2; font-size: 14px; color: var(--muted); letter-spacing: -0.01em; }
.stats dd {
  margin: 0 0 2px; font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats__item { display: flex; flex-direction: column-reverse; }
.stats__unit { font-size: 0.6em; margin-left: 2px; color: var(--muted); }

/* ---------- Featured (flagship tiles) ------------------------------------ */

.featured { display: grid; gap: 12px; padding: 0 12px; }

.flagship {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px) 0;
  text-align: center;
  isolation: isolate;
}
.flagship__eyebrow { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.flagship__name { font-size: clamp(48px, 9vw, 104px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.flagship__tagline {
  margin: 14px auto 0; max-width: 720px;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 600;
}
.flagship__blurb { margin: 18px auto 0; max-width: 640px; font-size: 17px; line-height: 1.5; }
.flagship__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.flagship__note { margin: 14px 0 0; font-size: 13px; letter-spacing: -0.005em; }

.flagship__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 780px; margin: 44px auto 0; padding: 0; list-style: none;
}
.flagship__fact { padding: 18px 12px; border-radius: 18px; }
.flagship__fact strong { display: block; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.04em; line-height: 1.1; }
.flagship__fact span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }

.flagship__media {
  position: relative;
  max-width: 1040px; margin: clamp(40px, 6vw, 64px) auto 0;
  border-radius: 20px 20px 0 0; overflow: hidden;
  transform: translateY(var(--lift, 40px));
  will-change: transform;
}
.flagship__media img { width: 100%; }

.flagship__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px auto 0; padding: 0; list-style: none; max-width: 720px; }
.flagship__tags li { font-size: 12px; padding: 5px 11px; border-radius: 980px; letter-spacing: 0; }

/* JARVIS: dark, holographic cyan */
.flagship--dark, .flagship--violet { background: #000; color: #f5f5f7; }
.flagship--dark::before, .flagship--violet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(0, 170, 255, 0.35), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(0, 200, 255, 0.10), transparent 70%);
}
.flagship--dark .flagship__name {
  background: linear-gradient(180deg, #ffffff 30%, #7fd8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flagship--dark .flagship__eyebrow { color: #4cc9ff; }
.flagship--dark .flagship__blurb, .flagship--dark .flagship__note,
.flagship--violet .flagship__blurb, .flagship--violet .flagship__note { color: #a1a1a6; }
.flagship--dark .flagship__fact, .flagship--violet .flagship__fact { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.flagship--dark .flagship__fact span, .flagship--violet .flagship__fact span { color: #a1a1a6; }
.flagship--dark .flagship__tags li, .flagship--violet .flagship__tags li { background: rgba(255, 255, 255, 0.08); color: #d2d2d7; }
.flagship--dark .flagship__media { box-shadow: 0 -10px 80px rgba(0, 160, 255, 0.35); border: 1px solid rgba(76, 201, 255, 0.25); border-bottom: 0; }

/* PyWots: dark, arcane violet. Reuses the dark tile structure above. */
.flagship--violet::before {
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(150, 70, 255, 0.40), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(120, 90, 255, 0.14), transparent 70%);
}
.flagship--violet .flagship__name {
  background: linear-gradient(180deg, #ffffff 30%, #c9a6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flagship--violet .flagship__eyebrow { color: #b58cff; }
.flagship--violet .flagship__media { box-shadow: 0 -10px 80px rgba(150, 70, 255, 0.40); border: 1px solid rgba(181, 140, 255, 0.28); border-bottom: 0; }

/* Wots Office: light tile, soft violet-blue glow. */
.flagship--light { background: #f5f5f7; color: #1d1d1f; }
.flagship--light .flagship__eyebrow { color: #6d4aff; }
.flagship--light .flagship__blurb, .flagship--light .flagship__note { color: #6e6e73; }
.flagship--light .flagship__fact { background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); }
.flagship--light .flagship__fact span { color: #6e6e73; }
.flagship--light .flagship__tags li { background: rgba(0, 0, 0, 0.06); color: #424245; }
.flagship--light .flagship__media { box-shadow: 0 -10px 60px rgba(109, 74, 255, 0.22); border: 1px solid rgba(0, 0, 0, 0.06); border-bottom: 0; }

/* ---------- Section heads ------------------------------------------------ */

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 700; }
.section-head p:not(.eyebrow) { margin: 16px auto 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--muted); max-width: 620px; }

/* ---------- Work grid ---------------------------------------------------- */

.work { padding: clamp(96px, 12vw, 160px) 0; }

.filters {
  position: relative; display: flex; width: max-content; max-width: 100%;
  margin: 0 auto 40px; padding: 4px; border-radius: 980px;
  background: rgba(0, 0, 0, 0.05);
}
.filters__pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  border-radius: 980px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateX(var(--x, 4px)); width: var(--w, 0);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}
.chip {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  padding: 8px 20px; border-radius: 980px;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted);
  transition: color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); }
/* Before JS positions the pill, fall back to a static highlight. */
.filters:not(.is-ready) .chip.is-active { background: #fff; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin: 0; padding: 0; list-style: none;
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 24px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: opacity 0.9s var(--ease) var(--d, 0ms),
              transform 0.6s var(--ease-out) var(--d, 0ms),
              filter 0.9s var(--ease) var(--d, 0ms),
              box-shadow 0.5s var(--ease);
}
.card.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); transition-delay: 0ms; }
.card.is-hidden { display: none; }
.card.is-entering { animation: card-in 0.6s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.card__thumb {
  margin: 0 -24px 22px; aspect-ratio: 8 / 5; overflow: hidden;
  background: var(--bg-alt); border-bottom: 1px solid var(--hairline);
}
.card__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.9s var(--ease-out);
}
.card:hover .card__thumb img { transform: scale(1.045); }

.card__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--faint); }
.card__title { margin-top: 6px; font-size: 24px; line-height: 1.15; letter-spacing: -0.035em; font-weight: 700; }
.card__blurb { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); letter-spacing: -0.012em; }
.card__meta { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.card__meta strong { color: var(--ink); font-weight: 600; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.card__tag { font-size: 12px; padding: 4px 10px; border-radius: 980px; background: var(--bg-alt); color: var(--muted); letter-spacing: 0; }

.card__links { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 22px; }
.card__link { font-size: 15px; font-weight: 500; color: var(--link); }
.card__link--live {
  display: inline-flex; align-items: center; min-height: 36px; padding: 7px 18px;
  border-radius: 980px; background: var(--blue); color: #fff;
  transition: background-color 0.25s var(--ease), transform 0.35s var(--ease-out);
}
.card__link--live:hover { background: var(--blue-hover); text-decoration: none; }
.card__link--live:active { transform: scale(0.96); transition-duration: 0.1s; }

.noscript-note { text-align: center; color: var(--muted); }

/* ---------- About -------------------------------------------------------- */

.about { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-alt); }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__lead { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; }
.about__points { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.about__points li { font-size: 17px; line-height: 1.5; color: var(--muted); padding-left: 18px; border-left: 2px solid var(--hairline-2); }
.about__points strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.about__figure { margin: 0; }
.about__figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: transform 0.8s var(--ease-out); }
.about__figure:hover img { transform: rotate(0deg) scale(1.01); }
.about__figure figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Stack -------------------------------------------------------- */

.stack { padding: clamp(96px, 12vw, 160px) 0; }
.stack__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack__col {
  background: var(--surface); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms),
              filter 0.9s var(--ease) var(--d, 0ms), box-shadow 0.5s var(--ease);
}
.stack__col:hover { box-shadow: var(--shadow-md); }
.stack__col h3 { font-size: 21px; letter-spacing: -0.03em; margin-bottom: 16px; }
.stack__col ul { margin: 0; padding: 0; list-style: none; }
.stack__col li { padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--muted); }

/* ---------- Background --------------------------------------------------- */

.path { padding: 0 0 clamp(96px, 12vw, 160px); }
.path__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.path__item {
  background: var(--surface); border-radius: var(--radius); padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.path__logo { display: grid; place-items: center; height: 72px; margin-bottom: 20px; }
.path__logo img { max-height: 56px; max-width: 160px; width: auto; object-fit: contain; }
.path__logo--invert img { filter: invert(1); }
.path__item h3 { font-size: 19px; letter-spacing: -0.025em; }
.path__role { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.path__note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Contact ------------------------------------------------------ */

.contact { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-alt); text-align: center; }
.contact__inner { max-width: 760px; }
.contact h2 { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 700; }
.contact__inner > p { margin: 22px auto 0; max-width: 560px; font-size: clamp(18px, 2vw, 21px); line-height: 1.42; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.contact__email { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 0; font-size: 17px; }
.contact__copy {
  border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 980px; background: rgba(0, 0, 0, 0.06); color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease-out);
}
.contact__copy:hover { background: rgba(0, 0, 0, 0.1); }
.contact__copy:active { transform: scale(0.94); }
.contact__copy.is-copied { background: #34c759; color: #fff; }

/* ---------- Footer ------------------------------------------------------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); padding: 22px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: -0.005em; }
.footer-inner a { color: var(--ink); opacity: 0.8; }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; margin-inline: auto; }
  .stack__grid, .path__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: rgba(251, 251, 253, 0.985);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a { padding: 14px 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; border-radius: 0; border-bottom: 1px solid var(--hairline); }
  .nav__menu .nav__cta { margin: 16px 0 0; text-align: center; border-radius: 980px; font-size: 17px; padding: 12px; border: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats__item:nth-child(3) { border-left: 0; }
  .hero__portrait { aspect-ratio: 4 / 5; }

  .flagship__facts { grid-template-columns: 1fr; max-width: 360px; }
  .featured { padding: 0 8px; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Accessibility preferences ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; filter: none; transition: opacity 0.3s ease; }
  .hero__title .line > span { transform: none; transition: none; }
  .hero__portrait img { transform: none; }
  .flagship__media { transform: none; }
  .card, .card__thumb img, .about__figure img, .btn { transition: opacity 0.3s ease; }
  .card.is-visible:hover, .card:hover .card__thumb img { transform: none; }
  .card.is-entering { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav__menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
