/* ==========================================================================
   Vivek Harkhani: personal site
   Design language matched to the Perrene Framer template:
   warm light-grey canvas, fixed full-width header, fixed left panel with
   dot-grid + hatch textures, dashed dividers, crop-mark frames, embossed
   pills, mono accents, two-tone headlines, full-bleed project cards and a
   giant fading CONTACT. Black-and-white palette.
   All design tokens live in :root.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --bg: #f1f1ef;
  --bg-raised: #f8f8f6;
  --pill-top: #f6f6f4;
  --pill-bottom: #e9e9e6;
  --line: rgba(17, 17, 15, 0.08);
  --dash: rgba(17, 17, 15, 0.16);
  --text: #111110;
  --text-2: #3e3e3b;
  --muted: #8d8d89;
  --faint: #b7b7b2;
  --dot: rgba(17, 17, 15, 0.075);
  --hatch: rgba(17, 17, 15, 0.07);
  --status: #f2541b;
  --accent: #f2541b;
  --accent-hi: #ff7d45;
  --accent-deep: #c93d0c;
  --accent-tint: #fdeee6;
  --danger: #c4372b;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.25rem, 1rem + 0.6vw, 1.625rem);
  --fs-xl: clamp(1.875rem, 1.2rem + 1.6vw, 3rem);

  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --pill: 999px;

  --hdr-h: clamp(60px, 4.4vw, 70px);
  --panel-w: clamp(350px, 30vw, 520px);
  --pad: clamp(18px, 1.6vw, 28px);
  --gap: clamp(14px, 1.2vw, 20px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(17, 17, 15, 0.07), 0 1px 2px rgba(17, 17, 15, 0.06);
  --card-ring: 0 0 0 1px rgba(17, 17, 15, 0.07), 0 1px 2px rgba(17, 17, 15, 0.05);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--pill); font-size: var(--fs-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Textures */
.dots { background-image: radial-gradient(circle, var(--dot) 0.7px, transparent 1.1px); background-size: 14px 14px; background-position: 7px 7px; }
.hatch { background-image: repeating-linear-gradient(-45deg, var(--hatch) 0 1px, transparent 1px 7px); }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Mono label */
.mono-label { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: -0.01em; }

/* ---- Text roll (hover) -------------------------------------------------- */
.roll { display: inline-grid; overflow: hidden; line-height: 1.3; height: 1.3em; vertical-align: top; }
.roll-a, .roll-b { grid-area: 1 / 1; transition: transform 0.4s var(--ease); white-space: nowrap; }
.roll-b { transform: translateY(105%); }
a:hover .roll-a, button:hover .roll-a, a:focus-visible .roll-a { transform: translateY(-105%); }
a:hover .roll-b, button:hover .roll-b, a:focus-visible .roll-b { transform: none; }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a:hover .arrow { transform: translate(2px, -2px); }

/* ---- Buttons & pills ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--pill);
  font-size: var(--fs-base); font-weight: 500; letter-spacing: -0.015em; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-dark {
  color: #f7f7f5;
  background: linear-gradient(180deg, #3a3a38 0%, #161615 55%, #0d0d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px #0d0d0c, 0 6px 14px -6px rgba(17, 17, 15, 0.45);
}
.btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0 0 1px #0d0d0c, 0 10px 20px -8px rgba(17, 17, 15, 0.55); }
.btn-light { color: var(--text); background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); }
.btn-light:hover { background: linear-gradient(180deg, #fbfbfa, #ececea); }
.btn-ico { width: 17px; height: 17px; opacity: 0.85; }
.btn-contra .roll-b { display: inline-flex; align-items: center; gap: 7px; }
.contra-ico { width: 16px; height: 16px; color: var(--text); }
.btn-accent {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px var(--accent-deep), 0 10px 22px -10px rgba(242, 84, 27, 0.65);
}
.btn-accent:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px var(--accent-deep), 0 14px 28px -10px rgba(242, 84, 27, 0.75); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* aliases used by inner pages */
.btn-primary { color: #f7f7f5; background: linear-gradient(180deg, #3a3a38 0%, #161615 55%, #0d0d0c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px #0d0d0c, 0 6px 14px -6px rgba(17,17,15,.45); }
.btn-secondary, .btn-ghost { color: var(--text); background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px 0 12px; border-radius: var(--pill);
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom));
  box-shadow: var(--pill-shadow);
  font-size: var(--fs-base); color: var(--text-2); letter-spacing: -0.015em; white-space: nowrap;
}
.pill .ico { width: 17px; height: 17px; color: var(--muted); }
a.pill { transition: color 0.2s var(--ease), background 0.2s var(--ease); }
a.pill:hover { color: var(--text); background: linear-gradient(180deg, #fbfbfa, #ececea); }
a.pill:hover .ico { color: var(--text); }
.is-unset { opacity: 0.55; cursor: not-allowed; }

/* ---- Fixed header ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr-h);
  display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr) auto; align-items: stretch;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-left { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-right: 1px dashed var(--dash); min-width: 0; }
.identity { position: relative; display: flex; align-items: center; padding-left: var(--pad); min-width: 0; }
.identity-link { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.hdr-avatar { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--pill-bottom); box-shadow: 0 0 0 1px var(--line); flex: none; }
.identity-name { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-card {
  position: absolute; top: calc(100% - 6px); left: var(--pad); z-index: 60;
  display: grid; gap: 2px; width: max-content; padding: 12px 16px;
  background: var(--bg-raised); border-radius: var(--r); box-shadow: var(--card-ring), 0 18px 40px -20px rgba(17,17,15,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}
.identity-card strong { font-size: var(--fs-sm); font-weight: 600; }
.identity-card span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.identity:hover .identity-card, .identity:focus-within .identity-card { opacity: 1; visibility: visible; transform: none; }

.hdr-spots { display: flex; align-items: center; padding: 0 clamp(16px, 1.6vw, 28px); border-left: 1px dashed var(--dash); }
.spots { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-md); color: var(--text-2); white-space: nowrap; letter-spacing: -0.02em; }
.spots-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--status); }
.spots-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status); animation: pulse 2.2s var(--ease) infinite; }
.spots.is-full .spots-dot, .spots.is-full .spots-dot::after { background: var(--faint); animation: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

.hdr-nav { display: flex; align-items: center; gap: clamp(18px, 1.7vw, 28px); padding-left: var(--pad); }
.nav-link { font-size: var(--fs-md); color: var(--muted); letter-spacing: -0.02em; transition: color 0.2s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--text); }

.hdr-right { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px); padding-right: var(--pad); }
.audit-link-wrap { position: relative; }
.audit-link { font-size: var(--fs-base); color: var(--text-2); letter-spacing: -0.015em; transition: color 0.2s; }
.audit-link.is-active { color: var(--text); }
.audit-link:hover, .audit-link:focus-visible { color: var(--accent); }
.audit-tip {
  position: absolute; top: calc(100% + 16px); right: -10px; width: 272px; z-index: 60;
  padding: 13px 15px; border-radius: var(--r);
  background: #161615; color: #ededeb; font-size: var(--fs-sm); line-height: 1.5;
  box-shadow: 0 18px 40px -18px rgba(17,17,15,.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}
.audit-link-wrap:hover .audit-tip, .audit-link-wrap:focus-within .audit-tip { opacity: 1; visibility: visible; transform: none; }
.menu-toggle, .mobile-menu { display: none; }

/* ---- Fixed left panel --------------------------------------------------- */
.panel {
  position: fixed; top: var(--hdr-h); bottom: 0; left: 0; z-index: 20;
  width: var(--panel-w);
  overflow: hidden;
  border-right: 1px dashed var(--dash);
  display: flex; flex-direction: column;
}
.panel::-webkit-scrollbar { display: none; }

.panel-hero { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 2.6vw, 48px) var(--pad) clamp(24px, 2.2vw, 36px); }
.panel-hero > * { align-self: flex-start; }
.panel-hero > .panel-title, .panel-hero > .panel-lead { align-self: stretch; }
.mono-chip {
  display: inline-block; padding: 8px 13px; border-radius: 12px;
  background: rgba(17, 17, 15, 0.055);
  font-family: var(--mono); font-size: 0.71875rem; line-height: 1.35; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.mono-chip span { color: var(--muted); }
.panel-title {
  margin-top: 20px;
  font-size: clamp(1.875rem, 0.55rem + 2.05vw, 2.625rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.05em;
  text-wrap: pretty;
}
.panel-title .pt-main { display: block; white-space: nowrap; }
.panel-title .pt-muted { display: block; color: var(--muted); white-space: nowrap; }
.panel-lead { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; max-width: 42ch; }
.panel-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.tags { gap: 6px; }
/* Tags: flat, informational (not buttons) */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: var(--pill);
  background: rgba(17, 17, 15, 0.04); border: 1px solid rgba(17, 17, 15, 0.06);
  font-size: 0.8125rem; color: var(--text-2); letter-spacing: -0.01em; white-space: nowrap; cursor: default;
}
.tags .tag { padding-left: 8px; }
.tag .ico { width: 14px; height: 14px; color: var(--muted); stroke-width: 1.5; }

.hatch-band { height: clamp(32px, 2.6vw, 44px); flex: none; border-top: 1px dashed var(--dash); border-bottom: 1px dashed var(--dash); }

/* Testimonial (scrollable carousel) */
.panel-quote { position: relative; }
.testimonial { position: relative; padding: clamp(30px, 2.8vw, 46px) var(--pad) clamp(28px, 2.6vw, 42px); }
.crop { position: absolute; width: 18px; height: 18px; border-color: #a2a29e; border-style: solid; border-width: 0; pointer-events: none; }
.crop.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.t-progress { position: absolute; top: -1px; left: 0; right: 0; display: flex; gap: 6px; z-index: 2; }
.t-seg { position: relative; flex: 1; height: 14px; }
.t-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(17, 17, 15, 0.12); }
.t-seg span { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--text); }
.t-seg.is-active span { background: var(--accent); }
.t-seg.is-done span { width: 100%; }
.t-seg.is-active span { animation: segFill 6.5s linear forwards; }

.testimonial.is-static .t-seg.is-active span { animation: none; width: 100%; }
@keyframes segFill { from { width: 0; } to { width: 100%; } }

.t-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; border-radius: 6px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-slide { flex: 0 0 100%; scroll-snap-align: start; padding-right: 4px; }
.t-track { cursor: pointer; user-select: none; -webkit-user-select: none; }
.testimonial.has-cursor .t-track { cursor: none; }
.t-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: var(--pill);
  background: rgba(17, 17, 15, 0.52); color: #fff; font-size: var(--fs-base); letter-spacing: -0.015em; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; scale: 0.6; transition: opacity 0.2s var(--ease), scale 0.25s var(--ease);
}
.t-cursor.is-on { opacity: 1; scale: 1; }
.t-cursor-ico { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.t-cursor.is-back { flex-direction: row-reverse; padding: 0 18px 0 16px; }
.t-cursor.is-back .t-cursor-ico { transform: rotate(180deg); }
.t-slide blockquote .ph-badge { margin-right: 4px; vertical-align: 3px; }
.t-slide blockquote {
  font-size: clamp(1rem, 0.62rem + 0.5vw, 1.25rem); line-height: 1.42; letter-spacing: -0.022em; color: var(--text); text-wrap: pretty;
  max-width: 27ch; min-height: calc(1.42em * 3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t-slide figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.t-avatars { display: inline-flex; flex: none; }
.t-face, .t-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--bg), 0 2px 6px -2px rgba(17,17,15,.35); }
.t-logo { margin-left: -12px; }
.t-initials { display: grid; place-items: center; background: linear-gradient(180deg, #e6e6e3, #cfcfcb); font-size: var(--fs-xs); font-weight: 600; color: #5d5d59; }
.t-logo-ph { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #4a4a48, #0e0e0d); color: #f1f1ef; font-size: var(--fs-sm); font-weight: 600; }
.t-who strong { display: block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.02em; }
.t-who span { display: block; font-size: var(--fs-sm); color: var(--muted); letter-spacing: -0.02em; }

.panel-social .mono-label { white-space: nowrap; }
.panel-social { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px var(--pad) 16px; border-top: 1px dashed var(--dash); margin-top: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-details .socials { margin-top: 12px; }
.pill-social { height: 32px; padding: 0 11px 0 9px; font-size: var(--fs-sm); gap: 6px; }
.panel-social .socials { flex-wrap: nowrap; }
.pill-social .ico { width: 16px; height: 16px; }


/* Panel auto-fit levels (set by JS so the panel never needs to scroll) */
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .panel-hero { padding-top: 18px; padding-bottom: 18px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .panel-title { margin-top: 12px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .panel-ctas,
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .tags { margin-top: 14px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .hatch-band { height: 22px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .testimonial { padding-top: 18px; padding-bottom: 16px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .t-slide figcaption { margin-top: 14px; }
.panel:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .panel-social { padding-top: 10px; padding-bottom: 12px; }
.panel:is([data-fit="2"], [data-fit="3"], [data-fit="4"]) .panel-title { font-size: clamp(1.625rem, 0.5rem + 1.7vw, 2.25rem); }
.panel:is([data-fit="2"], [data-fit="3"], [data-fit="4"]) .t-slide blockquote { font-size: clamp(0.9375rem, 0.6rem + 0.5vw, 1.1875rem); }
.panel:is([data-fit="3"], [data-fit="4"]) .tags { display: none; }
.panel[data-fit="4"] .panel-lead { display: none; }

/* Short laptop screens: tighten the panel so the testimonial stays in view */
@media (min-width: 961px) and (max-height: 840px) {
  .panel-hero { padding-top: 20px; padding-bottom: 20px; }
  .panel-title { margin-top: 14px; }
  .panel-ctas, .tags { margin-top: 16px; }
  .hatch-band { height: 26px; }
  .testimonial { padding-top: 20px; padding-bottom: 18px; }
}

/* ---- Content area ------------------------------------------------------- */
.content {
  margin-left: var(--panel-w);
  padding: calc(var(--hdr-h) + clamp(28px, 2.8vw, 50px)) var(--pad) 0;
  min-height: 100vh;
  display: flex; flex-direction: column; gap: clamp(56px, 6vw, 96px);
  min-width: 0;
}
html.js .content { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
html.js.is-ready .content { opacity: 1; transform: none; }
html.js.is-leaving .content { opacity: 0; transform: translateY(-4px); transition-duration: 0.18s; }

/* ---- Project tabs ------------------------------------------------------- */
.filters-wrap { max-width: 100%; }
.filters {
  position: relative; display: inline-flex; padding: 4px; max-width: 100%;
  border-radius: var(--pill);
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--pill);
  background: linear-gradient(180deg, #3a3a38 0%, #161615 55%, #0d0d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px #0d0d0c, 0 4px 10px -4px rgba(17,17,15,.45);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.filter {
  position: relative; z-index: 1; flex: none;
  height: 36px; padding: 0 16px; border-radius: var(--pill);
  font-size: var(--fs-base); color: var(--muted); white-space: nowrap; letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: #f7f7f5; }

/* ---- Project cards (full-bleed, overlay text) --------------------------- */
.project-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap);
  margin-top: var(--gap);
  transition: opacity 0.16s var(--ease);
}
.project-grid.is-swapping { opacity: 0; }
.project-grid.is-entering .project-card { animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.project-link {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: #1b1b1a;
  box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.1), 0 2px 4px rgba(17, 17, 15, 0.06), 0 24px 48px -28px rgba(17, 17, 15, 0.45);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); pointer-events: none; z-index: 3; }
.project-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.12), 0 2px 4px rgba(17, 17, 15, 0.06), 0 30px 60px -28px rgba(17, 17, 15, 0.55); }
.project-link:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.project-media { aspect-ratio: 612 / 455; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-link:hover .project-media img { transform: scale(1.035); }
.project-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 1.5vw, 24px);
  background: linear-gradient(to top, rgba(12, 12, 11, 0.78) 0%, rgba(12, 12, 11, 0.4) 26%, rgba(12, 12, 11, 0) 52%);
  color: #fff;
}
.project-text { min-width: 0; }
.project-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: clamp(0.8125rem, 0.6rem + 0.35vw, 1.0625rem); color: rgba(255, 255, 255, 0.62); letter-spacing: -0.02em; }
.project-cat .ico { width: 17px; height: 17px; }
.project-name { margin-top: 4px; font-size: clamp(1.25rem, 0.85rem + 0.9vw, 1.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; color: #fff; }
.project-desc {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  font-size: var(--fs-sm); line-height: 1.45; color: rgba(255, 255, 255, 0.72); max-width: 46ch;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.45s var(--ease);
}
.project-desc > span { overflow: hidden; min-height: 0; }
.project-link:hover .project-desc, .project-link:focus-visible .project-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; }
.project-arrow { width: 26px; height: 26px; stroke-width: 1.5; color: rgba(255, 255, 255, 0.85); flex: none; transition: transform 0.3s var(--ease); }
.project-link:hover .project-arrow { transform: translate(3px, -3px); }

.empty-state {
  grid-column: 1 / -1; padding: 64px 24px; text-align: center;
  border-radius: var(--r-lg); border: 1px dashed var(--dash);
}
.empty-state p + p { margin-top: 6px; font-size: var(--fs-sm); }
.empty-state a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Offer cards (live visuals + pricing) ------------------------------ */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.offer {
  display: flex; flex-direction: column; height: 100%; padding: 8px;
  border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--card-ring);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.offer:hover { transform: translateY(-3px); box-shadow: var(--card-ring), 0 28px 50px -30px rgba(17, 17, 15, 0.35); }
.offer-visual {
  position: relative; display: grid; place-items: center; height: clamp(166px, 12.4vw, 186px); padding: 14px 16px;
  border-radius: calc(var(--r-lg) - 6px); background-color: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.offer-sprint .offer-visual::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 84, 27, 0.14), rgba(242, 84, 27, 0)); pointer-events: none;
}
.ov {
  position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 14px 14px 12px; overflow: hidden;
  border-radius: 12px; background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.06), 0 14px 28px -18px rgba(17, 17, 15, 0.35);
}
.ov-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.ov-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); }
.ov-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ov-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.day-name { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.day-bar { display: block; height: 6px; margin: 8px 0 7px; border-radius: var(--pill); background: rgba(17, 17, 15, 0.07); overflow: hidden; }
.day-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #2a2a28; transition: width 1.2s linear; }
.day.is-active .day-bar i { width: 100%; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); }
.day.is-done .day-bar i { width: 100%; transition: none; }
.week.is-resetting .day-bar i { transition: width 0.4s var(--ease); }
.week.is-complete .day-bar i { background: linear-gradient(90deg, var(--accent-hi), var(--accent)); }
.day-name { transition: color 0.3s var(--ease); }
.day.is-active .day-name { color: var(--accent-deep); }
.day-task { display: inline-flex !important; align-items: center; gap: 4px; color: var(--muted) !important; transition: color 0.3s var(--ease); }
.day.is-done .day-task, .day.is-active .day-task { color: var(--text) !important; }
.day-check { width: 0; height: 11px; stroke-width: 2.4; color: var(--accent); overflow: visible; opacity: 0; transition: width 0.3s var(--ease), opacity 0.3s var(--ease); }
.day.is-done .day-check { width: 11px; opacity: 1; }
@keyframes weekFill { 0% { width: 0; } 12% { width: 100%; } 78% { width: 100%; } 90%, 100% { width: 0; } }
.day-task { display: block; font-size: 12px; color: var(--text-2); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-rows { display: grid; gap: 5px; margin-top: 10px; }
.audit-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 5px 10px; border-radius: 8px; background: rgba(17, 17, 15, 0.03); font-size: 12.5px; color: var(--text-2);
 transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.audit-rows li.is-scanning { background: #fff; box-shadow: 0 0 0 1px rgba(242, 84, 27, 0.25), 0 6px 14px -10px rgba(17, 17, 15, 0.4); }
.audit-rows li.is-found { background: rgba(255, 255, 255, 0.6); }
.st-pending { background: linear-gradient(90deg, rgba(17,17,15,.05) 0%, rgba(17,17,15,.11) 50%, rgba(17,17,15,.05) 100%); background-size: 200% 100%; color: var(--muted); }
.is-scanning .st-pending { animation: shimmer 1s linear infinite; color: var(--accent-deep); }
.is-found .st { animation: pop 0.4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rowHi { 0%, 100% { background: rgba(17, 17, 15, 0.03); box-shadow: none; } 6%, 28% { background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.07), 0 6px 14px -10px rgba(17, 17, 15, 0.4); } 34% { background: rgba(17, 17, 15, 0.03); box-shadow: none; } }
.st { padding: 2px 8px; border-radius: var(--pill); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.st-warn { background: var(--accent-tint); color: var(--accent-deep); }
.st-ok { background: #e6efe7; color: #3e6a4a; }
.st-idea { background: #e7ebf3; color: #3d4f7a; }
.scan { display: none; }
.scan-old {
  position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: linear-gradient(180deg, rgba(242, 84, 27, 0), rgba(242, 84, 27, 0.07), rgba(242, 84, 27, 0));
  animation: scan 6s linear infinite;
}
@keyframes scan { 0% { transform: translateY(20px); } 100% { transform: translateY(170px); } }

.offer-body { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 1.5vw, 22px) clamp(14px, 1.4vw, 20px) clamp(12px, 1.2vw, 16px); }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.offer-name { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.offer-title { margin-top: 12px; font-size: clamp(1.375rem, 0.85rem + 0.95vw, 1.875rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
.offer-title span { color: var(--muted); }
.offer-text { margin-top: 8px; color: var(--muted); font-size: var(--fs-base); max-width: 44ch; }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--dash); }
.price { font-size: clamp(2rem, 1.2rem + 1.5vw, 2.75rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.per { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.price-note { flex-basis: 100%; margin-top: 6px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.offer-ideal { margin: 14px 0 18px; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.offer-cta { margin-top: auto; width: 100%; height: 48px; }

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: var(--fs-base); color: var(--text-2); letter-spacing: -0.015em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)) ; box-shadow: var(--pill-shadow);
}
.check-list li::after {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2 7 10.4l4.4-4.8' fill='none' stroke='%23111110' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---- Closing CTA card (playful, conversion-ready) --------------------- */
.cta-end { padding-bottom: clamp(28px, 3vw, 48px); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 3.4vw, 56px);
  border-radius: 4px;
  background-color: var(--bg-raised);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.05);
}
.cta-glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 70%) var(--y, 30%), rgba(242, 84, 27, 0.12), rgba(242, 84, 27, 0) 70%);
  transition: opacity 0.4s var(--ease);
}
.cta-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-status {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 13px; border-radius: var(--pill);
  background: var(--accent-tint); color: var(--accent-deep);
  font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: -0.01em;
}
.cta-title {
  margin-top: clamp(26px, 3vw, 44px);
  font-size: clamp(1.75rem, 0.55rem + 2.25vw, 3.25rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.05em;
}
.cta-title span { display: block; color: var(--muted); }
.cta-social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-social .socials { gap: 6px; }
.cta-mail .btn-ico { width: 17px; height: 17px; }
.cta-actions .cta-mail {
  color: var(--text); background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17, 17, 15, 0.14), 0 6px 16px -10px rgba(17, 17, 15, 0.35);
}
.cta-actions .cta-mail:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17, 17, 15, 0.28), 0 10px 20px -10px rgba(17, 17, 15, 0.4); }
.cta-actions .cta-mail.is-unset { opacity: 1; }

/* Social buttons: brand colour on hover */
.pill-social .ico { transition: color 0.2s var(--ease); }
.pill-social.is-unset { opacity: 0.75; }
a.pill.brand-linkedin:hover { color: #0a66c2; background: #eaf2fb; box-shadow: inset 0 0 0 1px rgba(10, 102, 194, 0.28); }
a.pill.brand-linkedin:hover .ico { color: #0a66c2; }
a.pill.brand-x:hover { color: #fff; background: #0f1419; box-shadow: inset 0 0 0 1px #0f1419; }
a.pill.brand-x:hover .ico { color: #fff; }
a.pill.brand-dribbble:hover { color: #ea4c89; background: #fdeef4; box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.3); }
a.pill.brand-dribbble:hover .ico { color: #ea4c89; }

.cta-sub { margin-top: 18px; font-size: var(--fs-md); color: var(--muted); max-width: 46ch; }

.cta-pick { margin-top: clamp(28px, 3vw, 40px); }
.cta-pick-hint { margin-left: 8px; color: var(--faint); }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pick {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 12px; border-radius: var(--pill);
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow);
  font-size: var(--fs-base); color: var(--text-2); letter-spacing: -0.015em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.3s var(--ease);
}
.pick .ico { width: 16px; height: 16px; color: var(--muted); transition: color 0.25s var(--ease); }
.pick:hover { transform: translateY(-1px); color: var(--text); }
.pick:active { transform: scale(0.97); }
.pick-check {
  display: inline-grid; place-items: center; width: 0; height: 18px; overflow: hidden; border-radius: 50%;
  background: var(--accent); color: #fff; margin-left: -8px;
  transition: width 0.3s var(--ease), margin 0.3s var(--ease), transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  transform: scale(0.4);
}
.pick-check .ico { width: 11px; height: 11px; color: #fff; stroke-width: 2.4; }
.pick[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent-deep); box-shadow: inset 0 0 0 1px rgba(242, 84, 27, 0.35); }
.pick[aria-pressed="true"] .ico { color: var(--accent); }
.pick[aria-pressed="true"] .pick-check { width: 18px; margin-left: 0; transform: scale(1); }

.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.magnetic { display: inline-block; }
.magnetic > .btn { transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.2s var(--ease); will-change: transform; }
.cta-main { height: 52px; padding: 0 26px; font-size: var(--fs-md); }
.cta-actions .btn-light { height: 52px; padding: 0 22px; }
.copy-email {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: var(--pill);
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-2); letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px var(--dash); position: relative;
  transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-email:not(:disabled):hover { box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.35); color: var(--text); }
.copy-email-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); }
.copy-email-ico .ico { width: 15px; height: 15px; }
.copy-email-done {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 4px 10px; border-radius: var(--pill); background: var(--text); color: #fff; font-size: var(--fs-xs);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); white-space: nowrap;
}
.copy-email.is-done .copy-email-done { opacity: 1; transform: translate(-50%, 0); }
.copy-email.is-unset { opacity: 0.5; cursor: not-allowed; }

/* ---- Inner-page typography --------------------------------------------- */
.eyebrow { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: -0.01em; }
.page-title { font-size: var(--fs-xl); line-height: 1.05; font-weight: 500; letter-spacing: -0.05em; margin-top: 12px; max-width: 20ch; text-wrap: balance; }
.section-title { font-size: var(--fs-lg); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; margin-top: 8px; max-width: 30ch; text-wrap: balance; }
.lead { color: var(--muted); margin-top: 16px; max-width: 58ch; font-size: var(--fs-md); }
.section-head { margin-bottom: 24px; }
.label { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.prose p { color: var(--text-2); max-width: 62ch; }
.prose p + p { margin-top: 14px; }
.prose .prose-intro { color: var(--text); font-size: var(--fs-md); }

/* Shared raised surface for inner-page cards */
.service, .stat, .content-card, .step, .decision, .success, .next-project, .case-study-cta {
  background: var(--bg-raised); box-shadow: var(--card-ring);
}

/* ---- Services page ------------------------------------------------------ */
.service-list { display: grid; gap: var(--gap); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); padding: 10px 10px 10px clamp(22px, 2.4vw, 32px); }
.service-copy { padding-block: 18px; display: flex; flex-direction: column; }
.service-num { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.service-title { margin-top: 10px; font-size: var(--fs-lg); line-height: 1.15; font-weight: 500; letter-spacing: -0.04em; }
.service-text { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.service .check-list { margin-top: auto; padding-top: 24px; }
.service-media { border-radius: calc(var(--r-lg) - 6px); overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3.4; box-shadow: inset 0 0 0 1px var(--line); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- About -------------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.portrait { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised); aspect-ratio: 4 / 4.4; box-shadow: var(--card-ring); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap); }
.stat { border-radius: var(--r); padding: 22px; }
.stat-value { display: block; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; }
.stat-label { display: block; margin-top: 8px; font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.experience { border-top: 1px dashed var(--dash); }
.exp-item { padding: 20px 0; border-bottom: 1px dashed var(--dash); }
.exp-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.exp-row h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.025em; }
.exp-role { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.exp-item p { margin-top: 4px; color: var(--muted); max-width: 62ch; }
.content-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.content-card { display: flex; flex-direction: column; min-height: 260px; border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); }
.content-card h3 { margin-top: 18px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; }
.content-card p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.text-link { margin-top: auto; padding-top: 24px; display: inline-flex; font-weight: 500; align-self: flex-start; }

/* ---- Accordion ---------------------------------------------------------- */
.accordion { border-top: 1px dashed var(--dash); }
.acc-item { border-bottom: 1px dashed var(--dash); }
.acc-heading { font-size: inherit; font-weight: inherit; }
.acc-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.025em; }
.acc-icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 44px 22px 0; color: var(--muted); max-width: 64ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 780px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label .opt { color: var(--faint); font-weight: 400; }
.field label .req { color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 15px;
  background: var(--bg-raised); border: 0; border-radius: var(--r-sm);
  box-shadow: var(--card-ring);
  font-size: var(--fs-base); line-height: 1.4; color: var(--text);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--faint); }
.input:hover { background: #fbfbfa; }
.input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px var(--text), 0 0 0 5px rgba(17, 17, 15, 0.06); }
textarea.input { min-height: 130px; resize: vertical; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238d8d89' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select.input:invalid { color: var(--faint); }
select.input option { color: var(--text); }
.field.has-error .input { box-shadow: 0 0 0 1px var(--danger); background: #fff7f6; }
.field-error { font-size: var(--fs-xs); color: var(--danger); }
.field-error:empty { display: none; }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form-status { font-size: var(--fs-sm); color: var(--danger); }
.form-status:empty { display: none; }
.btn.is-loading { pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-chip { justify-self: start; padding: 8px 14px; border-radius: var(--pill); background: rgba(17,17,15,.055); font-family: var(--mono); font-size: var(--fs-sm); }
.success { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); outline: none; max-width: 780px; }
.success-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #fafaf9; display: grid; place-items: center; font-size: 18px; animation: pop 0.45s var(--ease) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.success h2 { margin-top: 20px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.035em; }
.success p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.demo-note { margin-top: 18px !important; padding: 12px 14px; border-radius: var(--r-sm); background: #fff4d6; color: #6d4e00 !important; font-size: var(--fs-xs); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 28px; border-top: 1px dashed var(--dash); }
.contact-email { display: inline-block; margin-top: 10px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.03em; }

/* Steps (audit page) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.step { border-radius: var(--r); padding: 20px; }
.step-num { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.step strong { display: block; margin-top: 20px; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.025em; }
.step p { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.support { margin-top: 14px; font-size: var(--fs-sm); color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.support::before { content: ""; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--status); flex: none; }

/* ---- Project detail ----------------------------------------------------- */
.back-link { display: inline-flex; font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); transition: color 0.2s; }
.back-link:hover { color: var(--text); }
#project-root { display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 56px); }
#project-root > .back-link { margin-bottom: calc(clamp(36px, 4.5vw, 56px) * -0.6); }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--dash); }
.detail-meta dt { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.detail-meta dd { margin-top: 4px; font-size: var(--fs-base); font-weight: 500; }
.detail-meta dd .muted { font-weight: 400; color: var(--faint); }
.detail-row { display: grid; grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); }
.detail-label { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.025em; }
.detail-body p { color: var(--text-2); max-width: 62ch; }
.detail-body > * + * { margin-top: 14px; }
.detail-role { font-weight: 500; color: var(--text) !important; }
.detail-image { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised); box-shadow: 0 0 0 1px rgba(17,17,15,.08), 0 24px 48px -28px rgba(17,17,15,.4); }
.detail-image img { width: 100%; height: auto; }
.detail-gallery { display: grid; gap: var(--gap); }
.decision-list { display: grid; gap: 10px; }
.decision { padding: 18px; border-radius: var(--r); }
.decision h3 { font-size: var(--fs-base); font-weight: 500; }
.decision p { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.case-study-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); }
.case-study-cta span { color: var(--muted); }
.next-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 260px); gap: 24px; align-items: center; padding: 10px 10px 10px clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); }
.next-name { margin-top: 6px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.04em; }
.next-copy .muted { margin-top: 2px; font-family: var(--mono); font-size: var(--fs-sm); }
.next-media { border-radius: calc(var(--r-lg) - 6px); overflow: hidden; aspect-ratio: 4 / 3; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.next-project:hover .next-media img { transform: scale(1.04); }

/* Placeholder markers */
.ph-badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: 2px;
  height: 22px; padding: 0 9px; border-radius: var(--pill);
  background: #fff1cc; color: #7a5600;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
}
.ph-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ph-block { border: 1px dashed var(--dash); border-radius: var(--r-sm); padding: 14px 16px; }
.ph-block p { color: var(--muted) !important; font-size: var(--fs-sm); margin-top: 8px; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.not-found .page-title { margin-inline: auto; }
.not-found .btn-row { justify-content: center; }

/* ---- Reveal ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1280px) {
  .service { grid-template-columns: 1fr; padding: 10px; }
  .service-copy { padding: 16px 14px 6px; }
  .service .check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .service-media { aspect-ratio: 16 / 10; }
  .about-hero { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .audit-link-wrap { display: none; }
}

@media (max-width: 1120px) {
  .offer-grid, .content-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-spots .spots { font-size: var(--fs-sm); }
}

/* Mobile & small tablet: header stays, panel becomes a top section */
@media (max-width: 960px) {
  :root { --hdr-h: 60px; --pad: 18px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .hdr-left { border-right: 0; }
  .hdr-nav { display: none; }
  .hdr-right { gap: 8px; }
  .menu-toggle {
    display: inline-block; position: relative; width: 38px; height: 38px; border-radius: var(--pill);
    background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow);
  }
  .menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
  .menu-toggle span:first-child { top: 15px; }
  .menu-toggle span:last-child { top: 21px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px var(--pad) 18px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(17, 17, 15, 0.3);
    opacity: 0; transform: translateY(-6px); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .mobile-menu.is-open { opacity: 1; transform: none; }
  .mobile-link { display: block; padding: 14px 0; border-bottom: 1px dashed var(--dash); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
  .mobile-link.is-active { color: var(--text); }
  .mobile-audit { border-bottom: 0; color: var(--text); }
  .mobile-audit small { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; }

  .panel { position: relative; top: auto; width: auto; margin-top: var(--hdr-h); border-right: 0; border-bottom: 1px dashed var(--dash); overflow: visible; }
  .content { margin-left: 0; padding-top: 28px; min-height: 0; }
  /* Inner pages: skip the panel so content comes first (identity stays in the header) */
  .is-inner .panel { display: none; }
  .is-inner .content { padding-top: calc(var(--hdr-h) + 28px); }
}

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .form-row, .contact-details { grid-template-columns: 1fr; }
  .next-project { grid-template-columns: 1fr; padding: 10px; }
  .next-copy { padding: 10px 8px 4px; }
  .service .check-list { grid-template-columns: 1fr; }
  .filters-wrap { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow: hidden; }
  .filters { display: flex; }
  .cta-actions > * { flex: 1 1 auto; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .magnetic { width: 100%; }
  .cta-title span { display: inline; }
  .cta-top { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hdr-spots { padding: 0 12px; }
  .hdr-spots .spots { font-size: var(--fs-xs); gap: 7px; }
  .hdr-right .btn-sm { padding: 0 12px; }
  .identity-name { font-size: var(--fs-base); }
  .hdr-avatar { width: 32px; height: 32px; border-radius: 8px; }
}
@media (max-width: 400px) {
  .hdr-spots { display: none; }
  .panel-ctas .btn { flex: 1 1 auto; }
}

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, html.js .content { opacity: 1; transform: none; }
  .t-cursor { display: none; }
  .scan { display: none; }
}
.pick[aria-pressed="true"] .pick-check .ico { color: #fff; width: 11px; height: 11px; }
.panel-quote { margin-bottom: clamp(10px, 1vw, 18px); }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.section-title-lg { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.75rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.045em; max-width: 24ch; text-wrap: balance; }
.section-title-lg span { color: var(--muted); }
.section-head .section-title-lg + .lead { margin-top: 12px; }

/* Founder note */
.note-stage {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 5vw, 84px) clamp(14px, 4vw, 64px);
  border-radius: 4px; background-color: var(--bg-raised);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.05);
}
.note-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.note-blob.b1 { width: 46%; aspect-ratio: 1; left: -10%; top: -18%; background: radial-gradient(closest-side, rgba(242, 84, 27, 0.16), rgba(242, 84, 27, 0)); }
.note-blob.b2 { width: 40%; aspect-ratio: 1; right: -8%; top: 20%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); animation-duration: 22s; }
.note-blob.b3 { width: 50%; aspect-ratio: 1; right: 10%; bottom: -30%; background: radial-gradient(closest-side, rgba(247, 201, 179, 0.35), rgba(247, 201, 179, 0)); animation-duration: 26s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, 4%) scale(1.08); } }

.note-card {
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  padding: clamp(26px, 3.6vw, 52px);
  border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.05), 0 2px 4px rgba(17, 17, 15, 0.03), 0 36px 70px -36px rgba(17, 17, 15, 0.3);
}
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.note-head h2 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; }
.note-body { display: grid; gap: 18px; margin-top: 26px; }
.note-body p { font-size: clamp(0.9375rem, 0.85rem + 0.2vw, 1.0625rem); line-height: 1.7; color: var(--text-2); letter-spacing: -0.012em; }
.note-sign { margin-top: 30px; }
.note-sign > p:first-child { color: var(--text-2); }
.signature {
  display: inline-block; margin-top: 4px;
  font-family: "Homemade Apple", "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.7; color: var(--text);
  transform: rotate(-3deg); transform-origin: left center;
}
.signature span { display: inline-block; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.35s; }
.note-card.is-visible .signature span { clip-path: inset(-20% 0 -20% 0); }
.note-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Stats (three cards) */
.stats .stat { display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-lg); transition-delay: calc(var(--i, 0) * 80ms); }
.stats .stat-value { font-size: clamp(2.5rem, 1.5rem + 2.2vw, 3.75rem); letter-spacing: -0.06em; line-height: 1; }
.stats .stat-label { margin-top: 18px; font-family: var(--font); font-size: var(--fs-md); font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.stat-text { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* Industry expertise (bento) */
.industries { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.industry { grid-column: span 2; }
.industry:nth-child(4), .industry:nth-child(5) { grid-column: span 3; }
.industry {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 240px;
  padding: clamp(20px, 2vw, 28px); border-radius: var(--r-lg);
  background: var(--bg-raised); box-shadow: var(--card-ring);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.industry::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background-image: radial-gradient(circle, var(--dot) 0.7px, transparent 1.1px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.industry:hover { transform: translateY(-3px); box-shadow: var(--card-ring), 0 26px 48px -30px rgba(17, 17, 15, 0.35); transition-delay: 0s; }
.industry:hover::before { opacity: 1; }
.industry-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.industry-ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); color: var(--text);
  transition: color 0.3s var(--ease);
}
.industry:hover .industry-ico { color: var(--accent); }
.industry-name { margin-top: auto; padding-top: 32px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.industry-text { margin-top: 8px; font-size: var(--fs-base); color: var(--muted); max-width: 52ch; }

/* Philosophy quote */
.manifesto {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 80px) clamp(24px, 4.4vw, 72px);
  border-radius: 4px; background-color: var(--bg-raised); box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.05);
}
.manifesto-mark { display: block; height: 0.5em; font-size: clamp(4rem, 3rem + 3vw, 7rem); line-height: 1; font-weight: 500; color: var(--accent); }
.manifesto-quote { margin-top: 14px; font-size: clamp(1.625rem, 0.8rem + 2vw, 3rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.045em; max-width: 26ch; text-wrap: balance; }
.manifesto-quote span { color: var(--muted); }
.manifesto-by { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
.manifesto-by img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.manifesto-by strong { display: block; font-size: var(--fs-base); font-weight: 500; letter-spacing: -0.02em; }

/* Process timeline */
.process { position: relative; }
.process-rail { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background-image: repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 12px); }
.process-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); transition: width 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s; }
.process.is-visible .process-fill { width: 100%; }
.process-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap); }
.process-step { position: relative; padding-top: 40px; }
.process-node {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--dash);
  transition: box-shadow 0.4s var(--ease); transition-delay: calc(0.2s + var(--i) * 0.6s);
}
.process-node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1); transition-delay: inherit; }
.process.is-visible .process-node { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-tint); }
.process.is-visible .process-node::after { transform: scale(1); }
.process-phase { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.process-title { margin-top: 10px; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.process-text { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

@media (max-width: 1120px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry, .industry:nth-child(4) { grid-column: span 1; }
  .industry:nth-child(5) { grid-column: span 2; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .process-rail { display: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .industries, .process-steps { grid-template-columns: 1fr; }
  .industry:nth-child(5) { grid-column: span 1; }
  .industry { min-height: 0; }
  .note-foot { justify-content: stretch; }
  .note-foot .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .signature span { clip-path: none; }
  .note-blob { animation: none; }
  .process-fill { width: 100%; }
}

/* ---- About v2: minimal process ----------------------------------------- */
.p2 { border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--card-ring); overflow: hidden; }
.p2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p2-step { position: relative; padding: clamp(20px, 2vw, 28px); transition: background-color 0.5s var(--ease); cursor: default; }
.p2-step + .p2-step { border-left: 1px dashed var(--dash); }
.p2-step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
.p2-step.is-active { background: #fff; }
.p2-step.is-active::before { width: 100%; }
.p2-head { display: flex; align-items: center; gap: 8px; }
.p2-node { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.p2-step.is-active .p2-node { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.p2-phase { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); transition: color 0.4s var(--ease); }
.p2-step.is-active .p2-phase { color: var(--accent-deep); }
.p2-num { margin-left: auto; font-family: var(--mono); font-size: var(--fs-xs); color: var(--faint); }
.p2-title { margin-top: 26px; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; }
.p2-items { display: grid; gap: 6px; margin-top: 14px; }
.p2-items li { position: relative; padding-left: 14px; font-size: var(--fs-sm); color: var(--muted); }
.p2-items li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--faint); }

/* ---- About v2: stats underline ----------------------------------------- */
.stats .stat-value::after { content: ""; display: block; width: 0; height: 2px; margin-top: 16px; border-radius: 2px; background: var(--accent); transition: width 0.9s var(--ease) 0.4s; }
.stats .stat.is-visible .stat-value::after { width: 36px; }
.stats .stat-label { margin-top: 14px; }

/* ---- About v2: industry spotlight + icon micro-animations -------------- */
.industry::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 84, 27, 0.08), transparent 70%);
}
.industry:hover::after { opacity: 1; }
.industry-ico .ico { overflow: visible; }
.ind-check, .ind-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ind-pulse { stroke-dasharray: 0.22 0.78; stroke-dashoffset: 1; opacity: 0; }
.ind-spark, .ind-twinkle { transform-box: fill-box; transform-origin: center; }
@keyframes indDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes indDraw2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes indPulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes indSpark { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(0.82) rotate(18deg); } }
@keyframes indTwinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.2; transform: scale(0.5); } }
@keyframes indGrid { 0%, 100% { opacity: 1; } 40% { opacity: 0.25; } }
.industry.is-visible .ind-check, .industry.is-visible .ind-line { animation: indDraw 0.9s var(--ease) 0.5s both; }
.industry:hover .ind-check, .industry:hover .ind-line { animation: indDraw2 0.7s var(--ease) both; }
.industry:hover .ind-pulse { opacity: 1; animation: indPulse 1.4s linear infinite; }
.industry:hover .ind-spark { animation: indSpark 1.6s var(--ease) infinite; }
.industry:hover .ind-twinkle { animation: indTwinkle 1.2s var(--ease) infinite; }
.industry:hover .ind-g { animation: indGrid 1.6s var(--ease) infinite; }
.industry:hover .ind-g2 { animation-delay: 0.2s; } .industry:hover .ind-g3 { animation-delay: 0.4s; } .industry:hover .ind-g4 { animation-delay: 0.6s; }

@media (max-width: 1120px) {
  .p2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-step:nth-child(3) { border-left: 0; }
  .p2-step:nth-child(n+3) { border-top: 1px dashed var(--dash); }
}
@media (max-width: 640px) {
  .p2-steps { grid-template-columns: 1fr; }
  .p2-step + .p2-step { border-left: 0; border-top: 1px dashed var(--dash); }
  .p2-title { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .stats .stat-value::after { width: 36px; }
}
.industry-name { margin-top: 34px; padding-top: 0; }


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-card {
  position: relative; z-index: 1; width: 100%; max-width: 720px; margin: 0 auto;
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.06), 0 2px 4px rgba(17, 17, 15, 0.03), 0 34px 70px -40px rgba(17, 17, 15, 0.35);
}
.contact-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact-title { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.045em; }
.contact-alt { font-size: var(--fs-sm); color: var(--muted); transition: color 0.2s var(--ease); }
.contact-alt:hover { color: var(--accent); }
.contact-card .form { max-width: none; gap: 18px; }
.contact-card .input { background: #f6f6f4; box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.06); }
.contact-card .input:hover { background: #f2f2f0; }
.contact-card .input:focus { background: #fff; box-shadow: 0 0 0 1px var(--text), 0 0 0 5px rgba(17, 17, 15, 0.06); }
.contact-card .field.has-error .input { box-shadow: 0 0 0 1px var(--danger); background: #fff7f6; }
.contact-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-card .success { box-shadow: none; background: transparent; padding: 8px 0 0; }

/* CTA on the contact page: email only */
.cta-actions.is-email-only .cta-mail {
  color: #f7f7f5; background: linear-gradient(180deg, #3a3a38 0%, #161615 55%, #0d0d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px #0d0d0c, 0 6px 14px -6px rgba(17, 17, 15, 0.45);
}
.cta-actions.is-email-only .cta-mail .btn-ico { opacity: 1; }
@media (max-width: 640px) { .contact-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; } .contact-foot .btn { width: 100%; } }

/* Stage glow (founder note + contact card): same feel as the closing card */
.stage-glow {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--x, 50%) var(--y, 30%), rgba(242, 84, 27, 0.13), rgba(242, 84, 27, 0) 70%);
  transition: opacity 0.4s var(--ease);
}
.note-stage .contact-card { box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.05), 0 2px 4px rgba(17, 17, 15, 0.03), 0 36px 70px -36px rgba(17, 17, 15, 0.3); }
.panel-title { font-size: clamp(2.125rem, 0.6rem + 2.6vw, 3.25rem); }

/* ==========================================================================
   PRODUCT AUDIT PAGE
   ========================================================================== */
.page-hero { padding-top: clamp(8px, 2vw, 32px); }
.hero-title { margin-top: 20px; font-size: clamp(2rem, 0.9rem + 2.6vw, 3.75rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.05em; max-width: 18ch; text-wrap: balance; }
.hero-title span { color: var(--muted); }
.page-hero .lead { margin-top: 18px; max-width: 58ch; }
.p2-steps.p2-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p2-text { margin-top: 26px; font-size: var(--fs-base); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.p2-step:not(.is-active) .p2-text { color: var(--muted); }
.p2-text { transition: color 0.4s var(--ease); }

/* Dropzone */
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; text-align: center; cursor: pointer;
  border-radius: var(--r-sm); background: #f6f6f4; border: 1px dashed rgba(17, 17, 15, 0.18);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-tint); }
.dropzone:focus-within { border-color: var(--text); }
.dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--card-ring); color: var(--text); }
.dropzone.is-over .dropzone-ico, .dropzone:hover .dropzone-ico { color: var(--accent); }
.dropzone-text { font-size: var(--fs-sm); color: var(--text-2); }
.dropzone-text u { text-underline-offset: 3px; }
.dropzone-meta { font-size: var(--fs-xs); }
.file-list { display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: #f6f6f4; box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.06); font-size: var(--fs-sm); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.file-remove { width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; color: var(--muted); }
.file-remove:hover { background: #fff; color: var(--text); }

@media (max-width: 1120px) { .p2-steps.p2-3 { grid-template-columns: 1fr; } .p2-3 .p2-step + .p2-step { border-left: 0; border-top: 1px dashed var(--dash); } .p2-3 .p2-text { margin-top: 12px; } }

.contact-head { display: block; }
.contact-sub { margin-top: 10px; font-size: var(--fs-base); color: var(--muted); max-width: 52ch; }

/* Simple attachment field (audit form) */
.attach {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 0 15px; border-radius: var(--r-sm); cursor: pointer;
  background: #f6f6f4; box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.06);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.attach:hover { background: #f2f2f0; }
.attach.is-over { background: var(--accent-tint); box-shadow: inset 0 0 0 1px rgba(242, 84, 27, 0.4); }
.attach:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--text), 0 0 0 5px rgba(17, 17, 15, 0.06); }
.attach-text { font-size: var(--fs-base); color: var(--faint); }
.attach-ico { width: 19px; height: 19px; color: var(--muted); transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.attach:hover .attach-ico, .attach.is-over .attach-ico { color: var(--accent); transform: rotate(-12deg); }

/* ==========================================================================
   PROJECT DETAIL (case study)
   ========================================================================== */
#project-root { gap: clamp(48px, 6vw, 88px); }
#project-root > .back-link { margin-bottom: 0; }
.cs-hero { display: grid; justify-items: center; text-align: center; padding-top: clamp(4px, 1vw, 16px); }
.cs-hero .back-link { justify-self: start; margin-bottom: clamp(20px, 3vw, 40px); }
.cs-title { margin-top: 20px; font-size: clamp(1.875rem, 0.8rem + 2.2vw, 3.25rem); line-height: 1.06; font-weight: 500; letter-spacing: -0.05em; max-width: 26ch; text-wrap: balance; }
.cs-title span { display: block; color: var(--muted); }
.cs-sub { margin-top: 18px; max-width: 56ch; font-size: var(--fs-md); color: var(--muted); }

.cs-hero-visual, .cs-img, .cs-slide { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.08), 0 24px 48px -30px rgba(17, 17, 15, 0.4); }
.cs-hero-visual { aspect-ratio: 16 / 10; }
.cs-hero-visual img, .cs-hero-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.cs-img:hover img { transform: scale(1.02); }

/* Metrics strip */
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: calc(clamp(48px, 6vw, 88px) * -0.55); border-top: 1px dashed var(--dash); border-bottom: 1px dashed var(--dash); }
.cs-meta > div { padding: 18px 18px 20px; }
.cs-meta > div + div { border-left: 1px dashed var(--dash); }
.cs-meta > div:first-child { padding-left: 0; }
.cs-meta dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cs-meta dd { margin-top: 8px; font-size: var(--fs-base); font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; }
.cs-missing { font-weight: 400; color: var(--faint); }

/* Label + body rows */
.cs-row { display: grid; grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); }
.cs-label { font-size: clamp(1.375rem, 1rem + 0.9vw, 2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.cs-intro { font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text); letter-spacing: -0.015em; max-width: 60ch; }
.cs-body > * + * { margin-top: 22px; }
.cs-role { font-size: var(--fs-base); color: var(--text-2); }
.cs-role .mono-label { margin-right: 10px; }
.cs-actions { display: flex; gap: 8px; }

/* Bento + showcase */
.cs-bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gap); }
.cs-bento .cs-img { aspect-ratio: auto; height: clamp(240px, 26vw, 420px); }
.cs-wide { aspect-ratio: 16 / 9; }
.cs-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-showcase .cs-s1 { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.cs-showcase .cs-s2, .cs-showcase .cs-s3 { aspect-ratio: 4 / 3; }

/* Challenges list + approach cards */
.cs-list { display: grid; border-top: 1px dashed var(--dash); }
.cs-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px dashed var(--dash); }
.cs-list-num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); padding-top: 3px; }
.cs-list h3, .cs-card h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; }
.cs-list p, .cs-card p { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.cs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cs-card { padding: 20px; border-radius: var(--r); background: var(--bg-raised); box-shadow: var(--card-ring); }

/* Gallery slider */
.cs-gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.cs-gallery-nav { display: flex; align-items: center; gap: 8px; }
.cs-gallery-count { margin-right: 6px; font-variant-numeric: tabular-nums; }
.cs-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  cursor: grab; outline: none; padding-bottom: 6px;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cs-track.is-dragging .cs-slide { pointer-events: none; }
.cs-slide { flex: 0 0 min(72%, 760px); aspect-ratio: 4 / 3; scroll-snap-align: start; user-select: none; }
.cs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-progress { position: relative; height: 2px; margin-top: 18px; background: rgba(17, 17, 15, 0.1); border-radius: 2px; overflow: hidden; }
.cs-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: var(--accent); border-radius: inherit; transition: width 0.2s linear; }

/* Outcome metrics + testimonial */
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.cs-metric { padding: 20px; border-radius: var(--r); background: var(--bg-raised); box-shadow: var(--card-ring); }
.cs-metric span { display: block; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.cs-metric p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.cs-quote { position: relative; margin: 0; padding: clamp(24px, 3vw, 40px); background-color: var(--bg-raised); background-image: radial-gradient(circle, var(--dot) 0.7px, transparent 1.1px); background-size: 14px 14px; }
.cs-quote blockquote { font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem); line-height: 1.4; letter-spacing: -0.025em; }
.cs-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.cs-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cs-quote strong { display: block; font-size: var(--fs-base); font-weight: 500; }
.cs-quote figcaption span span { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* More projects */
.cs-more-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 4px; }
.cs-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-more-grid .project-name { font-size: var(--fs-lg); }

@media (max-width: 1120px) {
  .cs-row { grid-template-columns: 1fr; gap: 14px; }
  .cs-cards { grid-template-columns: 1fr; }
  .cs-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-more-grid .project-card:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px dashed var(--dash); }
  .cs-meta > div:nth-child(4) { border-top: 1px dashed var(--dash); }
  .cs-bento, .cs-showcase { grid-template-columns: 1fr; }
  .cs-showcase .cs-s1 { aspect-ratio: 4 / 3; }
  .cs-slide { flex-basis: 86%; }
  .cs-more-grid { grid-template-columns: 1fr; }
  .cs-more-grid .project-card:nth-child(3) { display: block; }
}
.cs-hero-visual img, .cs-img img, .cs-slide img { object-position: center top; }

/* ==========================================================================
   v2: CMS-driven project page (simple, fixed format) + Insights
   ========================================================================== */
.project-card[hidden] { display: none !important; }
.project-cat { gap: 0; }
.project-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.signature-img { display: block; height: 64px; width: auto; margin-top: 8px; }

/* Project page */
.cs-meta { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.cs-text { max-width: 760px; }
.cs-text .cs-label { margin-bottom: 18px; }
.cs-prose { display: grid; gap: 16px; }
.cs-prose p, .cs-prose li { font-size: clamp(1rem, 0.92rem + 0.25vw, 1.125rem); line-height: 1.7; color: var(--text-2); letter-spacing: -0.012em; }
.cs-prose strong { color: var(--text); font-weight: 600; }
.cs-prose ul, .cs-prose ol { padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
.cs-prose ol { list-style: decimal; }
.cs-prose a { text-decoration: underline; text-underline-offset: 3px; }
.cs-overview { max-width: none; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--card-ring); }
.cs-overview .cs-prose { max-width: 720px; }
.cs-visit { margin-top: 26px; width: 100%; height: 52px; font-size: var(--fs-md); background: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17, 17, 15, 0.1), 0 6px 16px -10px rgba(17, 17, 15, 0.3); }
.cs-visit:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17, 17, 15, 0.22), 0 10px 22px -12px rgba(17, 17, 15, 0.4); }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-pair .cs-img { aspect-ratio: 4 / 3; }
.cs-pair.is-single { grid-template-columns: 1fr; }
.cs-pair.is-single .cs-img { aspect-ratio: 16 / 9; }
.cs-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-testimonial figure { margin: 0; }
.cs-testimonial blockquote { font-size: clamp(1.375rem, 0.9rem + 1.3vw, 2.25rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.04em; max-width: 30ch; text-wrap: pretty; }
.cs-testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.cs-testimonial figcaption img, .cs-testimonial .t-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs-testimonial strong { display: block; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; }
.cs-testimonial figcaption span span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.cs-testimonial .cs-label { margin-bottom: 18px; }
.cs-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .cs-pair { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Insights: listing */
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.insight-card { transition-delay: calc(var(--i, 0) * 70ms); }
.insight-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--card-ring); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.insight-link:hover { transform: translateY(-3px); box-shadow: var(--card-ring), 0 26px 48px -30px rgba(17, 17, 15, 0.35); }
.insight-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.insight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.insight-link:hover .insight-media img { transform: scale(1.03); }
.insight-media-ph { display: grid; place-items: center; background-color: var(--bg); position: relative; }
.insight-media-ph span { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.8); box-shadow: var(--card-ring); }
.insight-media-ph::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 84, 27, 0.14), transparent); }
.insight-body { flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px); }
.insight-meta { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.insight-title { margin-top: 10px; font-size: var(--fs-lg); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.insight-excerpt { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.insight-more { margin-top: auto; padding-top: 18px; font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.insight-link:hover .insight-more { color: var(--accent); }

/* Insights: article */
.article { max-width: 760px; width: 100%; margin: 0 auto; }
.article-head { display: grid; justify-items: start; }
.article-head .back-link { margin-bottom: 28px; }
.article-title { margin-top: 18px; font-size: clamp(2rem, 1rem + 2.4vw, 3.25rem); line-height: 1.06; font-weight: 500; letter-spacing: -0.05em; text-wrap: balance; }
.article-lead { margin-top: 16px; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.article-by { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--dash); width: 100%; }
.article-by img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.article-by strong { display: block; font-size: var(--fs-base); font-weight: 500; }
.article-cover { margin-top: 32px; }
.article-body { margin-top: clamp(32px, 4vw, 48px); }
.article-body > * + * { margin-top: 1.1em; }
.article-body p, .article-body li { font-size: clamp(1.0313rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.75; color: var(--text-2); letter-spacing: -0.01em; }
.article-body h2 { margin-top: 2em; font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; color: var(--text); }
.article-body h3 { margin-top: 1.6em; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.03em; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.article-body blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.article-body blockquote p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); color: var(--text); letter-spacing: -0.02em; }
.article-body hr { border: 0; border-top: 1px dashed var(--dash); margin: 2.2em 0; }
.article-body code { font-family: var(--mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: rgba(17, 17, 15, 0.06); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--dash); }
@media (max-width: 760px) { .insight-grid { grid-template-columns: 1fr; } }

/* Gallery: auto-moving marquee, drag, click to open the lightbox */
.cs-gallery { position: relative; }
.cs-marquee {
  overflow: hidden; margin-inline: calc(var(--pad) * -1); padding-block: 4px 10px;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.cs-gallery.is-dragging .cs-marquee { cursor: grabbing; }
.cs-gallery.has-cursor .cs-marquee { cursor: none; }
.cs-marquee-track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--pad); will-change: transform; }
.cs-slide {
  flex: 0 0 auto; width: clamp(240px, 30vw, 500px); aspect-ratio: 7 / 5; padding: 0; border: 0; font: inherit; color: inherit;
  cursor: inherit; scroll-snap-align: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cs-slide img, .cs-slide video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cs-slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .cs-gallery:not(.is-dragging) .cs-slide:hover { transform: translateY(-4px); } }
.cs-gallery.is-dragging .cs-slide { transition: none; }
.g-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  padding: 11px 20px; border-radius: 999px; background: rgba(17, 17, 15, 0.86); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; scale: 0.6; transition: opacity 0.2s var(--ease), scale 0.25s var(--ease);
}
.g-cursor.is-on { opacity: 1; scale: 1; }
.cs-gallery.is-down .g-cursor { scale: 0.88; }
@media (max-width: 760px) { .cs-slide { width: 78vw; } }

/* Lightbox */
html.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 11, 0.94); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lb-top { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb-count { color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px clamp(16px, 7vw, 110px); touch-action: pan-y; }
.lb-media { display: grid; place-items: center; max-width: 100%; max-height: 100%; opacity: 0; transform: translateX(calc(var(--dir, 0) * 28px)) scale(0.985); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.lb-media.is-in { opacity: 1; transform: none; }
.lb-media img, .lb-media video { display: block; max-width: min(1400px, 100%); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); width: auto; height: auto; border-radius: var(--r); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); user-select: none; -webkit-user-drag: none; }
.lb-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--accent); }
.lb-btn:active { transform: scale(0.94); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; translate: 0 -50%; }
.lb-prev { left: clamp(10px, 2vw, 28px); }
.lb-next { right: clamp(10px, 2vw, 28px); }
@media (max-width: 760px) {
  .lb-stage { padding: 60px 12px 88px; }
  .lb-nav { top: auto; bottom: 18px; translate: none; width: 48px; height: 48px; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
}
@media (prefers-reduced-motion: reduce) { .lb-media { transition: none; } .g-cursor { display: none; } }
.cs-text .ph-block p { font-size: var(--fs-sm); }
.lb-btn[hidden] { display: none; }

/* ==========================================================================
   v3: CMS form builder
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid > .field { grid-column: 1 / -1; }
.form-grid > .field.is-half { grid-column: span 1; }
@media (max-width: 760px) { .form-grid > .field.is-half { grid-column: 1 / -1; } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 7px; font-size: var(--fs-sm); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 15px; border-radius: var(--pill);
  font-size: var(--fs-sm); color: var(--text); background: #f6f6f4; box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.08);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip:hover span { background: #efefec; }
.chip input:checked + span { background: var(--text); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-field.has-error .chip span { box-shadow: inset 0 0 0 1px var(--danger); }

/* ==========================================================================
   v3: project sections (CMS page builder) + case studies
   ========================================================================== */
.cs-block { display: grid; gap: 12px; }
.cs-cap { font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.cs-heading { margin-bottom: 14px; font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; color: var(--text); max-width: 40ch; }
.cs-text .cs-visit { max-width: 360px; }
.cs-overview .cs-visit { max-width: none; }
.cs-zoom { cursor: zoom-in; }

/* Three-image grid */
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cs-grid .cs-img { aspect-ratio: 1 / 1; }
.cs-grid.is-uneven .cs-img:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

/* Image + text */
.cs-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cs-split .cs-img { aspect-ratio: 4 / 3; }
.cs-split.is-right .cs-img { order: 2; }
.cs-split-text .cs-label { margin-bottom: 14px; }

/* Video embed */
.cs-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: #111; box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.08), 0 24px 48px -30px rgba(17, 17, 15, 0.4); }
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Results numbers */
.cs-stats-wrap .cs-label { margin-bottom: 18px; }
.cs-stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px dashed var(--dash); border-bottom: 1px dashed var(--dash); }
.cs-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 20px 24px; }
.cs-stats > div + div { border-left: 1px dashed var(--dash); }
.cs-stats > div:first-child { padding-left: 0; }
.cs-stats dd { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.25rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.cs-stats > div:first-child dd { color: var(--accent); }
.cs-stats dt { font-size: var(--fs-sm); color: var(--muted); }

/* Callout */
.cs-callout {
  position: relative; padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: var(--r-lg);
  background-color: var(--bg-raised); background-image: radial-gradient(circle, rgba(17, 17, 15, 0.12) 0.7px, transparent 1.1px); background-size: 14px 14px;
  box-shadow: var(--card-ring);
}
.cs-callout::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.cs-callout .mono-label { color: var(--accent); }
.cs-callout-text { margin-top: 10px; font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.625rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.035em; max-width: 40ch; text-wrap: pretty; }

/* Process steps */
.cs-steps-wrap .cs-label { margin-bottom: 18px; }
.cs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.cs-steps li { padding: 20px; border-radius: var(--r); background: var(--bg-raised); box-shadow: var(--card-ring); }
.cs-step-num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.cs-steps h3 { margin-top: 14px; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.02em; }
.cs-steps p { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* Spacer / divider (the page already spaces sections; these add extra air) */
.cs-spacer { height: 0; }
.cs-spacer.is-medium { height: 24px; }
.cs-spacer.is-large { height: 72px; }
.cs-spacer.has-line { border-top: 1px dashed var(--dash); }

/* Case study page */
.cs-meta.is-case { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-meta.is-case > div:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.cs-meta.is-case > div:nth-child(n + 4) { border-top: 1px dashed var(--dash); }
.cs-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: calc(clamp(56px, 6vw, 96px) * -0.55); }
.cs-toc .mono-label { margin-right: 6px; }
.cs-toc-link { padding: 7px 13px; border-radius: var(--pill); font-size: var(--fs-sm); background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom)); box-shadow: var(--pill-shadow); transition: color 0.2s var(--ease); }
.cs-toc-link:hover { color: var(--accent); }
[id^="s-"] { scroll-margin-top: calc(var(--hdr-h) + 24px); }

/* Case study card (homepage): full row, image + dark panel */
.project-card.is-case { grid-column: 1 / -1; }
.case-link {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: #141413; color: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.1), 0 2px 4px rgba(17, 17, 15, 0.06), 0 24px 48px -28px rgba(17, 17, 15, 0.45);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.case-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(17, 17, 15, 0.12), 0 30px 60px -28px rgba(17, 17, 15, 0.55); }
.case-media { aspect-ratio: 612 / 455; overflow: hidden; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.case-link:hover .case-media img { transform: scale(1.03); }
.case-body {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 40px);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.7px, transparent 1.1px); background-size: 14px 14px;
}
.case-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.62); }
.case-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 84, 27, 0.18); }
.case-name { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; color: #fff; }
.case-summary { font-size: var(--fs-base); line-height: 1.5; color: rgba(255, 255, 255, 0.7); max-width: 40ch; }
.case-result { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, 0.18); }
.case-result strong { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.case-result span { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.7); }
.case-cta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: #fff; }
.case-summary + .case-cta, .case-name + .case-cta { margin-top: auto; }
.case-cta .ico { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.case-link:hover .case-cta .ico { transform: translate(2px, -2px); }

@media (max-width: 1100px) {
  .case-link { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cs-grid { grid-template-columns: 1fr 1fr; }
  .cs-grid.is-uneven .cs-img:last-child { aspect-ratio: 1 / 1; grid-column: auto; }
  .cs-split { grid-template-columns: 1fr; }
  .cs-split.is-right .cs-img { order: 0; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cs-stats > div:nth-child(n + 3) { border-top: 1px dashed var(--dash); }
  .cs-meta.is-case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta.is-case > div { border-left: 0 !important; padding-left: 0 !important; }
  .cs-meta.is-case > div:nth-child(n + 3) { border-top: 1px dashed var(--dash); }
}

/* ==========================================================================
   Image boxes match the upload size: 2048 × 1536 (4:3), so nothing is cropped
   ========================================================================== */
.project-media,
.case-media,
.cs-hero-visual,
.cs-wide,
.cs-pair .cs-img,
.cs-pair.is-single .cs-img,
.cs-grid .cs-img,
.cs-split .cs-img,
.cs-slide,
.insight-media { aspect-ratio: 4 / 3; }
/* An image grid with a leftover image keeps it in the grid instead of stretching it full width */
.cs-grid.is-uneven .cs-img:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .cs-grid.is-uneven .cs-img:last-child { aspect-ratio: 4 / 3; } }
/* Case study card: the dark text panel keeps its height in step with the 4:3 image */
.case-link { align-items: stretch; }

/* "More projects": two cards share the row instead of leaving an empty third column */
@media (min-width: 1121px) { .cs-more-grid.is-2, .cs-more-grid.is-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
