/* Solkuu — design tokens */
:root {
  --ink: #1a1917;
  --paper: #ffffff;
  --soft: #f5f3ef;
  --soft-2: #ece9e3;
  --line: #e7e4de;
  --body: #5f5c56;
  --quiet: #8b877f;
  --accent: #ff8b02;
  --slate: #6b7c9a;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1180px;
  --section: clamp(80px, 10vw, 148px);
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
/* Read by screen readers and search engines, not shown: keeps the heading outline whole where the design has no visible h2 */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; text-wrap: balance; }
.h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; }
.h2 { font-size: clamp(2.1rem, 3.9vw, 3.35rem); line-height: 1.05; }
.h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.12; letter-spacing: -0.01em; }
.h1 em, .h2 em { font-style: italic; color: var(--quiet); letter-spacing: -0.02em; }
.sub { font-size: clamp(1.03rem, 1.3vw, 1.19rem); line-height: 1.5; color: var(--body); max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; color: var(--quiet); }

.tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--body); background: var(--paper); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm); font-size: 15.5px; font-weight: 500;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(26, 25, 23, 0.55); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: 14.5px; border-radius: 10px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: var(--soft); color: var(--ink); }
.btn--ghost:hover { background: var(--soft-2); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions--c { justify-content: center; }
.arr { display: inline-block; font-size: 0.95em; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform 0.45s var(--ease), background 0.3s, box-shadow 0.3s; }
.header.is-stuck { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.logo svg { width: 98px; height: auto; }
.header__cta { justify-self: end; display: flex; align-items: center; gap: 6px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 10px; font-size: 15px; transition: background 0.2s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--soft); }
.nav__link .chev { width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.6; transition: transform 0.25s var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }

.panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px) scale(0.98); transform-origin: 50% 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 36px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s, transform 0.3s var(--ease), visibility 0.22s;
  box-shadow: 0 30px 60px -28px rgba(26, 25, 23, 0.28), 0 2px 6px rgba(26, 25, 23, 0.04);
}
.panel::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.panel--3 { grid-template-columns: repeat(3, max-content); }
.panel__h { font-size: 13px; color: var(--quiet); margin-bottom: 8px; }
.panel a { display: block; padding: 6px 0; font-size: 15px; white-space: nowrap; transition: color 0.2s; }
.panel a:hover { color: var(--quiet); }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -8px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 40; background: #fff; padding: 92px var(--gutter) 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 26px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__main a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 2rem; letter-spacing: -0.01em; }
.sheet__main a .arr { font-family: var(--sans); font-size: 1rem; color: var(--quiet); }
.sheet .btn { justify-content: center; width: 100%; min-height: 54px; }
.sheet__foot { margin-top: auto; font-size: 15px; color: var(--body); }

/* Sections */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.head { display: grid; justify-items: center; text-align: center; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.head .sub { max-width: 30em; }
.head--left { justify-items: start; text-align: left; }

/* Art: soft brand gradients used where a photograph would normally sit */
.art { position: relative; overflow: hidden; background: #f3ede4; isolation: isolate; }
.art::before { content: ""; position: absolute; inset: -20%; z-index: -1; filter: blur(28px);
  background:
    radial-gradient(42% 52% at 22% 82%, rgba(255, 139, 2, 0.9), transparent 72%),
    radial-gradient(46% 50% at 78% 24%, rgba(107, 124, 154, 0.62), transparent 72%),
    radial-gradient(52% 60% at 62% 78%, rgba(255, 205, 150, 0.95), transparent 74%); }
.art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.28; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.art--b::before { background:
    radial-gradient(48% 56% at 80% 80%, rgba(107, 124, 154, 0.75), transparent 72%),
    radial-gradient(40% 46% at 18% 22%, rgba(255, 170, 70, 0.8), transparent 72%),
    radial-gradient(50% 60% at 40% 76%, rgba(226, 232, 243, 0.95), transparent 74%); }
.art--c::before { background:
    radial-gradient(46% 54% at 70% 30%, rgba(255, 139, 2, 0.82), transparent 72%),
    radial-gradient(48% 56% at 20% 70%, rgba(255, 214, 170, 0.95), transparent 74%),
    radial-gradient(36% 44% at 88% 88%, rgba(107, 124, 154, 0.5), transparent 72%); }
.art--d::before { background:
    radial-gradient(50% 60% at 26% 26%, rgba(107, 124, 154, 0.7), transparent 72%),
    radial-gradient(44% 52% at 78% 74%, rgba(255, 150, 30, 0.72), transparent 72%),
    radial-gradient(50% 60% at 60% 30%, rgba(238, 232, 222, 0.95), transparent 74%); }
.art svg.motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.motif * { fill: none; stroke: rgba(255, 255, 255, 0.92); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.motif .dot { fill: #fff; stroke: none; }

/* Hero */
.hero { padding-top: 72px; }
.hero__in { display: grid; justify-items: center; text-align: center; gap: clamp(20px, 2.4vw, 28px); padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(44px, 6vh, 68px); }
.hero .h1 { max-width: 11.5em; }
.stage { position: relative; height: clamp(320px, 62vh, 640px); border-radius: var(--r-lg); overflow: hidden; background: #f3ede4; transform-origin: 50% 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__chips { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.7); }
.chip--end { margin-left: auto; }

/* Inner page hero */
.phero { padding: calc(72px + clamp(56px, 9vw, 112px)) 0 clamp(48px, 6vw, 80px); }
.phero__in { display: grid; justify-items: center; text-align: center; gap: clamp(18px, 2.2vw, 26px); }
.phero .h1 { max-width: 12em; font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--quiet); }
.crumbs a:hover, .crumbs [aria-current] { color: var(--ink); }
.band { height: clamp(200px, 30vw, 360px); border-radius: var(--r-lg); }

/* Statement */
.say { display: grid; justify-items: center; text-align: center; gap: 24px; }
.say .h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 13em; }
.say .mark { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink); }

/* Bento of capabilities */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.cell { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--soft); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s; }
a.cell:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(26, 25, 23, 0.4); }
.cell--7 { grid-column: span 7; }
.cell--5 { grid-column: span 5; }
.cell--3 { grid-column: span 3; }
.cell--4 { grid-column: span 4; }
.cell--6 { grid-column: span 6; }
.cell--8 { grid-column: span 8; }
.cell__art { height: clamp(180px, 20vw, 260px); margin: 8px 8px 0; border-radius: 12px; }
.cell__body { display: grid; gap: 8px; padding: 22px 24px 24px; flex: 1; align-content: end; }
.cell--plain .cell__body { align-content: space-between; gap: 44px; min-height: 196px; }
.cell p { color: var(--body); font-size: 15.5px; max-width: 30em; }
.cell__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-size: 14px; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
a.cell:hover .go { background: var(--ink); color: #fff; transform: rotate(45deg); }
.cell--dark { background: var(--ink); color: #fff; }
.cell--dark p { color: rgba(255, 255, 255, 0.7); }
.cell--dark .go { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pill { justify-self: start; padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--body); }
.cell--dark .pill { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Two-column lists */
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.duo__head { display: grid; gap: 18px; justify-items: start; position: sticky; top: 104px; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.list--1 { grid-template-columns: 1fr; }
.item { display: grid; gap: 6px; padding: 22px 0 24px; border-top: 1px solid var(--line); align-content: start; }
.item .n { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--quiet); }
.item h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.item p { color: var(--body); font-size: 15.5px; max-width: 24em; }
.item--row { grid-template-columns: 40px 1fr; align-items: baseline; gap: 0 8px; padding: 17px 0 18px; }
.item--row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.6rem); letter-spacing: -0.01em; }

/* CTA */
.cta { padding: 0 0 clamp(16px, 2vw, 28px); }
.cta__panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #17150f; color: #fff; display: grid; justify-items: center; text-align: center; gap: 26px; padding: clamp(72px, 11vw, 148px) 24px; }
.cta__panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__panel > *:not(canvas) { position: relative; }
.cta__panel .h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 10em; }
.cta__panel .h2 em { color: rgba(255, 255, 255, 0.62); }

/* Contact */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: 40px clamp(32px, 6vw, 96px); padding-bottom: var(--section); align-items: start; }
.contact__aside { display: grid; gap: 14px; justify-items: start; padding: 28px; border-radius: var(--r); background: var(--soft); }
.contact__aside a.mail { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.contact__aside p { color: var(--body); font-size: 15.5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label i { font-style: normal; font-weight: 400; color: var(--quiet); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft);
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 13px 14px; min-height: 50px;
  appearance: none; -webkit-appearance: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231a1917' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26, 25, 23, 0.07); }
.field .err { display: none; font-size: 13.5px; color: #b3261e; }
.field.is-bad input, .field.is-bad textarea { border-color: #b3261e; }
.field.is-bad .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 6px; }
.form__foot p { font-size: 14px; color: var(--quiet); }
.form__foot p a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 15px; }
.form__status[hidden] { display: none; }

/* Footer */
.footer { padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px 24px; padding-bottom: clamp(40px, 5vw, 64px); }
.footer__brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer__brand p { color: var(--body); max-width: 24em; font-size: 15px; }
.footer__brand a.mail { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.footer__brand a.mail:hover { color: var(--quiet); }
.footer h2 { font-size: 13.5px; font-weight: 400; color: var(--quiet); margin-bottom: 10px; }
.footer li a { display: inline-block; padding: 5px 0; font-size: 15px; transition: color 0.2s; }
.footer li a:hover { color: var(--quiet); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--quiet); }
.footer__base ul { display: flex; gap: 20px; }
.footer__base a:hover { color: var(--ink); }

/* Motion: content stays visible unless JS and GSAP are running */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-split] { opacity: 0; }
[data-split] .w { display: inline-block; will-change: transform, opacity, filter; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-split] { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav { display: none; }
  .header__in { grid-template-columns: 1fr auto; }
  .header__cta .btn { display: none; }
  .burger { display: block; }
  .cell--7, .cell--5, .cell--8, .cell--4 { grid-column: span 12; }
  .cell--3, .cell--6 { grid-column: span 6; }
  .duo { grid-template-columns: 1fr; }
  .duo__head { position: static; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 767px) {
  .header__in { height: 64px; }
  .hero { padding-top: 64px; }
  .stage { height: 46vh; min-height: 280px; border-radius: 20px; }
  .chip--end { display: none; }
  .phero { padding-top: calc(64px + 48px); }
  .cell--3, .cell--6 { grid-column: span 12; }
  .cell--plain .cell__body { min-height: 0; gap: 28px; }
  .list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn, .hero .actions .btn { width: 100%; justify-content: center; }
  .hero .actions { width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* Stacked cells beside a feature cell */
.stack { grid-column: span 6; display: grid; gap: 14px; }
.stack--4 { grid-column: span 4; }
.stack .cell { height: 100%; }
.stack .cell--plain .cell__body { min-height: 0; gap: 20px; }
.cell__art--tall { height: clamp(220px, 26vw, 340px); }
.cell__body .pill { margin-bottom: 4px; }
@media (max-width: 1023px) { .stack, .stack--4 { grid-column: span 12; } }

/* Section labels */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Colour bands: each section sits on its own ground */
.tint { --cell: #fff; }
.tint--cream { background: #f6f0e6; --quiet: #a9793f; --line: rgba(60, 40, 10, 0.14); }
.tint--slate { background: #e9edf4; --quiet: #5f7397; --line: rgba(30, 45, 80, 0.14); }
.tint .cell { background: #fff; }
.tint .go, .tint .pill { background: var(--soft); }
.tint a.cell:hover .go { background: var(--ink); }
.tint + .section--tight, .tint + .cta { padding-top: var(--section); }
.hero { padding-bottom: clamp(56px, 7vw, 104px); }

/* Statement */
.pose { display: grid; grid-template-columns: 3fr 9fr; gap: 28px 24px; align-items: start; }
.pose .label { padding-top: 1.1em; }
.pose__main { display: grid; gap: clamp(36px, 5vw, 64px); }
.pose .h2 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); line-height: 0.99; max-width: 11em; }
.pose .h2 em { display: block; }
.pose__foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 48px; padding-top: 28px; border-top: 1px solid var(--line); align-items: start; }
.pose .mark { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; color: var(--ink); justify-self: end; text-align: right; }
@media (max-width: 1023px) {
  .pose { grid-template-columns: 1fr; }
  .pose .label { padding-top: 0; }
}
@media (max-width: 767px) {
  .pose__foot { grid-template-columns: 1fr; }
  .pose .mark { justify-self: start; text-align: left; }
}

/* Team */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 14px; }
.member { flex: 0 0 calc((100% - 56px) / 5); display: grid; gap: 4px; align-content: start; }
.member__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; background: var(--soft); transition: transform 0.6s var(--ease); }
.member:hover .member__photo { transform: translateY(-4px); }
.member .h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); }
.member p { color: var(--body); font-size: 15px; }
@media (max-width: 1023px) { .member { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 767px) { .member { flex-basis: calc((100% - 14px) / 2); } .team { gap: 28px 14px; } }

/* Page veil */
.veil { display: none; }
.js .veil { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #f6f0e6; transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1); }
.js .veil.is-out { transform: translateY(-100%); pointer-events: none; }
.veil svg { width: 132px; height: auto; opacity: 0; }
.veil.is-intro svg { animation: veil-logo 0.9s var(--ease) both; }
@keyframes veil-logo { 0% { opacity: 0; transform: translateY(10px); } 35%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .js .veil { display: none; } }

/* Smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hero stage: an inset rounded card */
.stage-wrap { padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.stage { height: clamp(340px, 68vh, 720px); }

/* Statement fill */
[data-fill] .w { display: inline-block; }

/* Marquee */
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.marquee__track > div { display: flex; align-items: center; flex: none; }
.marquee span { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -0.02em; white-space: nowrap; padding: 0 0.42em; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--quiet); }
.marquee i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent); flex: none; font-size: clamp(0.9rem, 1.4vw, 1.3rem); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; opacity: 0; transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.25s, background 0.25s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hide { opacity: 0; }
.cursor span { font-size: 13px; font-weight: 500; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor.is-view { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(26, 25, 23, 0.92); }
.cursor.is-view span { opacity: 1; }

/* Card art responds to hover */
.cell__art .motif { transition: transform 0.9s var(--ease); }
a.cell:hover .cell__art .motif { transform: scale(1.06); }

/* Footer wordmark */
.footer { padding-bottom: 0; overflow: hidden; }
.footer__base { padding-bottom: 28px; }
.footer__mark { padding: clamp(20px, 4vw, 56px) var(--gutter) 0; overflow: hidden; }
.footer__mark svg { width: 100%; height: auto; margin-bottom: -1.2%; }

/* Hero object sits above the gradient */
.stage canvas[data-flow] { opacity: 0.6; }
.stage { background: #f7f3ec; height: clamp(420px, 78vh, 820px); }
@media (max-width: 767px) { .stage { height: 62vh; min-height: 380px; } }

/* Hero stage: a dark card so the dotted flower glows */
.stage { background: #13110e; }
.stage .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.9); }

@media (max-width: 767px) { .stage { height: auto; min-height: 0; aspect-ratio: 1 / 1.08; } }

img.member__photo { height: auto; display: block; object-position: 50% 20%; }

/* Team: a row of tall columns with greyscale cut-out portraits */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; border-radius: var(--r-lg); overflow: hidden; }
.member { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 0; position: relative; overflow: hidden; aspect-ratio: 3 / 5.3; background: var(--soft); transition: background 0.45s var(--ease); }
.tint .member { background: #fff; }
.member:hover { background: var(--soft-2); }
.tint .member:hover { background: #f4f1ec; }
.member__meta { display: grid; gap: 5px; justify-items: center; text-align: center; padding: clamp(18px, 2vw, 28px) 12px 0; }
.member__meta p { font-size: 13px; color: var(--body); }
.member .h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.member__cut { display: block; width: 116%; max-width: none; height: auto; margin: 0 -8%; filter: grayscale(1) contrast(1.06); transform-origin: 50% 100%; transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.member:hover .member__cut { filter: grayscale(0); transform: scale(1.035); }
.member__cut--ph { fill: #d9d5ce; width: 92%; margin: 0 4%; filter: none; }
.tint .member__cut--ph { fill: #dfe3ea; }
.cursor.is-dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--accent); }
@media (max-width: 1023px) {
  .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .team::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 38%; scroll-snap-align: start; }
}
@media (max-width: 767px) { .member { flex-basis: 64%; } .team { gap: 3px; } }

@media (max-width: 1023px) { .team { flex-wrap: nowrap; justify-content: flex-start; } }

/* More air between the name and the portrait */
.member { aspect-ratio: 3 / 6.4; }
.member__cut { width: 106%; margin: 0 -3%; }
.member__cut--ph { width: 86%; margin: 0 7%; }

/* Portraits sit inside the column with room at the sides */
.member { aspect-ratio: 3 / 5.1; }
.member__cut { width: 78%; margin: 0 11%; }
.member__cut--ph { width: 64%; margin: 0 18%; }
.member:hover .member__cut { transform: scale(1.05); }

/* Team strip: wider cards in a row that scrolls and drags sideways */
.team { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.team::-webkit-scrollbar { display: none; }
.team.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.member { flex: 0 0 clamp(264px, 27vw, 340px); aspect-ratio: 3 / 4.9; scroll-snap-align: start; }
.member__cut { width: 82%; margin: 0 9%; -webkit-user-drag: none; user-select: none; }
.member__cut--ph { width: 62%; margin: 0 19%; }
.cursor.is-dot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent); }
.cursor.is-dot span { opacity: 1; color: var(--ink); }
@media (max-width: 767px) { .member { flex-basis: 74%; } }

/* Footer social icons */
.footer { padding-bottom: 0; }
.social { display: flex; gap: 8px; margin-top: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--ink); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.social a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer .social a { display: grid; place-items: center; padding: 0; width: 40px; height: 40px; }
.footer .social a:hover { color: #fff; }
.social svg { display: block; }

/* Phones: two team members visible at once, with the third peeking in */
@media (max-width: 767px) {
  .member { flex-basis: 46%; aspect-ratio: 3 / 5.2; }
  .member__meta { padding: 16px 6px 0; gap: 3px; }
  .member__meta p { font-size: 12px; }
  .member .h3 { font-size: 1.2rem; }
  .member__cut { width: 90%; margin: 0 5%; }
  .member__cut--ph { width: 70%; margin: 0 15%; }
}

@media (max-width: 767px) { .member { aspect-ratio: 3 / 6.1; } .member__cut { width: 86%; margin: 0 7%; } }

/* section CTA under a grid */
.more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Theme switch */
.theme { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background 0.25s; }
.theme:hover { background: var(--soft); }
.theme svg { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.35s, transform 0.6s var(--ease); }
.theme__moon { opacity: 0; transform: rotate(-70deg) scale(0.5); }
[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
.is-theming body, .is-theming .section, .is-theming .cell, .is-theming .member, .is-theming .footer, .is-theming .header, .is-theming .tint { transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }

/* Dark theme: the night half of the name */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f0ea;
  --paper: #100f0d;
  --soft: #1b1916;
  --soft-2: #26231f;
  --line: #2f2b26;
  --body: #aaa69e;
  --quiet: #827e76;
  --slate: #8fa0bf;
  --on-ink: #14120f;
}
[data-theme="dark"] .skip,
[data-theme="dark"] .btn,
[data-theme="dark"] a.cell:hover .go,
[data-theme="dark"] .social a:hover,
[data-theme="dark"] .footer .social a:hover { color: var(--on-ink); }
[data-theme="dark"] .btn:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8); }
[data-theme="dark"] .btn--light { background: #f3f0ea; color: var(--on-ink); }
[data-theme="dark"] .btn--ghost { background: var(--soft-2); color: var(--ink); }
[data-theme="dark"] .btn--ghost:hover { background: #312d28; }
[data-theme="dark"] .header.is-stuck { background: rgba(16, 15, 13, 0.8); }
[data-theme="dark"] .panel { background: #1b1916; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
[data-theme="dark"] .sheet { background: var(--paper); }
[data-theme="dark"] .tag { background: var(--soft); }
[data-theme="dark"] .go, [data-theme="dark"] .pill { background: var(--soft-2); }
[data-theme="dark"] .cell--dark { background: #f3f0ea; color: var(--on-ink); }
[data-theme="dark"] .cell--dark p { color: rgba(20, 18, 15, 0.7); }
[data-theme="dark"] .cell--dark .go, [data-theme="dark"] .cell--dark .pill { background: rgba(20, 18, 15, 0.1); color: var(--on-ink); }
[data-theme="dark"] a.cell:hover { box-shadow: 0 26px 46px -30px rgba(0, 0, 0, 0.9); }
[data-theme="dark"] .cta__panel { background: #1a1711; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .stage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { background-color: var(--soft-2); box-shadow: 0 0 0 4px rgba(243, 240, 234, 0.08); }
[data-theme="dark"] .field .err { color: #ff8f85; }
[data-theme="dark"] .field.is-bad input, [data-theme="dark"] .field.is-bad textarea { border-color: #ff8f85; }
[data-theme="dark"] .tint--cream { background: #17130c; --cell: #221c13; --quiet: #c89b5f; --line: rgba(255, 220, 170, 0.12); }
[data-theme="dark"] .tint--slate { background: #11141a; --cell: #1a1f28; --quiet: #8ea3c8; --line: rgba(170, 195, 255, 0.13); }
[data-theme="dark"] .tint .cell, [data-theme="dark"] .tint .member { background: var(--cell); }
[data-theme="dark"] .tint .member:hover { background: color-mix(in srgb, var(--cell) 86%, #fff); }
[data-theme="dark"] .member__cut--ph { fill: #34302b; }
[data-theme="dark"] .tint .member__cut--ph { fill: #2b3240; }
[data-theme="dark"].js .veil { background: #100f0d; }
[data-theme="dark"] .cursor span { color: var(--on-ink); }
[data-theme="dark"] .cursor.is-view { background: rgba(243, 240, 234, 0.94); }
/* gradient art sits on a night base so it glows instead of glaring */
[data-theme="dark"] .art { background: #1c1813; }
[data-theme="dark"] .art::before { filter: blur(28px) saturate(1.1) brightness(0.62); }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f3f0ea' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }

/* Logo: a hair of outline in each letter's own colour makes the wordmark read bolder */
.logo svg, .veil svg { overflow: visible; }
.logo svg path, .veil svg path { stroke-width: 0.9; stroke-linejoin: round; paint-order: stroke; }
.logo svg path[fill="#FF8B02"], .veil svg path[fill="#FF8B02"] { stroke: #ff8b02; }
.logo svg path[fill="#6B7C9A"], .veil svg path[fill="#6B7C9A"] { stroke: #6b7c9a; }
.footer .logo svg { width: 128px; }

/* Team card that opens a LinkedIn profile */
.member__link { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-height: 100%; color: inherit; -webkit-user-drag: none; }
.member__link:focus-visible { outline-offset: -4px; }

/* LinkedIn mark: shows a card can be opened, on touch as well as with a mouse */
.member__link { position: relative; }
.member__in { position: absolute; z-index: 1; bottom: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background 0.3s, color 0.3s, transform 0.45s var(--ease); }
.member__in svg { width: 13px; height: 13px; fill: currentColor; }
.member__link:hover .member__in { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
[data-theme="dark"] .member__in { background: var(--soft-2); }
[data-theme="dark"] .member__link:hover .member__in { background: var(--ink); color: var(--on-ink); }
@media (max-width: 767px) { .member__in { bottom: 8px; right: 8px; width: 26px; height: 26px; } .member__in svg { width: 11px; height: 11px; } }

/* === FONT TRIAL: Drago (display) + General Sans (body). Delete this block to go back to Instrument Serif + Instrument Sans. === */
@font-face { font-family: "Drago"; src: url("../fonts/Drago-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
:root {
  --serif: "Drago", "Instrument Serif", Georgia, serif;
  --sans: "General Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Drago has no italic: accent words stay upright and are set apart by colour alone */
.h1 em, .h2 em, .say .mark, .item .n, .pose .mark, .marquee span:nth-of-type(even) { font-style: normal; }
.h1, .h2, .h3, .marquee span { font-synthesis: none; letter-spacing: -0.022em; }
.h1 em, .h2 em { letter-spacing: -0.022em; }
/* === END FONT TRIAL === */

/* Work cards: client logo on a dark panel (the same in both themes), no link */
.work__logo { margin: 8px 8px 0; border-radius: 12px; aspect-ratio: 16 / 8.2; display: grid; place-items: center; background: #13110e; color: #f3f0ea; overflow: hidden; }
.work__logo svg, .work__logo img { display: block; width: auto; height: 34%; max-width: 60%; transition: transform 0.9s var(--ease); }
.work__logo--grablocal svg { height: 50%; }
.work__logo--okulo svg { height: 19%; }
.work__logo--crossbow img { height: 46%; }
.work:hover .work__logo svg, .work:hover .work__logo img { transform: scale(1.04); }
.work .cell__body { align-content: start; gap: 8px; }
[data-theme="dark"] .work__logo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }

/* Four people: on wider screens the cards share the row evenly, so nothing is cut off at the edge */
@media (min-width: 768px) { .member { flex: 1 0 clamp(220px, 22vw, 340px); } }
