/* ============================================================
   SKÍN — base
   Tokens, reset, typography, glass primitives, chrome.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:        #F7F9FA;
  --paper-cool:   #EEF3F6;
  --ink:          #161A1D;
  --ink-soft:     #3B444A;
  --ink-mute:     #6E7B83;
  --ink-faint:    #A6B2B9;

  --ice:          #8FD8F4;
  --ice-deep:     #4FADD6;
  --ice-pale:     #DCF0FA;
  --silver:       #C9D3D9;
  --frost:        #E7EEF2;
  --glassline:    rgba(255,255,255,.72);
  --glassedge:    rgba(143,216,244,.34);

  --shadow-lift:  0 1px 1px rgba(22,26,29,.03), 0 8px 24px -12px rgba(22,26,29,.14);
  --shadow-pane:  0 30px 80px -50px rgba(22,26,29,.45);

  --ease-glass:   cubic-bezier(.16,.84,.24,1);
  --ease-water:   cubic-bezier(.22,1,.30,1);
  --ease-blade:   cubic-bezier(.62,.02,.16,1);

  --gut:          clamp(20px, 5vw, 96px);
  --maxw:         1440px;
  --nav-h:        76px;

  --step--1: clamp(.78rem, .74rem + .18vw, .86rem);
  --step-0:  clamp(.94rem, .90rem + .22vw, 1.06rem);
  --step-1:  clamp(1.10rem, 1.00rem + .5vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
  --step-4:  clamp(2.7rem, 1.1rem + 6.6vw, 7.6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

.visually-hidden {
  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: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-size: var(--step--1); letter-spacing: .02em; border-radius: 2px;
  transition: transform .3s var(--ease-glass);
}
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

/* ---------- typography ---------- */
.sec-head { max-width: min(100%, 860px); padding-block: clamp(72px, 11vh, 150px) clamp(34px, 5vh, 66px); }
.sec-head--tight { padding-bottom: clamp(22px, 3vh, 40px); }

.sec-kicker {
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: clamp(16px, 2.4vh, 30px);
  display: flex; align-items: center; gap: .8em;
}
.sec-kicker::before {
  content: ""; width: clamp(20px, 4vw, 54px); height: 1px;
  background: linear-gradient(90deg, var(--ice-deep), transparent);
}

.sec-title {
  max-width: 20ch;
  font-size: var(--step-3);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 550;
  text-wrap: balance;
}

.sec-lede {
  margin-top: clamp(18px, 2.6vh, 30px);
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -.012em;
}

.link-quiet {
  font-size: var(--step-0);
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(22,26,29,.18);
  padding-bottom: 2px;
  transition: color .4s var(--ease-glass), border-color .4s var(--ease-glass);
}
.link-quiet:hover { color: var(--ink); border-color: var(--ice-deep); }

/* ============================================================
   Glass primitives
   ============================================================ */

/* A precision-cut pane: layered edge light, not a blur blob. */
.glass {
  position: relative;
  background:
    linear-gradient(150deg, rgba(255,255,255,.62), rgba(255,255,255,.24) 42%, rgba(220,240,250,.30));
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(143,216,244,.35),
    inset 1px 0 0 rgba(255,255,255,.5),
    var(--shadow-lift);
}
/* thin refractive edge — a sliver of glass thickness */
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(143,216,244,.5), transparent 3px),
    linear-gradient(270deg, rgba(255,255,255,.8), transparent 3px);
  mix-blend-mode: screen;
  opacity: .8;
}

/* ---------- glass button ---------- */
.btn-glass {
  --pad-y: .78em;
  --pad-x: 1.5em;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 2px;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.30) 48%, rgba(214,238,249,.42));
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(143,216,244,.5),
    0 10px 30px -18px rgba(22,26,29,.5);
  transition: box-shadow .55s var(--ease-glass), transform .55s var(--ease-glass),
              background .55s var(--ease-glass), color .4s var(--ease-glass);
  overflow: hidden;
}
.btn-glass > span { position: relative; z-index: 2; }

/* condensation collar — retreats on hover */
.btn-glass::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 140% at 50% 50%,
              transparent 28%, rgba(255,255,255,.55) 62%, rgba(255,255,255,.9) 100%);
  opacity: .85;
  transform: scale(1);
  transition: transform .8s var(--ease-water), opacity .8s var(--ease-water);
}
/* travelling edge gleam */
.btn-glass::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.85) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-glass);
}
.btn-glass:hover::before { transform: scale(1.9); opacity: 0; }
.btn-glass:hover::after  { transform: translateX(120%); }
.btn-glass:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(143,216,244,.85),
    0 18px 40px -22px rgba(22,26,29,.55);
}
.btn-glass:active { transform: translateY(1px); }

.btn-glass--lg { --pad-y: 1.05em; --pad-x: 2.2em; font-size: var(--step-1); }
.btn-glass--solid {
  background: linear-gradient(160deg, var(--ink), #22292e);
  color: var(--paper);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 40px -24px rgba(22,26,29,.9);
}
.btn-glass--solid::before { display: none; }

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
  --wipe: 0;
}
.loader__fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.98), rgba(238,245,249,.94) 55%, rgba(226,238,245,.98)),
    var(--paper);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: inset(0 0 0 calc(var(--wipe) * 100%));
}
.loader__drop {
  position: absolute; left: 50%; top: 38%;
  width: 9px; height: 11px; margin-left: -4.5px;
  border-radius: 50% 50% 52% 52% / 62% 62% 40% 40%;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(143,216,244,.85));
  box-shadow: inset 0 -2px 3px rgba(255,255,255,.9), 0 2px 5px rgba(22,26,29,.12);
  opacity: 0;
}
.loader__blade {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 42px; margin-left: -21px;
  transform: translateX(calc(var(--wipe) * 100vw));
  background: linear-gradient(90deg,
      rgba(143,216,244,0) 0%,
      rgba(143,216,244,.22) 36%,
      rgba(255,255,255,.95) 54%,
      rgba(22,26,29,.16) 60%,
      rgba(143,216,244,0) 100%);
  opacity: 0;
}
.loader__mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  letter-spacing: .34em; text-indent: .34em;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
}
.loader__n { color: var(--ice-deep); }
.loader.is-gone { display: none; }

body.is-loading { overflow: hidden; }

/* ============================================================
   Ambient — daylight, droplet field, scroll streak, frame wipe
   ============================================================ */
.daylight {
  position: fixed; inset: -20vh -10vw; z-index: 0;
  pointer-events: none; overflow: hidden;
  mix-blend-mode: normal;
}
.daylight__pool {
  position: absolute; border-radius: 50%;
  /* The gradients are already soft — a blur filter here would only make
     the compositor re-raster a very large surface on every frame. */
  will-change: transform, opacity;
  contain: strict;
}
.daylight__pool--a {
  width: 84vw; height: 74vh; left: -14vw; top: -6vh;
  background: radial-gradient(closest-side, rgba(255,255,255,.8), rgba(255,255,255,.32) 46%, rgba(255,255,255,0));
}
.daylight__pool--b {
  width: 66vw; height: 66vh; right: -10vw; top: 26vh;
  background: radial-gradient(closest-side, rgba(198,232,248,.46), rgba(198,232,248,.16) 48%, rgba(198,232,248,0));
}

.dropfield {
  position: fixed; inset: 0; z-index: 60;
  width: 100%; height: 100%;
  pointer-events: none;
}

.streak {
  position: fixed; z-index: 61;
  right: max(14px, 1.6vw); top: 14vh; bottom: 14vh;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(143,216,244,0), rgba(143,216,244,.20), rgba(143,216,244,0));
  opacity: 0;
  transition: opacity .8s var(--ease-glass);
}
.streak.is-on { opacity: 1; }
.streak__bead {
  position: absolute; left: 50%; top: 0;
  width: 7px; height: 9px; margin-left: -3.5px;
  border-radius: 50% 50% 52% 52% / 60% 60% 42% 42%;
  background: linear-gradient(165deg, rgba(255,255,255,.95), rgba(143,216,244,.9));
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 2px 4px rgba(22,26,29,.10);
  transform: translateY(0);
}
.streak__bead::after {
  content: ""; position: absolute; left: 50%; top: -26px;
  width: 1px; height: 26px; margin-left: -.5px;
  background: linear-gradient(180deg, rgba(143,216,244,0), rgba(143,216,244,.55));
}

/* aluminium frame crossing the viewport between sections */
.frame-wipe {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none; overflow: hidden;
  opacity: 0;
}
.frame-wipe.is-running { opacity: 1; }
.frame-wipe i {
  position: absolute; top: -5%; bottom: -5%; left: 0;
  width: 26px;
  transform: translateX(-40px);
  background:
    linear-gradient(90deg,
      rgba(22,26,29,0) 0,
      rgba(22,26,29,.10) 18%,
      rgba(38,45,50,.92) 34%,
      rgba(96,110,118,.98) 50%,
      rgba(24,29,33,.92) 66%,
      rgba(22,26,29,.10) 82%,
      rgba(22,26,29,0) 100%);
  box-shadow: 0 0 40px rgba(22,26,29,.18);
}

/* ============================================================
   Cursor
   ============================================================ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 800;
    pointer-events: none;
    mix-blend-mode: normal;
  }
  .js.cursor-ready body, .js.cursor-ready a, .js.cursor-ready button,
  .js.cursor-ready input, .js.cursor-ready select, .js.cursor-ready textarea,
  .js.cursor-ready label { cursor: none; }
}
.cursor__dot, .cursor__ring, .cursor__label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  transition: opacity .3s var(--ease-glass), width .4s var(--ease-glass), height .4s var(--ease-glass);
}
.cursor__ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(22,26,29,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 14px -6px rgba(22,26,29,.5);
  transition: width .5s var(--ease-glass), height .5s var(--ease-glass),
              border-color .5s var(--ease-glass), opacity .4s var(--ease-glass),
              background .5s var(--ease-glass);
  opacity: 0;
}
.cursor__label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  padding: 5px 9px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translate(-50%, calc(-50% + 6px)) scale(.96);
  transition: opacity .45s var(--ease-glass), transform .45s var(--ease-glass);
}
.cursor.is-ring .cursor__ring { opacity: 1; width: 46px; height: 46px; border-color: var(--glassedge); background: rgba(255,255,255,.10); }
.cursor.is-ring .cursor__dot { width: 3px; height: 3px; opacity: .5; }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, calc(-50% + 30px)) scale(1); }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-drag .cursor__ring { opacity: 1; width: 58px; height: 20px; border-radius: 12px; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; z-index: 300;
  top: 0; left: 0; right: 0;
  padding: clamp(12px, 1.6vh, 20px) var(--gut);
  pointer-events: none;
}
.nav__pane {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  height: calc(var(--nav-h) - 22px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 46px);
  padding-inline: clamp(14px, 1.6vw, 24px);
  pointer-events: auto;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 34px -28px rgba(22,26,29,.6);
  overflow: hidden;
  transition: background .6s var(--ease-glass), border-color .6s var(--ease-glass),
              box-shadow .6s var(--ease-glass), transform .7s var(--ease-glass);
}
.nav.is-hidden .nav__pane { transform: translateY(calc(-100% - 24px)); }
.nav.is-dark .nav__pane {
  background: linear-gradient(160deg, rgba(22,26,29,.5), rgba(22,26,29,.28));
  border-color: rgba(255,255,255,.16);
  color: var(--paper);
}
.nav.is-dark .nav__links a { color: rgba(255,255,255,.82); }
.nav.is-dark .btn-glass { color: var(--paper); border-color: rgba(255,255,255,.3); }

/* the sliver of a headline seen through the glass of the nav */
.nav__refract {
  position: absolute; left: 0; top: 0; z-index: 0;
  transform-origin: 0 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  text-shadow: .8px 0 rgba(80,180,215,.5), -.8px 0 rgba(226,150,120,.34);
  transition: opacity .35s var(--ease-glass);
}
.nav.is-dark .nav__refract { mix-blend-mode: screen; }

.nav__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(var(--sheen, -140%));
  opacity: .9;
}

.nav__logo { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.nav__logo-text {
  font-size: 1.06rem; font-weight: 600;
  letter-spacing: .3em; text-indent: .3em;
}
.nav__logo-n { position: relative; }
.nav__logo-drop {
  position: absolute; right: -9px; top: 50%;
  width: 5px; height: 5px; margin-top: -8px;
  border-radius: 50% 50% 52% 52% / 60% 60% 42% 42%;
  background: var(--ice-deep);
  transform: translateY(0) scaleY(1);
}

.nav__links {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px);
  margin-left: auto;
  font-size: var(--step--1);
  letter-spacing: .01em;
}
.nav__links a {
  position: relative; color: var(--ink-soft);
  padding-block: 6px;
  transition: color .4s var(--ease-glass);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ice-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-glass);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav.is-dark .nav__links a:hover { color: #fff; }

.nav__cta { position: relative; z-index: 2; --pad-y: .52em; --pad-x: 1.1em; font-size: var(--step--1); }

.nav__burger {
  position: relative; z-index: 2;
  display: none; margin-left: auto;
  width: 40px; height: 32px; padding: 0;
  background: none; border: 0;
}
.nav__burger i {
  display: block; height: 1px; width: 22px; margin: 5px auto;
  background: currentColor;
  transition: transform .5s var(--ease-glass), opacity .3s;
}
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(6deg); }
.nav__burger[aria-expanded="true"] i:last-child  { transform: translateY(-3px) rotate(-6deg); }

.nav__sheet[hidden] { display: none; }
.nav__sheet {
  pointer-events: auto;
  max-width: var(--maxw); margin: 8px auto 0;
  padding: 18px clamp(14px, 1.6vw, 24px) 22px;
  display: grid; gap: 4px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(170deg, rgba(255,255,255,.86), rgba(233,244,250,.78));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lift);
  font-size: var(--step-1);
}
.nav__sheet a { padding: 8px 0; border-bottom: 1px solid rgba(22,26,29,.07); }
.nav__sheet-cta { color: var(--ice-deep); border-bottom: 0 !important; padding-top: 14px !important; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
  }
  .daylight__pool, .streak, .frame-wipe, .dropfield { display: none; }
  .cursor { display: none !important; }
  .js.cursor-ready body, .js.cursor-ready a, .js.cursor-ready button { cursor: auto; }
}
