/*
Theme Name: Bäst Theme
Theme URI: https://wearebast.com
Author: Bäst Branding Agency
Author URI: https://wearebast.com
Description: A dark, bold, editorial WordPress theme for Bäst Branding Agency. Large condensed typography, high contrast, hairline rules and smooth scroll-driven animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bast-theme
Tags: dark, one-column, custom-menu, custom-logo, featured-images, portfolio, editorial
*/

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --fg: #f4f4f2;
  --fg-muted: #9b9b96;
  --line: rgba(244, 244, 242, 0.16);
  --line-strong: rgba(244, 244, 242, 0.55);
  --accent: #d9e021;          /* Bäst signature lime (the ↘ arrow) */
  --accent-ink: #0a0a0a;
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::selection, ::selection { background: var(--accent); color: var(--accent-ink); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Display typography — huge, condensed, uppercase like a poster */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1, .display-1 { font-size: clamp(3rem, 9.5vw, 10rem); }
h2, .display-2 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
h3, .display-3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.65rem); line-height: 1.4; max-width: 46ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--fg-muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: "↘"; color: var(--accent); font-size: 1.25em; line-height: 1; }
.accent { color: var(--accent); }
.muted { color: var(--fg-muted); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }
.section--alt { background: var(--bg-2); }
.rule { border-top: 1px solid var(--line-strong); }
.rule--soft { border-top: 1px solid var(--line); }
.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sticky { position: sticky; top: 120px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(32px, 4vw, 64px); }
.section-head h2 { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .75em;
  padding: 1.05em 1.8em; border: 1px solid var(--fg);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  color: var(--fg); background: transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--fg); color: var(--accent-ink); }
.btn--solid::before { background: var(--accent); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent::before { background: var(--fg); }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .35em; transition: border-color .3s, color .3s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .arrow { transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0; transition: padding .5s var(--ease), background .5s, backdrop-filter .5s;
  mix-blend-mode: normal;
}
.site-header.is-scrolled {
  padding: 12px 0; background: rgba(10,10,10,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo img { height: 40px; width: auto; transition: height .5s var(--ease); }
.site-header.is-scrolled .site-logo img { height: 32px; }
.site-logo .site-title { font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; }
.primary-nav ul { display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.primary-nav a {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: .4em 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_parent > a::after { transform: scaleX(1); transform-origin: left; }
.primary-nav .menu-item-cta a { border: 1px solid var(--fg); padding: .7em 1.3em; font-family: var(--font-display); font-weight: 400; font-size: .9rem; transition: background .3s, color .3s, border-color .3s; }
.primary-nav .menu-item-cta a::after { display: none; }
.primary-nav .menu-item-cta a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; width: 48px; height: 48px; position: relative; z-index: 110;
}
.nav-toggle span { display: block; width: 28px; height: 2px; background: var(--fg); margin: 6px auto; transition: transform .4s var(--ease), opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); z-index: 105;
  }
  body.nav-open .primary-nav { clip-path: inset(0 0 0 0); }
  .primary-nav ul { flex-direction: column; gap: 1.2rem; text-align: center; }
  .primary-nav a { font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: .01em; font-weight: 400; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  body.nav-open .primary-nav a { opacity: 1; transform: none; }
  body.nav-open .primary-nav li:nth-child(1) a { transition-delay: .15s; }
  body.nav-open .primary-nav li:nth-child(2) a { transition-delay: .22s; }
  body.nav-open .primary-nav li:nth-child(3) a { transition-delay: .29s; }
  body.nav-open .primary-nav li:nth-child(4) a { transition-delay: .36s; }
  body.nav-open .primary-nav li:nth-child(5) a { transition-delay: .43s; }
  body.nav-open .primary-nav li:nth-child(6) a { transition-delay: .5s; }
  .primary-nav .menu-item-cta a { border: 0; padding: 0; font-size: clamp(2.2rem, 9vw, 4rem); color: var(--accent); }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: clamp(140px, 18vh, 220px) 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.hero--short { min-height: 72svh; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.25) 40%, rgba(10,10,10,.92) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; max-width: 14ch; }
.hero__lead { max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.4rem); color: var(--fg); opacity: .9; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1rem, 1.5vw, 1.4rem); margin-top: 2rem; }
.hero__tags span + span::before { content: "+"; color: var(--accent); margin-right: 1.25rem; }
.hero__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(40px, 6vw, 80px); padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.hero__scroll { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); display: inline-flex; align-items: center; gap: .8em; }
.hero__scroll i { display: inline-block; width: 1px; height: 40px; background: var(--fg-muted); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

/* Word-by-word reveal in headings */
.split-words .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.split-words.is-inview .word > span { transform: translateY(0); }

/* --------------------------------------------------------------------------
   5. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: opacity, transform; }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-40px); }
.reveal--scale { transform: scale(.94); }
.reveal--line { transform: scaleX(0); transform-origin: left; opacity: 1; }
.reveal--line.is-inview { transform: scaleX(1); }
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].is-inview > * { opacity: 1; transform: none; }
[data-stagger].is-inview > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-inview > *:nth-child(2) { transition-delay: .1s; }
[data-stagger].is-inview > *:nth-child(3) { transition-delay: .2s; }
[data-stagger].is-inview > *:nth-child(4) { transition-delay: .3s; }
[data-stagger].is-inview > *:nth-child(5) { transition-delay: .4s; }
[data-stagger].is-inview > *:nth-child(6) { transition-delay: .5s; }
[data-stagger].is-inview > *:nth-child(n+7) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, [data-stagger] > *, .split-words .word > span { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   6. Marquee
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 1.1rem 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 3.2rem); text-transform: uppercase; padding: 0 1.2rem; }
.marquee span::after { content: "✦"; color: var(--accent); margin-left: 2.4rem; font-size: .6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   7. Industry / feature blocks
   -------------------------------------------------------------------------- */
.feature-list { border-top: 1px solid var(--line-strong); }
.feature-row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); align-items: start; position: relative;
}
.feature-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--bg-2); opacity: 0; transition: opacity .4s; z-index: -1; }
.feature-row:hover::before { opacity: 1; }
.feature-row__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); padding-top: .5em; }
.feature-row h3 { margin-bottom: .3em; }
.feature-row__sub { font-weight: 600; color: var(--fg-muted); font-size: .95rem; }
.feature-row__tags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1.4rem; font-family: var(--font-display); font-size: .95rem; text-transform: uppercase; color: var(--fg-muted); }
.feature-row__tags span + span::before { content: "+"; color: var(--accent); margin-right: .9rem; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.stat { padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line-strong); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; color: var(--accent); }
.stat__label { color: var(--fg-muted); font-size: .9rem; margin-top: .5rem; }

/* --------------------------------------------------------------------------
   8. Work / portfolio cards
   -------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
.work-card { grid-column: span 6; position: relative; display: block; }
.work-card:nth-child(3n+1) { grid-column: span 7; }
.work-card:nth-child(3n+2) { grid-column: span 5; margin-top: clamp(24px, 5vw, 96px); }
.work-card:nth-child(3n) { grid-column: 3 / span 8; }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.work-card:nth-child(3n) .work-card__media { aspect-ratio: 16 / 9; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .8s; filter: grayscale(.35) contrast(1.05); }
.work-card:hover .work-card__media img { transform: scale(1.08); filter: grayscale(0) contrast(1.05); }
.work-card__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.work-card__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); text-transform: uppercase; line-height: 1; margin: 0; transition: color .3s; }
.work-card:hover .work-card__title { color: var(--accent); }
.work-card__services { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); text-align: right; flex-shrink: 0; max-width: 45%; }
.work-grid--uniform .work-card, .work-grid--uniform .work-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
.work-grid--uniform .work-card:nth-child(n) .work-card__media { aspect-ratio: 4 / 3; }

/* Single work */
.work-hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-top: 2rem; }
.work-hero__meta dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .4rem; }
.work-hero__meta dd { margin: 0; font-weight: 600; }
.work-featured { margin: clamp(32px, 5vw, 80px) 0; aspect-ratio: 21 / 9; overflow: hidden; }
.work-featured img { width: 100%; height: 100%; object-fit: cover; }
.work-nav { display: flex; justify-content: space-between; gap: 2rem; padding-top: 3rem; border-top: 1px solid var(--line-strong); }
.work-nav a { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2.2rem); text-transform: uppercase; }
.work-nav small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em; color: var(--fg-muted); margin-bottom: .4rem; }
.work-nav a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.service { padding: clamp(28px, 3vw, 48px); border-right: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.service:last-child { border-right: 0; }
.service::before { content: ""; position: absolute; inset: 0; background: var(--bg-2); transform: translateY(100%); transition: transform .6s var(--ease); z-index: -1; }
.service:hover::before { transform: none; }
.service__num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; margin-bottom: 2.5rem; display: block; }
.service h3 { margin-bottom: 1.4rem; }
.service ul { border-top: 1px solid var(--line); }
.service li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; transition: padding-left .3s var(--ease), color .3s; }
.service li::after { content: "→"; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.service li:hover { padding-left: .5rem; }
.service li:hover::after { opacity: 1; transform: none; }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.market { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: clamp(28px, 3vw, 44px); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; transition: background .4s; }
.market:hover { background: var(--accent); color: var(--accent-ink); }
.market:hover .market__num { color: var(--accent-ink); }
.market__num { font-size: .75rem; letter-spacing: .18em; color: var(--fg-muted); font-weight: 600; }
.market h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }

/* --------------------------------------------------------------------------
   10. Logos / clients / recognition
   -------------------------------------------------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 2rem; transition: background .4s; }
.logo-wall__item:hover { background: var(--bg-2); }
.logo-wall__item img { max-height: 64px; width: auto; max-width: 85%; opacity: .75; transition: opacity .3s; }
.logo-wall__item:hover img { opacity: 1; }
.badges { display: flex; gap: clamp(24px, 4vw, 64px); align-items: center; flex-wrap: wrap; }
.badges img { height: 96px; width: auto; opacity: .85; }

/* Testimonial */
.testimonial { max-width: 900px; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 3.2rem); text-transform: uppercase; line-height: 1.05; }
.testimonial blockquote::before { content: "“"; color: var(--accent); }
.testimonial blockquote::after { content: "”"; color: var(--accent); }
.testimonial cite { display: block; margin-top: 1.75rem; font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   11. Insights (blog)
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.post-card { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); margin-bottom: 1.25rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: grayscale(.2); }
.post-card:hover .post-card__media img { transform: scale(1.06); filter: none; }
.post-card__date { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .6rem; }
.post-card h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin-bottom: .6rem; transition: color .3s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--fg-muted); font-size: .95rem; }
.post-list { border-top: 1px solid var(--line-strong); }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-row h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2.2rem); transition: color .3s; }
.post-row:hover h3 { color: var(--accent); }
.post-row time { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   12. Content / prose
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { margin-top: 2.2em; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .4em 0; }
.prose a { border-bottom: 1px solid var(--accent); transition: color .3s; }
.prose a:hover { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.5em; margin: 2em 0; font-size: 1.15em; color: var(--fg); }
.prose img { margin: 2em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .8rem; color: var(--fg-muted); margin-top: .6em; }
.wp-block-image img, .alignwide, .alignfull { max-width: 100%; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px); }
.pillar { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.pillar h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.pillar p { color: var(--fg-muted); }
.big-statement { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 5rem); line-height: 1; max-width: 22ch; }
.big-statement em { font-style: normal; color: var(--accent); }

/* Page header (generic) */
.page-header { padding: clamp(150px, 22vh, 260px) 0 clamp(40px, 5vw, 72px); }
.page-header h1 { max-width: 16ch; }
.page-header .lead { color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.contact-block { border-top: 1px solid var(--line-strong); padding: 1.5rem 0; }
.contact-block dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .5rem; }
.contact-block dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.4rem); text-transform: uppercase; word-break: break-word; }
.contact-block dd a:hover { color: var(--accent); }
.social-list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-list a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: .3em; }
.social-list a:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.form__field { position: relative; padding: 1.25rem 0 .8rem; border-bottom: 1px solid var(--line-strong); }
.form__field--full { grid-column: 1 / -1; }
.form__field label { position: absolute; top: 1.25rem; left: 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); transition: transform .3s var(--ease), color .3s, font-size .3s; pointer-events: none; }
.form__field input, .form__field textarea {
  width: 100%; background: transparent; border: 0; color: var(--fg); font: inherit; font-size: 1.15rem; padding: .9rem 0 0; outline: none; resize: vertical;
}
.form__field:focus-within label, .form__field.is-filled label { transform: translateY(-1rem); font-size: .62rem; color: var(--accent); }
.form__field:focus-within { border-color: var(--accent); }
.form__field textarea { min-height: 140px; }
.form__actions { grid-column: 1 / -1; margin-top: 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.form__note { color: var(--fg-muted); font-size: .85rem; }
.form__status { grid-column: 1 / -1; padding: 1rem 1.25rem; border: 1px solid var(--accent); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   14. CTA
   -------------------------------------------------------------------------- */
.cta { background: var(--fg); color: var(--accent-ink); position: relative; overflow: hidden; }
.cta .eyebrow { color: rgba(10,10,10,.6); }
.cta h2 { font-size: clamp(3rem, 9vw, 9.5rem); margin-bottom: 1.2em; max-width: 12ch; }
.cta .btn { border-color: var(--accent-ink); color: var(--accent-ink); }
.cta .btn::before { background: var(--accent-ink); }
.cta .btn:hover { color: var(--fg); }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
.cta__row p { max-width: 42ch; font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: clamp(48px, 6vw, 96px) 0 2rem; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: clamp(48px, 6vw, 96px); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--fg-muted); max-width: 32ch; }
.footer-col h4 { font-size: .72rem; letter-spacing: .18em; font-family: var(--font-body); font-weight: 600; color: var(--fg-muted); margin-bottom: 1.2rem; }
.footer-col li { margin: .45rem 0; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-wordmark { font-family: var(--font-display); font-size: clamp(4rem, 19vw, 20rem); line-height: .85; text-transform: uppercase; letter-spacing: -.01em; color: var(--fg); opacity: .08; user-select: none; margin: 0 0 1rem -0.03em; white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: .8rem; color: var(--fg-muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.back-top { color: var(--fg-muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.back-top:hover { color: var(--accent); }

/* Page loader / transition curtain */
.curtain { position: fixed; inset: 0; background: var(--bg); z-index: 200; transform-origin: top; animation: curtainUp 1.1s var(--ease) .15s forwards; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.curtain span { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 5rem); color: var(--accent); text-transform: uppercase; animation: fadeOut .5s .5s forwards; }
@keyframes curtainUp { to { transform: scaleY(0); } }
@keyframes fadeOut { to { opacity: 0; } }

/* 404 */
.error-404 h1 { font-size: clamp(6rem, 24vw, 22rem); line-height: .85; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .split, .split--reverse, .contact-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid-3, .grid-4, .services, .post-grid { grid-template-columns: 1fr; }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .service { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .service:last-child { border-bottom: 0; }
  .feature-row { grid-template-columns: 1fr; gap: .75rem; }
  .feature-row__num { padding-top: 0; }
  .work-card, .work-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-card:nth-child(n) .work-card__media { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .stat:last-child { border-bottom: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .post-row { grid-template-columns: 1fr; gap: .5rem; }
  .work-hero__meta { grid-template-columns: 1fr; gap: 1rem; }
  .form { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__footer { flex-direction: column; align-items: flex-start; }
  .badges img { height: 72px; }
}
