/* =========================================================
   Das Studio — design system
   Dark editorial studio template (Inter + Fragment Mono)
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/FragmentMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-raised: #fafafa;
  --bg-card: #f5f5f6;
  --surface: #0a0a0a;
  --surface-2: #17171a;
  --black: #000000;
  --fg: #0a0a0a;
  --fg-muted: rgba(10, 10, 10, 0.64);
  --fg-subtle: rgba(10, 10, 10, 0.4);
  --on-surface: #ffffff;
  --on-surface-muted: rgba(255, 255, 255, 0.64);
  --border: rgba(10, 10, 10, 0.12);
  --border-soft: rgba(10, 10, 10, 0.08);
  --border-surface: rgba(255, 255, 255, 0.14);

  --font-sans: "Noto Sans", "Noto Sans KR", "Inter", "Inter Placeholder", -apple-system, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 11vw, 168px);
  --section-pad-sm: clamp(48px, 7vw, 96px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur: 0.6s;
  --dur-slow: 0.9s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.has-lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }
.section-sm { padding-block: var(--section-pad-sm); }
.section-top { padding-top: var(--section-pad); }
.section-bottom { padding-bottom: var(--section-pad); }
.section-border-t { border-top: 1px solid var(--border-soft); }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  flex: none;
}

.h-display {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(44px, 8.4vw, 128px);
}
.h1 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(36px, 5.6vw, 80px);
}
.h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 56px);
}
.h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(22px, 2.4vw, 32px);
}
.lede {
  font-size: clamp(13px, 1.7vw, 18px);
  line-height: 1.5;
  color: var(--fg-muted);
  font-weight: 400;
  max-width: 46ch;
}
.lede--badge {
  display: inline-flex;
  align-items: center;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--bg);
  background: var(--fg);
  border: none;
  border-radius: 0;
  padding: 0 4px;
}
.body-text { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-head .lede { margin: 0; }
#work .section-head .lede { font-size: clamp(11px, 1.7vw, 16px); }
.lede--sm { font-size: clamp(11px, 1.7vw, 16px); max-width: none; }
.lede--sm2 { font-size: clamp(11px, 1.7vw, 14px); }
#services .section-head {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
#services .section-head > div:first-child { grid-column: 1 / 3; }
#services .section-head .lede--sm { grid-column: 3; margin-top: 46px; }
@media (max-width: 780px) {
  #services .section-head { grid-template-columns: 1fr; }
  #services .section-head > div:first-child { grid-column: 1; }
  #services .section-head .lede--sm { grid-column: 1; margin-top: 0; padding-left: 0; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- buttons / links ---------- */
.btn {
  --btn-fg: var(--bg);
  --btn-bg: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), opacity var(--dur-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  --btn-fg: var(--fg);
  --btn-bg: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(10, 10, 10, 0.05); }
.btn-sm { height: 44px; padding-inline: 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* text hover-swap link (two stacked labels that slide) */
.link-swap {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}
.link-swap span {
  display: block;
  transition: transform 0.45s var(--ease);
}
.link-swap .l2 {
  position: absolute;
  top: 100%;
  left: 0;
}
.link-swap:hover span { transform: translateY(-100%); }

.nav-link {
  position: relative;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color var(--dur-fast);
}
.nav-link:hover, .nav-link.is-active { color: var(--fg); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover { background: rgba(10, 10, 10, 0.06); transform: translateY(-2px); }
.icon-btn::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 20;
}
.icon-btn:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* arrow that slides on hover */
.arrow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: none;
  overflow: hidden;
}
.arrow-chip svg { transition: transform 0.4s var(--ease); }
.card:hover .arrow-chip svg,
a:hover .arrow-chip svg { transform: translate(3px, -3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: clamp(14px, 2.4vw, 24px);
  transition: padding var(--dur-fast) var(--ease);
}
.site-header__bar {
  margin-inline: auto;
  max-width: var(--container);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast);
  border: 1px solid transparent;
}
.site-header.is-scrolled .site-header__bar {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo {
  display: flex;
  align-items: center;
}
.logo__mark { width: 140px; height: auto; display: block; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav-link--cta { display: inline-flex; align-items: center; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: none;
}
.hamburger span {
  width: 16px; height: 1.5px; background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__links a {
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-block: 12px;
  border-bottom: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: translateY(0); }
.mobile-nav__meta { display: flex; justify-content: space-between; color: var(--fg-subtle); font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
}

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- hero ---------- */
.hero-viewport {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: none;
  padding-top: clamp(140px, 20vw, 200px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.hero-main .h-display { margin-bottom: 24px; text-transform: uppercase; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(31px, 5.9vw, 90px); }
.hero-main .lede { max-width: 32ch; margin-bottom: 32px; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__actions .btn-ghost { border: none; height: auto; padding: 0; gap: 6px; text-transform: uppercase; font-size: 13px; letter-spacing: 0.02em; }
.hero__actions .btn-ghost:hover { background: none; text-decoration: underline; }
.hero__actions .btn { text-transform: uppercase; letter-spacing: 0.02em; }

.hero-stats { display: flex; flex-direction: column; margin-top: 6px; }
.hero-stats__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-stats__row:first-child { padding-top: 0; }
.hero-stats__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.hero-stats__row dd { margin: 0; font-size: 16px; font-weight: 600; }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- hero image slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 80px);
  flex: 1 1 auto;
  min-height: 260px;
}
.slider-track {
  display: flex;
  gap: 10px;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}
.slider-track:active { cursor: grabbing; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-slide {
  flex: none;
  width: calc((100% - 3 * 10px) / 4);
  height: 100%;
  scroll-snap-align: start;
}
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.12);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }
@media (max-width: 640px) {
  .slider-arrow { width: 38px; height: 38px; }
  .slider-slide { width: 62vw; }
}

/* ---------- page hero (about/contact/projects/journal/legal) ---------- */
.page-hero {
  padding-top: clamp(150px, 22vw, 220px);
  padding-bottom: var(--section-pad-sm);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- generic card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}

/* ---------- who we are / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
.media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media-frame:hover img { transform: scale(1.045); }
.media-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- text-only intro block (who we are / about the studio) ---------- */
.intro-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.intro-block__head .eyebrow { margin-bottom: 0; }
.intro-block__index { font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); }
.intro-block__text { font-size: clamp(15px, 1.5vw, 18px); font-weight: 400; letter-spacing: normal; line-height: 1.8; max-width: 100%; word-break: keep-all; }
@media (min-width: 781px) {
  .intro-block__text { max-width: 980px; }
}
@media (max-width: 780px) {
  .intro-block__text br { display: none; }
}

/* ---------- social proof / logo marquee (horizontal auto-scroll) ---------- */
.marquee-label { display: flex; align-items: center; gap: 14px; color: var(--fg-muted); font-size: 14px; margin-bottom: 32px; }
.marquee-label .icon-btn { pointer-events: none; }
.marquee-section { overflow: hidden; }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row + .marquee-row { margin-top: 16px; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee-left 32s linear infinite;
}
.marquee-row--reverse .marquee-track { animation-name: marquee-right; animation-duration: 38s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-card {
  flex: none;
  width: clamp(150px, 20vw, 220px);
  height: 100px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
}
.marquee-card img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- projects grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 780px) { .project-grid { grid-template-columns: 1fr; } }

.project-card { display: block; group: card; }
.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 20px;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.project-card__view span {
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-surface);
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: scale(0.9);
  transition: transform var(--dur-fast) var(--ease);
}
.project-card:hover .project-card__view { opacity: 1; }
.project-card:hover .project-card__view span { transform: scale(1); }
.project-card__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project-card__title { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.project-card__meta { display: flex; gap: 14px; color: var(--fg-subtle); font-family: var(--font-mono); font-size: 12px; margin-top: 6px; }

.section-footer-cta {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex;
  justify-content: center;
}

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--border-soft); }
.service-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr;
  gap: 32px;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
  cursor: default;
  transition: background var(--dur-fast);
}
.service-row:hover { background: rgba(10, 10, 10, 0.025); }
.service-row__index { font-family: var(--font-mono); color: var(--fg-subtle); font-size: 14px; }
.service-row__title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.01em; text-transform: uppercase; }
.service-row__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.service-row__desc { color: var(--fg-muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 780px) {
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row__desc { grid-column: 1 / -1; }
}

/* ---------- workflow ---------- */
.workflow-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.workflow-meta span { font-size: 14px; color: var(--fg-muted); }
.workflow-meta strong { color: var(--fg); font-weight: 500; }
.workflow-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-soft); }
.workflow-row {
  display: grid;
  grid-template-columns: 70px 220px 1fr 90px;
  gap: 28px;
  align-items: center;
  padding-block: clamp(24px, 3.4vw, 36px);
  border-bottom: 1px solid var(--border-soft);
}
.workflow-row__index { font-family: var(--font-mono); color: var(--fg-subtle); font-size: 14px; }
.workflow-row__title { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.workflow-row__desc { color: var(--fg-muted); font-size: 15px; line-height: 1.6; }
.workflow-row__pct { font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); text-align: right; }
.progress-bar { height: 3px; background: var(--border-soft); border-radius: 2px; overflow: hidden; margin-top: 10px; width: 100%; grid-column: 1/-1; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width 1.2s var(--ease-soft); }
.workflow-row.is-visible .progress-bar span { width: var(--pct); }
@media (max-width: 780px) {
  .workflow-row { grid-template-columns: 40px 1fr auto; }
  .workflow-row__desc { grid-column: 1/-1; }
}

/* ---------- about / stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--border-soft);
  padding-top: clamp(32px, 5vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}
.stat-block strong {
  display: block;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-block span { color: var(--fg-muted); font-size: 14px; }

/* ---------- testimonials ---------- */
.testi-track-wrap { position: relative; }
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.testi-track:active { cursor: grabbing; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 34vw, 400px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-card__stars {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-subtle);
}
.testi-card__quote { font-size: 17px; line-height: 1.55; color: var(--fg); }
.testi-card__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg-card); flex: none; }
.testi-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-card__name { font-size: 14px; font-weight: 500; }
.testi-card__role { font-size: 12px; color: var(--fg-subtle); }
.testi-controls { display: flex; gap: 10px; margin-top: 28px; justify-content: flex-end; }
.testi-closing {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--border-soft);
}
.testi-closing p { max-width: 48ch; font-size: clamp(18px, 2vw, 24px); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.price-card--highlight {
  background: var(--surface);
  color: var(--on-surface);
  border-color: transparent;
}
.price-card--highlight .body-text { color: var(--on-surface-muted); }
.price-card__badge {
  position: absolute;
  top: clamp(28px, 3.4vw, 44px);
  right: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  opacity: 0.7;
}
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__price strong { font-size: clamp(40px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.02em; }
.price-card__price span { color: inherit; opacity: 0.6; font-size: 14px; }
.price-card__features { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.price-card__features li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.price-card--highlight .btn { --btn-bg: var(--bg); --btn-fg: var(--fg); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(22px, 3vw, 30px);
  text-align: left;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
}
.faq-item__icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.faq-item__icon::before { width: 10px; height: 1.4px; }
.faq-item__icon::after { width: 1.4px; height: 10px; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__a {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease);
}
.faq-item__a p { color: var(--fg-muted); font-size: 15px; line-height: 1.65; padding-bottom: clamp(20px, 3vw, 28px); max-width: 62ch; }

/* ---------- journal ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 780px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.journal-card:hover { background: rgba(10, 10, 10, 0.025); border-color: var(--border); }
.journal-card__meta { display: flex; gap: 14px; align-items: center; }
.journal-card__title { font-size: clamp(20px, 2.1vw, 26px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.journal-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ---------- article ---------- */
.article-hero { padding-top: clamp(150px, 22vw, 220px); padding-bottom: var(--section-pad-sm); }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--fg-subtle); font-family: var(--font-mono); font-size: 12px; margin-top: 24px; }
.article-body {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-body p { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; color: var(--fg-muted); }
.article-body h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; margin-top: 16px; letter-spacing: -0.01em; }
.article-body blockquote {
  margin: 12px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--fg);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--fg);
}
.article-cta { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- project detail ---------- */
.project-hero { padding-top: clamp(150px, 22vw, 220px); }
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--border-soft);
}
@media (max-width: 680px) { .project-meta-grid { grid-template-columns: repeat(2, 1fr); } }
.project-meta-grid dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 8px; }
.project-meta-grid dd { margin: 0; font-size: 16px; }
.project-hero__media {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}
.project-gallery img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }
.project-gallery .span-2 { grid-column: 1 / -1; aspect-ratio: 16/8; }
.project-gallery figure { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-card); }
@media (max-width: 680px) { .project-gallery { grid-template-columns: 1fr; } }

.next-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 780px) { .next-project { grid-template-columns: 1fr; } }
.next-project a { position: relative; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; color: var(--fg-muted); }
.field input, .field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg);
  transition: border-color var(--dur-fast);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-list a, .contact-info-list div { font-size: clamp(18px, 2vw, 22px); }
.contact-info-list .mono { display: block; color: var(--fg-subtle); margin-bottom: 6px; }
.form-note { font-size: 13px; color: var(--fg-subtle); margin-top: 10px; }
.form-success { display: none; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; color: var(--fg-muted); }
.form-success.is-visible { display: block; }

/* ---------- final CTA ---------- */
.cta-banner {
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--on-surface);
  padding: clamp(40px, 7vw, 96px) clamp(28px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner .lede { color: var(--on-surface-muted); }
.cta-banner .btn { --btn-bg: var(--bg); --btn-fg: var(--fg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: clamp(56px, 8vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 16px; color: var(--fg-muted); max-width: 34ch; font-size: 14px; }
.footer-brand .logo { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--fg-muted); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--fg); }
.newsletter-form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--fg);
}
.newsletter-form input:focus { outline: none; border-color: var(--fg); }
.footer-bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-socials { display: flex; gap: 10px; }

/* ---------- legal pages ---------- */
.legal-body { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 36px; }
.legal-body section h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; margin-bottom: 12px; }
.legal-body section p { color: var(--fg-muted); font-size: 15px; line-height: 1.7; }

/* ---------- misc ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: var(--fg);
  color: var(--bg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.divider { height: 1px; background: var(--border-soft); border: none; }

@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}
