/* ==========================================================================
   Olavi Works
   One design system for the whole site. Replaces styles.css + landing.css.

   Stack is deliberately vanilla: static HTML, native CSS, no build step and no
   framework. The site is nine files on a static host, so a bundler would add
   tooling without adding capability.

   CACHE BUSTING, and it is not optional. There is no build step generating
   hashed filenames, and the host sends no Cache-Control, so browsers apply
   heuristic caching to anything served at a stable URL. Editing this file
   without changing its URL leaves returning visitors on the old stylesheet.
     - Stylesheets and scripts carry ?v=YYYYMMDD in every page that links them.
       Bump that token whenever this file changes, in all pages at once.
     - Images and fonts get a new filename instead, since they are referenced
       from both markup and CSS and are replaced rarely.
   This is why the mark is olavi-mark-2026.png rather than olavi-mark.png: the
   old name still holds the previous logo in caches everywhere it was served.

   Shape rule, applied everywhere with no exceptions:
     interactive pills (buttons, tags)  -> --r-pill
     surfaces (panels, media, inputs)   -> --r-surface
   Nothing else has a corner radius.

   Colour rule: one hue family, taken from the logo.
     --brand       #16576F  the wordmark petrol, sampled from NewLogotype.png
     --brand-deep  #0B3D4E  the saturated teal in the base of the sphere
   Neutrals are not grey: they are desaturated versions of the same petrol hue,
   so nothing on the page reads as a different palette from the mark. There is
   no second accent colour anywhere.
   ========================================================================== */

/* ---------- fonts: self hosted, so no render-blocking call to a third party ---------- */

@font-face{
  font-family:'Manrope';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,
    U+FEFF,U+FFFD;
}

@font-face{
  font-family:'Manrope';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root{
  /* spacing */
  --s-25:2px;   --s-50:4px;   --s-75:8px;   --s-100:12px;
  --s-200:16px; --s-300:24px; --s-400:32px; --s-500:40px;
  --s-600:48px; --s-700:64px; --s-800:80px; --s-900:96px;
  --s-1000:128px;

  /* type */
  --t-xs:0.75rem;   --lh-xs:1.35;
  --t-sm:0.875rem;  --lh-sm:1.45;
  --t-base:1rem;    --lh-base:1.6;
  --t-lg:1.125rem;  --lh-lg:1.6;
  --t-xl:1.375rem;  --lh-xl:1.35;
  --t-2xl:1.75rem;  --lh-2xl:1.25;
  --t-3xl:2.25rem;  --lh-3xl:1.15;
  --t-4xl:3rem;     --lh-4xl:1.08;
  --t-5xl:3.75rem;  --lh-5xl:1.04;
  --t-6xl:4.5rem;   --lh-6xl:1.0;

  /* shape: two values, per the rule at the top of this file */
  --r-surface:14px;
  --r-pill:9999px;

  --ease:cubic-bezier(0.32,0.72,0,1);
  --dur:220ms;      /* interactive feedback */
  --dur-slow:640ms; /* entrances */

  /* brand constants, identical in both themes */
  --brand:#16576F;
  --brand-deep:#0B3D4E;

  /* light is the default surface set */
  --bg:#FFFFFF;
  --bg-raised:#F1F6F8;
  --bg-sunk:#E4EEF2;
  --line:#D6E3E9;
  --line-strong:#AFC6D0;
  --ink:#0A1F28;
  --ink-2:#44606E;
  /* ink-3 carries real copy (form helper text, quote roles, footer meta). It has
     to clear AA against the darkest point of --wash, not just against --bg,
     because that copy sits on the wash rather than on a panel. */
  --ink-3:#4F6875;
  --inv-bg:#16576F;
  --inv-ink:#FFFFFF;
  --wordmark:#16576F;
  --overlay:rgba(255,255,255,0.88);
  --accent:#16576F;
  --shadow:0 1px 2px rgba(10,31,40,0.05),0 12px 32px -12px rgba(10,31,40,0.18);

  /* Glass. The mark is a glass sphere, so surfaces on this site are glass too:
     a translucent fill, a bright top edge where light catches, and a darker
     hairline elsewhere. --glass-fill stays high enough that text on a panel
     always clears AA against the brightest point of the background wash. */
  --glass-fill:rgba(255,255,255,0.62);
  --glass-sheen:rgba(255,255,255,0.75);
  --glass-edge:rgba(22,87,111,0.16);
  --glass-hi:rgba(255,255,255,0.90);
  --glass-blur:blur(20px) saturate(165%);
  --grid-line:rgba(22,87,111,0.10);

  /* Each bloom fades by alpha alone, holding the brand hue to zero opacity.
     Fading to the `transparent` keyword interpolates towards transparent black
     in sRGB, which greys the midpoint and muddies the wash.
     Peaks are deliberately low: body copy sits directly on this, and the muted
     ink tones have to clear AA against the strongest point. */
  --wash:
    radial-gradient(54vw 48vh at 80% 4%,   rgba(22,87,111,0.14) 0%, rgba(22,87,111,0) 70%),
    radial-gradient(46vw 42vh at 2% 28%,   rgba(11,61,78,0.11) 0%,  rgba(11,61,78,0) 68%),
    radial-gradient(58vw 46vh at 96% 68%,  rgba(22,87,111,0.12) 0%, rgba(22,87,111,0) 70%),
    radial-gradient(54vw 44vh at 8% 99%,   rgba(11,61,78,0.10) 0%,  rgba(11,61,78,0) 68%);
}

/* Dark is the same hue pulled down, not a neutral black: the page keeps the
   petrol identity instead of turning into a generic dark theme. --accent lifts
   to a legible tint of the brand, since #16576F on a dark ground would fail. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#06181F;
    --bg-raised:#0C2732;
    --bg-sunk:#11333F;
    --line:#1B3E4B;
    --line-strong:#2C5768;
    --ink:#EAF3F6;
    --ink-2:#9BB6C1;
    --ink-3:#89A4B0;
    --inv-bg:#EAF3F6;
    --inv-ink:#06181F;
    --wordmark:#EAF3F6;
    --overlay:rgba(6,24,31,0.90);
    --accent:#6BC3DB;
    --shadow:0 1px 2px rgba(0,0,0,0.45),0 12px 32px -12px rgba(0,0,0,0.7);

    --glass-fill:rgba(12,39,50,0.58);
    --glass-sheen:rgba(120,190,215,0.10);
    --glass-edge:rgba(150,205,225,0.16);
    --glass-hi:rgba(190,230,245,0.18);
    --glass-blur:blur(20px) saturate(150%);
    --grid-line:rgba(150,205,225,0.09);

    --wash:
      radial-gradient(54vw 48vh at 80% 4%,   rgba(107,195,219,0.13) 0%, rgba(107,195,219,0) 70%),
      radial-gradient(46vw 42vh at 2% 28%,   rgba(22,87,111,0.45) 0%,   rgba(22,87,111,0) 68%),
      radial-gradient(58vw 46vh at 96% 68%,  rgba(107,195,219,0.10) 0%, rgba(107,195,219,0) 70%),
      radial-gradient(54vw 44vh at 8% 99%,   rgba(22,87,111,0.38) 0%,   rgba(22,87,111,0) 68%);
  }
}

:root[data-theme="dark"]{
  --bg:#06181F; --bg-raised:#0C2732; --bg-sunk:#11333F;
  --line:#1B3E4B; --line-strong:#2C5768;
  --ink:#EAF3F6; --ink-2:#9BB6C1; --ink-3:#89A4B0;
  --inv-bg:#EAF3F6; --inv-ink:#06181F;
  --wordmark:#EAF3F6;
  --overlay:rgba(6,24,31,0.90);
  --accent:#6BC3DB;
  --shadow:0 1px 2px rgba(0,0,0,0.45),0 12px 32px -12px rgba(0,0,0,0.7);

  --glass-fill:rgba(12,39,50,0.58);
  --glass-sheen:rgba(120,190,215,0.10);
  --glass-edge:rgba(150,205,225,0.16);
  --glass-hi:rgba(190,230,245,0.18);
  --glass-blur:blur(20px) saturate(150%);
  --grid-line:rgba(150,205,225,0.09);

  --wash:
    radial-gradient(54vw 48vh at 80% 4%,   rgba(107,195,219,0.13) 0%, rgba(107,195,219,0) 70%),
    radial-gradient(46vw 42vh at 2% 28%,   rgba(22,87,111,0.45) 0%,   rgba(22,87,111,0) 68%),
    radial-gradient(58vw 46vh at 96% 68%,  rgba(107,195,219,0.10) 0%, rgba(107,195,219,0) 70%),
    radial-gradient(54vw 44vh at 8% 99%,   rgba(22,87,111,0.38) 0%,   rgba(22,87,111,0) 68%);
}

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

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

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

/* The base colour lives on html so body::before can sit behind the content and
   still be seen. */
html{background:var(--bg);}

body{
  margin:0;
  background:transparent;
  color:var(--ink);
  font-family:'Manrope',system-ui,-apple-system,sans-serif;
  font-size:var(--t-base);
  line-height:var(--lh-base);
  font-weight:400;
  text-wrap:pretty;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Ambient wash. Glass only reads as glass when there is something behind it to
   refract, so four soft brand-coloured blooms sit under the whole page. It is
   fixed and pointer-events:none, so it composites once and costs nothing on
   scroll. Kept low contrast: this is light, not decoration. */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:var(--wash);
}

/* ---------- glass ----------
   One definition, used by every translucent surface. Per the reference
   implementation this is more than a blur: a bright inner top edge reads as the
   lit rim of the material, and the hairline border keeps the silhouette when
   the background behind it is flat. */
.glass,
.island-inner,
.hero-former,
.strip,
.bento-plain,
.bento-plain-narrow,
.cta-panel{
  background:
    linear-gradient(160deg, var(--glass-sheen), transparent 46%),
    var(--glass-fill);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-hi), var(--shadow);
}

/* Browsers without backdrop-filter get an opaque panel rather than a
   see-through one with unreadable text over it. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass,.island-inner,.hero-former,.strip,.bento-plain,.bento-plain-narrow,.cta-panel{
    background:var(--bg-raised);
  }
}

/* Blur is cheap on one fixed nav and expensive on several panels moving through
   a scroll on a mid range phone, so below the tablet breakpoint the in-flow
   surfaces keep the look and drop the filter. */
@media (max-width:768px){
  .strip,.bento-plain,.bento-plain-narrow,.cta-panel{
    background:var(--bg-raised);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

/* Honour the transparency preference: solid fill, no blur, no wash. */
@media (prefers-reduced-transparency: reduce){
  .glass,.island-inner,.hero-former,.strip,.bento-plain,.bento-plain-narrow,.cta-panel{
    background:var(--bg-raised);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border-color:var(--line);
    box-shadow:none;
  }
  body::before{display:none;}
}

h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-0.028em;text-wrap:balance;}
p{margin:0;text-wrap:pretty;}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;}
svg{display:block;}
::selection{background:var(--ink);color:var(--bg);}

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

.skip-link{
  position:absolute;
  left:var(--s-200);
  top:-100px;
  z-index:100;
  background:var(--inv-bg);
  color:var(--inv-ink);
  font-size:var(--t-sm);
  font-weight:600;
  padding:var(--s-75) var(--s-200);
  border-radius:var(--r-pill);
  transition:top var(--dur) var(--ease);
}
.skip-link:focus-visible{top:var(--s-200);}

.wrap{
  width:100%;
  max-width:1180px;
  margin-inline:auto;
  padding-inline:var(--s-300);
}

.section{padding-block:var(--s-1000);}
.section-tight{padding-block:var(--s-800);}

@media (max-width:768px){
  .section{padding-block:var(--s-800);}
  .section-tight{padding-block:var(--s-600);}
}

/* Section headers stack vertically. No headline-left / paragraph-right split.
   The measure is set on the headline and the paragraph separately: a single cap
   on the wrapper would drag the body copy down to the headline's measure and
   leave it as a narrow ribbon. */
.section-head{margin-bottom:var(--s-700);}
.section-head h2{
  font-size:var(--t-3xl);
  line-height:var(--lh-3xl);
  max-width:24ch;
}
.section-head.is-wide h2{max-width:30ch;}
.section-head p{
  max-width:58ch;
  color:var(--ink-2);
  font-size:var(--t-lg);
  line-height:var(--lh-lg);
  margin-top:var(--s-300);
}

@media (max-width:600px){
  .section-head{margin-bottom:var(--s-500);}
  .section-head h2{font-size:var(--t-2xl);line-height:var(--lh-2xl);}
}

/* ---------- buttons ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--s-75);
  font-family:inherit;
  font-size:var(--t-base);
  line-height:1;
  font-weight:600;
  letter-spacing:-0.01em;
  padding:var(--s-200) var(--s-400);
  border-radius:var(--r-pill);
  border:1px solid transparent;
  background:var(--inv-bg);
  color:var(--inv-ink);
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease),
             background-color var(--dur) var(--ease),
             border-color var(--dur) var(--ease),
             color var(--dur) var(--ease);
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow);}
.btn:active{transform:scale(0.98);}

.btn-sm{font-size:var(--t-sm);padding:var(--s-100) var(--s-200);}

.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--line-strong);
}
.btn-ghost:hover{background:var(--bg-raised);border-color:var(--ink-3);}

.text-link{
  display:inline-flex;
  align-items:center;
  gap:var(--s-75);
  font-size:var(--t-base);
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  padding-block:var(--s-100);
  transition:color var(--dur) var(--ease);
}
.text-link svg{width:18px;height:18px;transition:transform var(--dur) var(--ease);}
.text-link:hover{color:var(--ink-2);}
.text-link:hover svg{transform:translateX(4px);}

/* ---------- nav ---------- */

.island{
  position:fixed;
  inset-inline:0;
  top:0;
  z-index:50;
  display:flex;
  justify-content:center;
  pointer-events:none;
}

.island-inner{
  pointer-events:auto;
  margin-top:var(--s-200);
  width:max-content;
  max-width:calc(100vw - var(--s-400));
  height:60px;
  display:flex;
  align-items:center;
  gap:var(--s-400);
  padding:var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  border-radius:var(--r-pill);
  transition:box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease);
}
/* Once the page has moved under it, the rim brightens and the drop deepens, so
   the bar reads as sitting above the content rather than printed on it. */
.island-inner.is-stuck{
  box-shadow:inset 0 1px 0 var(--glass-hi),
             0 1px 2px rgba(10,31,40,0.06),
             0 18px 40px -16px rgba(10,31,40,0.30);
}

/* The mark is a coloured glass sphere, so it is never inverted for dark mode:
   inverting petrol gives orange. It reads on both grounds as drawn. */
.lockup{
  display:inline-flex;
  align-items:center;
  gap:var(--s-75);
  text-decoration:none;
  font-weight:700;
  font-size:var(--t-base);
  letter-spacing:-0.03em;
  white-space:nowrap;
  color:var(--wordmark);
}
.lockup img{width:24px;height:24px;}

.island-links{display:flex;align-items:center;gap:var(--s-300);}
.island-links a{
  font-size:var(--t-sm);
  font-weight:500;
  color:var(--ink-2);
  text-decoration:none;
  transition:color var(--dur) var(--ease);
}
.island-links a:hover{color:var(--ink);}
.island-links a[aria-current="page"]{color:var(--ink);font-weight:600;}

@media (max-width:820px){
  .island-links,.island-inner .btn{display:none;}
  .island-inner{gap:var(--s-200);padding-right:var(--s-75);}
}

.burger{
  display:none;
  position:relative;
  width:44px;height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:var(--r-pill);
  background:transparent;
  cursor:pointer;
  transition:background-color var(--dur) var(--ease),transform var(--dur) var(--ease);
}
.burger:hover{background:var(--bg-raised);}
.burger:active{transform:scale(0.96);}
.burger span{
  position:absolute;left:50%;top:50%;
  width:16px;height:2px;
  background:var(--ink);
  border-radius:var(--r-pill);
  transition:transform var(--dur) var(--ease);
}
.burger span:nth-child(1){transform:translate(-50%,-5px);}
.burger span:nth-child(2){transform:translate(-50%,3px);}
.burger[aria-expanded="true"] span:nth-child(1){transform:translate(-50%,-1px) rotate(45deg);}
.burger[aria-expanded="true"] span:nth-child(2){transform:translate(-50%,-1px) rotate(-45deg);}

@media (max-width:820px){.burger{display:block;}}

.menu{
  position:fixed;inset:0;z-index:40;
  display:flex;flex-direction:column;justify-content:center;
  gap:var(--s-300);
  padding:var(--s-500);
  background:var(--overlay);
  backdrop-filter:blur(48px);
  -webkit-backdrop-filter:blur(48px);
  opacity:0;visibility:hidden;
  transition:opacity var(--dur-slow) var(--ease),visibility var(--dur-slow) var(--ease);
}
.menu.is-open{opacity:1;visibility:visible;}
.menu a{
  font-size:var(--t-3xl);
  line-height:var(--lh-3xl);
  font-weight:600;
  letter-spacing:-0.03em;
  text-decoration:none;
  opacity:0;
  transform:translateY(24px);
  transition:opacity var(--dur-slow) var(--ease),transform var(--dur-slow) var(--ease);
}
.menu.is-open a{opacity:1;transform:translateY(0);}
.menu.is-open a:nth-child(1){transition-delay:60ms;}
.menu.is-open a:nth-child(2){transition-delay:110ms;}
.menu.is-open a:nth-child(3){transition-delay:160ms;}
.menu.is-open a:nth-child(4){transition-delay:210ms;}

/* ---------- scroll reveal ----------
   Gated on .js so the page stays fully readable if the script never runs.
   A reveal that is not undone by script is just hidden content. */

.js .reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity var(--dur-slow) var(--ease),transform var(--dur-slow) var(--ease);
}
.js .reveal.is-in{opacity:1;transform:none;}

.reveal-d1{transition-delay:80ms;}
.reveal-d2{transition-delay:160ms;}
.reveal-d3{transition-delay:240ms;}

@media (prefers-reduced-motion: reduce){
  .js .reveal{opacity:1;transform:none;transition:none;}
  .menu a{opacity:1;transform:none;}
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}


/* ---------- column grid behind the hero ----------
   Rules land on the container edges and the quarter columns, so this marks the
   layout the page is actually built on rather than decorating the background.
   The glass surfaces above it blur it, which is where the material reads.

   --cell must not use a percentage. In background-size a percentage resolves
   against the element's width in the first slot and its height in the second,
   so an identical expression produced a 4.5:1 cell on the older pages. vw
   resolves the same on both axes, so the cell is genuinely square. */
/* The band clips, not the hero. The hero is only 1180px wide, so clipping there
   cut the bleeding photo 40px short of its own edge, which looked like a crop
   through the subject rather than a bleed off the page. */
.band{position:relative;overflow:hidden;}
.band > .wrap{position:relative;z-index:1;}

.band > .grid-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  --cell:calc((min(1180px,100vw) - 48px) / 4);
  background-image:
    linear-gradient(to right,var(--grid-line) 1px,transparent 1px),
    linear-gradient(to bottom,var(--grid-line) 1px,transparent 1px);
  background-size:var(--cell) var(--cell);
  /* A percentage in background-position resolves as (container - image) * pct,
     so adding half a cell lands the rules on the container edges and quarters
     rather than half a column off them. */
  background-position:calc(50% + (var(--cell) / 2)) 0;
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 55%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0,#000 55%,transparent 100%);
}

/* Four columns on a phone gives an 85px cell, which reads as a mesh behind the
   copy rather than as a quiet structural hint. Two columns keeps the cell at a
   similar visual weight to the desktop grid. */
@media (max-width:768px){
  .band > .grid-bg{--cell:calc((min(1180px,100vw) - 48px) / 2);}
}

/* ==========================================================================
   1. Hero. Asymmetric split: copy on a 7 column measure, photo on 5, photo
   bleeds past the container on the right so the grid is not a boxed 50/50.
   ========================================================================== */

/* The whole hero has to clear a 720px laptop viewport: nav, headline, subtext
   and both CTAs, with no scroll. Padding and type scale are therefore set
   together, and the headline is capped at two lines at every width. */
.hero{
  padding-top:calc(60px + var(--s-500));  /* nav height plus breathing room */
  padding-bottom:var(--s-800);
}

@media (max-width:900px){
  .hero{padding-top:calc(60px + var(--s-400));padding-bottom:var(--s-700);}
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:var(--s-700);
  align-items:center;
}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:var(--s-600);}
}

.hero-former{
  display:inline-flex;
  align-items:center;
  gap:var(--s-75);
  font-size:var(--t-sm);
  font-weight:500;
  color:var(--ink-2);
  padding:var(--s-50) var(--s-100) var(--s-50) var(--s-50);
  border-radius:var(--r-pill);
  margin-bottom:var(--s-400);
}
.hero-former img{width:20px;height:20px;}

/* No max-width: the <br> owns the line break, so a width cap here would only
   introduce a third and fourth line. Size is chosen so the longer of the two
   lines fits the 7fr column at each step. */
.hero h1{
  font-size:var(--t-4xl);
  line-height:var(--lh-4xl);
  letter-spacing:-0.04em;
}

@media (min-width:1400px){
  .hero h1{font-size:var(--t-5xl);line-height:var(--lh-5xl);}
}
@media (max-width:1000px){
  .hero h1{font-size:var(--t-3xl);line-height:var(--lh-3xl);}
}
@media (max-width:600px){
  .hero h1{font-size:var(--t-2xl);line-height:var(--lh-2xl);}
  .hero h1 br{display:none;}
}

.hero-sub{
  max-width:44ch;
  margin-top:var(--s-300);
  font-size:var(--t-lg);
  line-height:var(--lh-lg);
  color:var(--ink-2);
}

.hero-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:var(--s-300);
  margin-top:var(--s-500);
}

/* The photo is opaque, so a blur behind it would do nothing. It gets the rim
   and the drop only, which is what makes it match the glass panels. */
.hero-media{
  margin:0;
  position:relative;
  border-radius:var(--r-surface);
  overflow:hidden;
  background:var(--bg-raised);
  border:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-hi),
             0 1px 2px rgba(10,31,40,0.06),
             0 24px 56px -20px rgba(10,31,40,0.34);
}
/* Julius sits hard against the right edge of this frame, so any crop taken from
   that side cuts into him. A square box discards a quarter of the width; 5/4
   discards about 6%, and anchoring right puts all of that loss on the empty
   left of the shot instead. Height is shown in full at this ratio. */
.hero-media img{width:100%;aspect-ratio:5/4;object-fit:cover;object-position:100% center;}

@media (min-width:901px){
  /* Let the photo run wider than its column and past the container edge. */
  .hero-media{width:calc(100% + var(--s-700));}
}
@media (max-width:900px){
  /* At 16/10 the full width is in frame, so he is visible without a shove. */
  .hero-media img{aspect-ratio:16/10;object-position:center 28%;}
}

/* ==========================================================================
   2. Client strip. A single hairline row, not cards.
   ========================================================================== */

/* Full bleed band, so the vertical edges of the glass border would run off
   screen. Only the horizontal rules are wanted. */
.strip{border-inline:0;border-radius:0;}

.strip-inner{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:var(--s-300) var(--s-500);
  padding-block:var(--s-400);
}

.strip-label{
  font-size:var(--t-sm);
  color:var(--ink-3);
  font-weight:500;
  flex:none;
}

.strip-names{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s-300) var(--s-500);}

.strip-names a{
  font-size:var(--t-lg);
  font-weight:600;
  letter-spacing:-0.02em;
  color:var(--ink-2);
  text-decoration:none;
  transition:color var(--dur) var(--ease);
}
.strip-names a:hover{color:var(--ink);}

/* ==========================================================================
   3. The handoff. A two column ledger sharing one centre rule. No card boxes:
   the rule does the separating, so the two sides read as one comparison
   rather than two unrelated panels.
   ========================================================================== */

.ledger{
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  gap:0 var(--s-700);
}

@media (max-width:860px){
  .ledger{grid-template-columns:1fr;gap:var(--s-600);}
  .ledger-rule{display:none;}
}

.ledger-rule{background:var(--line);}

.ledger-col h3{
  font-size:var(--t-sm);
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink-3);
  padding-bottom:var(--s-300);
  border-bottom:1px solid var(--line);
  margin-bottom:var(--s-300);
}
.ledger-col.is-ours h3{color:var(--ink);border-bottom-color:var(--ink);}

.ledger-col ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--s-300);}

.ledger-col li{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:var(--s-100);
  align-items:start;
  font-size:var(--t-base);
  line-height:var(--lh-base);
  color:var(--ink-2);
}
.ledger-col li svg{width:20px;height:20px;margin-top:3px;}
.ledger-col.is-theirs li svg{color:var(--ink-3);}
.ledger-col.is-ours li{color:var(--ink);}
.ledger-col.is-ours li svg{color:var(--accent);}

/* ==========================================================================
   4. What you get. Four cells, asymmetric, two carrying real visual weight so
   the grid is not four identical text boxes.
   ========================================================================== */

.bento{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:var(--s-200);
}

/* Layout only. Surface treatment belongs to the variant, so this rule cannot
   land after the glass definition and quietly paint over it. */
.bento-cell{
  border-radius:var(--r-surface);
  padding:var(--s-500);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:var(--s-100);
  min-height:260px;
  transition:border-color var(--dur) var(--ease),transform var(--dur) var(--ease);
}
.bento-cell:hover{transform:translateY(-2px);}
/* Lifting the rim on hover reads as the light catching a tilted edge, which is
   the one hover state that suits a glass surface. */
.bento-plain:hover,.bento-plain-narrow:hover{border-color:var(--glass-hi);}

.bento-cell h3{font-size:var(--t-xl);line-height:var(--lh-xl);}
.bento-cell p{font-size:var(--t-base);line-height:var(--lh-base);color:var(--ink-2);max-width:42ch;}

/* Row rhythm is 2|3 then 3|2, so the grid reads as a composition rather than
   as four equal boxes. */

/* cell 1: photo. Opaque, so it takes the rim without the blur. */
.bento-photo{
  grid-column:span 2;
  position:relative;
  padding:0;
  overflow:hidden;
  min-height:340px;
  background:var(--bg-raised);
  border:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-hi), var(--shadow);
}
.bento-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 15%;}
.bento-photo .bento-body{
  position:relative;
  margin-top:auto;
  padding:var(--s-500);
  color:#FFFFFF;
  background:linear-gradient(to top,rgba(0,0,0,0.82) 0%,rgba(0,0,0,0.55) 55%,rgba(0,0,0,0) 100%);
}
.bento-photo h3{color:#FFFFFF;}
.bento-photo p{color:rgba(255,255,255,0.86);}

/* cell 2: the deep teal from the base of the sphere. Set here rather than via
   --inv-bg so the block stays darker than the buttons and the grid keeps a
   clear focal point. */
.bento-tint{
  grid-column:span 3;
  background:var(--brand-deep);
  border-color:var(--brand-deep);
  color:#FFFFFF;
  min-height:340px;
}
.bento-tint h3{color:#FFFFFF;}
.bento-tint p{color:rgba(255,255,255,0.78);}
.bento-tint:hover{border-color:var(--brand-deep);}

/* cells 3 and 4 */
.bento-plain{grid-column:span 3;}
.bento-plain-narrow{grid-column:span 2;}

@media (max-width:860px){
  .bento{grid-template-columns:1fr;}
  .bento-photo,.bento-tint,.bento-plain,.bento-plain-narrow{grid-column:1 / -1;}
  .bento-cell{min-height:0;padding:var(--s-400);}
  .bento-photo{min-height:300px;padding:0;}
  .bento-tint{min-height:0;}
}

.bento-mark{
  width:32px;height:32px;
  margin-bottom:var(--s-300);
  color:var(--ink);
}
.bento-mark svg{width:100%;height:100%;}
.bento-tint .bento-mark{color:var(--inv-ink);}

/* ==========================================================================
   5. Tagline. Full bleed editorial statement, words lit in reading order.
   ========================================================================== */

.tagline{
  padding-block:var(--s-1000);
  border-block:1px solid var(--line);
}

.tagline p{
  max-width:26ch;
  font-size:var(--t-4xl);
  line-height:1.1;
  font-weight:600;
  letter-spacing:-0.035em;
}

@media (max-width:900px){.tagline p{font-size:var(--t-3xl);max-width:none;}}
@media (max-width:600px){.tagline p{font-size:var(--t-2xl);}}

.tagline .word{transition:color var(--dur-slow) var(--ease);}
.js .tagline .word{color:var(--ink-3);}
.js .tagline .word.is-lit{color:var(--ink);}

@media (prefers-reduced-motion: reduce){
  .js .tagline .word{color:var(--ink);}
}

/* ==========================================================================
   6. How it works. A horizontal spine: one rule runs through three markers.
   The step content is the label, so there are no "Step 01" captions.
   ========================================================================== */

.spine{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--s-500);
  position:relative;
}

.spine::before{
  content:"";
  position:absolute;
  top:11px;
  left:0;right:0;
  height:1px;
  background:var(--line);
}

@media (max-width:820px){
  .spine{grid-template-columns:1fr;gap:var(--s-600);}
  .spine::before{top:0;bottom:0;left:11px;right:auto;width:1px;height:auto;}
}

.spine-step{position:relative;padding-top:var(--s-500);}

@media (max-width:820px){
  .spine-step{padding-top:0;padding-left:var(--s-500);}
}

.spine-step::before{
  content:"";
  position:absolute;
  top:4px;left:0;
  width:15px;height:15px;
  border-radius:var(--r-pill);
  background:var(--bg);
  border:1px solid var(--line-strong);
  box-shadow:0 0 0 4px var(--bg);
}
.spine-step:first-child::before{background:var(--ink);border-color:var(--ink);}

@media (max-width:820px){
  .spine-step::before{top:3px;}
}

.spine-step h3{font-size:var(--t-xl);line-height:var(--lh-xl);margin-bottom:var(--s-100);}
.spine-step p{font-size:var(--t-base);line-height:var(--lh-base);color:var(--ink-2);max-width:38ch;}

/* ==========================================================================
   7. Proof. Pull quotes with no boxes, then live sites as ruled rows.
   ========================================================================== */

.quotes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--s-700);
  padding-bottom:var(--s-800);
  margin-bottom:var(--s-800);
  border-bottom:1px solid var(--line);
}

@media (max-width:820px){
  .quotes{grid-template-columns:1fr;gap:var(--s-600);padding-bottom:var(--s-600);margin-bottom:var(--s-600);}
}

.quote{margin:0;display:flex;flex-direction:column;gap:var(--s-400);}

.quote blockquote{
  margin:0;
  font-size:var(--t-2xl);
  line-height:var(--lh-2xl);
  font-weight:500;
  letter-spacing:-0.022em;
  text-wrap:pretty;
}

@media (max-width:600px){
  .quote blockquote{font-size:var(--t-xl);line-height:var(--lh-xl);}
}

.quote figcaption{display:flex;align-items:center;gap:var(--s-100);margin-top:auto;}

.avatar{
  width:36px;height:36px;flex:none;
  display:grid;place-items:center;
  border-radius:var(--r-pill);
  background:var(--bg-sunk);
  border:1px solid var(--line);
  font-size:var(--t-xs);
  font-weight:700;
  letter-spacing:0.02em;
  color:var(--ink-2);
}

.who-name{display:block;font-size:var(--t-sm);font-weight:600;}
.who-role{display:block;font-size:var(--t-sm);color:var(--ink-3);}

/* live sites as rows */
.sites{border-top:1px solid var(--line);}

.site-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;
  align-items:center;
  gap:var(--s-300);
  padding-block:var(--s-400);
  border-bottom:1px solid var(--line);
  text-decoration:none;
  transition:padding-inline var(--dur) var(--ease),background-color var(--dur) var(--ease);
}
.site-row:hover{background:var(--bg-raised);padding-inline:var(--s-200);}

@media (max-width:760px){
  .site-row{grid-template-columns:1fr auto;gap:var(--s-50) var(--s-200);padding-block:var(--s-300);}
  .site-row .site-note{grid-column:1 / -1;}
}

.site-name{
  display:flex;align-items:center;gap:var(--s-100);
  font-size:var(--t-lg);
  font-weight:600;
  letter-spacing:-0.02em;
}
.site-live{
  width:6px;height:6px;flex:none;
  border-radius:var(--r-pill);
  background:var(--accent);
}
.site-note{font-size:var(--t-sm);color:var(--ink-2);}
.site-go{
  display:inline-flex;align-items:center;gap:var(--s-50);
  font-size:var(--t-sm);
  color:var(--ink-3);
  font-weight:500;
  white-space:nowrap;
}
.site-go svg{width:15px;height:15px;transition:transform var(--dur) var(--ease);}
.site-row:hover .site-go{color:var(--ink);}
.site-row:hover .site-go svg{transform:translate(2px,-2px);}

.sites-more{margin-top:var(--s-400);}

/* ==========================================================================
   8. FAQ. Hairline rows, not eight bordered pills.
   ========================================================================== */

.faq{max-width:820px;border-top:1px solid var(--line);}

.faq details{border-bottom:1px solid var(--line);}

.faq summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--s-300);
  cursor:pointer;
  list-style:none;
  padding-block:var(--s-300);
  font-size:var(--t-lg);
  font-weight:600;
  letter-spacing:-0.02em;
  transition:color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary:hover{color:var(--ink-2);}

.faq summary svg{
  width:20px;height:20px;flex:none;
  color:var(--ink-3);
  transition:transform var(--dur) var(--ease);
}
.faq details[open] summary svg{transform:rotate(180deg);}

.faq p{
  padding-bottom:var(--s-400);
  font-size:var(--t-base);
  line-height:var(--lh-base);
  color:var(--ink-2);
  max-width:62ch;
}

/* ==========================================================================
   9. Close. Assurances as an inline ruled row, then the one panel on the page
   that earns a container: the conversion moment.
   ========================================================================== */

.assurances{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--s-500);
  padding-bottom:var(--s-700);
  margin-bottom:var(--s-700);
  border-bottom:1px solid var(--line);
}

@media (max-width:820px){
  .assurances{grid-template-columns:1fr;gap:var(--s-400);padding-bottom:var(--s-500);margin-bottom:var(--s-500);}
}

.assurance{display:flex;gap:var(--s-100);align-items:flex-start;}
.assurance svg{width:20px;height:20px;flex:none;margin-top:2px;color:var(--accent);}
.assurance b{display:block;font-size:var(--t-base);font-weight:600;margin-bottom:var(--s-25);}
.assurance span span{font-size:var(--t-sm);line-height:var(--lh-sm);color:var(--ink-2);}

.cta-panel{
  border-radius:var(--r-surface);
  padding:var(--s-800);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--s-800);
  align-items:start;
}

@media (max-width:900px){
  .cta-panel{grid-template-columns:1fr;padding:var(--s-500);gap:var(--s-600);}
}
@media (max-width:520px){
  .cta-panel{padding:var(--s-400);}
}

.cta-panel h2{font-size:var(--t-3xl);line-height:var(--lh-3xl);max-width:16ch;}
.cta-panel > div > p{
  margin-top:var(--s-300);
  font-size:var(--t-lg);
  line-height:var(--lh-lg);
  color:var(--ink-2);
  max-width:44ch;
}

.cta-direct{
  margin-top:var(--s-500);
  padding-top:var(--s-400);
  border-top:1px solid var(--line);
  font-size:var(--t-sm);
  color:var(--ink-3);
}
.cta-direct a{font-weight:600;color:var(--ink);text-underline-offset:3px;}

/* ---------- form ---------- */

.form{display:flex;flex-direction:column;gap:var(--s-300);}

.field{display:flex;flex-direction:column;gap:var(--s-75);}

.field label{font-size:var(--t-sm);font-weight:600;}

.field input,
.field textarea{
  font-family:inherit;
  font-size:var(--t-base);
  line-height:var(--lh-base);
  color:var(--ink);
  background:var(--bg);
  border:1px solid var(--line-strong);
  border-radius:var(--r-surface);
  padding:var(--s-100) var(--s-200);
  transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease);
}
.field textarea{resize:vertical;min-height:104px;}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-3);}
.field input:hover,.field textarea:hover{border-color:var(--ink-3);}
.field input:focus,.field textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"]{border-color:var(--ink);}

.field-error{
  font-size:var(--t-sm);
  line-height:var(--lh-sm);
  color:var(--ink);
  font-weight:500;
}
.field-error:empty{display:none;}

.form-note{font-size:var(--t-xs);line-height:var(--lh-xs);color:var(--ink-3);}

.btn[data-state="loading"]{pointer-events:none;}

.skeleton{
  display:none;
  height:1rem;width:104px;
  border-radius:var(--r-pill);
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--inv-ink) 18%,transparent),
    color-mix(in srgb,var(--inv-ink) 42%,transparent),
    color-mix(in srgb,var(--inv-ink) 18%,transparent));
  background-size:200% 100%;
  animation:sweep 1100ms linear infinite;
}
.btn[data-state="loading"] .btn-label{display:none;}
.btn[data-state="loading"] .skeleton{display:block;}

@keyframes sweep{
  from{background-position:200% 0;}
  to{background-position:-200% 0;}
}

.form-success{
  display:none;
  gap:var(--s-100);
  align-items:flex-start;
  border:1px solid var(--accent);
  border-radius:var(--r-surface);
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  padding:var(--s-300);
}
.form-success.is-shown{display:flex;}
.form-success svg{width:20px;height:20px;flex:none;margin-top:2px;color:var(--accent);}
.form-success b{display:block;font-size:var(--t-base);}
.form-success > span > span{font-size:var(--t-sm);line-height:var(--lh-sm);color:var(--ink-2);}

/* ---------- footer ---------- */

/* Tinted rather than blurred: the footer is a tall band and the wash below it
   should read through, but a backdrop-filter over that area buys nothing. */
.site-footer{
  border-top:1px solid var(--line);
  background:color-mix(in srgb, var(--bg-raised) 78%, transparent);
  padding-block:var(--s-800) var(--s-400);
}

.foot-top{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:var(--s-700);
  padding-bottom:var(--s-700);
}

.foot-slogan{margin-top:var(--s-100);font-size:var(--t-sm);color:var(--ink-3);}

.foot-cols{display:flex;flex-wrap:wrap;gap:var(--s-800);}
.foot-col{display:flex;flex-direction:column;gap:var(--s-75);}

.foot-col h4{
  font-size:var(--t-xs);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--ink-3);
  margin-bottom:var(--s-50);
}

.foot-col a{
  font-size:var(--t-sm);
  color:var(--ink-2);
  text-decoration:none;
  transition:color var(--dur) var(--ease);
}
.foot-col a:hover{color:var(--ink);}

.foot-bottom{
  border-top:1px solid var(--line);
  padding-top:var(--s-300);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:var(--s-100);
  font-size:var(--t-sm);
  color:var(--ink-3);
}

/* ---------- simple content pages (404, privacy, terms, work, about) ---------- */

.page-head{padding-top:calc(60px + var(--s-700));padding-bottom:var(--s-500);}
.page-head h1{
  max-width:20ch;
  font-size:var(--t-4xl);
  line-height:var(--lh-4xl);
  letter-spacing:-0.035em;
}
.page-head p{
  margin-top:var(--s-300);
  max-width:58ch;
  font-size:var(--t-lg);
  line-height:var(--lh-lg);
  color:var(--ink-2);
}

.prose{max-width:68ch;padding-bottom:var(--s-900);}
.prose h2{
  font-size:var(--t-xl);
  line-height:var(--lh-xl);
  margin-top:var(--s-600);
  margin-bottom:var(--s-200);
}
.prose p{color:var(--ink-2);font-size:var(--t-base);line-height:var(--lh-base);margin-bottom:var(--s-200);}
.prose a{color:var(--ink);text-underline-offset:3px;}

/* Small caps label. Deliberately rare: it is used on the utility pages to name
   the page state, and nowhere on the home page, where headlines carry it. */
.eyebrow{
  font-size:var(--t-sm);
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink-3);
  margin-bottom:var(--s-200);
}
