@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,560;1,9..144,500&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --ink: #1c1612;
  --paper: #f3eee6;
  --paper-2: #e7dfd2;
  --card: #fffdf8;
  --pine: #24382c;
  --pine-2: #31543f;
  --amber: #d4893a;
  --mist: #6f675f;
  --line: rgba(28, 22, 18, 0.12);
  --line-strong: rgba(28, 22, 18, 0.28);
  --clay: #8c3d32;
  --stage: #161310;
  --shadow: 0 24px 50px rgba(48, 32, 16, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(212, 137, 58, 0.16), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: #e7c9a2; }

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  position: relative;
}

.logo {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav button {
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav button.is-current { background: rgba(36, 56, 44, 0.08); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
}

.btn {
  background: var(--pine);
  color: #f6f1e8;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 500;
}
.btn:hover { background: var(--pine-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(36, 56, 44, 0.06); }

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pine);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  line-height: 0.96;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--pine);
}
h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; }
h3 { margin: 0; font-size: 1.55rem; }

.lede {
  max-width: 38rem;
  color: #3c342c;
  font-size: 1.12rem;
  font-weight: 300;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 18px;
}

.hero-actions, .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-actions { margin: 26px 0 22px; }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--mist);
  font-size: 0.92rem;
}
.facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-1px);
}

.stage {
  --glow: #e0a15c;
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, #3a342c 0%, var(--stage) 52%, #0e0c0a 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stage::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 220px;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 58%, transparent), transparent 70%);
  pointer-events: none;
}
.stage-figure {
  position: absolute;
  inset: 24px 24px 92px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.mascot {
  width: min(270px, 72%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 12px rgba(0, 0, 0, 0.28));
}
#hero-mascot.is-turn { animation: spin 8s linear infinite; }
#hero-mascot.is-loop { animation: hop 1.15s ease-in-out infinite; }
.stage-ui {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px;
  z-index: 1;
}
.stage-name {
  margin: 0;
  color: #f6f1e8;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.segment {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  position: relative;
  z-index: 1;
}
.segment button {
  border: 0;
  background: transparent;
  color: #f6f1e8;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
}
.segment button[aria-pressed="true"] { background: #f6f1e8; color: var(--ink); }

.project-stage { min-height: 560px; }
.project-stage .segment {
  align-self: center;
  margin: 0 16px 16px;
}

.stage[data-look="sculpt"] .mascot {
  filter: grayscale(1) contrast(0.9) brightness(1.2) drop-shadow(0 18px 12px rgba(0, 0, 0, 0.28));
}
.stage[data-look="lookdev"] .mascot {
  filter: saturate(0.55) contrast(0.95) drop-shadow(0 18px 12px rgba(0, 0, 0, 0.28));
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding-bottom: 42px;
}
.thumb {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 10px;
  text-align: left;
}
.thumb[aria-pressed="true"] {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
}
.thumb svg { width: 100%; height: 72px; }
.thumb span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

.band {
  background: #ebe4d8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.section-head, .page-intro, .approach-preview, .close-cta, .project-top {
  padding-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.page-intro { padding: 48px 0 12px; }
.page-intro h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 16ch; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}
.work-grid.is-home {
  grid-template-columns: 1.35fr 1fr 1fr;
  padding-bottom: 0;
}
.work-grid.is-home .card:first-child { grid-row: span 2; }
.work-grid.is-home .card:first-child .card-stage { min-height: 430px; height: 100%; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.card:hover { transform: translateY(-3px); transition: transform 0.18s ease; }
.card-stage {
  --glow: #e0a15c;
  background:
    radial-gradient(90% 70% at 50% 18%, color-mix(in srgb, var(--glow) 45%, #2a241e), #161310 70%);
  border-radius: 16px;
  min-height: 210px;
  display: grid;
  place-items: center;
}
.card-stage svg { width: 150px; height: auto; }
.card-kind {
  color: var(--mist);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0;
}
.card-summary { color: #3c342c; font-size: 0.98rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters button {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.empty { padding-bottom: 48px; color: var(--mist); }

.approach-preview { padding: 64px 0; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
}
.steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}
.steps p { margin: 8px 0 0; color: #3c342c; }
.steps-stack { grid-template-columns: 1fr; gap: 18px; }

.split-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
}
.offers { display: grid; gap: 0; margin-top: 18px; }
.offer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.offer p { margin: 6px 0 0; color: #3c342c; }

.close-cta {
  padding: 20px 0 80px;
  max-width: 720px;
}
.close-cta .wrap, .close-cta { width: min(720px, calc(100% - 40px)); }
.close-cta p { color: #3c342c; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}
.contact-mail {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-top: 28px;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
input, textarea, select {
  width: 100%;
  background: #fffdf8;
  border: 1px solid rgba(28, 22, 18, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-card .btn { margin-top: 16px; }
.form-error { color: var(--clay); margin: 12px 0 0; }
.form-success h2 { font-size: 2.2rem; margin-bottom: 8px; }
.form-success p { color: #3c342c; }

.project-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-top: 18px;
}
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.meta div { border-top: 1px solid var(--line); padding-top: 8px; }
.meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.meta dd { margin: 4px 0 0; }
.look-note { color: var(--mist); font-size: 0.95rem; }
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0 28px;
}
.story p { color: #3c342c; }
.project-top { padding-bottom: 72px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--mist);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-row p { margin: 0; }

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-16px) rotate(-2deg); }
  55% { transform: translateY(-6px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero-mascot.is-turn,
  #hero-mascot.is-loop,
  .card { animation: none; transition: none; }
}

@media (max-width: 900px) {
  .hero, .split-notes, .contact-layout, .project-layout, .story, .steps {
    grid-template-columns: 1fr;
  }
  .work-grid, .work-grid.is-home { grid-template-columns: 1fr 1fr; }
  .work-grid.is-home .card:first-child { grid-row: auto; grid-column: span 2; }
  .work-grid.is-home .card:first-child .card-stage { min-height: 240px; }
  .thumb-row { grid-template-columns: repeat(3, 1fr); }
  .stage, .project-stage { min-height: 460px; }
  .meta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    background: rgba(243, 238, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 6px 12px 0; }
  .work-grid, .work-grid.is-home, .form-grid { grid-template-columns: 1fr; }
  .work-grid.is-home .card:first-child { grid-column: auto; }
  .span-2 { grid-column: auto; }
  .section-head, .offer { flex-direction: column; align-items: flex-start; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
}
