/* Montserrat, self-hosted so every visitor sees the same font */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
/* Harry Ashby — personal site. Knoto tones: light, airy, teal accent, squircles. */
:root {
  --brand-dark: #0A4F56;
  --brand: #106A73;
  --ink: #18181B;
  --ink-2: #5E6366;
  --ink-3: #8B9093;
  --bg: #FAFAFA;
  --panel: #F1F2F2;
  --raised: #F8F9F9;
  --line: #E4E7E7;
  --chip-line: #ECEEEE;
  --rail: #CFDEDF;
  --brand-text: #106A73;
  --logo-ink: #7C8083;
  --btn-bg: #18181B;
  --btn-fg: #FFFFFF;
  --btn-hover: #000000;
  --nav-bg: rgba(241, 242, 242, .82);
  --shadow: 0 1px 2px rgba(24,24,27,.06), 0 4px 14px -6px rgba(24,24,27,.12);
  --empty-a: #E3EAEA; --empty-b: #D3DEDF;
  --gutter: clamp(10px, 1.6vw, 24px);
  --font: "Montserrat", system-ui, sans-serif;
  --r-panel: 30px;
  --r-card: 20px;
  --r-btn: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1112;
  --panel: #151A1B;
  --raised: #1C2224;
  --line: #263031;
  --ink: #EDF0F0;
  --ink-2: #A7B1B3;
  --ink-3: #7A8587;
  --chip-line: #2A3436;
  --rail: #24474B;
  --brand-text: #5FB3BB;
  --logo-ink: #8E989A;
  --btn-bg: #EDF0F0;
  --btn-fg: #0D1112;
  --btn-hover: #FFFFFF;
  --nav-bg: rgba(21, 26, 27, .82);
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  --empty-a: #1C2426; --empty-b: #162022;
}
@supports (corner-shape: squircle) {
  :root { --r-panel: 52px; --r-card: 34px; --r-btn: 22px; }
  .panel, .btn, .chips li, .mini, .modules, .num, .reel__media, .nav, .theme-toggle, .reel__count, .cv-doc, .lightbox__img, .lightbox__close, .lightbox__nav { corner-shape: squircle; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 1800px) { html { font-size: 106.25%; } }
@media (min-width: 2300px) { html { font-size: 112.5%; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.page { padding: var(--gutter) var(--gutter) 32px; max-width: 1640px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: var(--gutter); }

/* Nav */
.nav { position: sticky; top: var(--gutter); z-index: 20; display: flex; align-items: center; gap: 20px; margin-bottom: var(--gutter); padding: 10px 10px 10px 22px; background: var(--nav-bg); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); border: 1px solid var(--line); border-radius: var(--r-card); }
.nav .wordmark { margin-right: auto; }
.nav__links { display: flex; gap: 26px; font-size: 0.9rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding: 10px 10px 8px 16px; row-gap: 6px; }
  .nav__links { order: 3; width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 4px; white-space: nowrap; }
}

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(28px, 4.4vw, 48px); }
.panel--hero { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(36px, 5vw, 56px); }

/* legacy */ .topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 52px); }
.wordmark { font-weight: 600; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.01em; }
.toplinks { display: flex; gap: 22px; font-size: 0.88rem; }
.toplinks a { text-decoration: none; color: var(--ink-2); }
.toplinks a:hover, .toplinks a[aria-current] { color: var(--ink); }

.hero__title { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.12; max-width: 20ch; margin-bottom: 28px; }
.hero__title--sm { max-width: none; }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--ink-2); font-weight: 300; margin-bottom: 18px; max-width: 60ch; }
.hero__knoto { font-size: 0.98rem; color: var(--ink-2); font-weight: 300; margin-bottom: 30px; }
.hero__knoto a { color: var(--ink); text-decoration: none; font-weight: 400; }
.hero__knoto a:hover { text-decoration: underline; }
.hero__sub a { color: var(--brand-text); }

.status { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 30px; }
.status::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: var(--r-btn); font: 400 0.9rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 13px 20px; font-size: 0.95rem; }
.btn--dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn--dark:hover { background: var(--btn-hover); }
.btn--light { background: var(--raised); color: var(--ink); border-color: var(--chip-line); box-shadow: var(--shadow); }
.btn--muted { color: var(--ink-2); }

/* Labels */
.label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.label--lg { font-size: 0.82rem; letter-spacing: 0.22em; }
.muted { color: var(--ink-2); font-weight: 300; }
.teal { color: var(--brand-text); }

/* Stats + brands */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat__num { white-space: nowrap; }
.stat__num { font-size: clamp(1.9rem, 3.4vw, 2.3rem); line-height: 1.1; margin-bottom: 4px; letter-spacing: -0.02em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0 26px; }
:root[data-theme="dark"] .section-head__logo { filter: brightness(2.4) saturate(.6); }
.logo { display: block; width: calc(var(--w) * 1px * var(--logo-scale, 1)); height: calc(var(--h) * 1px * var(--logo-scale, 1)); background: var(--logo-ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.label--spaced { margin-top: 26px; }
.brands { --logo-scale: 1; list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); align-items: center; justify-items: center; row-gap: 6px; }
.brands li { min-height: 46px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .brands { --logo-scale: .95; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }

/* Section heads */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 10px; border-radius: 12px; background: var(--raised); box-shadow: 0 1px 3px rgba(24,24,27,.07); font-size: 0.8rem; font-weight: 500; }
.section-head__logo { margin-left: auto; height: 34px; width: auto; }
.section-head__link { margin-left: auto; font-size: 0.88rem; color: var(--brand-text); text-decoration: none; }
.section-head__link:hover { text-decoration: underline; }
.intro { font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--ink-2); font-weight: 300; line-height: 1.7; max-width: 68ch; margin-bottom: 30px; }
.intro--dark { color: var(--ink); max-width: none; font-weight: 400; }

/* Knoto modules */
.modules { margin: 0 0 30px; background: var(--raised); border-radius: var(--r-card); padding: 6px 20px; }
.modules__row { display: grid; grid-template-columns: 136px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); align-items: baseline; }
.modules__row:first-child { border-top: 0; }
.modules dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.modules dd { margin: 0; color: var(--ink-2); font-weight: 300; }
.explore { font-size: 0.98rem; }
.explore a { color: var(--brand-text); text-decoration: none; margin: 0 4px; }
.explore a:hover { text-decoration: underline; }
@media (max-width: 600px) { .modules__row { grid-template-columns: 1fr; gap: 2px; } }

/* Chips */
.chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-bottom: 40px; }
.chips-grid .label { margin-bottom: 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--raised); border: 1px solid var(--chip-line); border-radius: 12px; padding: 7px 12px; font-size: 0.86rem; }
@media (max-width: 760px) { .chips-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { max-width: 150ch; list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--rail); margin-left: 4px; }
.timeline > li { position: relative; padding-bottom: 34px; }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline > li::before { content: ""; position: absolute; left: -30px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.timeline h3 { font-size: 1.12rem; font-weight: 500; margin: 6px 0 6px; }
.bullets { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-weight: 300; }
.bullets li { margin-bottom: 8px; }
.bullets li::marker { color: var(--brand-text); }

/* Campaign reel */
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.reel__item { flex: 0 0 clamp(170px, 15vw, 260px); margin: 0; scroll-snap-align: start; }
.reel__media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: var(--empty-b); }
.reel__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__media--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--empty-a), var(--empty-b)); }
.reel__placeholder { font-weight: 600; color: var(--logo-ink); font-size: 1.1rem; }
.reel__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); background: var(--raised); border: 0; border-radius: 14px; padding: 10px 14px; font: 600 0.78rem var(--font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity .2s; }
.reel__item:hover .reel__play, .reel__play:focus-visible { opacity: 1; }
.reel__media.is-playing .reel__play { display: none; }
.reel__media--photos { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.reel__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.reel__media--photos:hover img { transform: scale(1.03); }
.reel__count { position: absolute; left: 10px; bottom: 10px; background: rgba(248,249,249,.92); border-radius: 10px; padding: 5px 9px; font: 500 0.72rem var(--font); color: #18181B; }
.reel__media video { background: #000; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,15,16,.82); backdrop-filter: blur(4px); }
.lightbox__img { display: block; max-width: 86vw; max-height: 82vh; border-radius: 18px; margin: 0 auto; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 12px; font-size: 0.9rem; font-weight: 300; }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: rgba(248,249,249,.95); color: #18181B; width: 44px; height: 44px; border-radius: 14px; font: 400 1.5rem/1 var(--font); cursor: pointer; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }
.reel__item figcaption { display: flex; flex-direction: column; margin-top: 12px; }
.reel__item figcaption strong { font-weight: 400; font-size: 1rem; }
.reel__item figcaption span { font-size: 0.85rem; color: var(--ink-2); font-weight: 300; }
@media (hover: none) { .reel__play { opacity: 1; } }

/* How I work */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); padding: 22px 20px 26px; box-shadow: 0 1px 2px rgba(24,24,27,.04); }
.mini__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
.mini__text { font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 900px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

/* Posts */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li + li { border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; text-decoration: none; }
.posts li:first-child a { padding-top: 0; }
.posts time { font-size: 0.85rem; color: var(--ink-3); padding-top: 3px; }
.posts h3 { font-size: 1.08rem; font-weight: 500; margin-bottom: 4px; transition: color .2s; }
.posts a:hover h3 { color: var(--brand-text); }
.posts p { color: var(--ink-2); font-weight: 300; font-size: 0.95rem; }
@media (max-width: 640px) { .posts a { grid-template-columns: 1fr; gap: 4px; } }

/* Article */
.article { max-width: 720px; }
.article .label { margin-bottom: 14px; }
.article__title { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin-bottom: 20px; }
.prose { font-weight: 300; font-size: 1.04rem; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.35rem; font-weight: 500; margin: 1.8em 0 .6em; }
.prose strong { font-weight: 500; }
.prose a { color: var(--brand-text); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand-text); }

/* Contact */
.cta__title { font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.15; margin-bottom: 26px; letter-spacing: -0.02em; }
.cta__text { color: var(--ink-2); font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.12rem); margin-bottom: 30px; max-width: 70ch; }
.copyright { margin-top: 44px; font-size: 0.85rem; color: var(--ink-3); }

@media (max-width: 600px) {
  .page { padding: 10px 10px 28px; gap: 10px; }
  .toplinks { gap: 16px; }
}

/* Hero with campaign clips */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero__reel { display: none; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero__reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; max-width: 560px; justify-self: end; width: 100%; }
  .hero__clip { aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: var(--empty-b); box-shadow: 0 24px 48px -28px rgba(10, 79, 86, .45); }
  .hero__clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero__clip--1 { transform: translateY(26px); }
  .hero__clip--3 { transform: translateY(-26px); }
}
@supports (corner-shape: squircle) { .hero__clip { corner-shape: squircle; } }

/* Experience: side column on wide screens */
.exp__aside .intro { margin-bottom: 26px; font-size: clamp(1rem, 1.1vw, 1.08rem); }
@media (min-width: 1200px) {
  .exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
  .exp__aside { position: sticky; top: 110px; }
  .exp .chips-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }
  .exp .timeline { margin-top: 6px; }
}

/* ---------- v6 layout ---------- */
.eyebrow-pill, .badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--chip-line); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); margin-bottom: 26px; }
.eyebrow-pill .dot, .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.badge { margin-bottom: 16px; }
@supports (corner-shape: squircle) { .eyebrow-pill, .badge, .case__img, .tags li { corner-shape: squircle; } }

.display { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px; }
.display--section { max-width: 24ch; margin-bottom: 34px; }

.panel--logos { padding-top: clamp(22px, 3vw, 32px); padding-bottom: clamp(22px, 3vw, 32px); }
.panel--logos > .label:first-child { margin-top: 0; }

/* About */
.about { display: grid; gap: 36px; }
.about__body .intro { margin-bottom: 36px; }
.stats--about { grid-template-columns: repeat(2, 1fr); gap: 24px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 56px; align-items: start; } .stats--about { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .about { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; } }

/* Knoto */
.knoto { display: grid; gap: 40px; }
.founder-fit .label { margin-bottom: 14px; }
.fit { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 10px; }
.fit li { counter-increment: f; background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); padding: 18px 20px 18px 58px; position: relative; }
.fit li::before { content: "0" counter(f); position: absolute; left: 20px; top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--brand-text); }
.fit h3 { font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.fit p { color: var(--ink-2); font-weight: 300; font-size: 0.95rem; }
@supports (corner-shape: squircle) { .fit li { corner-shape: squircle; } }
@media (min-width: 1000px) { .knoto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.knoto .modules { margin: 0; }
.knoto__intro .intro { margin-bottom: 14px; }
.knoto__sub { color: var(--ink-2); font-weight: 300; line-height: 1.65; margin: 0 0 26px; max-width: 60ch; }
.founder-fit { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .fit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .fit { grid-template-columns: repeat(4, 1fr); } .fit li { padding: 20px; } .fit li::before { position: static; display: block; margin-bottom: 14px; } }

/* Selected work */
@supports (corner-shape: squircle) { .case { corner-shape: squircle; } }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.75rem; padding: 4px 9px; border-radius: 9px; background: var(--panel); color: var(--ink-2); border: 1px solid var(--chip-line); }

/* What I do */
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.numbered li { counter-increment: n; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.numbered li::before { content: "0" counter(n); display: block; font-size: 0.8rem; font-weight: 600; color: var(--brand-text); margin-bottom: 10px; }
.numbered h3 { font-size: 1.1rem; font-weight: 500; margin: 0 0 6px; }
.numbered p { color: var(--ink-2); font-weight: 300; font-size: 0.95rem; }
section[id] { scroll-margin-top: 104px; }
.display--section { max-width: 32ch; }

/* Hero collage */
.panel--hero { position: relative; overflow: hidden; }
.hero__collage { display: none; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 560px; }
  .hero__text { position: relative; z-index: 2; max-width: min(54%, 900px); }
  .hero__reel { display: none !important; }
  .hero__collage { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: min(44%, 720px); pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%); mask-image: linear-gradient(to right, transparent 0, #000 12%); }
  .collage { position: absolute; inset: -30% -4% -30% 6%; align-content: center; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-7deg); }
  .collage__col { display: flex; flex-direction: column; gap: 14px; }
  .collage__col--1 { margin-top: 12%; }
  .collage__col--2 { margin-top: -6%; }
  .collage__col--3 { margin-top: 20%; }
  .tile { aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: var(--empty-b); box-shadow: 0 22px 44px -26px rgba(10, 79, 86, .5); flex: none; }
  .tile video, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
@supports (corner-shape: squircle) { .tile { corner-shape: squircle; } }
.brands li { color: var(--logo-ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

.x-unused-logo { display: grid; place-items: center; background: radial-gradient(80% 70% at 30% 20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(160deg, #106A73, #0A4F56); }
.x-unused-logo .logo { --logo-ink: #FFFFFF; background: #FFFFFF; --logo-scale: 1.15; }

/* About portrait */
.me { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.me__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; display: block; box-shadow: 0 24px 50px -30px rgba(10,79,86,.6); }
.me__card { padding: 2px 4px; }
.me__name { margin: 0 0 4px; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.me__role { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.me__loc { margin: 8px 0 0; font-size: 0.8rem; color: var(--brand-text); font-weight: 500; }
/* Case study results */
@supports (corner-shape: squircle) { .me__photo { border-radius: 48px; corner-shape: squircle; } .case__results li { corner-shape: squircle; } }

/* YunoJuno ratings */
.ratings { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rating { background: var(--panel-2, var(--bg)); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.rating--overall { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.rating__score { font-size: 2.4rem; font-weight: 300; margin: 0 0 4px; } .rating__score span { font-size: 1rem; color: var(--ink-2); }
.rating__client { font-weight: 600; margin: 8px 0 2px; } .rating__project { color: var(--ink-2); font-size: .88rem; margin: 0; }
.stars { --s: 0; width: 92px; height: 16px; margin: 0; background: linear-gradient(90deg, var(--brand-text) calc(var(--s) * 20%), var(--line) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.4L8 12 3.1 14.7l1.1-5.4-4-3.7L5.6 5z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.4L8 12 3.1 14.7l1.1-5.4-4-3.7L5.6 5z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.stars--1 { --s: 1; } .stars--2 { --s: 2; } .stars--3 { --s: 3; } .stars--4 { --s: 4; } .stars--5 { --s: 5; }
.rating__note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .85rem; color: var(--ink-2); }
.rating__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@supports (corner-shape: squircle) { .rating { corner-shape: squircle; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.knoto-mark { margin: 6px 0 22px; width: clamp(150px, 15vw, 210px); aspect-ratio: 2333 / 718; background: var(--brand-dark-text, #0A4F56);
  -webkit-mask: url("/assets/knoto-wordmark.svg") left center / contain no-repeat; mask: url("/assets/knoto-wordmark.svg") left center / contain no-repeat; }
:root[data-theme="dark"] .knoto-mark { background: var(--brand-text); }

.rating__project a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 900px) { .ratings { grid-template-columns: repeat(4, 1fr); } }
.rating__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.rating__meta span { font-size: .72rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; color: var(--brand-text); background: color-mix(in srgb, var(--brand) 10%, transparent); }
@supports (corner-shape: squircle) { .rating__meta span { corner-shape: squircle; } }
.brands li { white-space: nowrap; }
.brands li:not(:has(.logo)) { font-size: .92rem; }
.display, .hero__title { text-wrap: balance; }

/* Built before: Wink Smile Sew / Sewvibe */
.sew { display: grid; gap: 32px; }
@media (min-width: 1000px) { .sew { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.sew__marks { display: flex; align-items: center; gap: 18px; margin: 28px 0 0; }
.sew__marks .logo { --logo-scale: 1.15; }
.sew__line { width: 40px; height: 1px; background: var(--line); }
.sew__body .intro { margin-bottom: 28px; }
.sew__stat { padding-top: 24px; border-top: 1px solid var(--line); }
.sew__stat .stat__num { margin: 0 0 4px; }
.sew__note { margin: 18px 0 0; color: var(--ink-2); font-weight: 300; }
/* Selected work cards */
.cases { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.case:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -34px rgba(10,79,86,.45); }
.case__media { position: relative; margin: 8px 8px 0; border-radius: calc(var(--r-card) - 6px); overflow: hidden; aspect-ratio: 1 / 1; background: #DDE3E3; }
.case__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.case:hover .case__img { transform: scale(1.03); }
.case__overlay { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(10,20,22,.72)); color: #fff; }
.case__cat { margin: 0 0 4px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.case__title { margin: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.case__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.case__role { font-size: .85rem; font-weight: 500; color: var(--brand-text); margin: 0 0 10px; }
.case__summary { color: var(--ink-2); font-weight: 300; font-size: .93rem; line-height: 1.62; margin: 0 0 18px; }
.case__results { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.case__results li { position: relative; padding-left: 16px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.case__results li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.case__tags { margin: 14px 0 0; font-size: .74rem; color: var(--ink-3, var(--ink-2)); opacity: .8; letter-spacing: .01em; }
.case__body > .case__summary + .case__tags { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
@supports (corner-shape: squircle) { .case, .case__media { corner-shape: squircle; } }

/* ---------- v7: editorial refresh ---------- */
.panel--dark { --panel: #0E1415; --raised: rgba(255,255,255,.06); --line: rgba(255,255,255,.12); --chip-line: rgba(255,255,255,.14);
  --ink: #F3F5F5; --ink-2: rgba(243,245,245,.68); --ink-3: rgba(243,245,245,.5); --brand-text: #7CC4CB; --logo-ink: #AEB8BA;
  --btn-bg: #F3F5F5; --btn-fg: #0E1415; --btn-hover: #FFFFFF; --shadow: none;
  background: radial-gradient(70% 90% at 0% 0%, rgba(16,106,115,.35), transparent 60%), radial-gradient(60% 70% at 100% 100%, rgba(10,79,86,.28), transparent 60%), #0E1415;
  color: var(--ink); border-color: #0E1415; }
.panel--dark .tile { box-shadow: 0 22px 44px -24px rgba(0,0,0,.7); }
.panel--dark .hero__knoto a { color: #fff; }
.btn--accent { background: var(--brand); color: #fff; }
.btn--accent:hover { background: #0D5C64; }
.hero__caps { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero__caps li { font-size: .82rem; color: var(--ink-2); }
.hero__caps li::before { content: "+"; margin-right: 8px; color: var(--brand-text); }
@media (min-width: 1100px) { .hero__collage { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); } }

/* Section labels: small square instead of numbered pill */
.section-head { gap: 10px; }
.section-head .num { font-size: 0; min-width: 0; width: 8px; height: 8px; padding: 0; border-radius: 2px; background: var(--brand-text); box-shadow: none; border: 0; }
.section-head .label--lg { font-size: .74rem; }

/* Logo marquee rows */
.logo-row { display: grid; gap: 14px; align-items: center; }
.logo-row + .logo-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .logo-row { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; } }
.logo-row__label { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.logo-row__label b { display: block; color: var(--ink); font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 6px 0; display: flex; align-items: center; gap: 52px; width: max-content; animation: marquee 70s linear infinite; }
.marquee--rev .marquee__track { animation-duration: 45s; animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; color: var(--logo-ink); font-weight: 600; white-space: nowrap; }
.marquee__track .logo { --logo-scale: 1.1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--rev .marquee__track { --shift: -33.333%; animation-name: marquee3; }
@keyframes marquee3 { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } .marquee__track li[aria-hidden] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } }

/* About: statement headline + numbers */
.statement { font-weight: 400; }
.statement span { color: var(--ink-3); }
.about { align-items: end; }
.link-rule { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 6px; border-bottom: 1px dashed var(--brand-text); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.link-rule:hover { color: var(--brand-text); }
.numbers { margin-top: 56px; }
.numbers > .label { margin: 0 0 18px; }
.numbers__grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); gap: 36px; } }
.numbers__val { margin: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; padding-bottom: 16px; border-bottom: 1px dashed var(--rail); white-space: nowrap; }
.numbers__label { margin: 14px 0 6px; font-weight: 600; font-size: .92rem; }
.numbers__note { margin: 0; color: var(--ink-2); font-weight: 300; font-size: .85rem; line-height: 1.55; max-width: 30ch; }
.panel--dark .numbered li, .panel--dark .numbered { border-color: var(--line); }
@media (min-width: 1000px) { #what .numbered { grid-template-columns: repeat(3, 1fr); } }

/* ---------- v8: travel-inspired layout ---------- */
:root { --warm: #EEF0EF; }
.display, .hero2__title, .tour__title { letter-spacing: -0.035em; }

/* Nav: wordmark + actions + Menu */
.nav { padding: 10px 10px 10px 22px; }
.nav .nav__links { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: var(--r-btn); border: 1px solid var(--chip-line); background: var(--raised); color: var(--ink); font: 500 .9rem/1 var(--font); cursor: pointer; }
.menu-btn__icon { display: grid; gap: 4px; } .menu-btn__icon i { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; }
html.menu-open { overflow: hidden; }
.menu { position: fixed; inset: var(--gutter); z-index: 50; border-radius: var(--r-panel); background: #0F1415; color: #F3F5F5; display: flex; flex-direction: column; padding: 18px 22px; opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; overflow: hidden; }
.menu.is-open { opacity: 1; transform: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu .wordmark { color: #F3F5F5; }
.menu__close { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #F3F5F5; display: grid; place-items: center; cursor: pointer; }
.menu__body { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.menu__links a { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; color: #F3F5F5; text-decoration: none; padding: 0 18px; border-radius: 16px; transition: background .2s, color .2s; }
.menu__links a:hover, .menu__links a:focus-visible, .menu__links a[aria-current] { background: #F3F5F5; color: #0F1415; outline: none; }
.menu__tiles { display: flex; gap: 14px; align-items: center; }
.menu__tiles--left { justify-content: flex-end; margin-left: -60px; } .menu__tiles--right { margin-right: -60px; }
.menu__tile { width: clamp(120px, 12vw, 190px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; flex: none; }
.menu__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu__foot { display: flex; justify-content: center; gap: 28px; margin: 0; font-size: .85rem; }
.menu__foot a { color: rgba(243,245,245,.7); text-decoration: none; } .menu__foot a:hover { color: #fff; }
@media (max-width: 899px) { .menu__tiles { display: none; } .menu__body { grid-template-columns: 1fr; } }
@supports (corner-shape: squircle) { .menu, .menu__tile, .menu__close, .menu__links a, .menu-btn { corner-shape: squircle; } }

/* Split hero */
.hero2 { position: relative; overflow: hidden; padding: 0; min-height: clamp(560px, 46vw, 720px); background: var(--warm); border: 0; display: grid; }
:root[data-theme="dark"] .hero2 { --warm: #151A1B; }
.hero2__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: #1B2526; }
.hero2__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,17,.2), rgba(10,16,17,.28) 45%, rgba(10,16,17,.5)); }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.hero2__center { position: relative; z-index: 2; display: grid; place-items: center; padding: 110px clamp(24px, 4vw, 56px) 150px; }
.hero2__copy { grid-area: 1 / 1; width: min(980px, 100%); text-align: center; color: var(--ink); }
.hero2__copy--light { color: #fff; clip-path: inset(0 0 0 50%); pointer-events: none; }
.hero2__copy--light .hero2__sub, .hero2__copy--light .hero2__eyebrow { color: rgba(255,255,255,.85); }
.hero2__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.hero2__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero2__copy--light .dot { background: #7CC4CB; }
.hero2__title { margin: 0 auto 20px; font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 400; line-height: .98; max-width: 14ch; }
.hero2__sub { margin: 0 auto; max-width: 58ch; font-size: clamp(.92rem, 1.05vw, 1rem); font-weight: 400; color: var(--ink-2); line-height: 1.6; }
.hero2__links { position: absolute; z-index: 3; left: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 36px); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero2__links a { color: var(--ink); text-decoration: none; font-size: .86rem; } .hero2__links a:hover { color: var(--brand-text); }
.hero2__card { position: absolute; z-index: 3; right: clamp(20px, 2.6vw, 36px); bottom: clamp(20px, 2.6vw, 36px); width: min(400px, 40%); display: flex; gap: 14px; padding: 10px; background: #FAFAFA; color: #18181B; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero2__card img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; flex: none; }
.hero2__card > div { padding: 4px 6px 4px 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero2__card-title { margin: 0 0 4px; font-weight: 600; font-size: .95rem; }
.hero2__card-text { margin: 0 0 10px; font-size: .8rem; line-height: 1.5; color: #5E6366; }
.hero2__card .btn--dark { --btn-bg: #18181B; --btn-fg: #fff; margin-top: auto; }
@supports (corner-shape: squircle) { .hero2__card, .hero2__card img { corner-shape: squircle; } }
@media (max-width: 899px) {
  .hero2 { min-height: 0; }
  .hero2__media { position: relative; width: 100%; height: 300px; order: 3; }
  .hero2__copy--light { display: none; }
  .hero2__center { padding: 56px 22px 28px; }
  .hero2__links { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 0 22px 26px; }
  .hero2__card { position: relative; right: auto; bottom: auto; width: auto; margin: -70px 14px 14px; order: 4; }
}

/* Work: "find your tour" carousel */
.tour { overflow: hidden; }
.tour__title { margin: 8px 0 40px; text-align: center; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 300; color: var(--ink-3); line-height: 1; }
.tour__caret { display: inline-block; width: 2px; height: .9em; margin-left: 6px; vertical-align: -0.08em; background: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tour__caret { animation: none; } }
.tour__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tour__label { margin: 0; font-weight: 600; font-size: .92rem; }
.tour__arrows { display: flex; gap: 8px; }
.tour__arrows button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--chip-line); background: var(--raised); color: var(--ink); cursor: pointer; font-size: 1rem; }
.tour__track { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * clamp(28px, 4.4vw, 48px)); padding-right: clamp(28px, 4.4vw, 48px); padding-bottom: 4px; }
.tour__track::-webkit-scrollbar { display: none; }
.tcard { flex: none; scroll-snap-align: start; width: var(--w); }
.tcard--s0 { --w: clamp(220px, 19vw, 280px); --h: clamp(170px, 14vw, 210px); }
.tcard--s1 { --w: clamp(270px, 26vw, 380px); --h: clamp(230px, 20vw, 300px); }
.tcard--s2 { --w: clamp(240px, 21vw, 310px); --h: clamp(300px, 26vw, 390px); }
.tcard--s3 { --w: clamp(260px, 23vw, 340px); --h: clamp(210px, 18vw, 260px); }
.tcard__media { position: relative; height: var(--h); border-radius: 20px; overflow: hidden; background: #DDE3E3; }
.tcard__media video, .tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tcard__more { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(10,16,17,.1), rgba(10,16,17,.86) 55%); color: #fff; opacity: 0; transition: opacity .3s ease; font-size: .8rem; line-height: 1.5; }
.tcard__more p { margin: 0 0 8px; } .tcard__more ul { margin: 0; padding-left: 16px; font-weight: 600; }
.tcard:hover .tcard__more, .tcard:focus-within .tcard__more { opacity: 1; }
.tcard:hover .tcard__media video, .tcard:hover .tcard__media img { transform: scale(1.04); }
.tcard__title { margin: 12px 0 2px; font-size: .95rem; font-weight: 500; }
.tcard__meta { margin: 0; font-size: .8rem; color: var(--ink-2); }
@media (hover: none) { .tcard__more { opacity: 1; background: linear-gradient(180deg, transparent 45%, rgba(10,16,17,.85)); } .tcard__more p { display: none; } }
@supports (corner-shape: squircle) { .tcard__media, .tour__arrows button { corner-shape: squircle; } }
.menu[hidden] { display: none; }
@media (max-width: 760px) { .nav { flex-wrap: nowrap; padding: 8px 8px 8px 16px; } .nav .btn--sm { display: none; } }

/* ---------- v9 ---------- */
/* Hero rotating videos */
.hero2__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero2__media video.is-active { opacity: 1; }
.hero2__media::after { z-index: 1; }

/* Carousel with full cards */
.tour__track { align-items: stretch; gap: 14px; }
.tour__track .case { flex: none; width: clamp(290px, 28vw, 390px); scroll-snap-align: start; }
.tour__track .case:hover { transform: none; }

/* What I do: light teal */
.panel--teal { background: #E6F0EF; border-color: #D5E6E4; }
:root[data-theme="dark"] .panel--teal { background: #12282A; border-color: #1C3A3D; }
.panel--teal .numbered, .panel--teal .numbered li { border-color: rgba(10,79,86,.14); }

/* Nav appears after the hero and brands on the home page */
.nav--auto { position: fixed; top: var(--gutter); left: 50%; width: calc(min(100%, 1640px) - 2 * var(--gutter)); margin: 0; z-index: 40; transform: translate(-50%, calc(-100% - 2 * var(--gutter))); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.nav--auto.is-shown { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav--auto { transition: none; } }

/* Popup */
.popup { width: min(680px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px; background: #FAFAFA; color: #18181B; box-shadow: 0 40px 80px -30px rgba(10,20,22,.55); overflow: hidden; }
.popup[open] { display: grid; grid-template-columns: 240px 1fr; animation: pop .3s ease; }
.popup::backdrop { background: rgba(10,16,17,.45); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.popup__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup__body { padding: 30px 30px 28px; }
.popup__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .78rem; font-weight: 600; color: #106A73; }
.popup__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #106A73; }
.popup__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.popup__text { margin: 0 0 20px; color: #5E6366; font-weight: 300; font-size: .92rem; line-height: 1.6; }
.popup__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.popup .btn--light { --raised: #fff; --ink: #18181B; --chip-line: #E4E7E7; }
.popup__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: rgba(255,255,255,.9); color: #18181B; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 600px) { .popup[open] { grid-template-columns: 1fr; } .popup__photo { height: 180px; object-position: 50% 30%; } }
@supports (corner-shape: squircle) { .popup, .popup__close { corner-shape: squircle; } }
.hero2__tag { display: inline-block; padding: 4px 10px; border-radius: 8px; border: 1px solid currentColor; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-right: 4px; opacity: .9; }
@supports (corner-shape: squircle) { .hero2__tag { corner-shape: squircle; } }
.posts__tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); padding-top: 4px; }

/* ---------- v10 ---------- */
/* Experience: one specialisms card */
.exp__card { background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); padding: 22px 22px 20px; }
.exp__card-title { margin: 0 0 16px; font-weight: 600; font-size: 1rem; }
.exp__card .label { margin: 16px 0 10px; font-size: .68rem; }
.exp__card .label:first-of-type { margin-top: 0; }
.chips--sm { gap: 6px; }
.chips--sm li { padding: 5px 10px; font-size: .78rem; border-radius: 9px; background: var(--panel); }
@supports (corner-shape: squircle) { .exp__card { corner-shape: squircle; } }

/* Contact: more presence */
.cta2 { background: #E6F0EF; border-color: #D5E6E4; display: grid; gap: 36px; padding: clamp(32px, 5vw, 64px); }
:root[data-theme="dark"] .cta2 { background: #12282A; border-color: #1C3A3D; }
@media (min-width: 1000px) { .cta2 { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 64px; align-items: end; } }
.cta2__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: .8rem; font-weight: 600; color: var(--brand-text); }
.cta2__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.cta2__title { margin: 0 0 22px; font-size: clamp(2.4rem, 5.4vw, 4.8rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.cta2__title span { color: var(--brand-text); }
.cta2__text { margin: 0; max-width: 56ch; color: var(--ink-2); font-weight: 300; font-size: 1.02rem; line-height: 1.65; }
.cta2__side { display: grid; gap: 12px; }
.cta2__photo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; }
.cta2__email { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 20px; background: #106A73; color: #fff; text-decoration: none; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 500; transition: background .2s; }
.cta2__email span { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.cta2__email i { margin-left: auto; font-style: normal; font-size: 1.3rem; }
.cta2__email:hover { background: #0A4F56; }
@media (max-width: 520px) { .cta2__email { flex-wrap: wrap; } .cta2__email span { width: 100%; } }
.cta2__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cta2__links .btn { --raised: #fff; }
:root[data-theme="dark"] .cta2__links .btn { --raised: rgba(255,255,255,.06); }
.cta2__copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid rgba(10,79,86,.14); font-size: .82rem; color: var(--ink-2); }
.cta2__copy a { color: inherit; }
@supports (corner-shape: squircle) { .cta2__email, .cta2__photo { corner-shape: squircle; } }


/* Tools & AI */
.tools { display: grid; gap: 36px; }
@media (min-width: 1000px) { .tools { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.tools__fade { color: var(--ink-3); }
.ai-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ai-list li { display: grid; grid-template-columns: 200px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ai-list h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.ai-list p { margin: 0; color: var(--ink-2); font-weight: 300; font-size: .93rem; line-height: 1.55; }
@media (max-width: 640px) { .ai-list li { grid-template-columns: 1fr; } }
.tools__stack { background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); padding: 22px; }
.tools__title { margin: 0 0 14px; font-weight: 600; }
.tools__stack .label { margin: 14px 0 8px; font-size: .68rem; }
.tools__stack .label:first-of-type { margin-top: 0; }
@supports (corner-shape: squircle) { .tools__stack { corner-shape: squircle; } }

/* ---------- Blog ---------- */
.pgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }

.pcard { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); text-decoration: none; color: var(--ink); min-height: 240px; transition: transform .3s ease, box-shadow .3s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(10,79,86,.45); }
.pcard--featured { background: #E6F0EF; border-color: #D5E6E4; justify-content: flex-end; min-height: 300px; }
:root[data-theme="dark"] .pcard--featured { background: #12282A; border-color: #1C3A3D; }
.pcard__meta, .blog__meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .78rem; color: var(--ink-2); }
.pcard__tag { display: inline-block; padding: 4px 9px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-text); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pcard__title { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
.pcard--featured .pcard__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 400; letter-spacing: -0.03em; }
.pcard__desc { margin: 0; color: var(--ink-2); font-weight: 300; font-size: .93rem; line-height: 1.6; }
.pcard__more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--brand-text); }
.pcard__more i { font-style: normal; display: inline-block; transition: transform .2s; }
.pcard:hover .pcard__more i { transform: translateX(4px); }
@supports (corner-shape: squircle) { .pcard, .pcard__tag { corner-shape: squircle; } }

.blog-index { text-align: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(44px, 6vw, 80px); }
.blog__meta--center { justify-content: center; margin-bottom: 18px; }
.blog { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(44px, 6vw, 80px); }
.blog__head { max-width: 760px; margin: 0 auto; text-align: center; }
.blog__back { display: inline-block; margin-bottom: 28px; font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.blog__back:hover { color: var(--brand-text); }
.blog__head .blog__meta { justify-content: center; margin-bottom: 18px; }
.blog__title { margin: 0 auto 18px; max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.blog__lede { margin: 0 auto; max-width: 56ch; color: var(--ink-2); font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; }
.blog__byline { display: inline-flex; align-items: center; gap: 12px; margin: 30px auto 0; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--raised); border: 1px solid var(--chip-line); text-align: left; }
.blog__byline img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.blog__byline p { margin: 0; font-size: .85rem; line-height: 1.35; }
.blog__byline span { display: block; color: var(--ink-2); font-size: .78rem; }
.blog__body { max-width: 680px; margin: 48px auto 0; padding-top: 40px; border-top: 1px solid var(--line); font-size: 1.1rem; line-height: 1.85; color: var(--ink); }
.blog__body > p:first-child { font-size: 1.2rem; color: var(--ink); }
.blog__body h2 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; margin: 2em 0 .55em; }
.blog__body p { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.sources { margin-top: 3em; padding: 22px 24px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--chip-line); font-size: .88rem; line-height: 1.6; }
.sources h2 { margin: 0 0 10px !important; font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources li { margin-bottom: .45em; color: var(--ink-2); }
.blog__foot { max-width: 680px; margin: 48px auto 0; padding: 22px 24px; border-radius: var(--r-card); background: #E6F0EF; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
:root[data-theme="dark"] .blog__foot { background: #12282A; }
.blog__foot-text { margin: 0; font-weight: 500; }
@supports (corner-shape: squircle) { .sources, .blog__foot, .blog__byline, .blog__byline img { corner-shape: squircle; } }

/* v11 footer: no photo, clean bottom bar */
@media (min-width: 1000px) { .cta2 { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); align-items: center; } }
.cta2__side { gap: 14px; }
.cta2__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(10,79,86,.14); }
:root[data-theme="dark"] .cta2__foot { border-top-color: rgba(255,255,255,.1); }
.cta2__foot .copyright { margin: 0; font-size: .82rem; color: var(--ink-2); }
.cta2__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cta2__nav a { font-size: .82rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.cta2__nav a:hover { color: var(--brand-text); }

/* v12 rating notes + Knoto reassurance */
.rating__text { margin: 10px 0 0; font-size: .86rem; font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.knoto__note { margin: 0 0 22px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 7%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); font-size: .88rem; font-weight: 300; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.knoto__note strong { font-weight: 600; color: var(--brand-text); }
@supports (corner-shape: squircle) { .knoto__note { corner-shape: squircle; } }

/* v13 rating quotes */
.rating { display: flex; flex-direction: column; }
.rating__quote { margin: 12px 0 14px; font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink); }
.rating__quote + .rating__client { margin-top: auto; }
.rating__text { font-size: .82rem; }

/* v14 overall rating card fills its height */
.rating--overall { justify-content: space-between; gap: 22px; }
.rating__overall-text { margin: 10px 0 0; font-size: .82rem; font-weight: 300; color: var(--ink-2); }
.rating__stats { display: grid; margin: 0; }
.rating__stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); }
.rating__stats dt { order: 2; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.rating__stats dd { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.rating:not(.rating--overall) .rating__meta { margin-top: auto; padding-top: 14px; }

/* v15 design pass */
.case__overlay { padding: 120px 20px 18px; background: linear-gradient(180deg, rgba(10,20,22,0) 0%, rgba(10,20,22,.62) 42%, rgba(10,20,22,.94) 100%); }
.case__title, .case__cat { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.exp__more { margin: 8px 0 0; padding-left: 0; }

.sew__marks { gap: 22px; }
.sew__marks .logo { --logo-scale: 2.2; }
.sew__line { width: 56px; }
@media (min-width: 900px) { .exp > .exp__more { grid-column: 2; } }
.sew__marks .logo { --logo-ink: var(--ink-2); }

/* v16 one button and menu colour: Knoto teal everywhere */
:root, :root[data-theme="dark"] { --btn-bg: #106A73; --btn-fg: #FFFFFF; --btn-hover: #0A4F56; }
.btn--dark, .hero2__card .btn--dark { --btn-bg: #106A73; --btn-fg: #FFFFFF; --btn-hover: #0A4F56; background: var(--btn-bg); color: var(--btn-fg); }
.btn--accent:hover { background: #0A4F56; }
.menu { background: #0A4F56; }
.menu__links a:hover, .menu__links a:focus-visible, .menu__links a[aria-current] { color: #0A4F56; }

/* ---------- v17 consistency pass: one type scale, one shape scale ---------- */
button, input, select, textarea { font-family: inherit; }
/* Section titles */
.tour__title { font-weight: 400; }
/* Card headings: one size and weight everywhere */
.numbered h3, .timeline h3, .fit h3, .ai-list h3, #knoto .fit h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
/* Card and supporting text */
.numbered p, .fit p, .case__summary, .ai-list p, .modules__row dd, .knoto__sub, .sew__note, .exp__card p:not(.label):not(.exp__card-title) { font-size: .95rem; font-weight: 300; line-height: 1.62; }
.rating__text, .rating__overall-text, .case__tags { font-size: .82rem; }
/* Intros: one size */
.intro, .exp__aside .intro, .cta2__text, .sew__body .intro { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 300; line-height: 1.7; }
#knoto .intro.intro--dark { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 400; line-height: 1.55; font-family: var(--font); }
/* Small labels: one style */
.label:not(.label--lg) { font-size: .72rem; font-weight: 500; letter-spacing: .16em; font-family: var(--font); }
.hero2__eyebrow, .cta2__eyebrow, .badge { font-size: .8rem; font-weight: 500; letter-spacing: 0; }
/* Shapes: panels, cards, buttons */
.case, .exp__card, .pcard, .rating, .tile, .fit li, .platforms, .knoto__note, .modules { border-radius: var(--r-card); }
.cta2__email { border-radius: var(--r-btn); }
.btn, .menu-btn, .theme-toggle, .tour__arrows button { border-radius: var(--r-btn); }
/* Panels: same inner spacing everywhere */
.panel, .cta2 { padding: clamp(28px, 4.4vw, 48px); }
.tools__stack, .mini { border-radius: var(--r-card); }
.tools__title, .exp__card-title { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
.mini__label, .logo-row__label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; }
.mini__text { font-size: .95rem; font-weight: 400; line-height: 1.55; }

/* v18 full-width layout and a full-screen hero, matching Ashby Social Co. */
:root { --gutter: 12px; }
.page { max-width: none; }
.nav--auto { width: calc(100% - 2 * var(--gutter)); }
.hero2 { min-height: max(600px, calc(100svh - 136px)); }
@media (max-width: 899px) { .hero2 { min-height: 0; } }
@media (max-width: 599px) { .hero2__eyebrow { flex-wrap: wrap; justify-content: center; row-gap: 10px; } .hero2__eyebrow .hero2__tag { flex-basis: auto; } .hero2__eyebrow .hero2__tag + .dot { display: none; } }

/* v19 mobile: readable small text and comfortable tap targets */
@media (max-width: 760px) {
  .hero2__tag, .case__cat, .pcard__tag, .cta2__email > span, .label:not(.label--lg) { font-size: .75rem; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav .wordmark { padding: 10px 0; }
  .cta2__nav { gap: 0 4px; }
  .cta2__nav a, .menu__foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .cta2__nav { margin-left: -10px; }
  .link-rule, .section-head__link, .blog__back { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 760px) {
  .nav { gap: 8px; }
  .nav .btn--sm { display: inline-flex; min-height: 44px; padding: 0 14px; }
  .nav .theme-toggle { display: none; }
  .nav .menu-btn { min-height: 44px; }
}
.panel.hero2 { padding: 0; }

/* v20 How I work: two routes (agencies / businesses via Ashby Social Co.) */
.routes { display: grid; gap: 14px; margin: 0 0 34px; }
@media (min-width: 900px) { .routes { grid-template-columns: 1fr 1fr; } }
.route { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 26px 24px; background: var(--raised); border: 1px solid var(--chip-line); border-radius: var(--r-card); }
.route--primary { background: #E6F0EF; border-color: #D5E6E4; }
:root[data-theme="dark"] .route--primary { background: rgba(16,106,115,.18); border-color: rgba(16,106,115,.35); }
.route__who { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-text); }
.route__title { margin: 0; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.route__text { margin: 0 0 8px; max-width: 46ch; font-size: .95rem; font-weight: 300; line-height: 1.62; color: var(--ink-2); }
.route .btn { margin-top: auto; }
.routes__terms { margin: 0 0 14px; }
.cta2__alt { margin: 4px 0 0; font-size: .88rem; font-weight: 300; color: var(--ink-2); }
.cta2__alt a { color: var(--brand-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.cta2__alt a:hover { text-decoration: underline; }
@supports (corner-shape: squircle) { .route { corner-shape: squircle; } }
.route .btn { gap: 6px; }

/* v21 shorter page: Tools in Experience, Built before inside Knoto */
.exp__aside .exp__card + .exp__card { margin-top: 14px; }
.exp__card-text { margin: 4px 0 14px; font-size: .95rem; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.built { display: grid; gap: 18px 36px; align-items: center; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .built { grid-template-columns: auto minmax(0, 1fr); } }
.built .sew__marks { margin: 0; }
.built__text { margin: 8px 0 0; max-width: 78ch; font-size: .98rem; font-weight: 300; line-height: 1.65; color: var(--ink-2); }
.built__text strong { font-weight: 500; color: var(--ink); }
@media (min-width: 1000px) {
  .exp { row-gap: 28px; }
  .exp > .exp__aside { grid-row: 1 / span 3; }
  .exp > .exp__tools, .exp > .exp__more { grid-column: 2; }
}
.exp__tools { margin-top: 0; }
@media (max-width: 999px) { .exp__tools { margin-top: 24px; } }

/* v22 Calendly-style corners: squircles everywhere, Calendly's radius scale (panels 64, cards 40, buttons 16, tags 8) */
@supports (corner-shape: squircle) {
  :root { --r-panel: 64px; --r-card: 40px; --r-btn: 16px; }
  * { corner-shape: squircle; }
  .dot, .eyebrow-pill .dot, .badge .dot { corner-shape: round; }
  .chips li, .tags li, .pcard__tag, .hero2__tag, .rating__meta span, .case__tags li, .badge, .eyebrow-pill { border-radius: 8px; }
  .route, .mini, .tile, .exp__card, .rating, .pcard, .fit li, .knoto__note, .modules, .platforms, .tools__stack { border-radius: var(--r-card); }
  .case, .tcard__media { border-radius: 40px; }
  .menu__links a, .menu__tile { border-radius: 24px; }
  .popup { border-radius: 48px; }
}
