/* =========================================================
   Abeba Communications · site styles
   Folioblox-style layout. Dark (black + Abeba yellow) by default,
   with a light mode. Plus Jakarta Sans throughout.
   ========================================================= */

:root, [data-theme="dark"] {
  --bg: #0B0B0B;
  --card: #151515;
  --card-2: #1E1E1E;
  --text: #F4F4F1;
  --muted: #9B9B96;
  --line: rgba(255, 255, 255, .09);
  --btn-bg: #F4F4F1;
  --btn-fg: #111111;
  --logo-filter: grayscale(1) invert(1) brightness(1.5) contrast(1.25);
  --logo-blend: screen;
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
  --accent-text: #F6CF10;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F3F3F1;
  --card: #FFFFFF;
  --card-2: #E9E9E6;
  --text: #121212;
  --muted: #696965;
  --line: rgba(0, 0, 0, .09);
  --btn-bg: #121212;
  --btn-fg: #FFFFFF;
  --logo-filter: grayscale(1) brightness(1.12) contrast(1.35);
  --logo-blend: multiply;
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
  --accent-text: #F6CF10;
  color-scheme: light;
}
:root {
  --accent: #F6CF10;
  --accent-rgb: 246, 207, 16;
  --ink: #111111;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --r-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 80px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s, color .4s;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.ic { width: 1em; height: 1em; flex: none; }
.ic.flip { transform: scaleX(-1); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(70px, 9vw, 130px); position: relative; }

/* ---------- type ---------- */
.label { margin: 0 0 14px; font: 600 15px/1.3 var(--font); color: var(--accent-text); letter-spacing: -.01em; }
.hl { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.hl--hero { font-size: clamp(3.1rem, 8vw, 7.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.hl--xl { font-size: clamp(2.5rem, 5.6vw, 5rem); }
.hl--lg { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.hl--md { font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.14; letter-spacing: -.03em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--muted); max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--btn-bg); --b-fg: var(--btn-fg); --i-bg: var(--accent); --i-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 6px 6px 6px 22px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 14.5px/1 var(--font); white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), transform .4s var(--ease), box-shadow .35s;
}
.btn:not(:has(.btn__icon)) { padding-right: 22px; }
.btn__label { position: relative; display: block; overflow: hidden; height: 1.15em; line-height: 1.15; }
.btn__label > span { display: block; transition: transform .5s var(--ease); }
.btn__label::after { content: attr(data-text); position: absolute; left: 0; top: 100%; transition: transform .5s var(--ease); }
.btn:hover .btn__label > span, .btn:hover .btn__label::after { transform: translateY(-100%); }
.btn__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--i-bg); color: var(--i-fg); font-size: 16px; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn--yellow { --b-bg: var(--accent); --b-fg: var(--ink); --i-bg: #fff; --i-fg: var(--ink); }
.btn--yellow:hover { box-shadow: 0 14px 34px -14px rgba(var(--accent-rgb), .8); }
.btn--glass { --b-bg: rgba(255,255,255,.12); --b-fg: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { min-height: 44px; font-size: 13.5px; padding-left: 18px; }
.btn--sm .btn__icon { width: 32px; height: 32px; font-size: 14px; }
.btn--lg { min-height: 58px; padding-left: 28px; font-size: 15.5px; }
.btn--lg .btn__icon { width: 46px; height: 46px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row--center { justify-content: center; }
.round-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; transition: background .3s, color .3s; }
.round-btn:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.pill-btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--card-2); font: 600 13.5px/1 var(--font); }
.pill-btn__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 14px; transition: transform .5s var(--ease); }
a:hover .pill-btn__icon { transform: rotate(-45deg); }

.u-link { position: relative; display: inline-block; }
.u-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li, .pill { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; font: 500 12.5px/1 var(--font); background: var(--card-2); color: var(--text); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .5s var(--ease), background .4s, box-shadow .4s; }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.brand { margin-right: auto; }
.brand img { width: 132px; height: auto; }
.brand__light, [data-theme="light"] .brand__dark { display: none; }
[data-theme="light"] .brand__light { display: block; }
.over-hero .hdr:not(.is-scrolled) .brand__dark { display: block; }
.over-hero .hdr:not(.is-scrolled) .brand__light { display: none; }
.nav { display: flex; gap: 30px; }
.nav__link { font: 500 14.5px/1 var(--font); opacity: .8; transition: opacity .3s, color .3s; padding: 8px 0; }
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link.is-active { color: var(--accent-text); }
.hdr__actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.over-hero .hdr:not(.is-scrolled) { color: #fff; }
.over-hero .hdr:not(.is-scrolled) .hdr__cta { --b-bg: #fff; --b-fg: #111; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; font-size: 17px; opacity: .85; transition: opacity .3s, transform .5s var(--ease); }
.theme-toggle:hover { opacity: 1; transform: rotate(20deg); }
.theme-toggle__moon, [data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
.theme-toggle .ic { width: 18px; height: 18px; }
/* one big hamburger on every screen size (the inline link row is not used) */
.nav { display: none !important; }
.menu-toggle { --s: 60px; display: block; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--accent); position: relative; transition: transform .4s var(--ease); }
.menu-toggle:hover { transform: scale(1.06); }
.menu-toggle span { position: absolute; left: 29%; right: 29%; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: calc(50% - 5px); }
.menu-toggle span:last-child { top: calc(50% + 3px); }
.menu-open .menu-toggle span:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

.mobile-menu {
  --ox: calc(100% - 40px); --oy: 40px;
  position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 30px) max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))) 40px;
  clip-path: circle(0% at var(--ox) var(--oy)); transition: clip-path .7s var(--ease-io);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at var(--ox) var(--oy)); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__link { align-self: flex-start; font: 700 clamp(2.3rem, 5.6vw, 5.4rem)/1.08 var(--font); letter-spacing: -.035em; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.mobile-menu__link:hover, .mobile-menu__link.is-active { color: var(--accent); }
.menu-open .mobile-menu__link { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * 60ms); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.menu-open .hdr { background: transparent; box-shadow: none; backdrop-filter: none; color: var(--text); }
.menu-open .hdr .brand__dark { display: block; }
.menu-open .hdr .brand__light { display: none; }
[data-theme="light"] .menu-open .hdr .brand__dark { display: none; }
[data-theme="light"] .menu-open .hdr .brand__light { display: block; }

/* ---------- hero card (home, inner pages, case studies) ---------- */
.hero__card {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  min-height: max(640px, 100svh); border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: radial-gradient(90% 80% at 85% 10%, rgba(var(--accent-rgb), .22), transparent 60%), #141414;
}
.hero--page .hero__card { min-height: max(520px, 74svh); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroIn 2.2s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 80% 78%, rgba(0,0,0,.55), rgba(0,0,0,0) 70%),
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 28%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.88) 100%),
  linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 60%); }
.hero__card--plain .hero__shade { background: none; }
.hero__body {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); align-content: end; align-items: end; gap: 28px 48px;
  max-width: 1400px; margin: 0 auto; padding: calc(var(--header-h) + 30px) var(--gutter) clamp(32px, 4vw, 52px);
}
.hero__main .label { margin-bottom: 18px; }
.hero__card .label, .next-card .label, .bento__card--img .bento__n, .over-hero .hdr:not(.is-scrolled) .nav__link.is-active { color: var(--accent); }
.hero__main .hl { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; max-width: 420px; }
.hero__statement { margin: 0; font: 600 clamp(1.15rem, 1.6vw, 1.45rem)/1.3 var(--font); letter-spacing: -.02em; }
.hero__text { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.hero__side .btn-row { margin-top: 10px; }
.hero__side { max-width: 480px; }
.hero__cta { margin-top: 8px; }
/* clean page heading (no photo), same look as the Gallery page */
.page-clean { padding-bottom: 0; }
.page-clean .gal__head { margin-bottom: 0; max-width: 1000px; }
.page-clean .lead { max-width: 760px; }
.page-clean + .section { padding-top: clamp(36px, 4vw, 56px); }
/* Services page: four minimal columns */
.svc-cols__head { margin-bottom: clamp(28px, 4vw, 48px); }
.svc-cols__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.svc-col { display: flex; flex-direction: column; }
.svc-col__img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card-2); margin-bottom: 22px; }
.svc-col__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-col:hover .svc-col__img img { transform: scale(1.04); }
#brand-strategy .svc-col__img img { object-position: 31% 50%; } /* keep the whole diagram in the square */
.svc-col__title { margin: 0 0 16px; font: 400 clamp(1.3rem, 1.8vw, 1.65rem)/1.15 var(--font); letter-spacing: -.02em; }
.svc-col__title span { color: var(--accent-text); }
.svc-col__title a:hover { color: var(--accent-text); }
.svc-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.svc-col__list li { position: relative; padding-left: 16px; }
.svc-col__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.svc-col__more { align-self: flex-start; margin-top: 18px; font: 600 13.5px/1 var(--font); color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.svc-col__more:hover { color: var(--accent-text); border-color: currentColor; }
.svc-cols__cta { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1100px) { .svc-cols__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 600px) { .svc-cols__grid { grid-template-columns: 1fr; } }
/* "From seed to fruit" steps on the Services page: lighter to match the columns */
.process .hl--lg { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.process .numrow--big strong { font-weight: 500; letter-spacing: -.02em; }
.process .numrow--big small { font-size: .9rem; }
/* single service page */
.svc-page .page-clean .u-link { display: inline-block; margin-bottom: 22px; }
.svc-page__img { margin: clamp(30px, 4vw, 56px) 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--card-2); }
.svc-page__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-page__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.svc-page__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-page__list li { position: relative; padding: 14px 16px 14px 42px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.svc-page__list li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); }
.svc-page__qa { display: grid; gap: 10px; margin-top: clamp(20px, 3vw, 36px); max-width: 900px; }
.svc-page__q { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 22px; }
.svc-page__q summary { cursor: pointer; padding: 20px 0; font: 700 1.05rem/1.3 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.svc-page__q summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.svc-page__q[open] summary::after { transform: rotate(45deg); }
.svc-page__q p { margin: 0 0 20px; color: var(--muted); }
.svc-page__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.svc-page__other { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: #0E0E0E; color: #F4F4F1; transition: transform .5s var(--ease); }
.svc-page__other strong { font: 800 1.5rem/1.1 var(--font); letter-spacing: -.03em; color: var(--accent); }
.svc-page__other span:not(.pill-btn):not(.pill-btn__icon) { color: rgba(244,244,241,.7); font-size: .95rem; }
.svc-page__other .pill-btn { margin-top: auto; align-self: flex-start; }
.svc-page__other:hover { transform: translateY(-4px); }
.sdetail__title a:hover { color: var(--accent-text); }
.sdetail__more { margin-top: 18px; }
@media (max-width: 900px) { .svc-page__grid, .svc-page__more { grid-template-columns: 1fr; } .svc-page__img { aspect-ratio: 4 / 3; } }
/* agency network: centred title, partner logos in full colour on white tiles */
.partners { text-align: center; }
.partners__title { margin-inline: auto; }
.partners__text { max-width: 620px; margin: 14px auto 0; }
.partners__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: clamp(12px, 2vw, 24px); margin-top: clamp(28px, 4vw, 52px); }
.partners__logo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 26px 34px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.partners__logo img { max-width: 100%; max-height: 84px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .45s, opacity .45s; }
a.partners__logo:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(0,0,0,.45); }
.partners__logo:hover img, .partners__logo:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 560px) {
  .partners__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .partners__logo { height: 76px; padding: 10px; border-radius: 14px; }
  .partners__logo img { max-height: 44px; }
}
/* client logo grid (About page): grey logos, full colour on hover */
.logos--grid .label { margin-bottom: clamp(20px, 2.5vw, 32px); font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/1.02 var(--font); letter-spacing: -.035em; color: var(--text); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logo-grid__cell { display: flex; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.logo-grid .logo { width: 100%; height: 110px; padding: 18px; }
.logo-grid .logo img { max-height: 56px; max-width: 80%; filter: var(--logo-filter); opacity: .6; transition: opacity .4s, filter .4s; }
.logo-grid .logo:hover img { filter: none; mix-blend-mode: normal; opacity: 1; }
.hero__services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 18px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero__services a { display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.3 var(--font); color: rgba(255,255,255,.88); transition: color .3s; }
.hero__services a:hover { color: var(--accent); }
.hero__services span { font-weight: 600; font-size: 12.5px; color: var(--accent); }
.case__back { display: table; margin-bottom: 22px; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- client logo strip: two rows moving in opposite directions ---------- */
.logos { padding: 40px 0 10px; }
.logos__in { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.head2.head2--wide { grid-template-columns: minmax(0, 1fr) max-content; align-items: end; }
.head2--wide .head2__side, .head2--wide .head2__row { width: auto; min-width: 0; max-width: none; }
.head2--wide .hl { max-width: 1150px; }
@media (max-width: 900px) { .head2.head2--wide { grid-template-columns: 1fr; } }
/* thin line that separates the hero from the client logos */
.logos:not(.logos--grid) .logos__in { border-top: 1px solid color-mix(in srgb, var(--text) 20%, transparent); padding-top: clamp(28px, 3.5vw, 44px); }
.logos--grid .wrap { border-top: 1px solid color-mix(in srgb, var(--text) 20%, transparent); padding-top: clamp(28px, 3.5vw, 44px); }
.logos__label { flex: none; margin: 0; font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/1.02 var(--font); letter-spacing: -.035em; color: var(--text); }
.logos__rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.logos__rail { overflow: hidden; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; width: max-content; background: var(--bg); animation: marquee 55s linear infinite; transition: background-color .4s; }
.logos__rail--rev .logos__track { animation-direction: reverse; animation-duration: 62s; }
.logos__rail:hover .logos__track { animation-play-state: paused; }
.logos__group { display: flex; align-items: center; gap: clamp(8px, 2.5vw, 28px); padding-right: clamp(8px, 2.5vw, 28px); }
.logo { display: flex; align-items: center; justify-content: center; height: 64px; padding: 10px 18px; flex: none; }
.logo img { display: block; height: auto; width: auto; max-height: 44px; max-width: 150px; object-fit: contain; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); opacity: .72; transition: opacity .4s; }
.logo { border-radius: 16px; transition: background-color .35s; }
.logo:hover { background: #fff; }
[data-theme="light"] .logo:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 14px 28px -16px rgba(0,0,0,.35); }
.logo:hover img { opacity: 1; filter: none; mix-blend-mode: normal; }@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- two-column section head (label + title | statement + button) ---------- */
.head2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head2__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.head2__statement { margin: 0; font: 600 clamp(1.08rem, 1.5vw, 1.32rem)/1.4 var(--font); letter-spacing: -.02em; }
.head2__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.head2__small { margin: 0; max-width: 26ch; color: var(--muted); font-size: 13px; line-height: 1.5; }
.head-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.head-c .hl { max-width: 16ch; }
.head-c__text { margin: 18px 0 22px; color: var(--muted); max-width: 52ch; font-size: .95rem; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- intro: three images ---------- */
.intro__imgs { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(10px, 1.4vw, 18px); }
.intro__img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--card-2); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.intro__img:hover img { transform: scale(1.06); }
.intro__link { display: block; width: 100%; height: 100%; }

/* ---------- curved work strip (cards on the inside of a cylinder) ---------- */
.strip { overflow: hidden; }
.strip__stage { --cw: 200px; position: relative; height: calc(var(--cw) * 3.2); margin: clamp(40px, 5vw, 64px) 0 0; perspective: 1300px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.strip__stage:active { cursor: grabbing; }
.strip__stage::before, .strip__stage::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 300; width: 8%; pointer-events: none; }
.strip__stage::before { left: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 50%, transparent) 0%, color-mix(in srgb, var(--bg) 27%, transparent) 45%, transparent 100%); }
.strip__stage::after { right: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--bg) 50%, transparent) 0%, color-mix(in srgb, var(--bg) 27%, transparent) 45%, transparent 100%); }
.strip__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.strip__card { position: absolute; left: 50%; top: 50%; contain: layout paint; width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: 18px; overflow: hidden; background: var(--card-2); transform: translate(-50%, -50%); backface-visibility: hidden; will-change: transform; box-shadow: 0 24px 50px -30px rgba(0,0,0,.55); }
.strip__link { display: block; width: 100%; height: 100%; }
.strip__link img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease); }
.strip__card:hover .strip__link img { transform: scale(1.05); }

html:not(.js) .strip__track { display: flex; gap: 14px; overflow-x: auto; padding-inline: var(--gutter); }
html:not(.js) .strip__card { position: relative; left: auto; top: auto; transform: none; flex: none; }.numrow { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 24px; list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; }
.numrow li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.numrow span { font: 600 12.5px/1 var(--font); color: var(--accent-text); }
.numrow strong { font: 600 1rem/1.3 var(--font); }
.numrow small { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.numrow--center li { align-items: center; text-align: center; border-top: 0; padding-top: 0; }
.numrow--center span { font-size: 18px; font-weight: 700; }
.numrow--center strong { font-size: 1.02rem; font-weight: 500; }
.numrow--big { margin-top: 0; gap: clamp(20px, 3vw, 40px); }
.numrow--big li { gap: 12px; padding-top: 26px; }
.numrow--big strong { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; }
.numrow--big small { font-size: .95rem; max-width: 34ch; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(260px, 25vw, 350px); gap: clamp(10px, 1.2vw, 16px); }
.bento__card { position: relative; display: flex; align-items: flex-end; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); overflow: hidden; isolation: isolate; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease); }
.bento__card:hover { transform: translateY(-4px); }
.bento__card--wide { grid-column: span 2; }
.bento__card--solid { background: var(--accent); color: var(--ink); box-shadow: none; }
.bento__card--img { color: #fff; box-shadow: none; }
.bento__img { position: absolute; inset: 0; z-index: -2; }
.bento__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__card:hover .bento__img img { transform: scale(1.06); }
.bento__card--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.85) 100%); }
.bento__body { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.bento__n { font: 600 12.5px/1 var(--font); color: var(--accent-text); }
.bento__card--solid .bento__n { color: rgba(17,17,17,.6); }
.bento__title { font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--font); letter-spacing: -.03em; }
.bento__line { display: block; width: 100%; max-width: 280px; height: 2px; background: var(--accent); margin: 6px 0 4px; transform-origin: left; transform: scaleX(.35); transition: transform .8s var(--ease); }
.bento__card:hover .bento__line { transform: scaleX(1); }
.bento__card--solid .bento__line { background: var(--ink); }
.bento__text { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.bento__card--img .bento__text { color: rgba(255,255,255,.78); }
.bento__card--solid .bento__text { color: rgba(17,17,17,.72); }

/* ---------- services: one row per service (photo + yellow card), alternating sides ---------- */
.svc-rows { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 16px); }
.svc-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(10px, 1.2vw, 16px); min-height: clamp(300px, 28vw, 420px); }
.svc-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.svc-row--flip .svc-row__img { order: 2; }
.svc-row__img { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--card-2); }
.svc-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-row:hover .svc-row__img img { transform: scale(1.05); }
.svc-row__card { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: #0E0E0E; color: #F4F4F1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .6s var(--ease); }
.svc-row:hover .svc-row__card { transform: translateY(-4px); }
.svc-row__n { font: 600 13px/1 var(--font); color: var(--accent); }
.svc-row__title { font: 800 clamp(1.8rem, 2.8vw, 2.6rem)/1.05 var(--font); letter-spacing: -.04em; color: var(--accent); }
.svc-row__line { display: block; width: 64px; height: 2px; background: var(--accent); margin: 6px 0 4px; transform-origin: left; transition: transform .8s var(--ease); }
.svc-row:hover .svc-row__line { transform: scaleX(2.5); }
.svc-row__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-row__list li { position: relative; padding-left: 20px; font: 500 15px/1.4 var(--font); }
.svc-row__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .svc-row, .svc-row--flip { grid-template-columns: 1fr; min-height: 0; }
  .svc-row--flip .svc-row__img { order: 0; }
  .svc-row__img { aspect-ratio: 16 / 10; }
}
/* ---------- gallery page (filter pills + image cards + lightbox) ---------- */
.gal { padding-top: calc(var(--header-h) + clamp(50px, 7vw, 100px)); }
.gal__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(26px, 3vw, 40px); }
.gal__head .hl { text-transform: uppercase; letter-spacing: -.035em; }
.gal__head .label { margin: 0; }
.gal__filters { margin-bottom: clamp(24px, 3vw, 36px); }
/* Pinterest-style masonry: equal columns, each card as tall as its photo. Without JS the cards still keep their shape. */
.gal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 1.2vw, 16px); }
.gal__item { margin: 0; min-width: 0; aspect-ratio: var(--ar, .8); }
.gal__grid.is-masonry { grid-auto-rows: 8px; grid-auto-flow: row dense; }
.gal__grid.is-masonry .gal__item { aspect-ratio: auto; height: 100%; }
.gal__item[hidden] { display: none; }
/* filter chips + search on one line */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.filter-bar .chips { margin: 0; }
.search-box { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 200px; height: 46px; padding: 0 18px 0 44px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .3s; }
.search-box svg { position: absolute; left: 16px; }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 15px/1 var(--font); }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }
.search-box:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.filter-empty { padding: 40px 0; color: var(--muted); font-size: 1.05rem; }
.filter-empty[hidden] { display: none; }
.gal__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--card-2); cursor: zoom-in; text-align: left; }
.gal__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.gal__btn:hover img { transform: scale(1.05); }
/* the tag stays; the project name (and its bottom shade) only appears on hover or keyboard focus */
.gal__btn::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.7) 100%); }
.gal__btn::after, .gal__title { opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gal__title { transform: translateY(8px); }
.gal__btn:hover::after, .gal__btn:focus-visible::after,
.gal__btn:hover .gal__title, .gal__btn:focus-visible .gal__title { opacity: 1; transform: none; }
.gal__tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.gal__title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font: 700 clamp(.95rem, 1.2vw, 1.1rem)/1.2 var(--font); letter-spacing: -.02em; }
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(4px); }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__fig img { max-width: 100%; max-height: 78vh; border-radius: 16px; object-fit: contain; }
.lightbox__fig figcaption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: #fff; }
.lightbox__tag { padding: 6px 11px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.lightbox__tag:empty { display: none; }
.lightbox .pill-btn { background: rgba(255,255,255,.12); color: #fff; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; transition: background .3s, color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--ink); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.work-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.work-tools .chips { margin: 0; }
.head-c__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: clamp(22px, 2.6vw, 34px); }
.head-c__text + .head-c__btns { margin-top: 0; } /* the text line already adds space */
.head-c .label { margin-bottom: 14px; }
@media (max-width: 1000px) { .gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { flex: 1 1 100%; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
}
/* ---------- project list (rows + floating preview) ---------- */
.plist__rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.plist__rows li { border-top: 1px solid var(--line); }
.plist__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto auto; grid-template-areas: "cat text meta go" "name text meta go";
  align-items: center; gap: 4px clamp(20px, 4vw, 56px); padding: 28px 0; transition: padding .5s var(--ease);
}
.plist__row:hover { padding-left: 14px; }
.plist__cat { grid-area: cat; font: 600 12.5px/1.2 var(--font); color: var(--accent-text); }
.plist__name { grid-area: name; font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--font); letter-spacing: -.03em; transition: color .3s; }
.plist__row:hover .plist__name { color: var(--accent-text); }
.plist__text { grid-area: text; color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 56ch; }
.plist__meta { grid-area: meta; padding: 7px 13px; border-radius: 999px; background: var(--card-2); font: 500 12px/1 var(--font); white-space: nowrap; }
.plist__go { grid-area: go; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s, transform .5s var(--ease); }
.plist__row:hover .plist__go { background: var(--accent); color: var(--ink); box-shadow: none; transform: rotate(-45deg); }
.plist__preview { position: fixed; left: 0; top: 0; z-index: 60; width: 340px; aspect-ratio: 1.42; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85); transition: opacity .35s, transform .5s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.plist__preview.is-on { opacity: 1; }
.plist__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(16px, 2vw, 28px); }
.work-card { min-width: 0; }
.work-card[hidden] { display: none; }
.work-card__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 1.42; background: var(--card-2); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card__link:hover .work-card__img img { transform: scale(1.05); }
.work-card__title { margin: 22px 0 8px; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.03em; }
.work-card__text { color: var(--muted); font-size: .93rem; max-width: 54ch; margin-bottom: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 10px 18px; border-radius: 999px; font: 500 14px/1 var(--font); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.chip sup { font-size: 10px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--text); }
.chip.is-active { background: var(--accent); color: var(--ink); box-shadow: none; }

/* ---------- split: text left, tall image right ---------- */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip .split__media { order: -1; }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split__copy .label { margin: 0; }
.split__lead { margin: 0; font: 600 clamp(1.1rem, 1.5vw, 1.3rem)/1.4 var(--font); letter-spacing: -.02em; max-width: 34ch; }
.split__copy .prose { color: var(--muted); font-size: .95rem; }
.split__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--card-2); }
.split__media img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* ---------- testimonials: photo row, hovered photo pops open with its quote beside it ---------- */
.vx { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(40px, 5vw, 64px); --big-h: clamp(300px, 28vw, 410px); }
.vx__tile { flex: none; position: relative; width: clamp(92px, 8.6vw, 128px); height: clamp(118px, 11vw, 164px); padding: 0; border-radius: 16px; overflow: hidden; background: var(--card-2); cursor: pointer; transition: width .8s var(--ease-io), height .8s var(--ease-io), flex-grow .8s var(--ease-io), transform .8s var(--ease-io), box-shadow .5s; }
.vx__tile:not(.is-active):hover { transform: translateY(-6px); }
.vx__tile.is-active { width: clamp(210px, 19vw, 290px); height: var(--big-h); box-shadow: var(--shadow); cursor: default; }
.vx__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vx__tile.is-active img { transform: scale(1.02); }
.vx__ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 clamp(2rem, 3vw, 3.4rem)/1 var(--font); color: var(--accent); background: radial-gradient(80% 70% at 30% 20%, rgba(var(--accent-rgb), .18), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.vx__panel { flex: none; width: min(330px, 26vw); height: var(--big-h); padding: 18px 8px 0 clamp(8px, 1.4vw, 20px); transition: transform .8s var(--ease-io); }
.vx__quote { display: none; margin: 0; }
.vx__quote.is-active { display: block; animation: vxIn .7s var(--ease) .15s both; }
@keyframes vxIn { from { opacity: 0; transform: translateY(12px); } }
.vx__stars { display: block; margin-bottom: 14px; color: var(--accent); letter-spacing: 3px; font-size: 14px; }
.vx__quote blockquote { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.vx__line { display: block; width: 64px; height: 2px; background: var(--accent); margin: 24px 0 20px; }
.vx__quote strong { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.vx__quote small { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .vx { flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; gap: 6px; --big-h: 190px; }
  .vx__tile { flex: 1 1 0; min-width: 0; width: auto; height: 82px; border-radius: 12px; }
  .vx__tile.is-active { flex: 2.6 1 0; width: auto; height: var(--big-h); }
  .vx__ph { font-size: 1.6rem; }
  .vx__panel { order: 999 !important; width: 100%; height: auto; padding: 18px 0 0; }
}
/* ---------- stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { padding-top: 22px; border-top: 1px solid var(--line); }
.stat__value { font: 800 clamp(3rem, 6vw, 5rem)/1 var(--font); letter-spacing: -.05em; margin-bottom: 10px; }
.stat__value em { font-style: normal; color: var(--accent); }
.stat__label { color: var(--muted); }

/* ---------- insights ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 28px); }
.post-card[hidden] { display: none; }
/* article cards: minimal (picture, one small line, title) */
.post-card__link { display: block; }
.post-card__media { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--card-2); margin-bottom: 14px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { display: block; width: 100%; height: 100%; background: radial-gradient(70% 70% at 80% 10%, rgba(var(--accent-rgb), .25), transparent 60%), var(--card-2); }
.post-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.post-card__title { margin: 0; font: 600 clamp(1rem, 1.25vw, 1.15rem)/1.35 var(--font); letter-spacing: -.015em; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.post-card__link:hover .post-card__title { color: var(--accent-text); }
.post-card__text { color: var(--muted); font-size: .92rem; }
.insights__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.insights__head .label { margin-bottom: 10px; }
.insights__all { flex: none; font: 600 14px/1 var(--font); color: var(--muted); padding: 8px 0; border-bottom: 1px solid currentColor; transition: color .3s; }
.insights__all:hover { color: var(--accent-text); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 60px 0; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__head { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; gap: 18px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 clamp(1.05rem, 1.5vw, 1.25rem)/1.35 var(--font); letter-spacing: -.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc__n { flex: none; font-size: 13px; color: var(--accent-text); }
.acc__q { flex: 1; }
.acc__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; transition: transform .5s var(--ease), background .3s; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--accent); color: var(--ink); box-shadow: none; }
.acc__a { padding: 0 60px 26px 32px; color: var(--muted); }

/* ---------- CTA (switched off by default) ---------- */
.cta-panel { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: clamp(60px, 9vw, 120px) var(--gutter); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cta-panel .label { margin: 0; }

/* ---------- reel (optional) ---------- */
.reel__marquee { overflow: hidden; margin-bottom: -30px; position: relative; z-index: 0; }
.reel__marquee-track { display: flex; width: max-content; gap: 32px; animation: marquee 30s linear infinite; font: 800 clamp(4rem, 12vw, 10rem)/1 var(--font); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.reel__marquee-track em { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
.reel__frame { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--card-2); cursor: pointer; }
.reel__poster, .reel__frame video, .reel__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel__play { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 28px; transition: transform .6s var(--ease); }
.reel__frame:hover .reel__play { transform: scale(1.1); }
.reel__frame.is-playing .reel__play, .reel__frame.is-playing .reel__poster { display: none; }

/* ---------- values / team / gallery / services detail ---------- */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding-top: 24px; border-top: 1px solid var(--line); }
.value__n { font: 600 12.5px/1 var(--font); color: var(--accent-text); }
.value__t { font-size: 1.35rem; margin: 14px 0 10px; }
.value p { color: var(--muted); font-size: .93rem; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
/* team portrait wall (3 x 3 like a poster) */
.team-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); max-width: 1080px; margin-inline: auto; }
.team-wall__item, .team-wall__card { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; }
.team-wall__card { overflow: hidden; }
/* flip card */
.team-wall__item { perspective: 1200px; cursor: pointer; outline: 0; }
.team-wall__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.45, .05, .25, 1); will-change: transform; }
.team-wall__item:hover .team-wall__in, .team-wall__item:focus-visible .team-wall__in, .team-wall__item.is-flipped .team-wall__in { transform: rotateY(180deg); }
.team-wall__front, .team-wall__back { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.team-wall__front { background: var(--backdrop, #F6CF10); }
.team-wall__front img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-wall__ph { position: absolute; left: 50%; bottom: 0; width: 62%; transform: translateX(-50%); fill: rgba(0,0,0,.14); }
.team-wall__back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; padding: 9% 8%; margin: 0; background: #161616; color: #F4F4F1; text-align: left; container-type: inline-size; }
.team-wall__back strong { font: 800 13cqi/.98 var(--font); letter-spacing: -.035em; }
.team-wall__in-link { margin-top: 6px; font: 600 4.6cqi/1 var(--font); color: rgba(255,255,255,.6); }
.team-wall__item.has-link:hover .team-wall__in-link { color: #fff; }
.team-wall__role { font: 600 5cqi/1.3 var(--font); color: var(--backdrop, #F6CF10); text-transform: uppercase; letter-spacing: .07em; }
@media (prefers-reduced-motion: reduce) {
  .team-wall__in { transition: none; }
}
.team-wall__card { container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 22px); padding: 8%; background: #3A3A3A; color: #F4F4F1; text-align: center; text-transform: uppercase; }
.team-wall__card strong { font: 800 6.5cqi/1.05 var(--font); letter-spacing: .01em; }
.team-wall__card .team-wall__top { font-size: 11cqi; line-height: .98; letter-spacing: -.01em; }
.team-wall__x { font: 800 8cqi/1 var(--font); color: var(--accent); }
.team-wall__card .team-wall__big { font-size: 9cqi; line-height: .98; letter-spacing: -.01em; }
@media (max-width: 560px) { .team-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { margin: 0; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--card-2); margin-bottom: 14px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); font-size: .9rem; }
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r); overflow: hidden; }
.masonry figcaption { padding: 10px 4px; font-size: 13px; color: var(--muted); }
.sdetail__row { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: clamp(20px, 4vw, 60px); padding: clamp(40px, 5vw, 60px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.sdetail__row:last-child { border-bottom: 1px solid var(--line); }
.sdetail__num { font: 600 14px/1 var(--font); color: var(--accent-text); }
.sdetail__num::before { content: "#"; }
.sdetail__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 14px; }
.sdetail__body .prose { margin-bottom: 20px; }
.sdetail__media { grid-column: 2 / -1; margin: 10px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; }
.sdetail__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- prose ---------- */
.prose { color: var(--muted); }
.prose p { max-width: 68ch; }
.prose--lg { font-size: clamp(1.02rem, 1.3vw, 1.12rem); }
.prose h2 { color: var(--text); font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1.8em 0 .6em; }
.prose h3 { color: var(--text); font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: 600 1.25rem/1.45 var(--font); color: var(--text); }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose--article { font-size: 1.08rem; line-height: 1.8; padding: 40px 0; }

/* ---------- contact ---------- */
.contact { padding-top: clamp(50px, 6vw, 90px); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
.contact__card { position: sticky; top: 110px; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.contact__h { font-size: 1.8rem; margin-bottom: 16px; }
.contact__line { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.contact__line .ic { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.contact__line small { display: block; color: var(--muted); font-size: .82rem; }
a.contact__line:hover span { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; transition: background .3s, color .3s; }
.socials a:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.contact__form-wrap { border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(26px, 3.5vw, 48px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }
.form__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.form__intro { color: var(--muted); margin: -6px 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 500 13px/1 var(--font); color: var(--muted); padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.field--chips .chips { margin: 0; }
.chip--radio { cursor: pointer; position: relative; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:checked) { background: var(--accent); color: var(--ink); box-shadow: none; }
.chip--radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__note { margin: 0; color: var(--muted); font-size: 14px; }
.form__error { padding: 14px 18px; border-radius: 14px; background: rgba(220, 60, 40, .14); color: #E5725F; font-size: 15px; }
.form__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 0; }
.form-success.is-visible { display: flex; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 26px; }

/* ---------- case study ---------- */
.case__meta { display: flex; flex-wrap: wrap; gap: 14px 56px; margin: 0; padding: 36px 0 0; }
.case__meta dt { font: 600 12.5px/1 var(--font); color: var(--accent-text); margin-bottom: 8px; }
.case__meta dd { margin: 0; font: 600 1rem/1.35 var(--font); }
.case__story .head2 { align-items: start; margin: 0; }
.case__gallery { padding-top: 0; }
.case__images { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); }
.case__img { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card-2); }
.case__img.is-wide { grid-column: 1 / -1; }
.case__img img { width: 100%; }
.case__img figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); }
.case__next { padding-top: 0; }
.next-card { position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 38vw, 480px); padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; }
.next-card__img { position: absolute; inset: 0; z-index: -2; }
.next-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-card:hover .next-card__img img { transform: scale(1.05); }
.next-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75)); }
.next-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.next-card__body .label { margin: 0; }
.next-card__title { font: 800 clamp(2.4rem, 6vw, 5rem)/1 var(--font); letter-spacing: -.045em; margin-bottom: 16px; }
.next-card .pill-btn { background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }

/* ---------- post ---------- */
.post__head { padding-top: calc(var(--header-h) + 70px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.post__cover { margin: 50px 0 0; border-radius: var(--r-lg); overflow: hidden; }
.post__cover img { width: 100%; }
.post__share { display: flex; align-items: center; gap: 10px; padding: 30px 0 20px; border-top: 1px solid var(--line); }
.post__share span { font: 600 13px/1 var(--font); color: var(--muted); margin-right: 8px; }

/* ---------- 404 ---------- */
.notfound { min-height: 90vh; display: grid; place-items: center; text-align: center; padding: 160px 0 100px; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- footer: the page ends in a big curve over an always-dark footer ---------- */
#main { position: relative; z-index: 2; background: var(--bg); border-radius: 0 0 var(--curve) var(--curve); padding-bottom: clamp(30px, 5vw, 70px); transition: background-color .4s; --curve: clamp(40px, 9vw, 140px); }
.ftr {
  --text: #F4F4F1; --muted: #9B9B96; --line: rgba(255,255,255,.09);
  position: relative; z-index: 1; overflow: hidden; color: var(--text);
  background: #0B0B0B; margin-top: calc(clamp(40px, 9vw, 140px) * -1); padding-top: calc(clamp(40px, 9vw, 140px) + clamp(40px, 5vw, 72px));
}
[data-theme="dark"] .ftr { background: #161616; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr); gap: 32px; }
.ftr__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr__brand img { width: 120px; }
.ftr__tag { margin: 0; font: 700 clamp(1.05rem, 1.4vw, 1.25rem)/1.25 var(--font); letter-spacing: -.02em; }
.ftr__text { margin: 0 0 8px; color: var(--muted); max-width: 46ch; font-size: .95rem; }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: .92rem; }
.ftr__col .u-link { color: var(--text); opacity: .82; transition: opacity .3s, color .3s; }
.ftr__col .u-link:hover { opacity: 1; color: var(--accent); }
.ftr__h { font: 600 11.5px/1 var(--font); color: var(--muted); margin: 0 0 6px; letter-spacing: .12em; text-transform: uppercase; }
.ftr__menu { display: grid; grid-template-columns: repeat(2, auto); gap: 9px 28px; }
.ftr__icons { display: flex; gap: 8px; }
.ftr__social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color .3s, box-shadow .3s; }
.ftr__social:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ftr__social .ic { width: 17px; height: 17px; }
.ftr__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); }
.ftr__copy { margin: 0; color: var(--muted); font-size: .8rem; }
.ftr__top { color: var(--muted); font-size: .8rem; transition: color .3s; }
.ftr__top:hover { color: var(--accent); }
.btn--dim { --b-bg: rgba(255,255,255,.08); --b-fg: #fff; }
.ftr__giant { display: block; margin-top: clamp(40px, 5vw, 72px); margin-bottom: -.2em; overflow: hidden; font: 800 clamp(4.5rem, 13vw, 13rem)/1 var(--font); letter-spacing: -.05em; white-space: nowrap; color: rgba(255,255,255,.07); transition: color .5s; }
.ftr__giant:hover { color: rgba(var(--accent-rgb), .85); }
.ftr__giant-track { display: inline-flex; animation: marquee 40s linear infinite; }
.ftr__giant-track > span { display: inline-flex; align-items: center; padding-right: .35em; }
.ftr__giant-track i { font-style: normal; font-size: .45em; margin-left: .35em; color: var(--accent); opacity: .5; }
/* ---------- reveal motion (only with JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hl[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .hl[data-split] .w__i { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 50ms + 60ms); }
.js .hl[data-split].is-in .w__i { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav, .hdr__cta { display: none; }
  .menu-toggle { --s: 50px; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__side { max-width: none; }
  .hero__services { grid-template-columns: 1fr 1fr; }
  .head2 { grid-template-columns: 1fr; align-items: start; }
  .work-grid { grid-template-columns: 1fr; }
  .numrow { grid-template-columns: 1fr 1fr; }
  .faq__grid, .contact__grid, .split__grid { grid-template-columns: 1fr; }
  .faq__head, .contact__card { position: static; }
  .split--flip .split__media { order: 0; }
  .sdetail__row { grid-template-columns: 1fr; gap: 12px; }
  .sdetail__media { grid-column: 1; }
  .plist__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cat go" "name go" "text text"; }
  .plist__meta { display: none; }
  .plist__text { margin-top: 8px; }
  .plist__preview { display: none; }
}
@media (max-width: 640px) {
  .hero__card { min-height: max(600px, 100svh); }
  .hero--page .hero__card { min-height: 520px; }
  .logos__in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .logos__label { max-width: none; }
  .logos__rows { width: 100%; }
  .intro__imgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .intro__imgs::-webkit-scrollbar { display: none; }
  .intro__img { flex: 0 0 72%; scroll-snap-align: start; }
  .head2__row { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(240px, auto); }
  .bento__card--wide { grid-column: auto; }
  .numrow, .values__grid, .post-grid { grid-template-columns: 1fr; }
  .form__row, .case__images { grid-template-columns: 1fr; }
  .acc__a { padding: 0 0 22px 32px; }
  .btn-row { width: 100%; }
}
@media (pointer: coarse) { .btn, .chip { min-height: 44px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hl[data-split] .w__i { opacity: 1 !important; transform: none !important; }
  .logos__track, .reel__marquee-track, .ftr__giant-track { animation: none !important; }
  .hero__media img { transform: none; }
}
