/* ==================================================================
   Nicomotica Labs v2
   Air France La Première vibe — deep blue, generous whitespace,
   warm-red as solid punctuation. One azur gradient surface per fold.
   ================================================================== */

:root {
  /* Color */
  --ink:       #0B1A3A;   /* primary canvas */
  --deep:      #0A2B8C;   /* lifted ink, gradient stop 3 */
  --bone:      #F4F2ED;   /* paper, body on dark */
  --sky:       #5BC9F0;   /* gradient stop 1 */
  --azur:      #1FA8E0;   /* gradient stop 2 */
  --cobalt:    #1E5FE0;   /* alternate stop */
  --warm-red:  #E63946;   /* SOLID accent — never gradient */
  --mist:      #9AA8C6;   /* meta text */
  --cloud:     #C9D2E5;   /* body text on ink */

  --azur-gradient: linear-gradient(135deg, #5BC9F0 0%, #1FA8E0 55%, #0A2B8C 100%);

  /* Type */
  --f-sans:    'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Layout */
  --maxw:      1280px;
  --pad-x:     clamp(24px, 6vw, 120px);
  --nav-h:     64px;

  /* Motion */
  --ease:      cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms var(--ease);
}

::selection { background: rgba(31, 168, 224, .35); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--bone);
  color: var(--ink);
  font: 500 13px/1 var(--f-sans);
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ *
 * Nav
 * ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad-x);
  background: rgba(11, 26, 58, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: rgba(244, 242, 237, .12);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  /* let rotated SVG content extend past this box without clipping */
  overflow: visible;
}
/* Icon wrapper — hosts the squircle img, transient pin, and the
   shimmer overlay (::after). border-radius + overflow clip the
   shimmer to the rounded square; the static squircle SVG already
   carries its own correct corners. */
.nav__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  /* Allow the rotated SVG body to extend outside this box during
     spin / pulse / tilt / depth animations. */
  overflow: visible;
  /* Build-in only; living motion happens through transient body-class
     pulses applied by script.js. Default state is dead-flat-still. */
  animation: nav-icon-in 700ms var(--ease) both;
}
/* Shimmer overlay — invisible at rest, softly swept by .is-shimmer.
   Wider transition stops + lower peak opacity = a diffuse glide,
   not a hard glint. */
.nav__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, .08) 38%,
    rgba(255, 255, 255, .22) 50%,
    rgba(255, 255, 255, .08) 62%,
    transparent 82%
  );
  background-size: 260% 100%;
  background-position: 115% 0;
  opacity: 0;
}

/* SVG matches the wrapper exactly (36×36). The body's rotation +
   pulse + depth animations extend beyond the viewBox, so we rely on
   overflow: visible chaining through SVG → .nav__icon → .nav__brand
   to render the overflow properly. */
.nav__logo {
  width: 36px;
  height: 36px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
}

/* Inline SVG: the gradient squircle body rotates/pulses around its
   own center; the bone slash stays put because it isn't transformed.
   transform-box: fill-box anchors transform-origin to the path's own
   bounding box (not the SVG viewBox). */
.nav__logo-body,
.nav__logo-slash {
  transform-box: fill-box;
  transform-origin: center;
}

/* Pin — invisible at rest. Only appears during .is-pin-burst.
   The 2px ink ring (in box-shadow) only matters while visible. */
.nav__pin {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm-red);
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1;
}
.wordmark__nico {
  color: var(--mist);
  display: inline-block;
  overflow: hidden;
}
.wordmark__mask {
  display: inline-block;
}
.wordmark__slash {
  color: var(--warm-red);
  margin: 0 4px;
  font-weight: 400;
  display: inline-block;
}
.wordmark__labs {
  color: var(--bone);
  display: inline-block;
}

/* CLI-style blinking cursor — permanent next to the wordmark. Builds
   in 1.5s after page load (so the wordmark settles first), then loops
   a hard on/off blink at ~1.05 s. */
.wordmark__cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--cloud);
  font-weight: 400;
  transform: translateY(-1px);
  opacity: 0;
  animation: cursor-blink 1.05s steps(1, end) 1500ms infinite;
}
@keyframes cursor-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Build-in: clip-reveal "nicomotica", fade the slash, slide "labs" in.
   Staggered like Andante's wordmark intro. */
.wordmark--build .wordmark__mask {
  animation: wm-clip-in 800ms var(--ease) 200ms both;
}
.wordmark--build .wordmark__slash {
  animation: wm-fade-in 380ms var(--ease) 760ms both;
}
.wordmark--build .wordmark__labs {
  animation: wm-slide-in 600ms var(--ease) 880ms both;
}

@keyframes wm-clip-in {
  0%   { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0 0 0 0);    -webkit-clip-path: inset(0 0 0 0);    opacity: 1; }
}
@keyframes wm-fade-in {
  0%   { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes wm-slide-in {
  0%   { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes nav-icon-in {
  0%   { opacity: 0; transform: scale(.86) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Living-icon variants — each plays once when the body gets the
   matching class, then is removed. Default state always returns to
   "still squircle, no pin, no cursor."
   ───────────────────────────────────────────────────────────────── */

/* 1 · SPIN — only the squircle body rotates; the slash stays in place. */
body.is-spin .nav__logo-body {
  animation: logo-spin 1400ms cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes logo-spin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* 2 · SHIMMER — soft diagonal glide across the squircle. */
body.is-shimmer .nav__icon::after {
  animation: icon-shimmer 1900ms cubic-bezier(.4, 0, .25, 1) both;
}
@keyframes icon-shimmer {
  0%   { opacity: 0; background-position: 115% 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; background-position: -55% 0; }
}

/* 3 · PIN BURST — notification pin appears, then beats three times
   (pin scales + a halo ring emits with each beat) before fading out. */
body.is-pin-burst .nav__pin {
  animation: pin-burst 2700ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pin-burst {
  /* fade in */
  0%   { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0),    0 0 0 2px var(--ink); }
  6%   { opacity: 1; transform: scale(1); }

  /* beat 1 */
  14%  { transform: scale(1.20); box-shadow: 0 0 0 2px rgba(230, 57, 70, .55), 0 0 0 2px var(--ink); }
  26%  { transform: scale(1);    box-shadow: 0 0 0 9px rgba(230, 57, 70, 0),   0 0 0 2px var(--ink); }

  /* beat 2 */
  36%  { transform: scale(1.18); box-shadow: 0 0 0 2px rgba(230, 57, 70, .50), 0 0 0 2px var(--ink); }
  48%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(230, 57, 70, 0),  0 0 0 2px var(--ink); }

  /* beat 3 */
  58%  { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(230, 57, 70, .42), 0 0 0 2px var(--ink); }
  72%  { transform: scale(1);    box-shadow: 0 0 0 11px rgba(230, 57, 70, 0),  0 0 0 2px var(--ink); }

  /* settle + fade out */
  86%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.7); }
}

/* 4 · PULSE — squircle body triple heartbeat with natural decay.
   Three beats spaced ~800ms apart, each peak slightly smaller than
   the last. Only the body scales — the slash stays put. */
body.is-pulse .nav__logo-body {
  animation: logo-pulse 2500ms cubic-bezier(.42, 0, .58, 1) both;
}
@keyframes logo-pulse {
  /* beat 1 — strongest */
  0%   { transform: scale(1); }
  10%  { transform: scale(1.12); }
  20%  { transform: scale(.97); }
  28%  { transform: scale(1); }

  /* gap */
  38%  { transform: scale(1); }

  /* beat 2 */
  46%  { transform: scale(1.09); }
  56%  { transform: scale(.98); }
  64%  { transform: scale(1); }

  /* gap */
  74%  { transform: scale(1); }

  /* beat 3 — softest */
  82%  { transform: scale(1.06); }
  92%  { transform: scale(.99); }
  100% { transform: scale(1); }
}

/* 5 · HALO — soft azur drop-shadow bloom around the squircle and back. */
body.is-halo .nav__icon {
  animation:
    nav-icon-in 700ms var(--ease) both,
    icon-halo 1800ms ease-out both;
}
@keyframes icon-halo {
  0%   { filter: drop-shadow(0 0 0 rgba(91, 201, 240, 0)); }
  45%  { filter: drop-shadow(0 0 18px rgba(91, 201, 240, .55)); }
  100% { filter: drop-shadow(0 0 0 rgba(91, 201, 240, 0)); }
}

/* 6 · TILT — body rocks left then right, then settles back to 0. */
body.is-tilt .nav__logo-body {
  animation: logo-tilt 1000ms cubic-bezier(.42, 0, .58, 1) both;
}
@keyframes logo-tilt {
  0%   { transform: rotate(0); }
  25%  { transform: rotate(-7deg); }
  60%  { transform: rotate(7deg); }
  100% { transform: rotate(0); }
}

/* 7 · GLOW — slash emits a brief warm-red glow and fades. */
body.is-glow .nav__logo-slash {
  animation: slash-glow 1200ms ease-out both;
}
@keyframes slash-glow {
  0%   { filter: drop-shadow(0 0 0 rgba(230, 57, 70, 0)); }
  35%  { filter: drop-shadow(0 0 9px rgba(230, 57, 70, .65)); }
  100% { filter: drop-shadow(0 0 0 rgba(230, 57, 70, 0)); }
}

/* 8 · DEPTH — body 3D-tilts on the Y axis and lands flat. The
   perspective on .nav__icon gives the rotateY() its glassy depth. */
.nav__icon { perspective: 280px; }
body.is-depth .nav__logo {
  animation: logo-depth 1400ms cubic-bezier(.42, 0, .58, 1) both;
  transform-style: preserve-3d;
}
@keyframes logo-depth {
  0%   { transform: rotateY(0); }
  50%  { transform: rotateY(22deg); }
  100% { transform: rotateY(0); }
}

/* 9 · FLICKER — slash dims twice in quick succession, like a CRT tic. */
body.is-flicker .nav__logo-slash {
  animation: slash-flicker 600ms steps(1, end) both;
}
@keyframes slash-flicker {
  0%, 18%   { opacity: 1; }
  19%, 30%  { opacity: .35; }
  31%, 60%  { opacity: 1; }
  61%, 75%  { opacity: .35; }
  76%, 100% { opacity: 1; }
}

/* 10 · NUDGE — body shifts left, right, settles. Gentle headshake. */
body.is-nudge .nav__logo-body {
  animation: logo-nudge 700ms cubic-bezier(.42, 0, .58, 1) both;
}
@keyframes logo-nudge {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-4px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* 11 · GRADIENT — the SMIL <animateTransform> inside the SVG handles
   the gradient rotation itself; we add a subtle parallel halo here so
   the moment reads as more than just a quiet color swirl. */
body.is-gradient .nav__icon {
  animation: gradient-halo 1600ms ease-in-out both;
}
@keyframes gradient-halo {
  0%   { filter: drop-shadow(0 0 0 rgba(91, 201, 240, 0)); }
  50%  { filter: drop-shadow(0 0 10px rgba(91, 201, 240, .38)); }
  100% { filter: drop-shadow(0 0 0 rgba(91, 201, 240, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark--build .wordmark__mask,
  .wordmark--build .wordmark__slash,
  .wordmark--build .wordmark__labs,
  .wordmark__cursor,
  .nav__icon,
  body.is-spin .nav__logo-body,
  body.is-pulse .nav__logo-body,
  body.is-tilt .nav__logo-body,
  body.is-nudge .nav__logo-body,
  body.is-shimmer .nav__icon::after,
  body.is-pin-burst .nav__pin,
  body.is-halo .nav__icon,
  body.is-glow .nav__logo-slash,
  body.is-flicker .nav__logo-slash,
  body.is-depth .nav__logo,
  body.is-gradient .nav__icon {
    animation: none !important;
  }
  /* keep the cursor visible at rest under reduced motion */
  .wordmark__cursor { opacity: 1; }
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--cloud);
}
.nav__links a { padding: 6px 2px; }
.nav__links a:hover { color: var(--warm-red); }

/* Liquid-glass language toggle.
   Translucent pill with backdrop blur, inset top highlight, soft outer
   shadow. The active half keeps the azur gradient (brand rule), the
   inactive half is pure glass. */
.lang {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 24px;
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .15),
    0 1px 2px rgba(0, 0, 0, .18),
    0 8px 24px rgba(2, 8, 32, .25);
  overflow: hidden;
  isolation: isolate;
}
.lang::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 0;
}
.lang__btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cloud);
  padding: 8px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: color 200ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease);
}
.lang__btn:hover { color: var(--bone); }
/* Active state — flat liquid glass: a brighter translucent disk with
   an inset top-light highlight and a soft inner drop. No brand color. */
.lang__btn.is-active {
  color: var(--bone);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 1px 2px rgba(0, 0, 0, .22);
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ------------------------------------------------------------------ *
 * Eyebrows & rules
 * ------------------------------------------------------------------ */

.eyebrow {
  margin: 0;
  font: 400 12px/1 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow--solo {
  letter-spacing: 0.2em;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin: 0 0 36px;
  border-bottom: 1px solid rgba(244, 242, 237, .08);
  font: 400 12px/1 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.hairline {
  border: 0;
  height: 1px;
  background: rgba(244, 242, 237, .12);
  margin: 0;
}
.hairline--short { max-width: 480px; }

/* ------------------------------------------------------------------ *
 * Type primitives
 * ------------------------------------------------------------------ */

.display {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-feature-settings: "ss01";
}
.display__accent {
  color: var(--warm-red);
  font-style: italic;
}

.lede {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--cloud);
  font-weight: 400;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 152px) var(--pad-x) clamp(80px, 10vw, 120px);
  /* Atmospheric backdrop — layered, not a single blob.
     Two soft radial spots at offset positions over a vertical
     ink wash; reads as composed depth rather than decoration. */
  background:
    radial-gradient(circle at 28% 18%, rgba(91, 201, 240, .16), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(31, 168, 224, .11), transparent 55%),
    linear-gradient(180deg, #11244F 0%, #0B1A3A 58%, #0A1530 100%);
}

/* Faint structural grid overlay, masked toward the edges so it
   reads as paper texture, not a wireframe. */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(91, 201, 240, .045) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(91, 201, 240, .045) 23px 24px);
  mask-image: radial-gradient(ellipse 78% 60% at 50% 38%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 78% 60% at 50% 38%, #000 0%, transparent 82%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero__cta {
  margin-top: 4px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px/1 var(--f-sans);
  letter-spacing: 0.01em;
  color: var(--warm-red);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  padding: 4px 0;
}
.cta__arrow {
  display: inline-block;
  transition: transform 200ms var(--ease);
}
.cta:hover .cta__arrow {
  transform: translateX(4px);
}
.cta:hover { color: var(--warm-red); }

/* Stats row */
.stats {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  border-top: 1px solid rgba(244, 242, 237, .16);
  padding-top: 12px;
}
.stat__value {
  margin: 0;
  font-family: var(--f-sans);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.stat__label {
  margin: 0;
  font: 400 11px/1 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

@media (max-width: 540px) {
  .stat { min-width: 0; flex: 1 1 calc(50% - 14px); }
}

/* ------------------------------------------------------------------ *
 * Section base
 * ------------------------------------------------------------------ */

.section {
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

.display--md {
  margin: 0 0 clamp(28px, 3vw, 36px);
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  font-feature-settings: "ss01";
  max-width: 18ch;
}

.prose {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cloud);
  max-width: 60ch;
}
.prose:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ *
 * About / Quiénes somos
 * ------------------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.facts {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.facts > div {
  border-top: 1px solid rgba(244, 242, 237, .1);
  padding: 20px 0;
}
.facts > div:last-child {
  border-bottom: 1px solid rgba(244, 242, 237, .1);
}
.facts dt {
  margin: 0 0 6px;
  font: 400 11px/1 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
}

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------------ *
 * Manifesto — rounded inset card. The one azur-gradient surface in
 * the page, contained inside section padding rather than full-bleed.
 * ------------------------------------------------------------------ */

.section--manifesto {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

/* Liquid-glass manifesto card.
   Built from layered radial blooms (wide spread, low saturation) over
   a gentle linear base. Backdrop blur + multiple inset highlights give
   the refractive glass edge. Outer shadow carries a faint azur ambient
   glow so the card sits *on* the page rather than punching through it. */
.manifesto {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(168px, 22vw, 220px);
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4.5vw, 72px);
  border-radius: clamp(20px, 2vw, 32px);
  overflow: hidden;
  isolation: isolate;

  background:
    /* top liquid-glass sheen — soft white glaze for polish */
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 32%),
    /* canonical azur gradient — original 135deg direction restored */
    var(--azur-gradient);

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  box-shadow:
    /* refractive edges */
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(0, 0, 0, .15),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    /* faint azur ambient glow + grounded drop */
    0 22px 56px rgba(31, 168, 224, .18),
    0 14px 32px rgba(2, 8, 32, .38),
    0 4px 12px rgba(2, 8, 32, .25);
}

.manifesto__quote {
  position: relative;
  margin: 0;
  max-width: 1000px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.18;
  color: var(--ink);
  font-feature-settings: "ss01";
}

/* ------------------------------------------------------------------ *
 * Apps
 * ------------------------------------------------------------------ */

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.app {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 40px);
  align-items: flex-start;
  padding: 32px 0;
  border-top: 1px solid rgba(244, 242, 237, .1);
}
.app:last-child {
  border-bottom: 1px solid rgba(244, 242, 237, .1);
}

.app__icon {
  width: 96px;
  height: 96px;
  border-radius: 22.5%;   /* iOS app-icon corner ratio */
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  flex-shrink: 0;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.app__icon img { width: 100%; height: 100%; object-fit: cover; }
.app:hover .app__icon {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .42);
}
@media (prefers-reduced-motion: reduce) {
  .app__icon { transition: none; }
  .app:hover .app__icon { transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
}

.app__body { display: flex; flex-direction: column; gap: 12px; }
.app__name {
  margin: 0;
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.app__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cloud);
  max-width: 60ch;
}
.app__tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app__tags li {
  font: 400 11px/1.4 var(--f-sans);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid rgba(244, 242, 237, .18);
  border-radius: 2px;
  color: var(--mist);
}

.app__link {
  align-self: center;
  font-size: 14px;
  color: var(--warm-red);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  transition: color 120ms var(--ease);
}
.app__link .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 200ms var(--ease);
}
.app__link:hover .arrow { transform: translateX(4px); }
.app__link.is-inert { color: var(--mist); cursor: default; }
.app__link.is-inert:hover .arrow { transform: none; }

@media (max-width: 760px) {
  .app {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "body body"
      "link link";
    gap: 18px;
  }
  .app__icon { width: 80px; height: 80px; grid-area: icon; }
  .app__name { grid-area: name; align-self: center; }
  .app__body { grid-area: body; }
  .app__link { grid-area: link; align-self: flex-start; }
}

/* ------------------------------------------------------------------ *
 * Sites
 * ------------------------------------------------------------------ */

.site-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 36px);
}
@media (max-width: 760px) {
  .site-grid { grid-template-columns: 1fr; }
}

.site { display: flex; flex-direction: column; gap: 16px; }

.site__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--deep);
  display: block;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
  /* 1px bone-8% inner border per brief */
  box-shadow: inset 0 0 0 1px rgba(244, 242, 237, .08);
}
.site__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms var(--ease);
}
.site__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 201, 240, .12), rgba(31, 168, 224, .08));
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
  mix-blend-mode: screen;
}
.site__thumb:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(244, 242, 237, .14),
    0 14px 28px rgba(0, 0, 0, .35);
}
.site__thumb:hover::after { opacity: 1; }
.site__thumb:hover img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .site__thumb,
  .site__thumb img,
  .site__thumb::after { transition: none; }
  .site__thumb:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(244, 242, 237, .08); }
  .site__thumb:hover img { transform: none; }
}

.site__body { display: flex; flex-direction: column; gap: 10px; }
.site__name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--bone);
}
.site__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cloud);
}
.site__tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site__tags li {
  font: 400 11px/1.4 var(--f-sans);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid rgba(244, 242, 237, .18);
  border-radius: 2px;
  color: var(--mist);
}
.site__visit {
  font-size: 13px;
  color: var(--warm-red);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  align-self: flex-start;
  margin-top: 4px;
}
.site__visit .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 200ms var(--ease);
}
.site__visit:hover .arrow { transform: translateX(4px); }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.channels li {
  border-top: 1px solid rgba(244, 242, 237, .1);
  padding: 16px 0 14px;
}
.channels li:last-child {
  border-bottom: 1px solid rgba(244, 242, 237, .1);
}
.channels__label {
  margin: 0 0 6px;
  font: 400 11px/1 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.channels a,
.channels__value {
  display: block;
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--bone);
  transition: color 120ms var(--ease);
}
.channels a:hover { color: var(--warm-red); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; gap: 36px; }
}

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

.footer {
  padding: 28px var(--pad-x);
  border-top: 1px solid rgba(244, 242, 237, .08);
  font-size: 13px;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__year { color: var(--mist); }

@media (max-width: 540px) {
  .footer { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ *
 * Reveal-on-scroll (used by IntersectionObserver in script.js)
 * Disabled under prefers-reduced-motion.
 * ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
