/* ==========================================================================
   HYBRD — base + components (shared by every page)
   Page layouts live in their own file (services.css). Tokens: tokens.css.
   ========================================================================== */

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font: 700 var(--t-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; font: inherit; }
ul, ol { list-style: none; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.theme-dark  { background: var(--c-black); color: var(--c-white); }
.theme-paper { background: var(--c-paper); }
.theme-blue  { background: var(--c-blue); }

/* Cover media: an <img>/<video> that fills its box */
.media { position: relative; overflow: hidden; background: #111; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--contain { background: transparent; }
.media--contain > img { object-fit: contain; }

/* ── Type roles (see design-system.html) ─────────────────────────────── */
.t-hero      { font: 700 var(--t-hero)/var(--lh-hero) var(--f-display); letter-spacing: -.01em; }
.t-title     { font: 400 var(--t-title)/var(--lh-title) var(--f-serif); white-space: nowrap; }
.t-statement { font: 700 var(--t-statement)/var(--lh-statement) var(--f-display); text-transform: uppercase; }
.t-h1        { font: 700 var(--t-h1)/var(--lh-h1) var(--f-display); text-transform: uppercase; }
.t-h2        { font: 700 var(--t-h2)/var(--lh-h2) var(--f-display); text-transform: uppercase; }
.t-h2 .light, .t-light { font-weight: 400; }
.t-h3        { font: 700 var(--t-h3)/var(--lh-h3) var(--f-display); text-transform: uppercase; }
.t-index     { font: 700 var(--t-index)/var(--lh-index) var(--f-display); }
.t-index--body { font-family: var(--f-body); font-weight: 900; }   /* the centred (02)/(04) marks are Inter in Framer */
.t-lead      { font: 700 var(--t-lead)/var(--lh-lead) var(--f-body); }
.t-body      { font: 700 var(--t-body)/var(--lh-body) var(--f-body); }
.t-small     { font: 700 var(--t-small)/var(--lh-small) var(--f-body); }
.t-upper     { text-transform: uppercase; }
.t-center    { text-align: center; }
.t-right     { text-align: right; }
.t-muted     { opacity: .35; }   /* the faded "[your]" */

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h); padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;                 /* only the logo + button catch clicks */
}
.site-header > * { pointer-events: auto; }
.logo { display: block; width: 32px; height: 35px; transform: rotate(180deg); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
/* Framer's dark pages use a white logo ("Logo siyah"): shown over .theme-dark sections and in the open menu,
   like the burger (header tone set by site.js) */
.logo { position: relative; }
.logo .logo__light { position: absolute; inset: 0; opacity: 0; }
.site-header.on-dark .logo img:not(.logo__light), .menu-open .logo img:not(.logo__light) { opacity: 0; }
.site-header.on-dark .logo .logo__light, .menu-open .logo .logo__light { opacity: 1; }

/* Hamburger: three bars 22/18/16px, right aligned (Framer "Open" icon variant) */
.burger {
  width: 36px; height: 36px; padding: 6px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 4px;
  position: relative;
}
.burger span {
  display: block; height: 2px; background: var(--c-black);
  transition: transform var(--dur-fast) var(--ease), opacity .2s, width var(--dur-fast) var(--ease);
}
.burger span:nth-child(1) { width: 22px; }
.burger span:nth-child(2) { width: 18px; }
.burger span:nth-child(3) { width: 16px; }
/* over .theme-dark sections and in the open menu the bars turn white (set by site.js) */
.site-header.on-dark .burger span, .menu-open .burger span { background: var(--c-white); }
.menu-open .burger span:nth-child(1) { width: 22px; transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { width: 22px; transform: translateY(-6px) rotate(-45deg); }
.burger:focus-visible { outline: 1px solid var(--c-blue-link); outline-offset: 2px; }

/* ── Menu overlay ─────────────────────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c-backdrop);
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));   /* the audio bar stays visible below the links */
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s .3s;       /* Framer: spring, bounce 0, 0.3 s */
}
.menu-open { overflow: hidden; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out); }
.menu a {
  display: flex; align-items: center; gap: 10px;
  font: 700 var(--t-menu)/var(--lh-menu) var(--f-display);
  color: transparent; -webkit-text-stroke: 1px var(--c-white);   /* outlined, as in Framer */
  opacity: 0; transform: translateY(15px);                          /* Framer appear start state */
  /* Framer: spring, bounce .2, 0.4 s — for the appear and for the hover fill */
  transition: opacity .4s var(--ease-spring), transform .4s var(--ease-spring), color .4s var(--ease-spring);
}
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(1) { transition-delay: 0s, 0s, 0s; }     /* Framer: 0 / .1 / .2 / .2 s */
.menu-open .menu a:nth-child(2) { transition-delay: .1s, .1s, 0s; }
.menu-open .menu a:nth-child(3) { transition-delay: .2s, .2s, 0s; }
.menu-open .menu a:nth-child(4) { transition-delay: .2s, .2s, 0s; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { color: var(--c-white); outline: none; }
/* Framer's hover variant also shows a white chevron (Material "ChevronRight", 80 px at the 100 px size) */
.menu a::after {
  content: ""; display: none; flex: none; width: .8em; height: .8em; background: var(--c-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.menu a:hover::after, .menu a:focus-visible::after { display: block; }

/* ── Index (the (01)…(05) service list) ──────────────────────────────── */
.index-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--col-gap); }
.index-list a { display: block; font: 800 18px/1.4 var(--f-body); text-transform: uppercase; }
.index-list a .t-index { display: block; margin-bottom: 6px; font: inherit; }   /* Framer: Inter 800, same as the label */
.index-list a:hover { color: var(--c-blue-link); }

/* ── Video banner (two clips, empty middle slot) ─────────────────── */
.banner {
  display: grid;
  grid-template-columns: 569px 1fr 569px;          /* Framer: two 569 × 258 clips */
  align-items: center;
  height: 339px;
}
.banner__video { height: 258px; }
.banner__middle { height: 100%; }

/* ── Framed copy: bracket marks at the four corners ──────────────────────
   <div class="framed"> … <span class="corners" aria-hidden="true"><i></i><i></i><i></i><i></i></span></div>
   The mark is Framer's own PNG (a top-left corner), rotated for the other three. */
.framed {
  position: relative;
  padding: calc(var(--corner) * .4) calc(var(--corner) + 12px);   /* copy never runs under a mark */
  min-height: calc(var(--corner) * 2 + var(--s-2));                /* top and bottom marks never touch */
  display: flex; flex-direction: column; justify-content: center;
}
.framed > .corners { position: absolute; inset: 0; pointer-events: none; }
.corners i {
  position: absolute; width: var(--corner); height: var(--corner);
  background: var(--corner-img, url("../media/sRQhSZZyHCyOArqrXstMKWpfQU-7f3c941d.png")) center / cover no-repeat;
}
.theme-dark .corners i { --corner-img: url("../media/OnuqZV7qBQPFifsHF6uNc9SLmE-24df78c2.png"); }
.corners i:nth-child(1) { top: 0;    left: 0; }
.corners i:nth-child(2) { top: 0;    right: 0;  transform: rotate(90deg); }
.corners i:nth-child(3) { bottom: 0; right: 0;  transform: rotate(180deg); }
.corners i:nth-child(4) { bottom: 0; left: 0;   transform: rotate(-90deg); }
.framed--lg { --corner: var(--corner-lg); }

/* ── Spec list (— item__detail) ──────────────────────────────────────── */
.spec { font: 700 var(--t-small)/var(--lh-small) var(--f-body); text-transform: uppercase; }
.spec li + li { margin-top: 0; }
.spec li::before { content: "- "; }
.spec--dash { text-transform: none; }
.spec--dash li::before { content: "— "; }
.spec--plain li::before { content: none; }
.spec .sub { display: block; padding-left: 1ch; }

/* ── Audio bar (fixed bottom) ────────────────────────────────────────── */
/* Always pinned to the bottom of the viewport, on every page and above the open menu.
   It must stay a direct child of <body>: a transformed ancestor would make "fixed" scroll with the page
   (site.js moves it back to <body> if an edit ever nests it). */
.player {
  position: fixed; inset: auto 0 0; z-index: 45;                                   /* above the menu (40), under the header (50) */
  height: calc(80px + env(safe-area-inset-bottom, 0px)); padding: 0 16px env(safe-area-inset-bottom, 0px);   /* iPhone home-bar area */
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-black); border-top: 1px solid #282828; color: var(--c-white);
  font-family: var(--f-body); font-weight: 400;
  opacity: .25; transition: opacity var(--dur-fast) ease-in-out;
}
.player:hover, .player:focus-within, .player.is-playing { opacity: 1; }
.player__track { display: flex; align-items: center; gap: 12px; width: 30%; min-width: 150px; }
.player__title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.player__artist { font-size: 12px; color: var(--c-grey-text); }
.player__center { display: flex; flex-direction: column; align-items: center; width: 40%; max-width: 700px; }
.player__buttons { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.player button { border: 0; background: none; color: var(--c-grey-text); cursor: pointer; padding: 5px; display: flex; }
.player button:hover, .player button[aria-pressed="true"] { color: var(--c-white); }
.player button[aria-pressed="true"] { color: #1db954; }
.player .player__play { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--c-white); color: var(--c-black); justify-content: center; align-items: center; }
.player__progress { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-grey-text); font-variant-numeric: tabular-nums; }
.player__progress span { min-width: 30px; text-align: center; }
.player__volume { width: 30%; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.player input[type=range] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #fff var(--fill, 0%), var(--c-grey-line) var(--fill, 0%));
}
.player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; }
.player input[type=range]:hover::-webkit-slider-thumb { opacity: 1; }
.player__seek { flex: 1; }
.player__vol { width: 80px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { min-height: 311px; padding-top: 51px; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }  /* room for the audio bar */
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.site-footer small { font: 700 var(--t-micro)/1.2 var(--f-body); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font: 700 var(--t-micro)/1.2 var(--f-body); text-transform: uppercase; }
.footer-nav a:hover { color: var(--c-blue-link); }

/* ── Background animations (Unicorn Studio slots, every page) ─────────────
   <section class="… has-us"><div class="us-bg us-bg--…" data-us-project="<id>" data-us-dpi="1.5"
   data-us-scale="1" data-us-fps="60" aria-hidden="true"></div> … </section>
   An empty data-us-project stays off. Loader: site.js → initUnicorn(). */
.has-us { position: relative; }
.has-us > :not(.us-bg) { position: relative; z-index: 1; }
.us-bg { position: absolute; z-index: 0; overflow: hidden; }
.us-bg:not([data-us-project]), .us-bg[data-us-project=""] { display: none; }
.us-bg--fill   { inset: 0; }                                                /* the whole section */
.us-bg--footer { left: 0; right: 0; bottom: -7px; height: 290px; }          /* Framer: 290px, bottom -7 */

/* ── Motion ───────────────────────────────────────────────────────────────
   data-reveal="up"       fade + 24px rise when scrolled into view
   data-reveal="letters"  per-letter blur-in — Framer's exact effect (blur 10px, y 10px)
   Only active once site.js adds .js to <html>, so the page is readable without JS. */
.js [data-reveal="up"] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js [data-reveal="up"].is-in { opacity: 1; transform: none; }
.js [data-reveal="letters"] .ch {
  display: inline-block; opacity: .001; filter: blur(10px); transform: translateY(10px);
  /* Framer: spring, bounce 0, 0.4 s per letter, 50 ms apart (Framer starts it on page load; here it
     starts when the word scrolls into view, so it is seen) */
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out), transform .4s var(--ease-out);
  transition-delay: calc(var(--i) * var(--stagger));
}
.js [data-reveal="letters"].is-in .ch { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}

@media (max-width: 900px) {
  .banner { grid-template-columns: 1fr 1fr; height: auto; }
  .banner__video { height: 180px; }
  .banner__middle { display: none; }
  .index-list { grid-template-columns: 1fr 1fr; row-gap: var(--s-3); }
  .player__volume { display: none; }
  .player__track { width: auto; }
  .player__center { width: 55%; }
  .site-footer .wrap { flex-direction: column; }
}

/* ── Sign-up form + newsletter pop-up (site.js initSubscribe / initNewsletterPop → supabase/functions/mail; 2026-11-17) ── */
.subscribe { display: flex; flex-wrap: wrap; gap: var(--s-1); max-width: 520px; }
.subscribe input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid currentColor; background: none; color: inherit; font: 400 16px/1.2 var(--f-body); }
.subscribe button { padding: 12px 18px; border: 1px solid var(--c-black); background: var(--c-black); color: var(--c-white); cursor: pointer; font: 700 13px/1 var(--f-body); text-transform: uppercase; }
.blog--dark .subscribe button, .theme-dark .subscribe button { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); }
.subscribe button:disabled { opacity: .5; cursor: wait; }
.subscribe__msg { flex-basis: 100%; min-height: 1.4em; font: 400 var(--t-small)/1.4 var(--f-body); }
.subscribe.is-done input, .subscribe.is-done button { display: none; }

.nl-pop { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 32px));
  padding: var(--s-3); background: var(--c-black); color: var(--c-white); border: 1px solid #333; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: translateY(16px); opacity: 0; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.nl-pop.is-open { transform: none; opacity: 1; }
.nl-pop__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: inherit; font: 400 22px/1 var(--f-body); cursor: pointer; opacity: .6; }
.nl-pop__x:hover { opacity: 1; }
.nl-pop__k { font: 700 12px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.nl-pop__t { margin: 6px 0 8px; font: 700 22px/1.15 var(--f-display); text-transform: uppercase; }
.nl-pop__p { margin-bottom: var(--s-2); font: 400 15px/1.5 var(--f-body); opacity: .8; }
.nl-pop .subscribe button { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); }
.menu-open .nl-pop { display: none; }   /* never over the open menu */
