/* Shared measures keep the editorial spreads aligned from masthead to contact. */
:root {
  --paper: #f8f5ed;
  --ink: #29291f;
  --muted: #605e54;
  --accent: #795633;
  --line: #cfc9bc;
  --night: #242722;
  --cream: #f7f2e8;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --edge: max(clamp(20px, 5vw, 72px), calc((100% - 1220px) / 2));
  --space: clamp(42px, 6vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 68px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 11; top: 8px; left: 12px; padding: 8px 16px; color: var(--cream); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.07; letter-spacing: -.045em; }
h3 { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.14; letter-spacing: -.035em; }
.eyebrow { margin-bottom: 13px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.section { padding: var(--space) var(--edge); }
.section-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 28px; }
.button, .project-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 550; }
.button { text-decoration: none; }
.button-dark, .hero-primary { padding: 10px 20px; color: var(--cream); background: var(--ink); }
.button-dark:hover, .hero-primary:hover { background: #4b493c; }
.button-outline, .button-light:not(.hero-primary), .project-link { text-decoration: underline; text-decoration-color: var(--accent); }

/* Masthead and its existing compact scroll navigation. */
.site-header, .compact-header-inner {
  padding-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand-signature, .compact-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 46px; height: auto; }
.logo-name { width: clamp(170px, 18vw, 225px); height: auto; mix-blend-mode: multiply; }
.main-nav, .compact-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.main-nav a, .compact-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.main-nav a:hover, .compact-nav a:hover { color: var(--accent); text-decoration: underline; }
.compact-header {
  position: fixed; z-index: 10; inset: 0 0 auto; border-bottom: 1px solid var(--line); background: var(--paper);
  opacity: 0; transform: translateY(-100%); pointer-events: none; transition: opacity .18s, transform .18s;
}
.compact-header.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.compact-header-inner { min-height: 52px; }
.compact-brand img { width: 32px; height: 28px; object-fit: cover; }
.compact-brand span { font-family: var(--serif); font-size: 19px; }

/* The opening spread pairs the offer with its own uninterrupted photographic field. */
.hero {
  padding: clamp(30px, 4vw, 62px) var(--edge); display: grid; align-items: center;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "copy picture";
  gap: clamp(30px, 5vw, 80px);
}
.hero-content { grid-area: copy; }
.hero h1 { font-size: clamp(38px, 4.1vw, 64px); line-height: 1.045; letter-spacing: -.052em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-intro { max-width: 45ch; margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); }
.hero-plate { grid-area: picture; min-width: 0; }
.hero-image { grid-area: picture; width: 100%; height: 100%; min-height: 355px; max-height: 485px; object-fit: cover; object-position: 58% center; }
.feature {
  background: var(--night); color: var(--cream); display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, .85fr); grid-template-areas: "screen caption";
  gap: clamp(32px, 5vw, 80px); padding-block: clamp(38px, 5vw, 74px);
}
.feature .project-video { grid-area: screen; }

/* Keep the photograph and type on one sheet. The following sheet moves in
   normal document flow; the player's entrance runs only on the first pass. */
@media (min-width: 901px) and (min-height: 570px) and (prefers-reduced-motion: no-preference) {
  .opening-spread .hero-image { height: clamp(355px, 29vw, 440px); }
  .opening-spread[data-layered] { isolation: isolate; }
  .opening-spread[data-layered] .hero {
    position: sticky;
    top: 52px;
    background: var(--paper);
  }
  .opening-spread[data-layered] .feature { position: relative; z-index: 1; }
  .opening-spread[data-layered] .feature::before {
    content: "";
    position: absolute;
    inset: auto 0 calc(100% - 1px);
    height: clamp(22px, 2.5vw, 40px);
    background: var(--night);
    clip-path: polygon(0 100%, 40% 100%, 100% 0, 100% 100%);
    pointer-events: none;
  }
  .opening-spread[data-entering] .feature .project-video {
    transform: translateX(calc(-1 * var(--screen-shift, 0px)));
    clip-path: inset(0 0 0 var(--screen-mask, 0px));
  }
  .opening-spread[data-entering] .feature-copy {
    transform: translateX(var(--caption-shift, 0px));
  }
}
.feature-copy { grid-area: caption; }
.feature-copy .eyebrow { color: #dbbd94; }
.feature-copy h2 { max-width: 13ch; }
.feature-copy > p:not(.eyebrow) { color: #dbd9cd; margin-top: 16px; max-width: 34ch; }
.feature .project-link { color: var(--cream); text-decoration-color: #bd985f; }
.project-video { width: 100%; aspect-ratio: 16/9; background: #141612; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The service menu reads as rows, with the inquiry alongside its introduction. */
#services { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.7fr); grid-template-rows: auto 1fr; gap: 0 clamp(36px,6vw,90px); }
#services .section-heading { grid-column: 1; grid-row: 1; }
.section-heading > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
#services .section-actions { grid-column: 1; grid-row: 2; align-self: start; }
.services-grid { grid-column: 2; grid-row: 1 / 3; }
.service { display: grid; grid-template-columns: 1fr 1.18fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service p, .project-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.proof-link { display: block; width: fit-content; margin-top: 6px; color: var(--accent); font-size: 14px; }

/* A wide production reel and a narrower restoration study share one spread. */
.selected-projects { background: #eeeade; }
.projects-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: clamp(30px, 5vw, 72px); margin-top: 32px; }
.project-card > .project-copy { margin-top: 18px; }
.project-copy h3 + p { margin-top: 9px; }
.guitar { padding-top: 30px; }
.guitar-intro { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(16px,2vw,28px); align-items: center; }
.guitar video { width: 100%; aspect-ratio: 9/16; display: block; background: var(--night); }
.guitar .controls { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.guitar input { accent-color: var(--accent); cursor: pointer; }
.guitar button { font: inherit; cursor: pointer; }
.transport { display: flex; align-items: center; gap: 12px; }
#play { background: var(--ink); color: var(--cream); min-width: 70px; min-height: 44px; border: 0; }
#seek { min-width: 0; flex: 1; height: 36px; }
#time { font-size: 13px; font-variant-numeric: tabular-nums; }
.treatments { margin-top: 14px; }
.treatments label { display: block; color: var(--muted); font-size: 13px; }
#treatment { display: block; width: 100%; margin: 2px 0; height: 30px; }
.labels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.labels button { padding: 0 5px; min-height: 44px; color: var(--muted); background: transparent; border: none; border-bottom: 1px solid var(--line); font-size: 13px; }
.labels button[aria-pressed="true"] { border-bottom: 3px solid var(--accent); color: var(--ink); font-weight: 650; }
#status { color: var(--muted); font-size: 14px; }
#status:not(:empty) { margin-top: 10px; }

/* Discography: artwork, title, listening notes and player share a baseline. */
.track-list { border-top: 1px solid var(--line); margin-top: 26px; }
.track { display: grid; grid-template-columns: 60px 1fr 1.2fr 1.1fr; grid-template-areas: "art title notes player"; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-block: 14px; }
.track-art { grid-area: art; width: 60px; height: 60px; object-fit: cover; }
.track-content { display: contents; }
.track-title { grid-area: title; }
.track-title h3 { font-size: 23px; }
.track-title a { color: var(--accent); display: inline-flex; align-items: center; min-height: 26px; font-size: 13px; }
.track-description { grid-area: notes; color: var(--muted); font-size: 14px; }
.track-meta { font-weight: 600; color: var(--ink); }
.feature-copy > p:not(.eyebrow), .project-copy > p:not(.eyebrow) { text-wrap: pretty; }
.track iframe { grid-area: player; width: 100%; min-width: 0; height: 42px; border: 0; }
.trust-line { color: var(--muted); font-size: 14px; margin-top: 4px; }
#about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8vw, 120px); align-items: center; }
.portrait { width: 100%; height: auto; }
.footer { background: var(--night); color: var(--cream); padding: var(--space) var(--edge) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 38px; }
.footer-contact { grid-column: 1; grid-row: 1; }
.footer-contact p:not(.eyebrow) { margin: 14px 0 6px; color: #dad9cf; }
.footer .eyebrow { color: #dbbd94; }
.email { color: var(--cream); font: clamp(20px, 2.4vw, 34px)/1.4 var(--serif); overflow-wrap: anywhere; }
.footer-link { display: block; width: fit-content; margin-top: 15px; font-size: 14px; }
.footer-statement { grid-column: 2; max-width: 32ch; }
.footer-mark { width: 42px; height: auto; margin-bottom: 16px; }
.footer-statement p { font: italic clamp(21px,2vw,29px)/1.25 var(--serif); color: #e0d7c8; }
.copyright { margin-top: 40px; padding-top: 15px; border-top: 1px solid #54564c; color: #ccc9be; font-size: 12px; }

@media (max-width: 900px) {
  .hero-image { min-height: 310px; }
  .service { grid-template-columns: 1fr; gap: 6px; }
  .projects-grid { grid-template-columns: 1.12fr 1fr; }
  .guitar-intro { grid-template-columns: .65fr 1fr; }
  .track { grid-template-columns: 54px 1fr 1fr; grid-template-areas: "art title player" "art notes player"; gap: 2px 18px; }
  .track-art { width: 54px; height: 54px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .guitar-intro { grid-template-columns: 94px minmax(0, 1fr); gap: 8px 16px; }
  .guitar .project-copy { display: contents; }
  .guitar video { grid-area: 1 / 1 / 3 / 2; }
  .guitar .eyebrow { grid-area: 1 / 2; align-self: end; margin: 0; }
  .guitar h3 { grid-area: 2 / 2; align-self: start; }
  .guitar .project-copy > p:not(.eyebrow) { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 700px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 12px; }
  .site-header .main-nav { width: 100%; justify-content: space-between; }
  .brand-signature { min-height: 40px; }
  .logo-mark { width: 38px; }
  .compact-brand span { display: none; }
  .compact-header-inner { gap: 10px; }
  .compact-nav { gap: clamp(8px,2.4vw,16px); }
  .compact-nav a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "picture"; gap: 24px; }
  .hero h1 { font-size: clamp(36px, 6.8vw, 46px); }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 2.05; }
  .button-row { margin-top: 18px; }
  .feature { grid-template-columns: 1fr; grid-template-areas: "caption" "screen"; gap: 20px; }
  .feature-copy h2 { max-width: 22ch; }
  .feature-copy > p:not(.eyebrow) { margin-top: 10px; max-width: 50ch; }
  #services { display: block; }
  .services-grid { margin-top: 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 32px; }
  .guitar { border-top: 1px solid var(--line); padding-top: 24px; }
  .guitar-intro { grid-template-columns: minmax(88px,.7fr) minmax(0,1.5fr); }
  .track { grid-template-columns: 54px minmax(0,1fr); grid-template-areas: "art title" "art notes" "player player"; gap: 4px 14px; }
  .track iframe { margin-top: 8px; }
  .track-title a { min-height: 30px; }
  .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-statement { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
