/* =====================================================================
   PiMata — website design prototype
   Design system tokens map 1:1 to Squarespace 7.1 Site Styles
   (see BUILD-GUIDE.md and squarespace/custom.css)
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600&display=swap");

:root {
  /* ---- Colour ---- */
  --ink: #0d1114;          /* Carbon — darkest sections, body text on light */
  --ink-2: #161d22;        /* Graphite — dark cards */
  --teal: #073546;         /* PiMata Teal — brand primary (sampled from logo) */
  --teal-700: #0b4a60;     /* Teal hover / secondary dark */
  --teal-400: #2f8aa3;     /* Teal mid — links on light */
  --cyan: #6fd6cf;         /* Lattice Cyan — accent on dark only */
  --paper: #f4f3ef;        /* Paper — light alt section */
  --white: #ffffff;
  --concrete: #cfcbc2;     /* Concrete — hairlines on paper, tags */
  --line: #e1dfd9;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #5b666e;
  --muted-dark: #9fb0b8;

  /* ---- Type ---- */
  --f-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* ---- Layout ---- */
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 152px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;           /* 17px — Paragraph 2 */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* =====================================================================
   TYPE SCALE  H1–H6  (desktop → mobile via clamp)
   ===================================================================== */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }

h1 {                                  /* Hero statement — once per page */
  font-family: var(--f-head);
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);    /* 44 → 88px */
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {                                  /* Section title */
  font-family: var(--f-head);
  font-size: clamp(2rem, 4.2vw, 3.5rem);       /* 32 → 56px */
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h3 {                                  /* Card / feature title */
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 2.3vw, 2rem);       /* 24 → 32px */
  line-height: 1.12;
  letter-spacing: -0.018em;
}
h4 {                                  /* Sub-head / list title */
  font-family: var(--f-body);
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);/* 18 → 21px */
  line-height: 1.35;
  letter-spacing: -0.008em;
  font-weight: 600;
}
h5, .eyebrow {                        /* Eyebrow / kicker above titles */
  font-family: var(--f-mono);
  font-size: 0.8125rem;                        /* 13px */
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
h6, .label {                          /* Data label / caption / meta */
  font-family: var(--f-mono);
  font-size: 0.75rem;                          /* 12px */
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.lead  { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; } /* Paragraph 1 */
.small { font-size: 0.875rem; line-height: 1.55; }                            /* Paragraph 3 */
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.on-dark .muted, .dark .muted { color: var(--muted-dark); }
.accent { color: var(--teal-400); }
.dark .accent, .on-dark .accent { color: var(--cyan); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section.tight { padding: clamp(56px, 6vw, 88px) 0; }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: var(--white); }
.teal { background: var(--teal); color: var(--white); }
.teal .muted { color: rgba(255,255,255,.72); }
.lattice { background-image: url("assets/images/lattice-light.svg"); background-size: 1200px 800px; }
.lattice.teal, .lattice.dark { background-blend-mode: normal; }
.lattice-fade { position: relative; isolation: isolate; }
.lattice-fade::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background: url("assets/images/lattice-light.svg");
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
}
.paper.lattice-fade::before, .light-lattice::before {
  background: url("assets/images/lattice-dark.svg"); opacity: .09;
}

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split.wide-right { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 960px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: 1fr; }
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g-2, .g-4 { grid-template-columns: 1fr; }
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h5 { margin-bottom: 18px; color: var(--teal-400); }
.dark .section-head h5, .teal .section-head h5, .on-dark h5 { color: var(--cyan); }
.section-head h2 + p { margin-top: 20px; }
.rule { width: 48px; height: 2px; background: currentColor; opacity: .35; margin: 24px 0; border: 0; }

/* =====================================================================
   BUTTONS  (Squarespace: Primary / Secondary / Tertiary)
   ===================================================================== */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em;
  padding: 15px 26px; border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { border-color: currentColor; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-primary, .dark .btn-primary, .teal .btn-primary { background: var(--white); color: var(--ink); }
.on-dark .btn-primary:hover, .dark .btn-primary:hover, .teal .btn-primary:hover { background: var(--cyan); }
.on-dark .btn-secondary, .dark .btn-secondary, .teal .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.55); }
.on-dark .btn-secondary:hover, .dark .btn-secondary:hover, .teal .btn-secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.link-arrow {
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; gap: 10px; align-items: center; color: var(--teal-400);
}
.dark .link-arrow, .on-dark .link-arrow, .teal .link-arrow { color: var(--cyan); }
.link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow .arr { transition: transform .25s var(--ease); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s;
  color: var(--white); background: rgba(13,17,20,.94); box-shadow: 0 1px 0 var(--line-dark);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .btn-primary { background: var(--white); color: var(--ink); }
.site-header .btn-primary:hover { background: var(--cyan); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header .logo .l-dark { display: none; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.2vw, 36px); align-items: center; }
.site-header nav a {
  text-decoration: none; font-size: .9375rem; font-weight: 500; position: relative; padding: 6px 0;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .btn { padding: 11px 20px; font-size: .875rem; }
/* transparent over a dark hero */
.site-header.over-hero { background: transparent; box-shadow: none; color: var(--white); backdrop-filter: none; }
.site-header.over-hero .btn-primary { background: var(--white); color: var(--ink); }
.site-header nav .nav-contact { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }
@media (max-width: 1080px) {
  .site-header nav { display: none; }
  .menu-toggle { display: block; }
  .site-header .bar > .btn { display: none; }
  /* backdrop-filter makes the header the containing block for fixed children,
     which would clip the full-screen menu to the header's 84px — drop it while open */
  .site-header.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .site-header.open nav {
    display: block; position: fixed; top: 84px; left: 0; right: 0; height: calc(100dvh - 84px);
    overflow-y: auto; background: var(--ink); color: var(--white); padding: 32px var(--gutter);
  }
  .site-header.open nav .nav-contact { display: block; }
  .site-header.open nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-header.open nav a { font-family: var(--f-head); font-size: 2rem; letter-spacing: -.02em; }
}

/* =====================================================================
   HERO — full-screen background video
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; color: var(--white); display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {                              /* legibility scrim: Squarespace "overlay" */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,20,.6) 0%, rgba(13,17,20,.2) 28%, rgba(13,17,20,.45) 58%, rgba(13,17,20,.92) 100%),
    linear-gradient(90deg, rgba(7,53,70,.78) 0%, rgba(7,53,70,.35) 45%, rgba(7,53,70,0) 75%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 8vw, 112px); padding-top: 140px; }
.hero h5 { color: var(--cyan); margin-bottom: 24px; }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 560px; margin-top: 28px; color: rgba(255,255,255,.86); }
.hero-foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}
.scroll-cue { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 44px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--white); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 44px; } }

/* Interior page hero */
.page-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,17,20,.92) 0%, rgba(13,17,20,.55) 55%, rgba(13,17,20,.2) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(150px, 18vw, 230px); padding-bottom: clamp(64px, 8vw, 112px); }
.page-hero h5 { color: var(--cyan); margin-bottom: 22px; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 620px; margin-top: 26px; color: rgba(255,255,255,.84); }
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px clamp(16px, 2.4vw, 36px) 8px 0; border-left: 1px solid var(--line-dark); padding-left: clamp(16px, 2.4vw, 36px); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-family: var(--f-head); font-weight: 400; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.stat .num small { font-size: .5em; letter-spacing: -.02em; }
.stat h4 { margin-top: 16px; font-size: 1rem; }
.stat .label { margin-top: 6px; color: var(--muted-dark); }
.paper .stat, .light .stat { border-color: var(--line); }
.paper .stat .label, .light .stat .label { color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* =====================================================================
   MARQUEE  (Squarespace: Marquee block)
   ===================================================================== */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--ink); color: var(--white); }
.marquee .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-head); font-size: clamp(1.4rem, 2.6vw, 2.25rem); letter-spacing: -0.02em; padding: 22px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: ""; width: 14px; height: 16px; margin: 0 clamp(24px, 3vw, 44px); background: var(--cyan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* =====================================================================
   INDUSTRY POSTER CARDS  (Squarespace: Image block, "Poster" layout)
   ===================================================================== */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.poster {
  position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; color: var(--white); text-decoration: none; border-radius: var(--radius);
  background: var(--ink);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,20,0) 30%, rgba(13,17,20,.92) 100%); transition: background .5s; }
.poster .body { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2vw, 30px); z-index: 2; }
.poster .idx { position: absolute; top: 22px; left: clamp(20px, 2vw, 30px); z-index: 2; color: rgba(255,255,255,.75); }
.poster h3 { margin-bottom: 12px; }
.poster p { font-size: .9375rem; color: rgba(255,255,255,.82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; margin: 0; }
.poster .link-arrow { margin-top: 18px; color: var(--cyan); }
.poster:hover img { transform: scale(1.06); }
.poster:hover::after { background: linear-gradient(180deg, rgba(7,53,70,.15) 0%, rgba(7,53,70,.94) 100%); }
.poster:hover p { max-height: 8em; opacity: 1; }
@media (hover: none) { .poster p { max-height: none; opacity: 1; } }
@media (max-width: 960px) { .posters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr; } .poster { aspect-ratio: 4/3.6; } }

/* =====================================================================
   FEATURE / PILLAR
   ===================================================================== */
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.dark .pillar, .teal .pillar { border-color: var(--line-dark); }
.pillar .label { color: var(--teal-400); margin-bottom: 40px; display: block; }
.dark .pillar .label, .teal .pillar .label { color: var(--cyan); }
.pillar h3 { margin-bottom: 14px; }
.hexnum {
  width: 46px; height: 52px; display: grid; place-items: center; margin-bottom: 28px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--teal); color: var(--white); font-family: var(--f-mono); font-size: .8125rem;
}
.dark .hexnum, .teal .hexnum { background: var(--cyan); color: var(--ink); }

/* =====================================================================
   SPLIT IMAGE + DATA PANEL  (concrete)
   ===================================================================== */
.data-split { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 640px; }
.data-split .media { position: relative; overflow: hidden; }
.data-split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.data-split .media .tag { position: absolute; left: 24px; bottom: 24px; background: rgba(13,17,20,.75); color: var(--white); padding: 8px 12px; border-radius: 2px; }
.data-split .panel { background: var(--ink); color: var(--white); padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.data-list { margin-top: 36px; }
.data-row { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.data-row:last-child { border-bottom: 1px solid var(--line-dark); }
.data-row .num { font-family: var(--f-head); font-size: clamp(2.25rem, 3.4vw, 3rem); letter-spacing: -0.04em; line-height: 1; color: var(--cyan); }
.data-row h4 { font-weight: 500; }
@media (max-width: 960px) { .data-split { grid-template-columns: 1fr; } .data-split .media { min-height: 360px; } }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 16px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 76px; height: 1px; background: var(--line-dark); }
.tl { position: relative; padding-right: 20px; }
.tl .year { font-family: var(--f-head); font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -0.04em; line-height: 1; height: 56px; }
.tl .node { width: 16px; height: 18px; margin: 12px 0 28px; background: var(--ink); border: 0; position: relative; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.tl .node::after { content: ""; position: absolute; inset: 2px; background: var(--cyan); clip-path: inherit; }
.tl.now .node::after { background: var(--white); }
.tl h4 { font-weight: 500; }
.tl .label { color: var(--muted-dark); margin-bottom: 8px; display: block; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; padding-left: 36px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl { padding: 0 0 36px; }
  .tl .node { position: absolute; left: -36px; top: 10px; margin: 0; }
  .tl .year { height: auto; margin-bottom: 10px; }
}

/* =====================================================================
   MARKET CARDS
   ===================================================================== */
.market { background: var(--teal); color: var(--white); border: 0; border-radius: var(--radius); padding: clamp(24px, 2.4vw, 36px); position: relative; overflow: hidden; }
.market .label { color: var(--cyan); }
.market .big { font-family: var(--f-head); font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -0.045em; margin: 48px 0 16px; }
.market .big small { font-size: .45em; color: rgba(255,255,255,.6); letter-spacing: 0; margin-left: 4px; }
.market p { color: rgba(255,255,255,.72); font-size: .9375rem; }
.market p b { color: var(--white); font-weight: 600; }
.market .bar { height: 3px; background: rgba(255,255,255,.08); margin-top: 24px; border-radius: 2px; overflow: hidden; }
.market .bar i { display: block; height: 100%; background: var(--cyan); }
.source { margin-top: 28px; color: var(--muted); }
.dark .source { color: var(--muted-dark); }

/* =====================================================================
   PRODUCT CARDS + SPEC TABLE
   ===================================================================== */
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(7,53,70,.35); }
.product .ph { aspect-ratio: 16/10; background: #f7f7f5; overflow: hidden; position: relative; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .ph .chip { position: absolute; top: 16px; left: 16px; }
.product .bd { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product .label { color: var(--muted); }
.product h3 { margin: 10px 0 12px; }
.product .kv { margin: 22px 0 26px; display: grid; gap: 0; }
.product .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.product .kv dt { color: var(--muted); }
.product .kv dd { margin: 0; font-weight: 600; text-align: right; }
.product .link-arrow { margin-top: auto; }
.chip { display: inline-block; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; background: var(--teal); color: var(--white); }
.chip.light { background: var(--white); color: var(--teal); border: 1px solid var(--line); }
.chip.ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .8; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.spec { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9375rem; }
table.spec th, table.spec td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.spec tbody th { font-weight: 500; color: var(--muted); width: 220px; }
table.spec td b { font-weight: 600; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

/* =====================================================================
   SCIENCE MOSAIC (SEM / AFM)
   ===================================================================== */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 8px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 2px; background: #000; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s, transform 1s var(--ease); }
.mosaic figure::after { content: ""; position: absolute; inset: 0; background: var(--teal); mix-blend-mode: color; opacity: .55; transition: opacity .6s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figure:hover::after { opacity: .15; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.m-a { grid-column: span 3; grid-row: span 2; }
.m-b { grid-column: span 3; grid-row: span 1; }
.m-c { grid-column: span 2; grid-row: span 1; }
.m-d { grid-column: span 1; grid-row: span 1; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .m-a { grid-column: span 2; } .m-b, .m-c { grid-column: span 2; } .m-d { grid-column: span 1; } }

/* =====================================================================
   MEDIA HELPERS
   ===================================================================== */
.frame { border-radius: var(--radius); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-16-10 { aspect-ratio: 16/10; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-4-5 { aspect-ratio: 4/5; }
.caption { margin-top: 12px; color: var(--muted); }
.full-bleed { position: relative; height: clamp(360px, 52vw, 720px); overflow: hidden; }
.full-bleed img { width: 100%; height: 100%; object-fit: cover; }
.full-bleed .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,17,20,.75), rgba(13,17,20,0) 55%); }
.full-bleed .wrap { position: absolute; inset: auto 0 0 0; color: var(--white); padding-bottom: clamp(32px, 5vw, 64px); }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checklist li::before { content: ""; width: 12px; height: 14px; margin-top: 6px; background: var(--teal-400); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dark .checklist li::before, .teal .checklist li::before { background: var(--cyan); }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud span { font-size: .9375rem; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.dark .tagcloud span, .teal .tagcloud span { border-color: var(--line-dark); background: transparent; }

/* Application rows */
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.app-row:first-of-type { border-top: 0; }
.app-row.flip .media { order: 2; }
.app-row .media { aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; }
.app-row .media img { width: 100%; height: 100%; object-fit: cover; }
.app-row .num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: var(--teal-400); }
.app-row h2 { margin: 14px 0 8px; }
.app-row h3 { color: var(--muted); font-weight: 400; margin-bottom: 24px; }
.app-row .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.app-row .lists h6 { color: var(--muted); margin-bottom: 4px; }
.app-row .lists .checklist { margin-top: 12px; gap: 10px; font-size: .9688rem; }
.callout { border-left: 3px solid var(--teal-400); padding: 6px 0 6px 20px; margin: 4px 0 20px; font-family: var(--f-head); font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
@media (max-width: 860px) { .app-row { grid-template-columns: 1fr; } .app-row.flip .media { order: 0; } .app-row .lists { grid-template-columns: 1fr; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { padding: 28px 24px 0 0; border-top: 2px solid var(--teal); position: relative; }
.step + .step { padding-left: 0; }
.step .label { color: var(--teal-400); }
.step h4 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Case study cards */
.case { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(7,53,70,.35); }
.case .ph { aspect-ratio: 16/10; overflow: hidden; }
.case .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .ph img { transform: scale(1.04); }
.case .bd { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.case .metric { font-family: var(--f-head); font-size: clamp(2.25rem, 3.4vw, 3rem); letter-spacing: -0.04em; color: var(--teal); line-height: 1; margin: 18px 0 10px; }
.case .link-arrow { margin-top: auto; padding-top: 22px; }

/* Team */
.person { text-decoration: none; }
.person .ph { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: #f7f7f7; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.15); }
.person:hover .ph img { transform: scale(1.03); filter: grayscale(0); }
.person h3 { margin-top: 22px; }
.person .label { color: var(--teal-400); margin-top: 8px; display: block; }
.person p { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.placeholder { background: repeating-linear-gradient(-45deg, rgba(7,53,70,.05) 0 8px, transparent 8px 16px); border: 1px dashed rgba(7,53,70,.35); border-radius: 2px; padding: 10px 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--teal-400); }
.dark .placeholder, .teal .placeholder { color: var(--cyan); border-color: rgba(111,214,207,.4); background: repeating-linear-gradient(-45deg, rgba(111,214,207,.06) 0 8px, transparent 8px 16px); }

/* Book feature */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.book .cover { position: relative; }
.book .cover img { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(7,53,70,.6); }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.reasons div { padding: 22px 18px 0 0; }
.reasons h6 { color: var(--teal-400); margin-bottom: 8px; }
.reasons p { font-size: .875rem; color: var(--muted); }
.reasons .on { position: relative; }
.reasons .on::before { content: ""; position: absolute; top: -1px; left: 0; right: 18px; height: 2px; background: var(--teal); }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } .reasons { grid-template-columns: 1fr 1fr; } }

.logos-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-row span { font-family: var(--f-head); font-size: 1.125rem; letter-spacing: -0.01em; color: var(--muted); }

/* News */
.news-item { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); text-decoration: none; }
.news-item .ph { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.news-item .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.news-item:hover .ph img { transform: scale(1.03); }
.news-item h3 { margin: 14px 0 18px; }
.news-item .label { color: var(--teal-400); }
@media (max-width: 860px) { .news-item { grid-template-columns: 1fr; } }

/* Contact */
.inquiry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inquiry a { display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; transition: background .3s, border-color .3s, color .3s; }
.inquiry a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.inquiry a .label { color: var(--cyan); }
.inquiry a:hover .label { color: var(--teal-400); }
.inquiry a h3 { font-size: 1.5rem; }
@media (max-width: 960px) { .inquiry { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .inquiry { grid-template-columns: 1fr; } }

form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--concrete); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--teal-400); outline-offset: 1px; border-color: transparent; }
form.contact textarea { min-height: 150px; resize: vertical; }
@media (max-width: 600px) { form.contact { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band h2 { max-width: 16ch; }
.cta-band .mark { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: .08; pointer-events: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 104px) 0 36px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo img { height: 36px; width: auto; margin-bottom: 22px; }
.site-footer h6 { color: var(--muted-dark); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.86); font-size: .9375rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; color: var(--muted-dark); }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; } }

/* =====================================================================
   MOTION — reveal on scroll  (Squarespace: Site Styles › Animations › "Fade")
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   BUILD NOTES OVERLAY  (prototype-only helper — not for Squarespace)
   ===================================================================== */
.sqs-note { display: none; }
body.show-notes .sqs-note {
  display: block; position: absolute; z-index: 40; top: 12px; right: 12px; max-width: 360px;
  background: #fff7d6; color: #3d3200; border: 1px solid #e5cf6b; border-radius: 4px; padding: 10px 12px;
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
body.show-notes .sqs-note b { display: block; font-weight: 600; margin-bottom: 2px; }
body.show-notes [data-src]::after {
  content: "SOURCE: " attr(data-src); display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0; text-transform: none; color: #8a6d00; background: #fff7d6; padding: 2px 6px; border-radius: 2px; width: fit-content; font-weight: 400; line-height: 1.4;
}
.notes-toggle {
  position: fixed; z-index: 60; right: 18px; bottom: 18px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); display: flex; gap: 8px; align-items: center;
}
.notes-toggle i { width: 8px; height: 8px; border-radius: 50%; background: #666; }
body.show-notes .notes-toggle i { background: #f2c94c; }
.section, .hero, .page-hero, .data-split, .marquee, .full-bleed { position: relative; }

/* Split interior hero (text + framed image) */
.page-hero.split-hero::after { background: radial-gradient(ellipse at 85% 30%, rgba(7,53,70,.65), rgba(13,17,20,0) 60%); }
.page-hero.split-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero.split-hero .art { position: relative; aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; }
.page-hero.split-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.split-hero .art figcaption { position: absolute; left: 14px; bottom: 12px; color: rgba(255,255,255,.85); }
@media (max-width: 960px) { .page-hero.split-hero .wrap { grid-template-columns: 1fr; } }
.duo img { filter: grayscale(1) contrast(1.1); }
.duo { position: relative; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--teal), #0d1114); mix-blend-mode: color; opacity: .75; pointer-events: none; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figures > div { padding: 28px 24px 0 0; }
.figures .num { font-family: var(--f-head); font-size: clamp(2.25rem, 3.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1; color: var(--teal); }
.figures p { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.figures h6 { margin-top: 10px; color: var(--teal-400); }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); }
.compare .go { background: #7a4a1d; background: linear-gradient(160deg, #8a5a2b, #4a2c12); color: #fff; }
.compare .g { background: linear-gradient(160deg, #20262b, #0d1114); color: #fff; }
.compare h3 { margin: 14px 0 14px; }
.compare p { color: rgba(255,255,255,.8); }
.compare .label { color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.note { font-size: .8125rem; color: var(--muted); max-width: 90ch; }
.sub-nav { position: sticky; top: 84px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; }
.sub-nav a { display: block; padding: 18px 0; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
.sub-nav a:hover { color: var(--teal); }
[id] { scroll-margin-top: 150px; }
