/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V4 */
/* Hallmark · macrostructure: Photographic · H6 knobs: image=full-bleed, caption=lower-left, text=below-overlaid-mixed
 * genre: editorial · nav: N9 Edge-aligned minimal · footer: Ft1 Mast-headed
 * theme: custom · vibe: "archival heritage, forest workshop, hand-worked since 1974" · paper: oklch(95% 0.010 144) · accent: oklch(38% 0.121 144)
 * display: Baskerville · body: Avenir Next · axes: light / roman-serif / chromatic-green
 * studied: no · context: inferred (audience: Houston owners of valuable/sentimental pieces; use: visit shop / call; tone: heritage-craft/luxury) · v1
 */

@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: var(--space-sm) var(--space-md);
  z-index: var(--z-toast);
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

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

/* ================= NAV — N9 Edge-aligned minimal ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--color-paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-rule-2);
}
.nav__inner {
  max-width: 90rem;
  margin-inline: auto;
  padding: var(--space-md) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav__wordmark span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.1em;
}
.nav__cta {
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  text-decoration: none;
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.nav__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-xl);
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn--outline {
  border: 1px solid var(--color-paper);
  color: var(--color-paper);
}
.btn--outline:hover {
  background: var(--color-paper);
  color: var(--color-ink);
}
.btn--solid {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent);
}
.btn--solid:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

/* ================= PHOTO FOLDS ================= */
.photo-fold {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-ink);
}
.photo-fold .bleed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-fold--hero {
  height: 92vh;
  min-height: 34rem;
  max-height: 52rem;
}
.photo-fold--hero .bleed {
  position: absolute;
  inset: 0;
}
.photo-fold--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  background: var(--gradient-hero-scrim);
}
.hero__caption-block {
  position: relative;
  z-index: var(--z-sticky);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 46rem;
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem) var(--space-3xl);
  box-sizing: border-box;
}
.hero__caption-block > * {
  min-width: 0;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-paper-2);
  margin: 0 0 var(--space-sm);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 1.08;
  color: var(--color-paper);
  margin: 0 0 var(--space-lg);
  overflow-wrap: anywhere;
  min-width: 0;
  text-shadow: 0 2px 24px var(--color-hero-shadow);
}
.hero__sub {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-paper-2);
  max-width: 38ch;
  margin: 0 0 var(--space-xl);
  overflow-wrap: anywhere;
}

.photo-fold img[loading="lazy"] { height: auto; }
.photo-fold:not(.photo-fold--hero):not(.photo-fold--contact) {
  aspect-ratio: 16 / 9;
}
.photo-fold:not(.photo-fold--hero):not(.photo-fold--contact) .bleed {
  height: 100%;
}

.caption {
  position: absolute;
  z-index: var(--z-raised);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-paper);
  background: color-mix(in oklab, var(--color-ink) 55%, transparent);
  padding: var(--space-xs) var(--space-md);
}
.caption--lower-left {
  left: var(--space-md);
  bottom: var(--space-md);
}

/* ================= TEXT FOLDS ================= */
.text-fold {
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3.5rem);
}
.text-fold--about {
  background: var(--color-paper-2);
}
.text-fold__inner {
  max-width: 52rem;
  margin-left: clamp(0rem, 6vw, 6rem);
}
.lede {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0 0 var(--space-lg);
}
.body-copy {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--color-ink-2);
  max-width: 65ch;
  margin: 0;
}
.body-copy--muted { color: var(--color-muted); }

/* ================= SERVICES — alternating rows ================= */
.services {
  padding-block: var(--space-2xl);
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 88rem;
  margin: 0 auto;
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
}
.service-row--reverse { direction: rtl; }
.service-row--reverse > * { direction: ltr; }
.service-row:nth-of-type(odd) { background: var(--color-paper); }
.service-row:nth-of-type(even) { background: var(--color-paper-2); }

.service-row__text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
  overflow-wrap: anywhere;
  min-width: 0;
}
.service-row__text p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink-2);
  max-width: 52ch;
  margin: 0 0 var(--space-md);
}
.service-row__text p:last-child { margin-bottom: 0; }

.service-row__media { min-width: 0; }
.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.service-row__media--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.service-row__media--pair img { aspect-ratio: 1 / 1; }

.service-note {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 88rem;
  margin: var(--space-xl) auto 0;
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
  border-block: 1px solid var(--color-rule);
}
.service-note__lead {
  margin: 0;
  color: var(--color-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-note h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
}
.service-note p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--color-ink-2);
}

/* ================= GALLERY ================= */
.gallery {
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3.5rem);
  background: var(--color-ink);
}
.gallery__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-paper);
  text-align: center;
  margin: 0 0 var(--space-2xl);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 90rem;
  margin-inline: auto;
}
.gallery__grid figure {
  margin: 0;
  min-width: 0;
}
.gallery__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-paper);
}
.gallery__grid figcaption {
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--color-paper-2);
  margin-top: var(--space-xs);
  line-height: 1.4;
}

/* ================= FAQ ================= */
.faq {
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 56rem;
  margin-inline: auto;
}
.faq h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--color-ink);
  margin: 0 0 var(--space-xl);
}
.faq__list { border-top: 1px solid var(--color-rule); }
.faq details {
  border-bottom: 1px solid var(--color-rule);
  padding-block: var(--space-md);
}
.faq summary {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  line-height: 1.6;
  max-width: 65ch;
  margin: var(--space-sm) 0 0;
}

/* ================= CONTACT / PHOTO FOLD ================= */
.photo-fold--contact {
  position: relative;
  min-height: 34rem;
  aspect-ratio: auto;
}
.photo-fold--contact .bleed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
}
.contact__panel {
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
}
.contact__panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--color-paper);
  margin: var(--space-sm) 0 var(--space-lg);
  overflow-wrap: anywhere;
  min-width: 0;
}
.contact__details {
  margin: 0 0 var(--space-xl);
  display: grid;
  gap: var(--space-md);
}
.contact__details > div { display: flex; flex-direction: column; gap: 0.2em; }
.contact__details dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-paper-2);
}
.contact__details dd {
  margin: 0;
  font-size: var(--text-md);
  color: var(--color-paper);
}
.contact__details a { color: var(--color-paper); }

/* ================= FOOTER — Ft1 Mast-headed ================= */
.foot {
  background: var(--color-ink);
  color: var(--color-paper-2);
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem) var(--space-xl);
}
.foot__inner {
  max-width: 90rem;
  margin-inline: auto;
}
.foot__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--color-paper);
  margin: 0;
}
.foot__wordmark span {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-paper-2);
  margin-top: 0.15em;
}
.foot__tagline {
  font-size: var(--text-base);
  margin: var(--space-md) 0 var(--space-xl);
  max-width: 40ch;
}
.foot__address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-paper-2);
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-lg);
}
.foot__address a { color: var(--color-paper); }
.foot__copy {
  font-size: var(--text-xs);
  color: var(--color-neutral);
  margin-top: var(--space-xl);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 60rem) {
  .service-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-row--reverse { direction: ltr; }
  .service-row__media img { aspect-ratio: 16 / 10; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-note { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .photo-fold--hero { height: 88vh; min-height: 30rem; }
  .hero__headline { font-size: var(--text-display-s); }
  .nav__wordmark { font-size: var(--text-base); }
  .nav__cta { padding: var(--space-xs) var(--space-md); font-size: var(--text-xs); }
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
  .service-row__media--pair { grid-template-columns: minmax(0, 1fr); }
  .contact__panel { max-width: 100%; }
  .lede { font-size: var(--text-lg); }
}

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