/* ==========================================================================
   Skai Atelier — Design System
   Palette: stone/plaster base, deep moss accent (nods to "Moss Matcha" +
   the studio's nature-connected philosophy), warm timber secondary.
   Type: Helvetica throughout (Helvetica Neue → Helvetica → Arial).
   Hierarchy from weight/size/tracking, not from mixing families.
   ========================================================================== */

:root {
  /* Color */
  --stone: #EDEAE1;
  --paper: #FAF9F5;
  --ink: #1C201A;
  --ink-soft: #4A4F45;
  --moss: #45573F;
  --moss-deep: #2E3B2A;
  --clay: #A9764F;
  --mist: #DCE1D3;
  --line: rgba(28, 32, 26, 0.13);
  --line-strong: rgba(28, 32, 26, 0.24);

  /* Type — single Helvetica family throughout. Hierarchy comes from
     weight, size, and letter-spacing rather than mixing typefaces.
     No web fonts are loaded, so nothing depends on an external service. */
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.09; margin: 0 0 0.5em; letter-spacing: -0.022em; }
h3, h4 { letter-spacing: -0.014em; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--stone); }
.section--ink p { color: rgba(250, 249, 245, 0.72); }
.section--ink h2 { color: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--clay); display: inline-block; }
.section--ink .eyebrow { color: var(--clay); }

h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 62ch; }

/* Material-strip divider — the site's signature motif: a thin band of
   the studio's material palette, echoing the mood-boards designers
   actually pin. Used between major sections. */
.material-strip {
  height: 10px;
  display: flex;
  width: 100%;
}
.material-strip span { flex: 1; }
.material-strip span:nth-child(1) { background: var(--moss); }
.material-strip span:nth-child(2) { background: var(--clay); }
.material-strip span:nth-child(3) { background: var(--mist); }
.material-strip span:nth-child(4) { background: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 234, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.wordmark { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.018em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--moss); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--moss); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 84px 0 0 0; background: var(--stone); flex-direction: column; align-items: flex-start; padding: 32px var(--gutter); gap: 22px; font-size: 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--moss); border-color: var(--moss); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn--outline { color: var(--paper); border-color: rgba(250,249,245,0.5); }
.section--ink .btn--outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); }
.hero-copy .lede { margin-bottom: 28px; }
.hero-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: clamp(28px, 4vw, 56px); margin-top: 40px; }
.hero-stats .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--moss); display: block; }
.hero-stats .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .hero-figure { order: -1; aspect-ratio: 16/10; } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: var(--mist);
  padding: 5px 10px;
}

.project-card { display: block; background: var(--paper); border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.project-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--mist); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.045); }
.project-card .body { padding: 18px 20px 22px; }
.project-card h3 { font-size: 18px; margin: 10px 0 6px; }
.project-card .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }

.post-card { display: block; padding: 26px 0; border-top: 1px solid var(--line); }
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.post-card h3 { font-size: clamp(19px, 2.2vw, 23px); margin: 0; transition: color 0.2s var(--ease); }
.post-card:hover h3 { color: var(--moss); }
.post-card .tag { flex-shrink: 0; }

/* ---------- Process list ---------- */
.process { counter-reset: step; display: grid; gap: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--clay); padding-top: 4px; }
.process h4 { font-size: 18px; margin-bottom: 6px; }

/* ---------- FAQ (native details/summary — no JS required) ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.012em; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--moss); flex-shrink: 0; transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 24px; max-width: 68ch; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
input, select, textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); padding: 13px 14px; border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); }
.field-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 22px; }
.checkbox-row input { width: auto; padding: 0; }
.checkbox-row label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.quote p { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 500; }
.quote cite { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,249,245,0.78); padding: clamp(48px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(250,249,245,0.14); }
.footer-grid .wordmark { color: var(--paper); }
.footer-grid h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,249,245,0.5); margin: 0 0 16px; }
.footer-grid a { display: block; padding: 5px 0; color: rgba(250,249,245,0.78); }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 13px; color: rgba(250,249,245,0.5); flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Placeholder banner (rebuild-in-progress pages) ---------- */
.migrate-note {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.migrate-note strong { display: block; color: var(--clay); margin-bottom: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
