/* Scripter Carpentry — locked brand: Oswald/Inter · forest green/pine/walnut/cream/stone */
:root {
  --pine: #243A2E;
  --forest: #2F4A3C;
  --char: #2B2A28;
  --walnut: #A8642F;
  --walnut-deep: #7d4a20;
  --cream: #F4EDE2;
  --stone: #DED4C5;
  --z-head: 40;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--char);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
p { max-width: 68ch; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-head);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  color: var(--cream); background: var(--pine);
  transition: background 0.35s, box-shadow 0.35s;
}
.site-head.over-hero { background: transparent; }
.site-head.over-hero.scrolled { background: var(--pine); box-shadow: 0 1px 0 rgb(0 0 0 / 0.25); }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.mark { width: 40px; height: 40px; color: var(--cream); flex: none; }
.mark-sm { width: 30px; height: 30px; color: var(--stone); }
.wordmark { display: flex; flex-direction: column; font-family: Oswald, sans-serif; text-transform: uppercase; line-height: 1.05; }
.wordmark span:first-child { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.14em; }
.wordmark span:last-child { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.42em; color: var(--stone); }
.site-head nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.8rem); margin-left: auto; }
.site-head nav a {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.85rem; text-decoration: none; opacity: 0.92; padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-head nav a:hover { border-bottom-color: var(--walnut); opacity: 1; }
.head-phone {
  font-family: Oswald, sans-serif; font-size: 0.95rem; letter-spacing: 0.06em;
  text-decoration: none; border: 1.5px solid var(--stone); border-radius: 3px;
  padding: 0.45rem 0.9rem; white-space: nowrap;
}
.head-phone:hover { background: var(--walnut); border-color: var(--walnut); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; color: var(--cream); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(36 58 46 / 0.42) 0%, rgb(36 58 46 / 0.08) 40%, rgb(24 36 29 / 0.82) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: clamp(1.25rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 7vh, 5rem); max-width: 60rem; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 600; letter-spacing: 0.01em;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 44ch; margin: 0.4rem 0 1.6rem;
  animation: rise 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; animation: rise 0.9s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.btn {
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.95rem; text-decoration: none; padding: 0.85rem 1.6rem; border-radius: 3px;
  display: inline-block; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-solid { background: var(--walnut); color: var(--cream); }
.btn-solid:hover { background: var(--walnut-deep); }
.btn-line { border: 1.5px solid currentColor; }
.btn-line:hover { background: var(--cream); color: var(--pine); border-color: var(--cream); }

/* ---------- Statement ---------- */
.statement { padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 4rem); }
.statement p {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem); line-height: 1.45; max-width: 34em; margin: 0;
  font-weight: 400;
}
.statement strong { color: var(--forest); font-weight: 600; }

/* ---------- Work grid ---------- */
.work { padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.work-head { display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.8rem; padding: 0 0.25rem; }
.work-head p { margin: 0; color: #5a564f; max-width: 46ch; }
.grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(6, 1fr); gap: clamp(0.6rem, 1.2vw, 1.1rem); }
.tile { position: relative; grid-column: span 2; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: 4px; text-decoration: none; background: var(--stone); }
.tile-big { grid-column: span 4; aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.tile:hover img { transform: scale(1.045); }
.tile-label {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.9rem; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgb(24 34 27 / 0.88));
  display: flex; flex-direction: column; gap: 0.1rem;
}
.tile-label em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.tile-label strong { font-family: Oswald, sans-serif; font-weight: 500; font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }

/* ---------- Band (full-bleed break) ---------- */
.band { position: relative; min-height: 78svh; display: grid; align-items: center; color: var(--cream); isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: 0; }
.band::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgb(24 36 29 / 0.86) 22%, rgb(24 36 29 / 0.28) 65%, transparent); }
.band-copy { position: relative; z-index: 2; padding: clamp(2rem, 6vw, 5rem); max-width: 44rem; }
.band-copy p { font-size: 1.15rem; }

/* ---------- Services ---------- */
.services { background: var(--pine); color: var(--cream); padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2rem; }
.svc h3 { font-size: 1.25rem; color: var(--stone); border-bottom: 1.5px solid var(--forest); padding-bottom: 0.5rem; }
.svc p { color: #cfc8ba; margin: 0.6rem 0 0; font-size: 0.98rem; line-height: 1.75; }
.svc-note { margin-top: 2.5rem; color: var(--stone); font-size: 0.95rem; border-top: 1.5px solid var(--forest); padding-top: 1.2rem; max-width: 70ch; }

/* ---------- About ---------- */
.about { padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem); }
.about-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-voice p { font-size: 1.15rem; line-height: 1.7; }
.sig { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--walnut-deep); }
.about-facts { margin: 0; border-top: 3px solid var(--pine); }
.about-facts div { border-bottom: 1px solid var(--stone); padding: 0.85rem 0; }
.about-facts dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5a564f; }
.about-facts dd { margin: 0.15rem 0 0; font-family: Oswald, sans-serif; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- FAQ ---------- */
.faq { background: var(--stone); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); }
.faq-item { border-bottom: 1.5px solid #c4b8a4; max-width: 56rem; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  font-family: Oswald, sans-serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 1.1rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--walnut-deep); flex: none; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; margin: 0; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--pine); color: var(--cream); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 3rem; align-items: start; }
.foot-call h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.phone-xl {
  display: inline-block; font-family: Oswald, sans-serif; font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: 0.02em; text-decoration: none;
  color: var(--cream); border-bottom: 3px solid var(--walnut); line-height: 1.2; margin: 0.3rem 0 0.8rem;
}
.phone-xl:hover { color: var(--stone); }
.foot-mail { display: block; color: var(--stone); text-decoration: none; font-size: 1.1rem; }
.foot-mail:hover { text-decoration: underline; }
.foot-meta { color: var(--stone); }
.foot-nap { line-height: 1.7; }
.foot-nap strong { color: var(--cream); font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.foot-areas { font-size: 0.92rem; }
.foot-meta a { color: var(--stone); }
.foot-base { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--forest); margin-top: 3rem; padding-top: 1.4rem; }
.foot-base p { font-size: 0.85rem; color: #a8a094; margin: 0; }

/* ---------- Project pages ---------- */
.project { padding: calc(72px + clamp(1.5rem, 4vw, 3rem)) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); max-width: 72rem; margin-inline: auto; }
.crumb a { font-family: Oswald, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--walnut-deep); }
.crumb a:hover { text-decoration: underline; }
.project h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; }
.proj-sub { color: #5a564f; margin-top: -0.4rem; font-size: 1.05rem; }
.proj-hero { margin: 1.6rem 0 0; }
.proj-hero img { width: 100%; max-height: 78svh; object-fit: cover; border-radius: 4px; }
.proj-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: clamp(1.8rem, 4vw, 3.5rem); margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.proj-desc { font-size: 1.2rem; line-height: 1.7; margin: 0; }
.proj-desc a { color: var(--walnut-deep); }
.proj-scope h2 { font-size: 1.15rem; letter-spacing: 0.08em; color: var(--forest); }
.proj-scope ul { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--pine); }
.proj-scope li { border-bottom: 1px solid var(--stone); padding: 0.7rem 0; font-size: 0.98rem; }
.proj-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--stone); border-radius: 4px; padding: 1.4rem 1.6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.proj-cta p { margin: 0; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; }
.proj-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.proj-nav a { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.07em; text-decoration: none; color: var(--walnut-deep); }
.proj-nav a:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.will-reveal { opacity: 0.001; transform: translateY(18px); }
.will-reveal.in { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-big { grid-column: span 1; aspect-ratio: 4 / 3.1; }
  .tile-big { grid-column: span 2; aspect-ratio: 16 / 10.5; }
  .proj-body, .about-cols { grid-template-columns: 1fr; }
  .site-head nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .tile, .tile-big { grid-column: span 1; }
  .head-phone { margin-left: auto; }
  .hero { min-height: 86svh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy h1, .hero-copy p, .hero-cta { animation: none; }
  .will-reveal { opacity: 1; transform: none; }
  .will-reveal.in { animation: none; }
  .tile img { transition: none; }
}

/* ---------- Process ---------- */
.process { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); background: var(--cream); }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; max-width: 56rem; }
.steps li { counter-increment: step; display: flex; gap: 1.2rem; align-items: baseline; border-bottom: 1px solid var(--stone); padding: 1rem 0; font-size: 1.05rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); flex: none;
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--walnut-deep);
}
.steps strong { color: var(--pine); }

/* ---------- Write / lead form ---------- */
.write { background: var(--forest); color: var(--cream); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); }
.write-inner { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; max-width: 72rem; }
.write-copy p { color: var(--stone); font-size: 1.1rem; }
.lead-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead-form label { display: flex; flex-direction: column; gap: 0.35rem; font-family: Oswald, sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); }
.lead-form input, .lead-form textarea {
  font: 1rem/1.5 Inter, system-ui, sans-serif; color: var(--char);
  background: var(--cream); border: 1.5px solid transparent; border-radius: 3px; padding: 0.7rem 0.85rem;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--walnut); }
.lead-form ::placeholder { color: #7a746a; }
.lead-form button { align-self: start; border: 0; cursor: pointer; font-size: 1rem; }

/* ---------- Project write link ---------- */
.proj-write { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.07em; color: var(--walnut-deep); }

@media (max-width: 700px) {
  .write-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Work carousel (JS-enhanced) ---------- */
.carousel-wrap { margin: 0 calc(-1 * clamp(1rem, 3vw, 2.5rem)); } /* full-bleed past .work padding */
.carousel {
  display: flex; gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.tile.carousel-slide {
  flex: none; width: min(88vw, 1250px); aspect-ratio: 16 / 8.2;
  scroll-snap-align: center; grid-column: unset; border-radius: 0;
}
.tile.carousel-slide:first-child { margin-left: calc((100vw - min(88vw, 1250px)) / 2); }
.tile.carousel-slide:last-child { margin-right: calc((100vw - min(88vw, 1250px)) / 2); }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; padding: 0.9rem 1rem 0; }
.carousel-dots .dot {
  width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel-dots .dot::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: #c4b8a4; transition: background 0.25s, transform 0.25s;
}
.carousel-dots .dot.active::before { background: var(--walnut); transform: scale(1.35); }
@media (max-width: 700px) {
  .tile.carousel-slide { width: 94vw; aspect-ratio: 4 / 3.4; }
  .tile.carousel-slide:first-child { margin-left: 3vw; }
  .tile.carousel-slide:last-child { margin-right: 3vw; }
  .carousel-dots .dot { width: 26px; }
}

/* ---------- Process merry-go-round (JS-enhanced) ---------- */
.steps-runway { position: relative; }
.steps-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1500px; perspective-origin: 50% 45%; }
.steps-stage { position: absolute; inset: 0; transform-style: preserve-3d; counter-reset: step; }
.steps-pin .steps-title {
  position: absolute; top: 64px; left: 0; right: 0; z-index: 3000; margin: 0;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: rgb(244 237 226 / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 1.25rem;
}
.step-card {
  position: absolute; left: 50%; top: 48%; width: min(520px, 82vw);
  counter-increment: step;
  background: var(--pine); color: var(--cream); border-radius: 6px; border-bottom: 0;
  padding: 1.7rem 1.9rem 1.9rem; display: block;
  box-shadow: 0 24px 60px rgb(36 58 46 / 0.3);
  will-change: transform, opacity;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 1.5rem;
  color: var(--walnut); margin-bottom: 0.4rem;
}
.step-card .step-title { display: block; font-family: Oswald, sans-serif; font-weight: 500; font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.03em; }
.step-card .step-blurb { display: block; margin-top: 0.7rem; color: var(--stone); font-size: 1.02rem; line-height: 1.6; opacity: 0; transform: translateY(-14px); transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.step-card.front .step-blurb { opacity: 1; transform: none; }

/* default (no-JS) steps keep the flat list look */
.steps .step-title { font-weight: 600; color: var(--pine); }

/* ---------- About portrait ---------- */
.about-cols { grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr) minmax(240px, 1fr); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: 4px; }
.about-photo figcaption { font-size: 0.85rem; color: #5a564f; margin-top: 0.6rem; }
.about-photo figcaption a { color: var(--walnut-deep); }
@media (max-width: 900px) {
  .about-cols { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}
