/* XENON Chromatic — one page site
   Palette: high-key paper, ink text, spectral hairline as the only color. */

:root{
  --paper:#fafafa;
  --surface:#ffffff;
  --tint:#f2f2f3;
  --ink:#0e0e10;
  --ink-70:#4a4a50;
  --ink-50:#75757c;
  --rule:#e2e2e5;
  --rule-soft:#ebebee;

  --nav-h:116px;
  --wrap:1160px;
  --gut:clamp(20px,5vw,48px);
  --sect:clamp(52px,6.2vw,96px);

  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --display:var(--sans);
  --track-display:-0.03em;
  --lh-display:1.08;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  font-weight:400;
  line-height:1.62;
  letter-spacing:-0.006em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
h1,h2,h3{margin:0;font-family:var(--display);font-weight:500;letter-spacing:var(--track-display);line-height:var(--lh-display)}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
a{color:inherit}

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

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--ink);color:#fff;padding:12px 18px;font-size:14px;
}
.skip:focus{left:12px;top:12px}

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

/* ---------- eyebrow ---------- */
.eyebrow{
  font-size:11px;font-weight:500;text-transform:uppercase;
  letter-spacing:.2em;color:var(--ink-50);
}

/* ---------- nav ----------
   The bar never inverts. Type stays light at every scroll position; the bar
   starts fully clear over the hero plate and becomes a dark translucent pane
   that blurs and dims whatever scrolls beneath it. */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(8,8,10,.5);
  -webkit-backdrop-filter:blur(22px) saturate(150%) brightness(.48);
          backdrop-filter:blur(22px) saturate(150%) brightness(.48);
  border-bottom:1px solid rgba(255,255,255,.10);
  transition:background .4s var(--ease),border-color .4s var(--ease),
             -webkit-backdrop-filter .4s var(--ease),backdrop-filter .4s var(--ease);
}
/* Clear at the top of the page. Filters are held at their identity values
   rather than `none` so the two states actually interpolate. */
.js .nav--clear{
  background:transparent;
  border-bottom-color:transparent;
  -webkit-backdrop-filter:blur(0px) saturate(100%) brightness(1);
          backdrop-filter:blur(0px) saturate(100%) brightness(1);
}
/* Equal 1fr flanks put the wordmark on the page's centre line; everything else
   sits in the right-hand track. Column 1 is deliberately empty. */
.nav__inner{
  /* The bar runs wider than the 1160 text column: with the mark pinned to the
     centre, the flanks are what give the links room, and the narrower cap left
     them only ~15px clear of the wordmark at any window size. */
  max-width:1440px;
  /* minmax(0,...) so the flanks stay exactly equal: a bare 1fr has a
     min-content floor, which lets the wider right-hand group shove the
     wordmark off centre. */
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:24px;min-height:var(--nav-h);
}
.wordmark{grid-column:2;justify-self:center}
.nav__end{
  grid-column:3;justify-self:end;
  display:flex;align-items:center;gap:clamp(14px,1.5vw,20px);
}

.wordmark{
  /* --mark-shift compensates for the dead space a font leaves above its caps,
     so the lockup is optically centred in the bar. Measured in main.js. */
  margin-bottom:var(--mark-shift,0px);
  font-family:var(--display);
  position:relative;text-decoration:none;display:inline-block;
  padding-bottom:max(13px,.38em);   /* keeps the frame inside the layout box */
  --rule-w:max(3px,.07em);          /* frame thickness */
  --box-pad-x:.365em;               /* clear space, ink -> inside of the frame */
  --box-pad-y:.245em;
  font-size:clamp(36px,6.24vw,62.4px);
  line-height:1;white-space:nowrap;
}
.wordmark__x{font-weight:600;letter-spacing:.13em;color:#fff}
.wordmark__c{font-weight:300;letter-spacing:.06em;color:rgba(255,255,255,.66);margin-left:.16em}

.spectrum{
  position:absolute;
  /* Hugs the ink, not the line box: --ink-top / --ink-height come from main.js,
     and --trail-c cancels the trailing letter-space after the final "c" so the
     right edge sits the same distance from the glyphs as the left. */
  left:calc((var(--box-pad-x) + var(--rule-w)) * -1);
  right:calc(var(--trail-c,0px) - var(--box-pad-x) - var(--rule-w));
  top:calc(var(--ink-top,0px) - var(--box-pad-y) - var(--rule-w));
  height:calc(var(--ink-height,1em) + (var(--box-pad-y) + var(--rule-w)) * 2);

  padding:var(--rule-w);          /* becomes the visible frame thickness */
  background:linear-gradient(135deg,#00ff85 0%,#00d8ff 50%,#0047ff 100%);

  /* Standard gradient-border trick: paint the gradient, then mask out the
     middle so only a frame of --rule-w survives. */
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;

  pointer-events:none;
  animation:markhue 22s linear infinite;
}
@keyframes markhue{
  from{filter:hue-rotate(0deg)}
  to{filter:hue-rotate(360deg)}
}

.nav__links{display:flex;align-items:center;gap:clamp(11px,1.35vw,18px)}
.nav__links a{
  text-decoration:none;font-size:13px;font-weight:400;letter-spacing:.04em;
  color:rgba(255,255,255,.74);
  transition:color .3s var(--ease);
}
.nav__links a:hover{color:#fff}

/* Bare glyph, no chrome. The padding keeps a comfortable tap target and the
   matching negative margin lets the icon itself sit flush to the edge. */
.nav__mail{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px;margin:-11px -11px -11px 0;
  color:rgba(255,255,255,.82);text-decoration:none;
  transition:color .3s var(--ease);
}
.nav__mail svg{width:22px;height:22px;display:block}
.nav__mail:hover{color:#fff}

/* --- compact menu --- */
.nav__burger{
  display:none;
  padding:11px;margin:-11px 0;
  background:none;border:0;color:rgba(255,255,255,.82);cursor:pointer;
  align-items:center;justify-content:center;flex-direction:column;
  transition:color .3s var(--ease);
}
.nav__burger:hover{color:#fff}
.nav__burger span{
  display:block;width:20px;height:1.5px;background:currentColor;
  transition:transform .3s var(--ease);
}
.nav__burger span + span{margin-top:5px}
.nav__burger[aria-expanded="true"] span:first-child{transform:translateY(3.25px) rotate(45deg)}
.nav__burger[aria-expanded="true"] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}

.nav__panel{
  position:fixed;top:calc(var(--nav-h) + 1px);left:0;right:0;z-index:49;
  display:flex;flex-direction:column;
  padding:6px clamp(20px,5vw,48px) 16px;
  background:rgba(8,8,10,.72);
  -webkit-backdrop-filter:blur(22px) saturate(150%) brightness(.48);
          backdrop-filter:blur(22px) saturate(150%) brightness(.48);
  border-bottom:1px solid rgba(255,255,255,.10);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .28s var(--ease),transform .28s var(--ease),visibility 0s .28s;
}
.nav__panel.is-open{
  opacity:1;visibility:visible;transform:none;
  transition:opacity .28s var(--ease),transform .28s var(--ease),visibility 0s;
}
.nav__panel a{
  padding:13px 0;text-decoration:none;font-size:14px;letter-spacing:.04em;
  color:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:color .25s var(--ease);
}
.nav__panel a:last-child{border-bottom:0}
.nav__panel a:hover{color:#fff}

/* ---------- hero (inverted, lens plate behind) ---------- */
.hero{
  position:relative;isolation:isolate;
  background:var(--ink);color:#f4f4f6;
  display:flex;align-items:center;
  /* Low enough that padding + content governs the height at normal window
     sizes, so the gaps are the padding values rather than leftover free space
     split by the centring. */
  min-height:clamp(440px,60vh,680px);
  padding-top:calc(var(--nav-h) + clamp(22px,2.8vw,44px));
  padding-bottom:clamp(48px,6vw,80px);
  overflow:hidden;
}
/* Watched by main.js to decide when the bar stops being transparent. */
.nav-sentinel{position:absolute;top:16px;left:0;width:1px;height:1px;pointer-events:none}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
/* Scrim: heaviest under the type, opening up to the right so the glass reads. */
.hero__media::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(14,14,16,.94) 0%,rgba(14,14,16,.86) 38%,rgba(14,14,16,.58) 72%,rgba(14,14,16,.38) 100%),
    linear-gradient(180deg,rgba(14,14,16,.72) 0%,rgba(14,14,16,0) 26%);
}
.hero__content{position:relative;width:100%}

.hero__title{
  /* The headline used to sit under an eyebrow line (18px) plus a 26px gap.
     That 44px is kept so it, and everything below it, holds its old position. */
  margin-top:44px;
  font-size:clamp(2.35rem,6.1vw,4.6rem);
  font-weight:500;          /* Buffalo SemiBold Italic */
  font-style:italic;
  max-width:26ch;           /* wide enough for a short headline to hold one line */
  text-wrap:balance;        /* and to break evenly if the copy grows */
  color:#fff;
}
.hero__kicker{margin-top:18px;min-height:1.62em;font-size:13px}
.kicker__caret{
  display:inline-block;width:1px;height:1em;
  background:currentColor;margin-left:.2em;vertical-align:-.08em;
  animation:kickercaret 1.05s steps(1,end) infinite;
}
@keyframes kickercaret{0%,50%{opacity:1}50.01%,100%{opacity:0}}
.kicker__caret.is-done{animation:none;opacity:0;transition:opacity .7s var(--ease)}
.hero__lede{
  margin-top:30px;max-width:56ch;
  font-size:clamp(1.02rem,1.55vw,1.2rem);
  color:#b9b9c0;font-weight:300;line-height:1.66;
}
.hero .eyebrow{color:#9a9aa3}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:40px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:14px;letter-spacing:.02em;
  padding:14px 28px;border-radius:999px;border:1px solid transparent;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease);
}
.btn--solid{background:#fff;color:var(--ink)}
.btn--solid:hover{transform:translateY(-1px);background:#e8e8ec}
.btn--ghost{border-color:rgba(255,255,255,.34);color:#f4f4f6}
.btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.07)}
.hero__meta{
  margin-top:56px;padding-top:22px;border-top:1px solid rgba(255,255,255,.16);
  font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:#9a9aa3;
}

/* ---------- sections ---------- */
[id]{scroll-margin-top:calc(var(--nav-h) + 18px)}
.section{padding-block:var(--sect)}
.section--tint{background:var(--tint);border-block:1px solid var(--rule-soft)}
.section__head{margin-bottom:clamp(28px,3.4vw,48px)}
.section__title{
  margin-top:18px;
  font-size:clamp(1.75rem,3.5vw,2.7rem);
  font-weight:400;max-width:22ch;
}

/* ---------- service cards ---------- */
.cards{display:grid;grid-template-columns:1fr;gap:clamp(18px,2.4vw,30px)}
@media (min-width:820px){.cards{grid-template-columns:1fr 1fr}}
.card{
  background:var(--surface);border:1px solid var(--rule);
  padding:clamp(28px,3.6vw,46px);
  transition:border-color .35s var(--ease),transform .35s var(--ease);
}
.card:hover{border-color:#cfcfd4;transform:translateY(-2px)}
.card__index{
  font-size:11px;font-weight:600;letter-spacing:.24em;color:var(--ink-50);text-transform:uppercase;
}
.card__title{margin-top:18px;font-size:clamp(1.35rem,2.2vw,1.75rem);font-weight:500}
.card__body{margin-top:16px;color:var(--ink-70);font-weight:300;max-width:44ch}
@media (min-width:820px){.card{display:flex;flex-direction:column}.card__body{margin-bottom:30px}.list{margin-top:auto}}
.list{margin-top:30px;border-top:1px solid var(--rule-soft)}
.list li{
  padding:13px 0 13px 22px;border-bottom:1px solid var(--rule-soft);
  font-size:15px;color:var(--ink-70);position:relative;line-height:1.5;
}
.list li::before{
  content:"";position:absolute;left:0;top:21px;width:9px;height:1px;background:var(--ink-50);
}

/* ---------- 3-up grids ---------- */
.grid-3{display:grid;grid-template-columns:1fr;gap:clamp(28px,4vw,56px)}
@media (min-width:880px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.sector__title{font-size:1.3rem;font-weight:500;padding-bottom:16px;border-bottom:1px solid var(--rule)}
.sector p{margin-top:18px;color:var(--ink-70);font-weight:300;font-size:15.5px}

.grid-3--rules .point{padding-top:26px;border-top:1px solid var(--rule)}
.point__num{font-size:11px;font-weight:600;letter-spacing:.24em;color:var(--ink-50)}
.point__title{margin-top:16px;font-size:1.22rem;font-weight:500}
.point p{margin-top:14px;color:var(--ink-70);font-weight:300;font-size:15.5px}

/* ---------- apps ---------- */
.apps{
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--ink);color:#fff;
  min-height:clamp(320px,42vh,520px);
  padding-block:var(--sect);
  display:flex;align-items:center;
}
.apps__media{position:absolute;inset:0;z-index:-2}
.apps__media img{
  width:100%;height:100%;object-fit:cover;object-position:50% 42%;
  filter:blur(3.5px);
  transform:scale(1.04);   /* hides the soft edge the blur would otherwise leave */
}
/* Holds the screenshot back so it reads as texture, not as the subject. */
.apps__media::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 50% 50%,rgba(10,10,12,.42) 0%,rgba(10,10,12,.62) 70%,rgba(10,10,12,.74) 100%),
    linear-gradient(180deg,rgba(10,10,12,.34) 0%,rgba(10,10,12,0) 22%,rgba(10,10,12,0) 78%,rgba(10,10,12,.34) 100%);
}
.apps__content{position:relative;width:100%;text-align:center}
.apps__title{
  margin:0;font-family:var(--display);
  font-size:clamp(1.9rem,5vw,3.4rem);font-weight:400;
  letter-spacing:var(--track-display);line-height:var(--lh-display);
  color:#fff;
}

/* ---------- contact ---------- */
.contact{
  background:var(--ink);color:#f4f4f6;
  padding-block:clamp(42px,4.2vw,62px);
}
.contact .eyebrow{color:#8f8f98}
.contact__inner{max-width:840px}
.contact__title{margin-top:8px;font-size:clamp(1.9rem,4.2vw,3.1rem);font-weight:400;color:#fff}
.contact__lede{margin-top:18px;max-width:52ch;color:#b6b6bd;font-weight:300}

.contact__email{margin-top:0}   /* one line-height below the lede */
.mail{
  display:inline-block;text-decoration:none;color:#fff;
  font-size:inherit;font-weight:300;letter-spacing:-0.01em;
  margin-left:1px;
  transition:opacity .3s var(--ease);
}
.mail:hover{opacity:.72}
.mail__sep{color:#8f8f98;font-size:.72em;padding-inline:.12em}

.contact__note{
  margin-top:14px;padding-top:12px;border-top:1px solid #26262c;
  font-size:13px;letter-spacing:.05em;color:#8f8f98;line-height:1.9;
}

/* ---------- footer ---------- */
.footer{padding:14px 0 16px;border-top:1px solid var(--rule-soft)}
.footer__inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.footer__mark{font-family:var(--display);font-size:15px;font-weight:600;letter-spacing:.13em;text-transform:uppercase}
.footer__meta{font-size:12px;color:var(--ink-50);letter-spacing:.02em}

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

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

/* Below this the right-hand track grows past its 1fr share and would shove the
   wordmark off the centre line, so the links fold into the panel instead. */
@media (max-width:1280px){
  .nav__links{display:none}
  .nav__burger{display:flex}
}
@media (min-width:1281px){
  .nav__panel{display:none}
}

@media (max-width:640px){
  body{font-size:16px}
  :root{--nav-h:88px}
  .hero__title{max-width:none}
}
