/* section.css: section pages. A full-screen hero holds still while a tinted panel slides up
   over it; the panel carries a ring label and specialties line, a display-size lead, a facts column
   and the page content on a label / content grid. "Elsewhere in the house" and one large email line close the page. */

/* Content images keep a neutral frame, so a missing file never shows a blank area. */
figure.room img,
.callout img,
.product-grid img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--frame-radius);
  outline: 1px solid var(--panel-rule);
  outline-offset: -1px;
  background: var(--color-ink);
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  isolation: isolate; /* keeps the video/scrim/text z-indexes local to the hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 88svh;
  margin-inline: calc(var(--gutter) * -1); /* full-bleed past the body gutter */
  padding: calc(var(--header-h) + 2rem) var(--gutter) 22svh; /* the panel rises over the bottom */
  background: var(--color-ink); /* a missing poster still shows a solid frame */
  color: var(--color-cream);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 600px) { .hero { min-height: 100svh; } }

.hero-video,
.hero > .demo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-ink);
}
.hero > .demo { border: 0; }

/* Vignette scrim so cream type stays readable over bright footage. */
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 45%, rgb(14 14 14 / 0.25), rgb(14 14 14 / 0.8));
}
.hero > :not(video, .demo) { position: relative; z-index: 2; }

/* With a YouTube demo behind the hero, let clicks reach the player. */
.hero:has(> .demo)::before,
.hero:has(> .demo) > :not(.demo) { pointer-events: none; }

/* Brand outline over footage: thin cream lines, the monocle in the section accent. */
.hero-mark { display: block; width: clamp(56px, 9vw, 88px); color: var(--color-cream); }
.hero-mark svg { display: block; width: 100%; height: auto; --wolf-line: 1.25px; }
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.25rem, 1rem + 9vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 em { font-family: var(--font-serif); font-weight: 400; font-size: 1.06em; letter-spacing: -0.02em; }
.hero-line { margin: 0; max-width: 34ch; color: rgb(244 240 236 / 0.85); font-size: var(--step-1); }

/* ---------- Panel ---------- */
.panel {
  --inset: clamp(8px, 1.6vw, 28px);
  position: relative;
  z-index: 1;
  margin: -16svh calc(var(--gutter) * -1 + var(--inset)) 0;
  padding: clamp(1.75rem, 4vw, 4.5rem) calc(var(--gutter) - var(--inset)) clamp(3rem, 6vw, 6rem);
  border-radius: clamp(20px, 2.6vw, 36px);
  background: var(--panel);
  color: var(--panel-ink);
  box-shadow: 0 -30px 60px rgb(0 0 0 / 0.35);
}
.panel a { text-decoration-color: var(--panel-accent, var(--accent)); }
.panel :focus-visible { outline-color: var(--panel-accent, var(--accent)); }

.panel-head { display: grid; gap: 1.75rem 4rem; }
@media (min-width: 900px) {
  .panel-head { grid-template-columns: 2fr minmax(14rem, 1fr); align-items: start; }
  .panel-head .panel-spec { grid-column: 1 / -1; }
}

/* Specialties and ring label: the same labels as the home tile, so the click feels continuous. */
.panel-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 0; }
.panel .spec { color: var(--panel-muted); }
.panel .spec > span + span::before { color: var(--panel-accent, var(--accent)); }
.panel .note { color: var(--panel-ink); text-shadow: none; }
.panel .note::before { border-color: var(--panel-accent, var(--accent)); }

.lead {
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.lead strong { font-weight: 650; }

/* Facts column: small labels, serif italic values, like a credits sidebar. */
.facts { display: grid; gap: 1rem; margin: 0; padding-top: 0.4rem; }
.facts div { padding-bottom: 1rem; border-bottom: 1px solid var(--panel-rule); }
.facts dt { color: var(--panel-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0.2rem 0 0; font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; line-height: 1.15; }

/* ---------- Label / content grid ----------
   Each h2 is a small label in the left column; everything after it sits in the right column
   on the same row, and the next h2 starts a new row (sparse auto-placement does the pairing). */
.section-body { display: grid; padding-top: 1rem; }
.section-body > * { min-width: 0; margin-block: 0 1.5rem; }
.section-body > h2 {
  margin-top: 2rem;
  color: var(--panel-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* The first heading has no divider above it: it sits lower, clear of the panel head. */
.section-body > h2:first-child { margin-top: 4.5rem; }
/* Moustache divider: the logo's nose and moustache, masked onto a hairline between sections.
   The mark sits on the hr's bottom edge so the hairline stays level with the moustache and the nose rises above it. */
.section-body > hr.ornament {
  position: relative; display: block; grid-column: 1 / -1; height: 8.5px; margin: 3rem 0 0; border: 0; overflow: visible; color: inherit;
  background:
    linear-gradient(var(--panel-rule), var(--panel-rule)) left center / calc(50% - 21px) 1px no-repeat,
    linear-gradient(var(--panel-rule), var(--panel-rule)) right center / calc(50% - 21px) 1px no-repeat;
}
.section-body > hr.ornament::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 12.25px; translate: -50% 0;
  background: currentColor; opacity: 0.7;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='170 325 172 81'%3E%3Cpath d='M233.58,365.78l-3.17.65c-9.27,1.77-10.17,2.93-17.95,3.77-7.76.82-22.83,2.42-30.35-7.48-3.43-4.51-4.13-9.91-5.88-9.59-2.01.36-2.87,7.8-2.87,12.81.02,2.69.22,18.9,9.47,28.81,8.2,8.78,19.08,7.82,38.78,5.71,21.7-2.3,20.04-6.57,33.68-6.79,20.94-.29,24.77,9.79,48.58,9.14,17.75-.48,23.67-6.31,25.32-8.06,9.53-10.17,9.47-26.17,9.45-28.81-.02-4.94-.84-12.45-2.85-12.81-1.75-.31-2.49,5.11-5.9,9.59-7.4,9.81-22.21,8.3-30.33,7.48-7.18-.74-8.2-1.73-17.15-3.43l-4.22-1.02'/%3E%3Cpath d='M279.03,364.46h-.02c-1.89,3.01-4,5.64-6.29,7.86-.75.71-1.49,1.38-2.28,2-4.65,3.81-9.8,5.92-14.57,5.92-4.8-.04-10.03-2.19-14.75-6.05-.77-.63-1.49-1.29-2.2-1.98-2.2-2.15-4.16-4.58-5.88-7.26-5.85-9.04-7.54-18.88-4.48-25.68,4.61-10.2,19.33-13.15,27.3-13.3h.78c8.63,0,22.3,3.14,26.65,12.12,3.27,6.7,1.59,17.05-4.26,26.37Z'/%3E%3C/svg%3E"); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='170 325 172 81'%3E%3Cpath d='M233.58,365.78l-3.17.65c-9.27,1.77-10.17,2.93-17.95,3.77-7.76.82-22.83,2.42-30.35-7.48-3.43-4.51-4.13-9.91-5.88-9.59-2.01.36-2.87,7.8-2.87,12.81.02,2.69.22,18.9,9.47,28.81,8.2,8.78,19.08,7.82,38.78,5.71,21.7-2.3,20.04-6.57,33.68-6.79,20.94-.29,24.77,9.79,48.58,9.14,17.75-.48,23.67-6.31,25.32-8.06,9.53-10.17,9.47-26.17,9.45-28.81-.02-4.94-.84-12.45-2.85-12.81-1.75-.31-2.49,5.11-5.9,9.59-7.4,9.81-22.21,8.3-30.33,7.48-7.18-.74-8.2-1.73-17.15-3.43l-4.22-1.02'/%3E%3Cpath d='M279.03,364.46h-.02c-1.89,3.01-4,5.64-6.29,7.86-.75.71-1.49,1.38-2.28,2-4.65,3.81-9.8,5.92-14.57,5.92-4.8-.04-10.03-2.19-14.75-6.05-.77-.63-1.49-1.29-2.2-1.98-2.2-2.15-4.16-4.58-5.88-7.26-5.85-9.04-7.54-18.88-4.48-25.68,4.61-10.2,19.33-13.15,27.3-13.3h.78c8.63,0,22.3,3.14,26.65,12.12,3.27,6.7,1.59,17.05-4.26,26.37Z'/%3E%3C/svg%3E"); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

.section-body > p { max-width: 58ch; font-size: var(--step-1); line-height: 1.5; }

@media (min-width: 900px) {
  .section-body { grid-template-columns: minmax(11rem, 1fr) 3fr; column-gap: 4rem; }
  .section-body > * { grid-column: 2; }
  .section-body > h2 {
    grid-column: 1;
    align-self: start;
    margin-bottom: 0;
    padding-top: 0.35em;
  }
  .section-body > h2 + * { margin-top: 2rem; }
  .section-body > h2:first-child + * { margin-top: 4.5rem; }
}

/* ---------- Studio: rooms and kit ---------- */
.rooms { display: grid; gap: 2.5rem 1.25rem; }
@media (min-width: 700px) {
  .rooms { grid-template-columns: 1fr 1fr; }
  .rooms > :first-child { grid-column: 1 / -1; }
}
figure.room { display: grid; gap: 0.9rem; margin: 0; }
figure.room img { aspect-ratio: 4 / 3; }
.rooms > :first-child img { aspect-ratio: 16 / 9; }
figure.room figcaption h3 { margin: 0 0 0.35rem; font-size: var(--step-1); }
figure.room figcaption p { margin: 0; max-width: 48ch; color: var(--panel-muted); line-height: 1.5; }

.callout { display: grid; gap: 1.25rem; margin: 0; }
.callout img { aspect-ratio: 21 / 9; }
.callout p { max-width: 30ch; margin: 0; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.015em; }

/* Gear index: group label, then the items set large in a running line. */
.gear { display: grid; gap: 2rem; }
.gear-group { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--panel-rule); }
.gear-group h3 { color: var(--panel-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.gear-group ul { display: flex; flex-wrap: wrap; gap: 0.15em 0.9em; margin: 0; padding: 0; list-style: none; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.gear-group li { transition: color 0.2s; }
.gear-group li:hover { color: var(--accent); }
.gear-note { color: var(--panel-muted); font-family: var(--font-serif); font-size: 0.55em; font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- Joe: services, roles, titles ---------- */
.services { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: service; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.services li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--panel-rule);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  counter-increment: service;
}
.services li::before { content: counter(service, decimal-leading-zero); color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }

.roles { display: grid; margin: 0; padding: 0; list-style: none; }
.roles li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--panel-rule); }
.roles strong { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.roles span { color: var(--panel-muted); font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; }
.roles .role-years { margin-left: auto; font-family: var(--font); font-size: 0.9rem; font-style: normal; font-variant-numeric: tabular-nums; }

/* Titles: a grid of cards that each open (＋ turns to ×) to role, year and press. */
.titles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.titles details { height: 100%; border-radius: 14px; background: color-mix(in srgb, var(--panel-ink) 7%, transparent); transition: background-color 0.2s; }
.titles details[open] { background: color-mix(in srgb, var(--panel-ink) 12%, transparent); }
.titles summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-height: 8rem; padding: 1.1rem; cursor: pointer; list-style: none; }
.titles summary::-webkit-details-marker { display: none; }
.title-name { font-size: 1.35rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.title-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--panel-ink) 14%, transparent); transition: rotate 0.25s; }
.title-plus::before,
.title-plus::after { content: ""; position: absolute; inset: 50% 8px auto; height: 2px; margin-top: -1px; background: currentColor; }
.title-plus::after { rotate: 90deg; }
.titles details[open] .title-plus { rotate: 45deg; }
.titles dl { display: grid; gap: 0.5rem; margin: 0; padding: 0 1.1rem 1.1rem; }
.titles dt { color: var(--panel-muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.titles dd { margin: 0; }

/* ---------- Effects: product feature and teaser ---------- */
.product-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.product a { display: grid; gap: 1.25rem; color: inherit; text-decoration: none; }
.product img { aspect-ratio: 4 / 3; }
.product-art { border-radius: var(--frame-radius); }
.product-text h3 { margin: 0 0 0.25rem; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); letter-spacing: -0.03em; transition: color 0.2s; }
.product a:hover h3 { color: var(--panel-accent, var(--accent)); }
.product-text p { margin: 0; color: var(--panel-muted); font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; }
.product-more { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.product a:hover .product-more { text-decoration: underline; text-decoration-color: var(--panel-accent, var(--accent)); text-underline-offset: 0.25em; }
.product a:hover .knob i { rotate: calc(var(--turn) + 35deg); }
@media (min-width: 800px) {
  .product a { grid-template-columns: 3fr 2fr; align-items: center; gap: 3rem; }
}

.product-teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px dashed var(--panel-rule);
  border-radius: var(--frame-radius);
  color: var(--panel-muted);
}
.teaser-mark { width: 36px; flex: none; }
.teaser-mark svg { width: 100%; height: auto; --wolf-line: 1px; }
.panel .wolf-monocle { fill: var(--panel-accent, var(--accent)); }
.product-teaser p { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; }

/* ---------- Scoop & Scream: controls, buy, gallery ---------- */
.controls-module { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 700px) { .controls-module { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 2.5rem; } }
.controls-pedal { width: 100%; border-radius: var(--frame-radius); }

.controls { display: grid; margin: 0; }
.control { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.25rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid var(--panel-rule); transition: color 0.2s; }
.controls dt { grid-column: 1; font-size: var(--step-1); font-weight: 600; }
.controls dd { grid-column: 2; margin: 0; overflow-wrap: anywhere; color: var(--panel-muted); font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; }
.control[data-on] dt { color: var(--panel-accent, var(--accent)); }

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.buy .price { font-size: var(--step-2); font-weight: 600; }
.panel .pill--solid { border-color: var(--panel-ink); background: var(--panel-ink); color: var(--panel); }
.panel .pill--solid:hover { background: transparent; color: var(--panel-ink); }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); padding: 0; list-style: none; }
.gallery img { aspect-ratio: 1; }

/* ---------- Quote and tagline ---------- */
.quote { display: grid; gap: 1.5rem; max-width: 40ch; margin: 6rem auto 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--panel-muted); font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; }

.tagline {
  margin: clamp(4rem, 10vw, 8rem) 0 0;
  font-size: clamp(2.5rem, 1rem + 6vw, 7rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}
.tagline em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }

/* ---------- Elsewhere in the house ---------- */
.explore,
.cta { position: relative; z-index: 1; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--color-bg); }
.explore { padding-top: clamp(4rem, 8vw, 7rem); }
.explore-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.explore-head h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; color: var(--color-cream); }
.explore-head h2 em { font-family: var(--font-serif); font-weight: 400; }
.explore-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.explore-list .tile-art { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .explore-list { grid-template-columns: repeat(3, 1fr); } }
/* Phones: a sideways strip, like the home page. */
@media (max-width: 699.98px) {
  .explore-list {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin-inline: calc(var(--gutter) * -1);
    /* The strip scrolls, so it clips: pad the top and bottom by the ring's reach (gap + line) and pull the
       margin back by the same amount, so the monocle ring is not cut off and nothing shifts. */
    margin-top: calc(-1 * (var(--ring-gap) + var(--ring-width)));
    margin-bottom: calc(-1 * (var(--ring-gap) + var(--ring-width)));
    padding-inline: var(--gutter);
    padding-top: calc(var(--ring-gap) + var(--ring-width));
    padding-bottom: calc(var(--ring-gap) + var(--ring-width));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .explore-list::-webkit-scrollbar { display: none; }
  .explore-list .tile { scroll-snap-align: start; }
}

/* ---------- Closing line ---------- */
.cta { padding-block: clamp(5rem, 12vw, 10rem) 2rem; }
.cta-link {
  display: inline;
  font-size: clamp(2.75rem, 1rem + 7.5vw, 8.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-decoration: none;
  text-wrap: balance;
}
.cta-link em { font-family: var(--font-serif); letter-spacing: -0.02em; }
.cta-link:hover em { color: var(--accent); }
.cta-note { margin: 1.75rem 0 0; color: var(--color-muted); }
.cta-note span { color: var(--color-cream); }

@media (prefers-reduced-motion: reduce) {
  .product-text h3,
  .gear-group li,
  .control,
  .titles details,
  .title-plus { transition: none; }
}
