/* Nook Studio demo. One locked dark theme (brief: docs/nook/brief.md), one accent, sharp corners everywhere.
   Shape rule: radius 0 on every surface, image, input and button. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Deep moss base, stone text, ochre amber accent (HSL saturation 61%) */
  --bg: #161914;
  --bg-raised: #1d211a;
  --bg-input: #22261f;
  --line: #31372c;
  --line-strong: #6b7062;
  --text: #e4e0d6;
  --text-muted: #aeab9e;
  --accent: #d4a24e;
  --accent-hover: #e2b462;
  --on-accent: #161914;
  --scrim: 22 25 20;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --section-y: 5.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 7rem; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --section-y: 8rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 30;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--lg { width: 2.5rem; height: 2.5rem; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Type */
.h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
}
.h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.note { color: var(--text-muted); max-width: 62ch; margin-top: 3rem; }

/* Buttons. One CTA label on the page: "Get a free quote". */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--accent); color: var(--on-accent);
  font: 500 1.0625rem/1 var(--font);
  padding: 1.05rem 1.5rem;
  border: 0; border-radius: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn--small { font-size: 0.9375rem; padding: 0.7rem 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn--lift:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgb(212 162 78 / 0.55); }
  .btn--lift:hover .icon { transform: translateX(4px); }
  .btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
}

/* Header: sits over the hero, scrolls away with it */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header__inner { display: flex; align-items: center; gap: 0.75rem; height: 72px; position: relative; }
@media (min-width: 900px) { .site-header__inner { gap: 2rem; } }
.wordmark { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; color: var(--text); opacity: 0.85; font-size: 0.9375rem; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }

/* Below 900px: a Menu button (shown only with JS) opens the five links as a panel under the header. */
.nav-toggle {
  display: none; align-items: center; gap: 0.45rem;
  background: rgb(var(--scrim) / 0.55); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 500 0.9375rem/1 var(--font); padding: 0.62rem 0.8rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--text-muted); }
@media (max-width: 899px) {
  .site-nav { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-header.is-open .site-nav {
    display: block; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    background: var(--bg); border: 1px solid var(--line);
  }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-open .site-nav li + li { border-top: 1px solid var(--line); }
  .site-header.is-open .site-nav a { display: block; padding: 1rem 1.25rem; font-size: 1.0625rem; opacity: 1; }
}
@media (max-width: 359px) { .site-header .btn--small { display: none; } }

/* 1. Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(var(--scrim) / 0.8) 0, rgb(var(--scrim) / 0) 180px),
    linear-gradient(to top, rgb(var(--scrim) / 0.95) 0%, rgb(var(--scrim) / 0.55) 38%, rgb(var(--scrim) / 0.2) 70%, rgb(var(--scrim) / 0.45) 100%),
    linear-gradient(to right, rgb(var(--scrim) / 0.7) 0%, rgb(var(--scrim) / 0) 65%);
}
.hero__content { padding-block: 8rem clamp(3.5rem, 10vh, 6.5rem); }
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
/* Mobile: one sentence per line instead of an orphaned "work." */
@media (max-width: 599px) { .hero__title .nowrap-sm { display: block; } }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text);
}
.hero__cta { margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-settle 2.4s var(--ease-out) both, hero-drift 28s ease-in-out 2.4s infinite alternate; }
  .hero__title .line > span { animation: rise 1.1s var(--ease-out) both; }
  .hero__title .line:nth-child(1) > span { animation-delay: 0.25s; }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.42s; }
  .hero__sub { animation: fade-up 1s var(--ease-out) 0.7s both; }
  .hero__cta { animation: fade-up 1s var(--ease-out) 0.85s both; }

  /* Parallax on the hero photo, driven by the scroll timeline where supported (no scroll listeners). */
  @supports (animation-timeline: scroll()) {
    .hero__media {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}
@keyframes hero-settle { from { transform: scale(1.12); opacity: 0.35; } to { transform: scale(1.04); opacity: 1; } }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); } }
@keyframes hero-parallax { to { transform: translate3d(0, 18vh, 0); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Shared */
.section { padding-block: var(--section-y); }
.frame { overflow: hidden; background: var(--bg-raised); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* 2. Services: photo for project work, project work read first beside it, then the two smaller lines */
.services__grid { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
.frame--tall { aspect-ratio: 4 / 5; }
.services__text { display: grid; gap: 3.5rem; align-content: start; }
.service__title--lead { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); letter-spacing: -0.025em; }
.service__lede { color: var(--text-muted); margin-top: 0.5rem; }
.ticks { margin-top: 1.5rem; display: grid; gap: 0.65rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.78em; width: 0.75rem; height: 1px; background: var(--accent);
}
.services__side { display: grid; gap: 3rem; }
.service--row { border-top: 1px solid var(--line); padding-top: 2rem; }

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; margin-top: 4.5rem; }
  .services__photo { grid-column: 1 / span 5; align-self: start; }
  .services__text { grid-column: 7 / -1; }
}
@media (min-width: 1100px) {
  .services__text { align-content: space-between; gap: 4rem; }
  .services__side { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* 3. Process: photo band, then a 2 by 2 grid */
.frame--band { margin-top: 3.5rem; aspect-ratio: 3 / 2; }
.steps { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
.step { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.step p { margin-top: 0.75rem; color: var(--text-muted); max-width: 40ch; }
@media (min-width: 768px) {
  .frame--band { aspect-ratio: 7 / 3; margin-top: 4.5rem; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 3rem; row-gap: 3.5rem; margin-top: 4.5rem; }
}
@media (min-width: 1100px) {
  .steps { width: 75%; margin-left: auto; }
}

/* 4. Work: 2 plus 3 gallery with mixed aspect ratios, captions below */
.gallery { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
.shot figcaption { margin-top: 0.85rem; color: var(--text-muted); font-size: 0.9375rem; }
.shot--wide .frame, .shot--mid .frame { aspect-ratio: 3 / 2; }
.shot--tall .frame { aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 4rem; margin-top: 4.5rem; }
  .shot--wide { grid-column: 1 / span 7; }
  .shot--mid { grid-column: 8 / span 5; align-self: end; }
  .shot--mid .frame { aspect-ratio: 4 / 3; }
  .shot--tall { grid-column: span 4; }
  .shot--tall .frame { aspect-ratio: 3 / 4; }
  .shot--drop { margin-top: 5rem; }
}
/* 5. Pricing: one wide ledger */
.ledger { margin-top: 3.5rem; }
.tier { border-top: 1px solid var(--line); padding-block: 2rem; display: grid; gap: 1rem; }
.tier__price { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; color: var(--accent); }
.tier__from, .tier__unit { font-size: 1rem; letter-spacing: 0; color: var(--text-muted); font-weight: 400; }
.tier__terms { color: var(--text-muted); display: grid; gap: 0.35rem; }
@media (min-width: 900px) {
  .ledger { margin-top: 4.5rem; }
  .tier { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 2rem; padding-block: 2.5rem; align-items: baseline; }
}

/* 6. Service area: three plain text columns */
.area__base { margin-top: 1.25rem; color: var(--text-muted); max-width: 60ch; }
.zones { display: grid; gap: 2.5rem; margin-top: 3rem; }
.zone p { margin-top: 0.4rem; }
.zone__meta { color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.zone__fee { color: var(--text); font-weight: 500; }
@media (min-width: 768px) {
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 4rem; }
}

/* 7. Values and contact */
.contact { background: var(--bg-raised); }
.contact__grid { display: grid; gap: 4rem; }
.contact__lede { margin-top: 1.5rem; max-width: 46ch; color: var(--text-muted); font-size: 1.125rem; }
.values { margin-top: 2.5rem; display: grid; gap: 0.9rem; max-width: 46ch; }
.values li { padding-left: 1.5rem; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.75rem; height: 1px; background: var(--accent); }
.reach { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; justify-items: start; }
.reach > p:first-child { color: var(--text-muted); max-width: 46ch; }
.reach__link {
  display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 0.2rem; transition: border-color 0.2s, color 0.2s;
}
.reach__link:hover { border-color: var(--accent); color: var(--accent-hover); }
.reach__link .icon { color: var(--accent); }
.reach__hours { color: var(--text-muted); font-size: 0.9375rem; }

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6rem; }
}

/* Form: labels above inputs, errors below */
.form { display: grid; gap: 1.75rem; }
.form__note { color: var(--text-muted); font-size: 0.9375rem; }
.field { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.9375rem; padding: 0; }
.field legend { margin-bottom: 0.5rem; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; border-radius: 0; appearance: none;
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--line-strong);
  font: 400 1.0625rem/1.5 var(--font);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field__help { color: var(--text-muted); font-size: 0.875rem; }
.field__error {
  display: flex; gap: 0.5rem; align-items: flex-start;
  color: var(--accent-hover); font-size: 0.9375rem; font-weight: 500;
}
.field__error[hidden] { display: none; }
.field__error .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); border-width: 2px; padding: calc(0.85rem - 1px) calc(1rem - 1px); }

.choices { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 520px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: 0.85rem 1rem; border: 1px solid var(--line-strong); background: var(--bg-input);
  font-size: 0.9375rem; transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: var(--text-muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: var(--accent); }

.form__submit { justify-self: start; margin-top: 0.5rem; }

.sent { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.sent[hidden] { display: none; }
.sent .icon { color: var(--accent); }
.sent p { color: var(--text-muted); max-width: 44ch; }
.sent:focus { outline: none; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--text); font: 500 1rem var(--font); cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent);
}

/* 8. Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem; color: var(--text-muted); font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer .wordmark { color: var(--text); margin-bottom: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer p + p { margin-top: 0.35rem; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Scroll reveals. Hidden state exists only with JS on and motion allowed; one IntersectionObserver adds .is-in. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal .frame img, .js .reveal.frame img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
  .js .reveal.is-in .frame img, .js .reveal.is-in.frame img { transform: scale(1); }
  .js .gallery .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .zones .reveal:nth-child(2), .js .ledger .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .gallery .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .zones .reveal:nth-child(3), .js .ledger .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .gallery .reveal:nth-child(4), .js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js .gallery .reveal:nth-child(5) { transition-delay: 0.32s; }
  .js .services__side .reveal:nth-child(1) { transition-delay: 0.1s; }
  .js .services__side .reveal:nth-child(2) { transition-delay: 0.2s; }
}
/* Gallery hover sits after the reveal rules so it wins over their image transform. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .shot .frame img { transition: transform 1.2s var(--ease-out); }
  .shot:hover .frame img, .js .shot.reveal.is-in:hover .frame img { transform: scale(1.035); }
}
