/* ==========================================================================
   Kernexa Innovation Company Limited
   Two colours: dark blue and white. Photos keep their own colour.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-normal.260c81a4759b.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --white: #fff;
  --paper: #fff;
  --paper-2: #eef2f7;
  --ink-950: #03060d;
  --ink-900: #03060d;
  --ink-800: #03060d;
  --ink-700: #141d31;
  --ink: #0a1020;
  --slate-700: #3b4761;
  --slate-500: #63718a;
  --slate-300: #c9d2df;
  --line: #e4e9f0;

  /* The palette is navy and white only. The old accent names now point at them. */
  --teal: var(--ink);
  --teal-deep: var(--ink);
  --teal-bright: #fff;
  --violet: var(--ink);
  --violet-bright: #fff;
  --blue: var(--ink);
  --blue-soft: #fff;
  --wa: #25d366;
  --wa-deep: #128c7e;

  --cyan: var(--ink); --purple: var(--ink); --green: var(--ink); --pink: var(--ink);

  --fg: var(--ink);
  --fg-2: var(--slate-700);
  --fg-3: var(--slate-500);
  --bg: var(--white);
  --hair: var(--line);
  --accent: var(--blue);
  --card: #fff;

  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 8vw, 120px);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-sm: 0 1px 2px rgba(10,16,32,.05), 0 2px 8px rgba(10,16,32,.04);
  --shadow: 0 2px 4px rgba(10,16,32,.04), 0 16px 40px -12px rgba(10,16,32,.14);
  --shadow-lg: 0 4px 10px rgba(10,16,32,.05), 0 40px 80px -24px rgba(10,16,32,.28);
  --nav-h: 76px;
}

.dark {
  --fg: #f2f5fa;
  --fg-2: #aeb9cc;
  --fg-3: #7a879e;
  --bg: var(--ink-900);
  --hair: rgba(255,255,255,.1);
  --accent: var(--blue-soft);
  --card: rgba(255,255,255,.04);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 28px; height: 28px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--paper { background: var(--paper); }
.section--flush { padding-bottom: 0; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--display); color: var(--fg); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 5.8vw, 5.4rem); line-height: 1.04; letter-spacing: -.032em; }
.h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.03em; line-height: 1.06; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); letter-spacing: -.028em; line-height: 1.1; }
.h3 { font-size: clamp(1.4rem, 2.1vw, 1.8rem); letter-spacing: -.02em; line-height: 1.2; }
.h4 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
em.accent, .accent-serif { font: inherit; letter-spacing: inherit; color: var(--blue); transition: color .7s var(--ease); }
.dark em.accent, .hero em.accent, .phero:not(.phero--light) em.accent { color: var(--blue-soft); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.body { color: var(--fg-2); text-wrap: pretty; }
.small { font-size: .9rem; color: var(--fg-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.measure { max-width: 60ch; }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .25s;
  isolation: isolate; overflow: hidden;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-700); opacity: 0; transition: opacity .35s var(--ease); }
@media (hover: hover) { .btn:hover::before { opacity: 1; } }
@media (hover: hover) { .btn:hover { box-shadow: 0 14px 34px -12px rgba(3,6,13,.55); } }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(4px); } }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light::before { background: #e4eaf3; }
@media (hover: hover) { .btn--light:hover { color: var(--ink); } }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn--ghost::before { display: none; }
@media (hover: hover) { .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); } }
.btn--glass { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn--glass::before { display: none; }
@media (hover: hover) { .btn--glass:hover { --btn-bg: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); } }
.btn--wa { --btn-bg: var(--ink); --btn-fg: #fff; transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease-out), box-shadow .35s; }
.btn--wa::before { display: none; }
@media (hover: hover) { .btn--wa:hover { --btn-bg: var(--ink-700); box-shadow: 0 14px 34px -12px rgba(3,6,13,.45); } }
.btn--sm { height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); position: relative; padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .45s var(--ease-out); opacity: .5; }
@media (hover: hover) { .link:hover::after { transform: scaleX(1); opacity: 1; } }
.link .i { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .link:hover .i { transform: translateX(3px); } }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; font-size: .78rem; font-weight: 550; color: var(--fg-2); background: var(--paper-2); }
.dark .tag { background: rgba(255,255,255,.07); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h);
  transition: transform .45s var(--ease-out), background-color .35s, box-shadow .35s, color .35s;
  color: var(--ink);
}
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 rgba(10,16,32,.06); opacity: 1; transition: opacity .35s; }
.nav-dark-top .nav:not(.is-scrolled) { color: #fff; }
.nav-dark-top .nav:not(.is-scrolled)::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); }
.brand__mark { flex: none; }
.brand__logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; line-height: 1; }
.brand__sub { display: block; font-family: var(--body); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .62; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; padding: 10px 15px; border-radius: 8px; font-size: .95rem; font-weight: 550; opacity: .82; transition: opacity .2s, background-color .25s; }
@media (hover: hover) { .nav__link:hover { opacity: 1; background: rgba(127,140,160,.12); } }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav-dark-top .nav:not(.is-scrolled) .btn--nav { --btn-bg: #fff; --btn-fg: var(--ink); }
@media (hover: hover) { .nav-dark-top .nav:not(.is-scrolled) .btn--nav:hover { --btn-fg: #fff; } }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; position: relative; }
.nav__burger span, .nav__burger span::before { display: block; width: 20px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav__burger span { position: relative; transform: translateY(-3.5px); }
.nav__burger span::before { content: ""; position: absolute; top: 7px; }
.menu-open .nav__burger span { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span::before { transform: translateY(-7px) rotate(-90deg); }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--teal); }

.sheet {
  position: fixed; inset: 0; z-index: 85; background: var(--ink-900); color: #fff;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 38px); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu-open .sheet { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.menu-open .nav { color: #fff; }
.menu-open .nav::before { opacity: 0; }
.sheet__links a { display: block; font-family: var(--display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .2s; }
.sheet__links a.is-active { color: var(--teal-bright); }
.menu-open .sheet__links a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .05s); }
.sheet__foot { display: grid; gap: 14px; color: #aeb9cc; }
.sheet__foot a { color: #fff; }
@media (max-width: 1100px) { .nav__links { display: none; } .nav__burger { display: grid; } }
@media (max-width: 520px) { .btn--nav { display: none; } }

/* ---------- Hero (homepage) ----------
   Full-width split: solid navy text column on the left, full-colour
   photography running to the right edge. Columns follow .wrap so the
   text lines up with the navigation and every section below. */
.hero {
  --side: minmax(var(--gutter), 1fr);
  position: relative; display: grid;
  grid-template-columns: [full-start] var(--side) [content-start] minmax(0, 700px) [mid] minmax(0, 580px) [content-end] var(--side) [full-end];
  min-height: max(640px, 100svh); padding-top: var(--nav-h);
  background: var(--ink-950); color: #fff; overflow: hidden; isolation: isolate;
}
.hero__content { grid-column: content-start / mid; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vh, 64px) clamp(28px, 4vw, 64px) clamp(48px, 8vh, 96px) 0; }
.hero__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-bottom: 30px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hero__status > span + span { position: relative; padding-left: 22px; }
.hero__status > span + span::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: currentColor; opacity: .6; }
.hero__status time { color: #fff; font-variant-numeric: tabular-nums; }
.no-js .hero__status [data-clock-wrap] { display: none; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--teal-bright); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.hero__title { color: #fff; font-size: clamp(2.3rem, 4.1vw, 3.85rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 26px; }
.hero__title em.accent { font-weight: 700; }
.hero__text { color: rgba(255,255,255,.74); max-width: 46ch; margin-bottom: 36px; font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.65; }

/* Rotating headline word */
.hero__title .split-line.has-rotator { display: block; }
.rotator { display: inline-block; min-height: 1.06em; color: var(--blue-soft); transition: color .7s var(--ease); }
.rotator::after { content: ""; display: inline-block; width: .07em; height: .82em; margin-left: .08em; vertical-align: -.06em; background: currentColor; animation: caret 1.05s steps(1) infinite; }
.rotator.is-typing::after { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
@media (hover: hover) { .hero:is(:hover, .is-lit) .rotator { color: var(--teal-bright); } }

.hero__visual { grid-column: mid / full-end; position: relative; min-height: 100%; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--ink-800); clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-in-out) .1s; }
.is-loaded .hero__media, .no-js .hero__media { clip-path: inset(0); }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero__slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
.hero__slide:nth-child(2n).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.1) translate3d(1%, .5%, 0); } to { transform: scale(1.01) translate3d(0, 0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.01) translate3d(-.5%, 0, 0); } to { transform: scale(1.1) translate3d(1%, -.5%, 0); } }

.hero__strip { display: flex; align-items: center; gap: 18px; margin-top: 44px; font-size: .86rem; color: rgba(255,255,255,.66); }
.hero__caption { min-width: 13ch; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { position: relative; width: 34px; height: 2px; background: rgba(255,255,255,.22); }
.hero__dot::before { content: ""; position: absolute; inset: -12px -3px; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dot-progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@media (hover: hover) { .hero__dot:hover { background: rgba(255,255,255,.45); } }
@keyframes dot-progress { to { transform: scaleX(1); } }

.hero__card { position: absolute; z-index: 3; left: calc(-1 * clamp(48px, 6vw, 96px)); bottom: clamp(40px, 8vh, 80px); display: flex; align-items: center; gap: 16px; width: min(340px, 80%); padding: 12px 20px 12px 12px; border-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); transition: transform .5s var(--ease-out), box-shadow .5s; }
@media (hover: hover) { .hero__card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); } }
.hero__card-shot { flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 2px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.hero__card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__card-text { display: grid; gap: 3px; min-width: 0; }
.hero__card-text small { font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.hero__card-text b { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__card-text > span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--fg-2); }
@media (hover: hover) { .hero__card:hover .hero__card-text > span { color: var(--teal-deep); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; min-height: 0; }
  .hero__content { grid-column: content-start / content-end; padding: 36px 0 44px; }
  .hero__visual { grid-column: full-start / full-end; height: min(80vw, 480px); }
  .hero__card { left: var(--gutter); bottom: 18px; width: min(340px, calc(100% - 2 * var(--gutter))); }
}
/* Phones: drop the location/clock line and keep both hero buttons on one row. */
@media (max-width: 600px) {
  .hero__status { display: none; }
  .hero .btn-row { gap: 10px; }
  .hero .btn-row .btn { flex: 1 1 auto; height: 50px; padding: 0 12px; gap: 6px; font-size: .9rem; }
}
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.split-line > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--line) * 55ms + var(--base, 0ms)); }
.is-split.is-in .split-line > span { transform: none; }

/* ---------- Page header (inner pages) ---------- */
.phero { position: relative; color: #fff; background: var(--ink-950); overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(56px, 8vw, 112px)) 0 clamp(56px, 7vw, 96px); }
/* Inner-page banner: compact. Headline on the left, the page photo on the right
   in a square frame marked by two viewfinder corners. */
.phero--grid {
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + clamp(40px, 5vw, 76px)) 0 clamp(52px, 6vw, 88px);
  grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [content-start] minmax(0, 760px) [mid] minmax(0, 520px) [content-end] minmax(var(--gutter), 1fr) [full-end];
}
.phero__content { grid-column: content-start / content-end; }
.phero--split .phero__content { grid-column: content-start / mid; padding-right: clamp(28px, 4vw, 72px); }
.phero__media { grid-column: mid / content-end; justify-self: end; position: relative; width: min(calc(100% - 28px), 440px); aspect-ratio: 16 / 10; margin: 14px; background: var(--ink-800); }
.phero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .9s var(--ease); }
.phero__media::before, .phero__media::after { content: ""; position: absolute; z-index: 1; width: 28px; height: 28px; border: 0 solid rgba(255,255,255,.55); pointer-events: none; transition: transform .8s var(--ease-out), border-color .6s var(--ease); }
.phero__media::before { top: -14px; left: -14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.phero__media::after { right: -14px; bottom: -14px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
@media (hover: hover) { .phero:is(:hover, .is-lit) .phero__media::before { transform: translate(-5px, -5px); border-color: var(--teal-bright); } }
@media (hover: hover) { .phero:is(:hover, .is-lit) .phero__media::after { transform: translate(5px, 5px); border-color: var(--teal-bright); } }
@media (max-width: 900px) {
  .phero--grid { grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; }
  .phero--split .phero__content { grid-column: content-start / content-end; padding-right: 0; }
  .phero__media { grid-column: content-start / content-end; justify-self: stretch; width: auto; margin: 44px 14px 0; }
}
.phero .h1 { color: #fff; max-width: 17ch; font-size: clamp(2.1rem, 3.6vw, 3.25rem); font-weight: 400; letter-spacing: -.03em; }
.phero .h1 em.accent { font-weight: 700; }
.phero .lead { color: rgba(255,255,255,.76); max-width: 54ch; margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 28px; }
@media (hover: hover) { .crumbs a:hover { color: #fff; } }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.phero--light { background: var(--paper); color: var(--ink); padding-bottom: clamp(48px, 6vw, 80px); }
.phero--light .h1 { color: var(--ink); }
.phero--light .lead { color: var(--fg-2); }
.phero--light .crumbs { color: var(--fg-3); }
@media (hover: hover) { .phero--light .crumbs a:hover { color: var(--ink); } }

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.clients__title { text-align: center; font-size: .86rem; font-weight: 550; color: var(--fg-3); margin-bottom: 30px; }
.marquee { --gap: clamp(44px, 6vw, 88px); display: flex; overflow: hidden; gap: var(--gap); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: var(--gap); flex: none; min-width: 100%; justify-content: space-around; animation: marquee 34s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.logo-chip { display: inline-flex; align-items: center; gap: 14px; height: 64px; color: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; white-space: nowrap; }
@media (hover: hover) { .logo-chip:hover { transform: translateY(-2px); } }
.logo-chip img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.logo-chip--wide img { height: 44px; }
.logo-chip span { font-family: var(--display); font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em; }
.logo-chip--text span { font-size: 1.5rem; letter-spacing: -.035em; }

/* ---------- Intro / statement ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro__text .h2 { margin-bottom: 28px; }
.intro__text .lead { margin-bottom: 36px; }
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage__a, .collage__b { position: absolute; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.collage__a { inset: 0 18% 22% 0; }
.collage__b { inset: 46% 0 0 34%; border: 8px solid #fff; }
.collage img { width: 100%; height: 118%; object-fit: cover; }
.collage__badge { position: absolute; left: -2%; bottom: 8%; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; }
.collage__badge .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ink); color: var(--teal-bright); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .collage { max-width: 560px; } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.scard {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 34px 32px 30px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
@media (hover: hover) { .scard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(3,6,13,.3), var(--shadow); } }
@media (hover: hover) { .scard:hover::before { opacity: 1; } }
.scard__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: var(--teal-bright); margin-bottom: 34px; transition: transform .5s var(--ease-out), background .4s; }
@media (hover: hover) { .scard:hover .scard__icon { transform: rotate(-6deg) scale(1.06); background: var(--teal-deep); color: #fff; } }
.scard__title { margin-bottom: 12px; }
.scard__text { color: var(--fg-2); font-size: .98rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scard__more { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.scard__more .i { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .scard:hover .scard__more .i { transform: translateX(4px); } }
.dark .scard { background: rgba(255,255,255,.035); }
.dark .scard__icon { background: rgba(255,255,255,.08); }

/* ---------- Work showcase ---------- */
.work-list { display: grid; gap: clamp(72px, 10vw, 140px); }
.work { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.work:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.work:nth-child(even) .work__media { order: 2; }
.work__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.work__logo { width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); display: grid; place-items: center; padding: 8px; flex: none; }
.work__logo img { max-height: 100%; width: auto; object-fit: contain; }
.work__sector { font-size: .84rem; color: var(--fg-3); line-height: 1.35; }
.work__sector b { display: block; color: var(--fg); font-weight: 600; }
.work__title { margin-bottom: 16px; }
.work__text { color: var(--fg-2); margin-bottom: 24px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.work__actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
@media (max-width: 900px) { .work, .work:nth-child(even) { grid-template-columns: 1fr; } .work:nth-child(even) .work__media { order: 0; } }

.browser { position: relative; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(10,16,32,.08), var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .8s var(--ease-out), box-shadow .6s; }
.browser__bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #f3f5f9; border-bottom: 1px solid #e6eaf1; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9dee7; }
.browser__dots i:nth-child(1) { background: #ff6159; } .browser__dots i:nth-child(2) { background: #ffbd2e; } .browser__dots i:nth-child(3) { background: #28c941; }
.browser__url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; color: var(--fg-3); box-shadow: inset 0 0 0 1px #e6eaf1; overflow: hidden; white-space: nowrap; }
.browser__url svg { width: 11px; height: 11px; color: #1f9d55; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.browser__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser__scroll { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.browser__scroll img { width: 100%; height: auto; transform: translateY(0); transition: transform var(--scroll-ms, 6s) cubic-bezier(.45,.05,.4,1); }
.browser.is-scrolling .browser__scroll { opacity: 1; }
.browser.is-scrolling .browser__scroll img { transform: translateY(var(--scroll-to, 0)); }
.browser__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; background: rgba(10,16,32,.78); color: #fff; font-size: .78rem; font-weight: 550; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s, transform .3s; }
.browser.is-scrolling .browser__hint { opacity: 0; transform: translate(-50%, 6px); }
@media (hover: hover) { .work__media:hover .browser { box-shadow: 0 0 0 1px rgba(3,6,13,.3), 0 50px 100px -30px rgba(10,16,32,.4); } }
.phone-peek { position: absolute; right: -4%; bottom: -10%; width: 22%; min-width: 96px; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 19; z-index: 3; }
.phone-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }
.work__media { position: relative; }
.work:nth-child(even) .phone-peek { right: auto; left: -4%; }
@media (max-width: 600px) { .phone-peek { display: none; } }

/* Work grid cards (Work page) */
.wcard { display: flex; flex-direction: column; gap: 20px; }
.wcard .browser__screen { aspect-ratio: 16 / 10; }

/* ---------- Preview dialog ---------- */
.preview { margin: auto; width: min(1180px, 94vw); height: min(860px, 90vh); max-width: none; max-height: none; border: 0; border-radius: 22px; padding: 0; background: #0b111e; color: #fff; box-shadow: 0 60px 140px rgba(0,0,0,.6); overflow: hidden; }
.preview[open] { display: flex; flex-direction: column; animation: dialog-in .5s var(--ease-out); }
.preview::backdrop { background: rgba(3,6,13,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .35s; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.preview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.preview__title { font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; }
.preview__title small { color: #8f9bb1; font-weight: 450; font-size: .8rem; }
.preview__tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(255,255,255,.07); }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: .84rem; font-weight: 550; color: #aeb9cc; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: inherit; transition: background .2s; }
@media (hover: hover) { .icon-btn:hover { background: rgba(127,140,160,.16); } }
.preview__stage { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; justify-content: center; padding: 26px; background: #0b1220; }
.preview__frame { width: 100%; max-width: 1080px; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; align-self: flex-start; transition: max-width .6s var(--ease-out); }
.preview.is-mobile .preview__frame { max-width: 380px; border-radius: 34px; border: 10px solid #1a2233; }
.preview__frame img { width: 100%; height: auto; }
.preview__note { padding: 12px 22px; font-size: .8rem; color: #8f9bb1; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview__note a { color: var(--teal-bright); font-weight: 600; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; counter-reset: none; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.step__bar { height: 3px; border-radius: 3px; background: var(--hair); margin-bottom: 30px; overflow: hidden; }
.step__bar span { display: block; height: 100%; width: 100%; background: var(--teal-bright); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
.is-in .step__bar span, .step.is-in .step__bar span { transform: scaleX(calc((var(--i) + 1) / var(--n))); }
.step__title { margin-bottom: 10px; }
.step__text { color: var(--fg-2); font-size: .97rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.quote { padding: 36px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 26px; }
.quote .i { width: 34px; height: 34px; color: var(--teal); }
.quote blockquote { font-family: var(--display); font-size: 1.22rem; line-height: 1.45; letter-spacing: -.015em; color: var(--fg); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--fg-3); }
.quote figcaption b { display: block; color: var(--fg); font-weight: 600; }
.avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--teal-deep); color: #fff; font-weight: 650; font-family: var(--display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }
/* Team card: photo, name and Kernexa role (the headline),
   bio, and other organisations as a quiet footnote. */
.member { display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .5s var(--ease-out), box-shadow .5s; }
@media (hover: hover) { .member:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -30px rgba(10,16,32,.45); } }
.member__top { display: flex; align-items: center; gap: 18px; }
.member__avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink-900); color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; box-shadow: 0 0 0 1px var(--hair), 0 0 0 5px transparent; }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.dark .member__avatar { box-shadow: 0 0 0 3px var(--ink-950), 0 0 0 4px rgba(255,255,255,.22); }
.member__body { display: flex; flex-direction: column; flex: 1; padding: 30px 28px 24px; }
.member__name { margin: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--fg); }
.member__role { position: relative; margin-top: 10px; padding-top: 12px; font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.member__role::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 1.5px; background: currentColor; }
.member__bio { margin-top: 22px; color: var(--fg-2); font-size: .95rem; line-height: 1.7; }
.member__body > :has(+ .member__foot) { margin-bottom: 24px; }
.member__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--hair); }
.member__also { font-size: .84rem; line-height: 1.5; color: var(--fg-3); }
.member__also-label { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.member__also a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.member__links { display: flex; gap: 8px; margin-left: auto; }
.member__links a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); transition: background .25s, color .25s; }
@media (hover: hover) { .member__links a:hover { background: var(--ink); color: #fff; } }
.dark .member { background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dark .member__name, .dark .member__role { color: #fff; }
.dark .member__bio { color: rgba(255,255,255,.7); }
.dark .member__also { color: rgba(255,255,255,.55); }
@media (hover: hover) { .dark .member__also a:hover { color: #fff; } }
@media (hover: hover) { .dark .member__links a:hover { background: #fff; color: var(--ink); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-wrap__side { position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 900px) { .faq-wrap__side { position: static; } }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .4s var(--ease-out); color: var(--fg-3); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq__a { overflow: hidden; }
.faq__a p { color: var(--fg-2); padding: 0 48px 22px 0; }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 26px; }
.post { display: flex; flex-direction: column; }
.post__img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--paper-2); margin-bottom: 22px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
@media (hover: hover) { .post:hover .post__img img { transform: scale(1.05); } }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .84rem; color: var(--fg-3); margin-bottom: 12px; }
.post__cat { color: var(--blue); font-weight: 600; transition: color .5s var(--ease); }
@media (hover: hover) { .post:hover .post__cat { color: var(--c, var(--teal-deep)); } }
.post__title { margin-bottom: 10px; transition: color .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .post:hover .post__title { color: var(--accent); } }
.post__text { color: var(--fg-2); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta { background: #fff; color: var(--ink); padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid rgba(3,6,13,.1); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cta .h2 { max-width: 14ch; margin-bottom: 20px; }
.cta .lead { max-width: 44ch; }
.cta__list { border-top: 1px solid var(--ink); }
.cta__list a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 6px; border-bottom: 1px solid rgba(3,6,13,.16); transition: background-color .3s var(--ease), color .3s var(--ease), padding .35s var(--ease-out); }
@media (hover: hover) { .cta__list a:hover { background: var(--ink); color: #fff; padding-inline: 16px 12px; } }
.cta__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s var(--ease), color .3s var(--ease); }
@media (hover: hover) { .cta__list a:hover .cta__icon { background: #fff; color: var(--ink); } }
.cta__list b { display: block; font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em; }
.cta__list small { display: block; margin-top: 2px; font-size: .92rem; color: var(--fg-2); overflow-wrap: anywhere; transition: color .3s var(--ease); }
@media (hover: hover) { .cta__list a:hover small { color: rgba(255,255,255,.75); } }
.cta__go { transition: transform .3s var(--ease-out); }
@media (hover: hover) { .cta__list a:hover .cta__go { transform: translateX(4px); } }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Content (rich text) ---------- */
.prose { color: var(--fg-2); font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--fg); letter-spacing: -.025em; line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: 1.75rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.12rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 22px; font-family: var(--display); font-size: 1.3rem; color: var(--fg); letter-spacing: -.015em; }
.prose pre { background: var(--ink-900); color: #e6edf7; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { color: var(--fg); font-weight: 600; background: var(--paper); }
.prose hr { border: 0; border-top: 1px solid var(--hair); }

/* ---------- Detail layouts ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 18px; }
.panel { padding: 28px; border-radius: var(--r-lg); background: var(--paper); }
.panel--dark { background: var(--ink-900); color: #fff; }
.panel h2, .panel h3 { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 14px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--fg-2); font-size: .97rem; }
.checks .i { color: var(--teal); margin-top: 3px; }
.panel--dark .checks li { color: #c4cddc; }
.facts { display: grid; gap: 14px; font-size: .95rem; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--fg-3); }
.facts dd { font-weight: 600; text-align: right; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

.cover { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--paper-2); margin-top: calc(-1 * clamp(40px, 6vw, 80px)); position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Values / mission ---------- */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 6vw, 96px); }
.mv__text { margin-top: 16px; font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--fg); }
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.story .prose { font-size: 1.06rem; }
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--hair); }
.facts-strip > div { padding: 22px 24px 0; border-left: 1px solid var(--hair); }
.facts-strip > div:first-child { padding-left: 0; border-left: 0; }
.facts-strip dt { font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.facts-strip dd { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; color: var(--fg); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .facts-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 34px 26px; }
.value { padding-top: 24px; border-top: 1.5px solid var(--hair); }
.value h3 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px; color: var(--fg); }
.value p { color: var(--fg-2); font-size: .97rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field label small { color: var(--fg-3); font-weight: 450; }
.input, .field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow .25s, background .25s; font-size: 1rem; color: var(--ink);
}
.field textarea { height: auto; min-height: 160px; padding: 16px 18px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363718a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 4px rgba(3,6,13,.12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { box-shadow: inset 0 0 0 1.5px #c2415b; }
.field__err { color: #b3324c; font-size: .85rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--fg-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-deep); flex: none; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.alert { padding: 16px 18px; border-radius: 14px; background: #fdf0f2; color: #8c2238; font-size: .95rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .3s; }
@media (hover: hover) { a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.contact-card .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--ink); color: var(--teal-bright); }
.contact-card--wa .i { background: var(--ink); color: #fff; }
.contact-card b { display: block; font-size: .82rem; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-card span { font-weight: 600; color: var(--ink); word-break: break-word; }

/* ---------- Filters / pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border-radius: 8px; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 550; box-shadow: inset 0 0 0 1px var(--hair); transition: background .25s, color .25s, box-shadow .25s; }
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.search { position: relative; }
.search input { height: 44px; padding: 0 18px 0 44px; border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px var(--hair); width: min(280px, 80vw); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--teal); }
.search .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; font-size: .92rem; }
.pager .is-current { background: var(--ink); color: #fff; box-shadow: none; }
.empty { text-align: center; padding: 80px 20px; color: var(--fg-3); }

/* ---------- Footer ---------- */
.foot { background: var(--ink-950); color: #aeb9cc; padding: clamp(44px, 5vw, 72px) 0 24px; }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .foot__about { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .foot__top { gap: 26px 20px; padding-bottom: 24px; }
  .foot .brand { margin-bottom: 12px; }
  .foot__desc { margin-bottom: 14px; font-size: .88rem; }
  .foot__h { margin-bottom: 10px; }
  .foot__links { gap: 7px; font-size: .88rem; }
  .foot__contact { grid-column: 1 / -1; }
  .foot__contact .foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .foot__bottom { padding-top: 18px; gap: 8px 18px; font-size: .8rem; }
}
.foot .brand { color: #fff; margin-bottom: 22px; }
.foot__desc { max-width: 36ch; font-size: .93rem; line-height: 1.65; margin-bottom: 24px; }
.foot__h { color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.foot__links { display: grid; gap: 10px; font-size: .93rem; }
.foot__links a { transition: color .2s; }
@media (hover: hover) { .foot__links a:hover { color: #fff; } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; transition: background .25s, color .25s, transform .3s var(--ease-out); }
@media (hover: hover) { .socials a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); } }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
@media (max-width: 760px) { .foot { padding-bottom: 104px; } }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (hover: hover) { .foot__legal a:hover { color: #fff; } }

/* ---------- WhatsApp chat ---------- */
.wa { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-size: .95rem; }
.wa__launcher { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px 0 18px; border-radius: 16px; background: var(--ink-950); color: #fff; font-weight: 650; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 28px -12px rgba(3,6,13,.55); transition: transform .4s var(--ease-out), box-shadow .3s, padding .4s var(--ease-out); }
@media (hover: hover) { .wa__launcher:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px -14px rgba(3,6,13,.6); } }
.wa__launcher .i { width: 28px; height: 28px; color: #fff; transition: color .4s var(--ease); }
.wa__launcher::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(3,6,13,.35); animation: wa-ring 2.8s var(--ease-out) infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(4,112,138,.45); } 70%,100% { box-shadow: 0 0 0 18px rgba(4,112,138,0); } }
.wa.is-open .wa__launcher::before { animation: none; }
.wa__badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ff3b5c; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform .4s var(--ease-out); }
.wa.has-unread .wa__badge { transform: scale(1); }
.wa__teaser { position: relative; max-width: 270px; padding: 14px 40px 14px 16px; border-radius: 18px 18px 6px 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .92rem; line-height: 1.45; cursor: pointer; animation: teaser-in .6s var(--ease-out); }
.wa__teaser b { display: block; margin-bottom: 2px; }
.wa__teaser button { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); }
@media (hover: hover) { .wa__teaser button:hover { background: var(--paper-2); } }
@keyframes teaser-in { from { opacity: 0; transform: translateY(12px) scale(.95); } }
.wa__panel { width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100svh - var(--nav-h) - 124px)); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #efeae2; box-shadow: 0 40px 90px -20px rgba(3,6,13,.5), 0 0 0 1px rgba(10,16,32,.06); transform-origin: bottom right; animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: var(--ink); color: #fff; }
.wa__avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.wa__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wa__avatar svg { width: 28px; height: 28px; }
.wa__avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #9aa4b2; box-shadow: 0 0 0 2.5px var(--ink); }
.wa.is-online .wa__avatar::after { background: #4be37f; }
.wa__who { flex: 1; min-width: 0; line-height: 1.3; }
.wa__who b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__who span { font-size: .8rem; opacity: .85; }
.wa__head .icon-btn { color: #fff; }
@media (hover: hover) { .wa__head .icon-btn:hover { background: rgba(255,255,255,.14); } }
.wa__body { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
  background-color: var(--paper); background-image: radial-gradient(rgba(10,16,32,.06) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.wa__day { align-self: center; font-size: .72rem; font-weight: 600; color: #54656f; background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; margin-bottom: 4px; }
.bubble { max-width: 84%; padding: 9px 12px 7px; border-radius: 4px 14px 14px 14px; background: #fff; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); line-height: 1.45; animation: bubble-in .45s var(--ease-out); white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.bubble--me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 4px 14px 14px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa__chips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 4px; }
.wa__chip { padding: 9px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: .88rem; box-shadow: 0 1px .5px rgba(11,20,26,.13), inset 0 0 0 1px rgba(3,6,13,.18); text-align: right; animation: bubble-in .45s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); transition: background .2s, color .2s; }
@media (hover: hover) { .wa__chip:hover { background: var(--ink); color: #fff; } }
.wa__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #f0f2f5; }
.wa__form textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 12px 16px; border: 0; border-radius: 8px; background: #fff; line-height: 1.4; font-size: .95rem; }
.wa__form textarea:focus { outline: none; box-shadow: 0 0 0 2px rgba(10,16,32,.25); }
.wa__send { width: 46px; height: 46px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease-out), background .2s; }
@media (hover: hover) { .wa__send:hover { background: var(--ink-700); transform: scale(1.06); } }
.wa__send .i { width: 20px; height: 20px; }
.wa__foot { padding: 0 14px 10px; background: #f0f2f5; font-size: .72rem; color: #667781; text-align: center; }
.wa__foot a { text-decoration: underline; }
@media (max-width: 560px) {
  .wa__launcher { width: 60px; padding: 0; justify-content: center; }
  .wa__launcher .wa__label { display: none; }
  .wa__panel { height: min(560px, calc(100svh - var(--nav-h) - 104px)); }
}
.wa.is-open .wa__teaser { display: none; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { clip-path: inset(12% 6% 12% 6% round 28px); transform: none; filter: none; transition: clip-path 1.4s var(--ease-out), opacity .8s; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .split-line > span { transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 64px; }
.mb-m { margin-bottom: 36px; }
.divider { height: 1px; background: var(--hair); }
.status-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; background: var(--white); }
.status-page .code { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--blue); }

/* Uploaded logos: light version on white, dark version on dark backgrounds */
.brand__logo--dark { display: none; }
.dark .brand__logo--dark, .nav-dark-top .nav:not(.is-scrolled) .brand__logo--dark, .menu-open .nav .brand__logo--dark { display: block; }
.dark .brand:has(.brand__logo--dark) .brand__logo--light,
.nav-dark-top .nav:not(.is-scrolled) .brand:has(.brand__logo--dark) .brand__logo--light,
.menu-open .nav .brand:has(.brand__logo--dark) .brand__logo--light { display: none; }
.dark .brand:not(:has(.brand__logo--dark)) .brand__logo--light,
.nav-dark-top .nav:not(.is-scrolled) .brand:not(:has(.brand__logo--dark)) .brand__logo--light { filter: brightness(0) invert(1); }

/* The homepage banner photo fades into the navy panel instead of a hard edge */
.hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
@media (max-width: 900px) {
  .hero__media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
}

/* Phones and tablets: the banner photo sits behind the headline (seen straight
   away) instead of below it, under a flat navy wash that keeps the text readable. */
@media (max-width: 900px) {
  .hero { min-height: min(100svh, 820px); }
  .hero__visual { position: absolute; inset: 0; z-index: 0; height: auto; min-height: 0; }
  .hero__media { -webkit-mask-image: none; mask-image: none; }
  .hero__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: rgba(3,6,13,.76); }
  .hero__card { display: none; }
}

/* Article header */
.phero--post .h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); max-width: 20ch; }
.phero--post .post__meta { margin-bottom: 20px; color: rgba(255,255,255,.66); }
.phero--post .post__cat { color: var(--blue-soft); }
.phero__by { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.45; }
.phero__by b { color: #fff; font-weight: 600; }
.phero__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: var(--teal-bright); font-weight: 700; font-size: .9rem; }

/* ==========================================================================
   Two-colour details
   Highlighted words keep the text colour and stand out by weight alone.
   ========================================================================== */
em.accent, .accent-serif, .rotator { color: inherit; }
:is(.phero:not(.phero--light), .hero, .foot, .dark) { --accent: rgba(255,255,255,.78); }
.scard__icon, .collage__badge .i, .contact-card .i, .member__avatar, .phero__avatar { color: #fff; }
.pulse { background: #fff; }
.pulse::after { border-color: rgba(255,255,255,.7); }
.hero__dot::after { background: #fff; }
.step__bar span { background: rgba(255,255,255,.85); }
.quote .i { color: var(--slate-300); }
.cta em.accent { color: inherit; }
.post__cat { color: var(--ink); }@media (hover: hover) { .post:hover .post__cat { color: var(--ink); } }
.phero--post .post__cat { color: #fff; }

/* One typographic voice: headlines set light, the highlighted word set bold */
.h1, .h2, .display { font-weight: 400; letter-spacing: -.03em; }
:is(.h1, .h2, .display) em.accent { font-weight: 700; }

/* ==========================================================================
   Homepage: services as full-colour photo tiles, edge to edge
   ========================================================================== */
.tiles { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); color: #fff; }
/* The photos sit back in the navy until you point at one */
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ink-950); opacity: .42; transition: opacity .7s var(--ease); pointer-events: none; }
.tile:focus-visible::before { opacity: 0; }@media (hover: hover) { .tile:hover::before { opacity: 0; } }
.tile__bar { z-index: 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:focus-visible img { transform: scale(1.06); }@media (hover: hover) { .tile:hover img { transform: scale(1.06); } }
.tile__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 20px 24px; background: var(--ink-950); }
.tile__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tile__title { font-family: var(--display); font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -.015em; }
.tile__go { flex: none; transition: transform .5s var(--ease-out); }
.tile:focus-visible .tile__go { transform: rotate(-45deg); }@media (hover: hover) { .tile:hover .tile__go { transform: rotate(-45deg); } }
.tile__text { max-height: 0; overflow: hidden; opacity: 0; color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.55; transition: max-height .6s var(--ease-out), opacity .4s var(--ease), margin .6s var(--ease-out); }
.tile:focus-visible .tile__text { max-height: 5em; opacity: 1; margin-top: 8px; }@media (hover: hover) { .tile:hover .tile__text { max-height: 5em; opacity: 1; margin-top: 8px; } }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile__text { max-height: none; opacity: 1; margin-top: 6px; }
}
@media (hover: none) { .tile__text { max-height: none; opacity: 1; margin-top: 6px; } }

/* ==========================================================================
   Homepage: the work as a sideways rail of large screenshots
   Starts in line with the page column and runs off the right edge.
   ========================================================================== */
.rail-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-nav__btns { display: flex; gap: 10px; }
.rail-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s; }
@media (hover: hover) { .rail-btn:hover { background: #fff; color: var(--ink); } }
.rail-btn:disabled { opacity: .3; pointer-events: none; }
.rail { --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; margin-top: clamp(40px, 5vw, 64px); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail__track { list-style: none; margin: 0; padding: 0 var(--edge); display: flex; gap: clamp(18px, 2.4vw, 32px); width: max-content; }
.rail__item { width: min(700px, 72vw); scroll-snap-align: start; }
.rail.is-looping { scroll-snap-type: none; }
@media (max-width: 700px) { .rail__item { width: 84vw; } }
.rail__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -36px rgba(0,0,0,.7); }
.rail__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); user-select: none; -webkit-user-drag: none; }
@media (hover: hover) { .rail__item:hover .rail__shot img { transform: scale(1.03); } }
.rail__cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 20px; }
.rail__name { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; color: #fff; }
@media (hover: hover) { .rail__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.rail__meta { display: block; margin-top: 4px; font-size: .88rem; color: rgba(255,255,255,.55); }
.rail__cap .link { white-space: nowrap; flex: none; }
@media (hover: none) { .tile::before { opacity: .22; } }

/* ==========================================================================
   Pages in two tones: white and navy take turns down the page
   ========================================================================== */
/* Buttons flip to white on navy */
.dark .btn:not(.btn--ghost, .btn--glass, .btn--light) { --btn-bg: #fff; --btn-fg: var(--ink); }
.dark .btn:not(.btn--ghost, .btn--glass, .btn--light)::before { background: #e4eaf3; }
@media (hover: hover) { .dark .btn:not(.btn--ghost, .btn--glass, .btn--light):hover { color: var(--ink); --btn-bg: #fff; } }
.dark .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.dark .browser { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -30px rgba(0,0,0,.8); }
.dark .work__logo { box-shadow: none; }

/* Work page: each project gets its own full-width band */
.band { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.band + .band:not(.dark) { padding-top: clamp(64px, 8vw, 120px); }

/* Compact navy banner for pages without a photo (articles list, legal) */
.phero--compact { padding: calc(var(--nav-h) + clamp(40px, 5vw, 72px)) 0 clamp(44px, 5vw, 72px); }
.phero--compact .lead { color: rgba(255,255,255,.78); max-width: 52ch; }
.phero--compact .small { color: rgba(255,255,255,.6); }

/* Services page: descriptions always visible on the tiles */
.tiles--open .tile__text { max-height: none; opacity: 1; margin-top: 8px; }
.tiles--open .tile { aspect-ratio: 4 / 3; }

/* Process: open columns on a rule, no boxes */
.step { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.step__bar { height: 1.5px; border-radius: 0; margin-bottom: 26px; }
.step__bar span { background: currentColor; }
.band.dark .work { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.band.dark .work__media { order: 2; }
@media (max-width: 900px) { .band.dark .work { grid-template-columns: 1fr; } .band.dark .work__media { order: 0; } }
.foot { border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 700px) {
  .tiles:not(.tiles--open) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles:not(.tiles--open) .tile { aspect-ratio: 4 / 5; }
  .tiles:not(.tiles--open) .tile__text { display: none; }
  .tiles:not(.tiles--open) .tile__bar { padding: 14px; }
  .tiles:not(.tiles--open) .tile__title { font-size: .98rem; line-height: 1.25; }
  .tiles:not(.tiles--open) .tile__go { display: none; }
  .tiles--open .tile { aspect-ratio: 4 / 3; }
}

/* Logo mark: navy on white, white on navy (it follows the text colour) */
.brand__mark { width: auto; height: 38px; aspect-ratio: 594 / 462; }
.wa__mark { width: 30px; height: auto; aspect-ratio: 594 / 462; color: var(--ink); }

/* Phones zoom into any form field with text smaller than 16px. Keep every field at 16px or more. */
@media (max-width: 1024px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, 1em) !important; }
}


/* Touch screens: every link and button reacts to the first tap (no double-tap zoom wait) */
a, button, summary, label, select, [role="button"], [data-menu] { touch-action: manipulation; }

/* Contact: a narrower form beside the contact details, centred as a pair */
.contact-grid { grid-template-columns: minmax(0, 620px) minmax(240px, 380px); justify-content: center; gap: clamp(40px, 7vw, 120px); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 620px); } }

/* Consent: box and sentence side by side, with breathing room, in normal weight */
.field .check { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 0; font-size: .92rem; font-weight: 450; line-height: 1.6; color: var(--fg-2); cursor: pointer; }
.field .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.field .check span { flex: 1; min-width: 0; }

/* Mobile menu: links sit in the middle of the screen, details at the foot */
.sheet__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-bottom: 6vh; }
.sheet__links a { line-height: 1.25; padding: 4px 0; }
/* The page's scroll-progress line is hidden while the menu is open */
.menu-open .progress { opacity: 0; }

/* ================================================================ reading layout (articles, legal) */
.read-section { padding-top: clamp(48px, 6vw, 88px); }
.read { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 720px); justify-content: center; gap: clamp(40px, 6vw, 104px); align-items: start; }
.read__main { min-width: 0; }
.read__rail { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 30px; max-height: calc(100vh - var(--nav-h) - 56px); overflow-y: auto; scrollbar-width: none; }
.read__rail::-webkit-scrollbar { display: none; }

/* "On this page" index */
.toc summary { list-style: none; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-3); }
.toc summary .i { margin-left: auto; align-self: center; transition: transform .3s var(--ease-out); }
.toc[open] summary .i { transform: rotate(180deg); }
.toc__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.toc__list a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px; padding: 8px 0 8px 14px; border-left: 1.5px solid var(--hair); font-size: .875rem; line-height: 1.45; color: var(--fg-3); transition: color .2s, border-color .2s; }
.toc__n { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; padding-top: 1px; }
.toc__list a.is-active { color: var(--fg); border-left-color: var(--ink); }
@media (hover: hover) { .toc__list a:hover { color: var(--fg); } }
.toc__progress { height: 2px; margin-top: 16px; background: var(--hair); overflow: hidden; }
.toc__progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--read, 0)); }

/* details under the index */
.read__facts { display: grid; gap: 16px; margin: 0; }
.read__facts dt { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.read__facts dd { margin: 4px 0 0; font-size: .95rem; font-weight: 600; color: var(--fg); }
.read__facts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.read__share { display: flex; align-items: center; gap: 8px; }
.read__share span { margin-right: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.read__share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); transition: background .25s, color .25s, box-shadow .25s; }
@media (hover: hover) { .read__share a:hover { background: var(--ink); color: #fff; box-shadow: none; } }
.read__docs { display: grid; gap: 6px; }
.read__docs a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 6px; font-size: .9rem; font-weight: 550; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair); transition: color .2s, box-shadow .2s; }
.read__docs a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) { .read__docs a:hover:not([aria-current]) { color: var(--fg); box-shadow: inset 0 0 0 1px var(--ink); } }

/* the text itself */
.prose--read > p:first-child { padding-left: 22px; border-left: 2px solid var(--ink); font-size: clamp(1.16rem, 1.5vw, 1.3rem); line-height: 1.65; font-weight: 450; color: var(--fg); }
.prose--read h2 { margin-top: 2.2em; padding-top: 1.15em; border-top: 1px solid var(--hair); scroll-margin-top: calc(var(--nav-h) + 28px); }
.prose--read h2[data-n]::before { content: attr(data-n); display: block; margin-bottom: 10px; font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--fg-3); }
.prose--legal h2 { font-size: 1.4rem; }
.prose--legal p > strong:first-child { display: inline-block; min-width: 2.8em; font-variant-numeric: tabular-nums; color: var(--fg); }
.read__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--hair); }
.read__by { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--fg-2); }
.read__by .phero__avatar { background: var(--ink); color: #fff; box-shadow: none; }
.read__by b { color: var(--fg); }
.read__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: clamp(22px, 3vw, 32px); border-radius: 4px; background: var(--ink-900); color: #fff; }
.read__ask b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.read__ask span { display: block; margin-top: 4px; font-size: .92rem; color: rgba(255,255,255,.7); }
.read__ask .btn { --btn-bg: #fff; --btn-fg: var(--ink); max-width: 100%; }
.read__ask .btn .i { flex: none; }

/* Tablets and phones: one column. The index becomes a dropdown at the top;
   sharing and the other documents move below the text. */
@media (max-width: 1100px) {
  .read { grid-template-columns: minmax(0, 720px); gap: 26px; }
  .read__rail { display: contents; }
  .toc { order: 0; padding: 4px 18px 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hair); }
  .toc summary { padding: 14px 0 0; border: 0; }
  .toc[open] summary { padding-bottom: 6px; }
  .read__facts { order: 1; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
  .read__main { order: 2; }
  .read__share, .read__docs { order: 3; }
  .read__docs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
@media (min-width: 1101px) {
  .toc summary { pointer-events: none; }
  .toc summary .i { display: none; }
}
@media (max-width: 600px) {
  .prose--read > p:first-child { padding-left: 16px; font-size: 1.1rem; }
  .read__ask .btn { width: 100%; justify-content: center; }
}

/* ================================================================ footer: links with icons */
.foot__links a, .foot__links li { display: inline-flex; align-items: center; gap: 11px; }
.foot__ico { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .25s, color .25s, box-shadow .25s; }
.foot__ico .i { width: 14px; height: 14px; }
@media (hover: hover) { .foot__links a:hover .foot__ico { background: #fff; color: var(--ink); box-shadow: none; } }
@media (max-width: 600px) {
  .foot__links a, .foot__links li { gap: 9px; }
  .foot__ico { width: 24px; height: 24px; border-radius: 6px; }
  .foot__ico .i { width: 12px; height: 12px; }
}
