/* Sri Gokul Krishnan — portfolio design system.
   One stylesheet for every page. Tokens first; components below are built only from them. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --sunken: #f1f0eb;
  --ink: #121211;
  --ink-2: #3b3b37;
  --muted: #66665f;          /* 5.6:1 on --bg */
  --line: #e4e3dd;
  --accent: #e03a12;         /* markers, focus, hover — 4.6:1 on white */
  --accent-ink: #ffffff;
  --accent-strong: #c2300c;  /* accent button hover, light */
  --shadow: 0 1px 2px rgb(18 18 17 / .04), 0 12px 32px -12px rgb(18 18 17 / .14);
  --logo-filter: none;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", var(--font-sans);
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --t-fast: 160ms;
  --t-med: 280ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0d; --surface: #161615; --sunken: #1c1c1a; --ink: #f3f2ed; --ink-2: #cfcec7;
    --muted: #a19f97; --line: #2b2b28; --accent: #ff6a3d; --accent-ink: #120b08; --accent-strong: #ff8a63;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --logo-filter: invert(1) grayscale(1) brightness(1.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0d; --surface: #161615; --sunken: #1c1c1a; --ink: #f3f2ed; --ink-2: #cfcec7;
  --muted: #a19f97; --line: #2b2b28; --accent: #ff6a3d; --accent-ink: #120b08; --accent-strong: #ff8a63;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  --logo-filter: invert(1) grayscale(1) brightness(1.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font: 500 15px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow, .card:hover .arrow, .row:hover .arrow { transform: translate(3px, -3px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 16px; }
.wordmark { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { position: relative; padding: 10px 0; text-decoration: none; font: 500 15px/1 var(--font-sans); color: var(--muted); transition: color var(--t-fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 10vw, 136px) clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(44px, 7.6vw, 104px); line-height: .98; letter-spacing: -0.045em; max-width: 14ch; margin: 22px 0 28px; }
.hero h1 .serif { letter-spacing: -0.02em; }
.hero .lead { margin-bottom: 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.hero-photo { width: clamp(160px, 18vw, 240px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); rotate: 2deg; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { display: none; } }

.logos { border-block: 1px solid var(--line); padding-block: 28px; }
.logos .wrap { display: flex; align-items: center; gap: 20px clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.logos span { font-size: 14px; color: var(--muted); flex: 1 0 100%; }
.logos img { height: 22px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1) var(--logo-filter); opacity: .72; transition: opacity var(--t-fast); }
.logos img:hover { opacity: 1; }

/* ---------- project cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: inherit; }
.card:hover { color: inherit; }
.card-media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sunken); aspect-ratio: 4 / 3; isolation: isolate; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card--feature .card-media { aspect-ratio: 16 / 10; }
.card-body { display: grid; gap: 6px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 clamp(21px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.card-title .arrow { color: var(--muted); }
.card:hover .card-title .arrow { color: var(--accent); }
.card-kind { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-summary { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 52ch; }
.card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: all var(--t-fast); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- rows (experience, services, links) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
a.row:hover { color: inherit; }
a.row:hover .row-name { color: var(--accent); }
.row-name { font: 600 clamp(20px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -0.02em; transition: color var(--t-fast); }
.row-text { color: var(--ink-2); margin: 0; }
.row .arrow { color: var(--muted); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr auto; } .row-text { grid-column: 1 / -1; } .row .arrow { grid-row: 1; grid-column: 2; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.tile .num { font: 400 15px/1 var(--font-serif); font-style: italic; color: var(--accent); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- testimonials ---------- */
/* Full-bleed track: it runs to the right edge of the screen, so a partly visible card reads as "more this way"
   rather than as a card cut off by the column. Arrows (site.js) and swipe/scroll move it a card at a time. */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 400px); gap: 20px; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-right: calc(50% - 50vw); padding: 4px max(var(--gutter), calc(50vw - 50%)) 4px 0; scroll-padding-left: 0;
  scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav[hidden] { display: none; }
.carousel-nav .icon-btn { width: 46px; height: 46px; font-size: 18px; }
.carousel-nav .icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.quote { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.quote blockquote::before { content: "\201C"; display: block; font: 400 56px/0.6 var(--font-serif); color: var(--accent); margin-bottom: 14px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { color: var(--muted); font-size: 14px; }
.scroll-hint { display: flex; gap: 8px; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--bg); border-radius: var(--r-xl); padding: clamp(40px, 7vw, 88px); display: grid; gap: 32px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(32px, 5vw, 64px); max-width: 18ch; }
.cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta .btn--ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.cta a:not(.btn) { color: inherit; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); opacity: .5; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 40px; margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font: 500 13px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.footer-grid a:not(.btn):hover { color: var(--accent); }
.footer-big { font: 600 clamp(26px, 3vw, 36px)/1.15 var(--font-display); letter-spacing: -0.03em; max-width: 18ch; margin-bottom: 18px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- case study ---------- */
.case-hero { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.crumb:hover { color: var(--accent); }
.case-hero h1 { font-size: clamp(44px, 8vw, 112px); letter-spacing: -0.05em; line-height: .95; margin: 24px 0 18px; }
.case-hero .tagline { font: 400 clamp(22px, 2.8vw, 34px)/1.25 var(--font-serif); font-style: italic; color: var(--ink-2); margin: 0 0 40px; max-width: 30ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0 0 32px; }
.meta div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.meta dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-weight: 500; }
.case-cover { border-radius: var(--r-xl); overflow: hidden; background: var(--sunken); }
.case-cover img, .case-cover video { width: 100%; }

.case-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.case-section:first-of-type { border-top: 0; }
.case-section > h2 { font-size: clamp(26px, 3vw, 38px); position: sticky; top: 96px; align-self: start; max-width: 14ch; }
.case-section > h2 .num { display: block; font: 400 16px/1 var(--font-serif); font-style: italic; color: var(--accent); margin-bottom: 14px; letter-spacing: 0; }
@media (max-width: 860px) { .case-section { grid-template-columns: 1fr; } .case-section > h2 { position: static; } }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h3 { font-size: 22px; color: var(--ink); margin-top: 1.8em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--accent); font: 400 clamp(22px, 2.4vw, 28px)/1.35 var(--font-serif); font-style: italic; color: var(--ink); }

.figure { margin: 0; }
.figure .frame { border-radius: var(--r-lg); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); cursor: zoom-in; display: block; padding: 0; width: 100%; }
.figure .frame img { width: 100%; transition: transform 600ms var(--ease); }
.figure .frame:hover img { transform: scale(1.015); }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .gallery, .gallery--3 { grid-template-columns: 1fr; } }
.gallery .figure .frame { aspect-ratio: 1; }
.gallery .figure .frame img { height: 100%; object-fit: cover; }
.gallery--natural .figure .frame { aspect-ratio: auto; }
.gallery--natural .figure .frame img { height: auto; object-fit: contain; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); font-size: 14px; }
.swatch i { display: block; height: 76px; border-bottom: 1px solid var(--line); }
.swatch div { padding: 10px 12px; line-height: 1.35; }
.swatch code { color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; counter-increment: step; }
.step::before { content: "0" counter(step); font: 400 15px/1 var(--font-serif); font-style: italic; color: var(--accent); display: block; margin-bottom: 14px; }
.step strong { display: block; font: 600 18px/1.25 var(--font-display); color: var(--ink); margin-bottom: 6px; }
.step span { font-size: 15.5px; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pairs div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.pairs strong { display: block; font-family: var(--font-display); font-size: 18px; }
.pairs span { font-size: 15.5px; color: var(--muted); }
.pairs--wide { grid-template-columns: 1fr; }
.pairs--wide div { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
@media (max-width: 560px) { .pairs--wide div { grid-template-columns: 1fr; gap: 2px; } }

.next-project { display: grid; gap: 16px; padding: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-project:hover { color: inherit; }
.next-project .big { font: 600 clamp(40px, 7vw, 96px)/1 var(--font-display); letter-spacing: -0.05em; transition: color var(--t-fast); }
.next-project:hover .big { color: var(--accent); }

/* ---------- writing ---------- */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.post-row:hover { color: inherit; }
.post-row:hover h3 { color: var(--accent); }
.post-row .thumb { aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--sunken); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0 10px; transition: color var(--t-fast); }
.post-row p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.post-meta { font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; } }

.article-head { padding-block: clamp(48px, 8vw, 104px) 40px; }
.article-head h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.04em; margin: 22px 0 20px; max-width: 18ch; }
.article-head .lead { margin-bottom: 24px; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; margin-bottom: clamp(40px, 6vw, 72px); background: var(--sunken); }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: clamp(26px, 3vw, 34px); margin: 2em 0 .6em; color: var(--ink); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { border-radius: var(--r-xl); overflow: hidden; position: sticky; top: 96px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 420px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

.experiment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); text-decoration: none; color: inherit; }
a.experiment:hover { color: inherit; border-color: var(--ink); }
.experiment img { border-radius: var(--r-md); border: 1px solid var(--line); }
.experiment h3 { font-size: clamp(28px, 3.4vw, 44px); margin: 14px 0 12px; }
@media (max-width: 760px) { .experiment { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 20px; padding-block: 80px; }
.notfound h1 { font-size: clamp(88px, 18vw, 200px); letter-spacing: -0.06em; line-height: .9; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(8 8 8 / .9); backdrop-filter: blur(6px); }
.lightbox img { max-width: calc(100vw - 48px); max-height: calc(100vh - 96px); width: auto; height: auto; margin: 48px auto 0; border-radius: var(--r-md); }
.lightbox button { position: fixed; top: 16px; right: 16px; background: #fff; color: #111; border: 0; }
.lightbox p { color: #ddd; text-align: center; font-size: 14px; margin-top: 12px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* masonry gallery (posters, logos: mixed aspect ratios) */
.masonry { columns: 3 220px; column-gap: 16px; }
.masonry .figure { break-inside: avoid; margin-bottom: 16px; }
.masonry .figure figcaption { margin-top: 6px; }

/* WhatsApp green: white text needs a darker green than #25d366 to stay readable (5:1) */
:root { --wa: #15803d; --wa-strong: #166534; }
.btn.btn--wa, .cta .btn.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.btn--wa:hover, .cta .btn.btn--wa:hover { background: var(--wa-strong); border-color: var(--wa-strong); color: #fff; }

/* WhatsApp: floating "message me" button (home page) */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; font: 600 15px/1 var(--font-sans); text-decoration: none;
  box-shadow: 0 8px 24px -6px rgb(18 140 70 / .55); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.wa-fab:hover { color: #fff; background: var(--wa-strong); transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgb(18 140 70 / .6); }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) { .wa-fab { width: 56px; padding: 0; justify-content: center; } .wa-fab span { display: none; } }

/* ---------- conversion: header CTA, availability, services, contact ---------- */
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.nav-cta { display: none; }
@media (max-width: 760px) {
  .header-cta { display: none; }
  .nav .nav-cta { display: block; margin-top: 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-align: center; padding: 15px; font-weight: 600; }
  .nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--accent-strong); color: var(--accent-ink); }
}

.availability { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #1f9d55; opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.section-lead { margin: -16px 0 clamp(32px, 4vw, 48px); }

ol.tiles { list-style: none; padding: 0; margin: 0; }
.tile--link { text-decoration: none; color: inherit; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.tile--link:hover { color: inherit; border-color: var(--ink); transform: translateY(-2px); }
.tile-more { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.tile--link:hover .tile-more { color: var(--accent); }
.tile--link:hover .arrow { transform: translate(3px, -3px); }
.tile-more .arrow { transition: transform var(--t-fast) var(--ease); }

.quote figcaption .quote-project { display: block; margin-top: 2px; color: var(--accent); font-size: 13px; }

.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-teaser-photo { border-radius: var(--r-xl); overflow: hidden; max-width: 420px; }
.about-teaser-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser-photo { max-width: 280px; } }

.cta-lead { margin: -12px 0 0; max-width: 52ch; opacity: .8; font-size: 18px; }

.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(24px, 5vw, 80px); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service-head { align-self: start; position: sticky; top: 96px; }
.service-head .num { display: block; font: 400 16px/1 var(--font-serif); font-style: italic; color: var(--accent); margin-bottom: 14px; }
.service-head h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 14ch; }
.service-body { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-body > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-body dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.service-body dd { margin: 0; color: var(--ink-2); }
.service-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service-body li { position: relative; padding-left: 18px; }
.service-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.service > .btn { grid-column: 2; justify-self: start; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; } .service-head { position: static; } .service > .btn { grid-column: 1; }
  .service-body > div { grid-template-columns: 1fr; gap: 4px; }
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; }
.field em { font-style: normal; color: var(--accent); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font-sans); transition: border-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { position: sticky; top: 96px; }
@media (max-width: 900px) { .contact-side { position: static; } }
.wa-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--wa); color: #fff; text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.wa-card:hover { color: #fff; background: var(--wa-strong); transform: translateY(-2px); }
.wa-card svg { width: 34px; height: 34px; flex: none; }
.wa-card strong { display: block; font: 600 18px/1.2 var(--font-display); }
.wa-card small { font-size: 14px; opacity: .85; }
.side-title { font-size: 22px; margin: 36px 0 16px; }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: n; border-top: 1px solid var(--line); }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.next-steps li::before { content: "0" counter(n); grid-row: span 2; font: 400 15px/1.6 var(--font-serif); font-style: italic; color: var(--accent); }
.next-steps strong { color: var(--ink); font-weight: 600; }
.about-teaser h2 { font-size: clamp(30px, 4vw, 52px); max-width: 16ch; }
