/* ==========================================================================
   pepodesign — style.css
   Single stylesheet, mobile-first, no build step.
   Contents: fonts → tokens → reset → base → utilities → header → hero →
             sections (services / work / process / why / contact) → footer →
             case-study pages → simple pages → motion rules
   ========================================================================== */

/* ---------- Fonts ----------
   Manrope variable (weights 200–800), self-hosted from /assets/fonts/.
   Subsets: cyrillic (MK), latin-ext (TR), latin. Source: Google Fonts v20;
   unicode-range values are theirs, so only the needed subset downloads. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;

  /* Palette sampled from the pepodesign logo (assets/logo.png):
     bg #081828 · blue #1f7af4 · white #fefefe.
     --accent is nudged one step brighter than the logo blue so small
     accent text passes WCAG AA (4.5:1) on --bg. */
  --bg: #081828;
  --bg-elev: #0d1f31;
  --bg-elev-2: #122840;
  --text: #f2f6fc;
  --muted: #9db1c7;
  --accent: #2b82f5;
  --accent-soft: rgba(31, 122, 244, 0.15);
  --border: rgba(160, 190, 255, 0.10);
  --border-strong: rgba(160, 190, 255, 0.18);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
  --header-h: 68px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 3px rgba(43, 130, 245, 0.25);
}

/* ---------- Reset (lite) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

ul, ol { padding: 0; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

/* ---------- Base ---------- */
a { color: var(--text); text-decoration: none; }

p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection { background: var(--accent); color: #081828; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #081828;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; }

.accent { color: var(--accent); }

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 6vw, 3.5rem); }

.section-head h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-lede { margin-top: 0.9rem; color: var(--muted); font-size: 1.06rem; }

/* .eyebrow is retired on the home pages (the section-number labels read as
   boilerplate); kept only for the parked case-study drafts that still use it. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 2rem; height: 1px;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: var(--border-strong);
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
/* Tactile press */
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #081828; }
.btn-primary:hover { background: #4f9bff; }

.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}
.chips li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(8, 24, 40, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}
/* Wordmark pushes everything after it (nav, language switch, burger) to the right */
.header-inner .wordmark { margin-right: auto; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.lang-switch a {
  color: var(--muted);
  font-weight: 650;
  transition: color 0.2s ease;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current] { color: var(--text); }
.lang-switch .sep { color: var(--border-strong); }

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* The PNG's baked-in background is the same #081828 as --bg, so it blends seamlessly.
   Spacing lives on the mark (not flex gap) so the wordmark's text nodes stay flush. */
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 0.6rem;
}
.wordmark-thin { color: var(--muted); font-weight: 500; }
.wordmark-dot { color: var(--accent); }

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-list a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-list a:hover,
.nav-list a[aria-current] { color: var(--text); }

/* Mobile nav: hidden by default, opens as a panel under the header */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-line {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.site-nav {
  display: none;
}
.site-nav.open {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 1.25rem clamp(1.25rem, 5vw, 2rem) 1.75rem;
  background: #0a1c30;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}
.site-nav.open .nav-list {
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.site-nav.open .nav-list a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.05rem;
}

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vh, 6rem) clamp(4rem, 11vh, 7rem);
}

/* Ambient accent glow, anchored to the monogram side. It paints ABOVE the
   hero content (z-index 2 > .hero-inner's 1): the monogram PNG is opaque, so
   a glow underneath would light the page around it and outline its box. */
.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -18%; right: -14%;
  width: 58vw; height: 58vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(31, 122, 244, 0.12), transparent 62%);
  pointer-events: none;
}

/* Split hero: copy left, PD monogram right. The monogram PNG's baked-in
   background is the exact page --bg, so it composites seamlessly. */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-copy { max-width: 720px; }

.hero-visual {
  display: none;
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: auto;
  /* The source frame carries generous feathered padding around the mark;
     scaling inside the overflow-hidden frame crops only that padding. */
  transform: scale(1.3);
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); gap: clamp(2.5rem, 5vw, 4rem); }
  .hero-visual { display: block; }
}

/* .hero-badge retired 13.09.2026 — the availability note moved to .contact-lines
   (design standard: no pills/badges on the hero). */

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* ---------- Cards (services) ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .services-grid, .work-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  padding: 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* Grid variation so the four service cells don't read as one repeated tile:
   the flagship card gets a brand-blue wash, the care card a lighter surface. */
.card-feature {
  background:
    linear-gradient(150deg, rgba(31, 122, 244, 0.17), rgba(31, 122, 244, 0.02) 58%),
    var(--bg-elev);
  border-color: rgba(43, 130, 245, 0.30);
}
.card-feature:hover { border-color: rgba(43, 130, 245, 0.5); }
.card-alt { background: var(--bg-elev-2); }

.card-icon {
  width: 30px; height: 30px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .chips { margin-top: 1.15rem; }

/* ---------- Work cards ----------
   The work section is temporarily removed from index.html (projects not yet
   published) — these styles are kept for when it returns; the drafts in
   /_drafts/case-studies/ also use them. */
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.work-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card:hover .work-media img { transform: scale(1.03); }

.work-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.75rem 1.75rem;
  flex-grow: 1;
}
.work-body h3 { font-size: 1.22rem; font-weight: 700; }
.work-body > p { color: var(--muted); font-size: 0.97rem; }

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
}
.work-link .arrow { transition: transform 0.25s ease; }
.work-card:hover .work-link .arrow { transform: translateX(4px); }

/* Placeholder / CTA slots in the work grid */
.work-card-placeholder {
  justify-content: center;
  min-height: 240px;
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.work-card-placeholder:hover { box-shadow: none; }
.work-card-placeholder .work-body { padding: 2rem 1.75rem; }

.slot-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card-cta:hover { border-color: var(--accent); }

/* ---------- Process ----------
   Numbered rows: oversized outlined numerals in a fixed left column, one
   hairline between rows. Reads as a timeline, not another card grid. */
.process-grid {
  list-style: none;
  max-width: 880px;
}

.process-step {
  display: grid;
  grid-template-columns: clamp(4.25rem, 9vw, 6.75rem) 1fr;
  gap: 0.4rem 1.5rem;
  align-items: start;
  padding-block: clamp(1.6rem, 4vw, 2.4rem);
}
.process-step:first-child { padding-top: 0.5rem; }
.process-step + .process-step { border-top: 1px solid var(--border); }

.step-num {
  grid-row: 1 / 3;
  grid-column: 1;
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(43, 130, 245, 0.35);
}
@supports (-webkit-text-stroke: 1px black) {
  .step-num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(43, 130, 245, 0.62);
  }
}

.process-step h3 { grid-column: 2; font-size: 1.28rem; font-weight: 750; }
.process-step p:not(.step-num) { grid-column: 2; color: var(--muted); font-size: 0.97rem; max-width: 62ch; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.why-item h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-item h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.why-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(to bottom, transparent, rgba(31, 122, 244, 0.05));
}

.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

.contact-lede { font-size: 1.1rem; max-width: 42ch; }

.contact-lines {
  margin-top: 1.75rem;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.contact-mail {
  color: var(--accent);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
  list-style: none;
}
.socials a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { color: var(--text); border-color: var(--accent); }

/* Form */
.contact-form {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: grid; gap: 0.45rem; }
.form-field label { font-size: 0.9rem; font-weight: 650; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field ::placeholder { color: rgba(157, 177, 199, 0.65); }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%239db1c7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form-field select:invalid { color: rgba(163, 160, 153, 0.85); }

/* Honeypot — moved off-screen (Netlify anti-spam field, must stay in the DOM) */
.hp-field { position: absolute; left: -9999px; }

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status-success {
  background: rgba(47, 191, 113, 0.12);
  border: 1px solid rgba(47, 191, 113, 0.4);
  color: #7fe0ab;
}
.form-status-error {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.38);
  color: #ff9c9c;
}
.form-status-error a { color: inherit; font-weight: 650; }

/* Consent checkbox (GDPR/ЗЗЛП — added 13.09.2026) */
.consent-field { display: flex; align-items: flex-start; gap: 0.65rem; }
.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
}
.consent-field label { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.consent-field a { color: var(--text); }

/* Legal text pages (privacy policy) */
.legal-page { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.legal-page .legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal-page p, .legal-page li { color: var(--muted); max-width: 70ch; }
.legal-page ul { padding-left: 1.2rem; margin: 0.4rem 0 0; display: grid; gap: 0.35rem; }
.legal-page a { color: var(--text); }
.legal-page .btn { margin-top: 2.5rem; }

.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  background: #050e1a;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
}

.footer-brand p { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; max-width: 30ch; }

.footer-nav h3,
.footer-contact h3 {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-nav ul,
.footer-contact ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-nav a,
.footer-contact li { color: var(--muted); font-size: 0.95rem; }
.footer-contact a { color: var(--muted); }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Case-study pages ---------- */
.cs-hero { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumb:hover { color: var(--text); }

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.75rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}
.cs-meta strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cs-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.cs-lede {
  margin-top: 1.4rem;
  max-width: 58ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

.cs-section { padding-block: clamp(2.5rem, 6vw, 4rem); }

.cs-prose { max-width: 68ch; }
.cs-prose h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.cs-prose p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.cs-prose p:last-child { margin-bottom: 0; }

.cs-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.cs-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 1.02rem;
}
.cs-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.cs-list strong { color: var(--text); }

.cs-figure { margin-block: 1rem; }
.cs-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cs-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cs-figure-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .cs-figure-grid { grid-template-columns: 1fr 1fr; } }

.cs-stats {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
@media (min-width: 640px) { .cs-stats { grid-template-columns: repeat(3, 1fr); } }

.cs-stat {
  padding: 1.4rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cs-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.cs-stat span { color: var(--muted); font-size: 0.92rem; }

.cs-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn-soon {
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  cursor: default;
}

/* Next-project / CTA bands */
.cs-band {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.cs-band .band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cs-band p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.cs-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 750; letter-spacing: -0.015em; }

/* ---------- Simple pages (success / 404) ---------- */
.center-page {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: left;
  padding-block: 4rem;
}
.center-page h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.center-page p { color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }

/* ---------- Motion ----------
   All movement lives behind prefers-reduced-motion: no-preference.
   .reveal elements are hidden only when the .js class is present
   (set inline in <head>), so nothing disappears without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }


  /* Hero entrance: copy rises in sequence, the monogram settles into place.
     Pure CSS, so it degrades to static without JS or with reduced motion. */
  .hero-copy > * { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.21s; }
  .hero-visual { animation: hero-settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes hero-settle {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
  }

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

  /* Gentle stagger for grid children */
  .js .card-grid .reveal:nth-child(2),
  .js .process-grid .reveal:nth-child(2),
  .js .why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .card-grid .reveal:nth-child(3),
  .js .process-grid .reveal:nth-child(3),
  .js .why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .card-grid .reveal:nth-child(4),
  .js .process-grid .reveal:nth-child(4),
  .js .why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

  .card:hover, .work-card:hover { transform: translateY(-4px); }
  .work-card-placeholder:hover { transform: none; }
}

