/* Hauser Frères — shared design system across all 5 pages.
   Adapted from Aurora Bay. Palette shifted to watchmaker steel-blue & warm-brass.
   Used by /story, /watches, /workshop, /inquire. The home page (index.html)
   carries its own inline copy so it can be served standalone. */

:root {
  --cream: #f5f1e8;
  --cream-deep: #ebe4d2;
  --cream-warm: #efe8d8;
  --ink: #1a1614;
  --ink-soft: rgba(26, 22, 20, 0.65);
  --ink-faint: rgba(26, 22, 20, 0.4);
  --steel: #2c3e50; /* watchmaker steel-blue */
  --steel-pale: rgba(44, 62, 80, 0.18);
  --brass: #a07845; /* the warm-brass accent — kept from Aurora Bay */
  --brass-pale: rgba(160, 120, 69, 0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection {
  background: var(--brass);
  color: var(--cream);
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Nav — sticky, mix-blend over the hero */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: var(--cream);
  transition: background 0.4s ease;
}
nav.topnav.scrolled {
  background: rgba(245, 241, 232, 0.96);
  mix-blend-mode: normal;
  color: var(--ink);
  backdrop-filter: blur(10px);
}
nav.topnav.solid {
  background: var(--cream);
  mix-blend-mode: normal;
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 22, 20, 0.06);
}
nav.topnav .brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-decoration: none;
}
nav.topnav .links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
nav.topnav .links a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
nav.topnav .links a:hover,
nav.topnav .links a.active {
  opacity: 1;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
nav.topnav .inquire-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
nav.topnav .inquire-cta:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
@media (max-width: 900px) {
  nav.topnav {
    padding: 1.25rem 1.5rem;
  }
  nav.topnav .links {
    display: none;
  }
}

/* Generic page hero (smaller than home hero) */
.page-hero {
  min-height: 60vh;
  padding: 12rem 3rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--page-hero-image, none);
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 2;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.78;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
}
@media (max-width: 700px) {
  .page-hero {
    padding: 9rem 1.5rem 4rem;
    min-height: 50vh;
  }
}

/* Section base */
section.editorial {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  section.editorial {
    padding: 4rem 1.5rem;
  }
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
}

.prose-serif p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}
.prose-serif p:first-of-type::first-letter {
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  margin-right: 0.5rem;
  margin-top: 0.4rem;
  color: var(--brass);
  font-weight: 400;
}

/* Footer — workshop-address layout */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 3rem 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  footer.site-footer {
    padding: 3rem 1.5rem 2rem;
  }
}
.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.footer-tagline {
  color: rgba(245, 241, 232, 0.55);
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.footer-address {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(245, 241, 232, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}
.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--brass);
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  color: rgba(245, 241, 232, 0.4);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom em {
  font-style: italic;
  color: rgba(245, 241, 232, 0.55);
}

/* Reveal on scroll — JS toggles .in */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Photo essay — staggered captioned images (used on /story) */
.photo-essay {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 2rem;
}
.photo-essay figure {
  margin: 0;
  position: relative;
}
.photo-essay .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: grayscale(0.15);
}
.photo-essay figcaption {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.photo-essay figcaption em {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.photo-essay .span-7 {
  grid-column: span 7;
}
.photo-essay .span-5 {
  grid-column: span 5;
}
.photo-essay .span-6 {
  grid-column: span 6;
}
.photo-essay .span-4 {
  grid-column: span 4;
}
.photo-essay .offset-1 {
  grid-column-start: 2;
}
.photo-essay .pull-down {
  margin-top: 4rem;
}
@media (max-width: 900px) {
  .photo-essay {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .photo-essay .span-7,
  .photo-essay .span-5,
  .photo-essay .span-6,
  .photo-essay .span-4 {
    grid-column: 1 / -1;
  }
  .photo-essay .offset-1 {
    grid-column-start: 1;
  }
  .photo-essay .pull-down {
    margin-top: 0;
  }
}

/* Pull-quote — large italic serif statement */
.pull-quote {
  padding: 8rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.pull-quote blockquote::before {
  content: '\201C';
  color: var(--brass);
  margin-right: 0.1em;
}
.pull-quote blockquote::after {
  content: '\201D';
  color: var(--brass);
  margin-left: 0.1em;
}
.pull-quote cite {
  display: block;
  margin-top: 2.5rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--sans);
}
@media (max-width: 700px) {
  .pull-quote {
    padding: 5rem 1.5rem;
  }
}

/* Generations — three-portrait grid (story page) */
.generations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 4rem;
}
@media (max-width: 900px) {
  .generations {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.generation .portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  filter: grayscale(0.4) sepia(0.08);
}
.generation .gen-meta {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.generation h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.generation p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Forward block — closing call-to-next-page */
.forward {
  background: var(--ink);
  color: var(--cream);
  padding: 8rem 3rem;
  text-align: center;
}
.forward .section-eyebrow {
  color: var(--brass);
}
.forward .section-title {
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.forward p {
  font-size: 1.05rem;
  opacity: 0.78;
  max-width: 52ch;
  margin: 0 auto 3rem;
}
.forward .forward-links {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.forward .forward-links a {
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--brass);
  transition: all 0.4s;
}
.forward .forward-links a:hover {
  background: var(--brass);
  color: var(--ink);
}
@media (max-width: 700px) {
  .forward {
    padding: 5rem 1.5rem;
  }
}

/* Buttons */
.btn-outline {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: currentColor;
  color: var(--cream);
}
.dark-section .btn-outline {
  color: var(--brass);
}
.dark-section .btn-outline:hover {
  color: var(--ink);
  background: var(--brass);
}

/* Reference cards — used on /watches */
.references {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8rem;
  margin-top: 4rem;
}
.reference {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.reference.flip {
  grid-template-columns: 1fr 1.05fr;
}
.reference.flip .reference-photo {
  order: 2;
}
.reference.flip .reference-text {
  order: 1;
}
@media (max-width: 900px) {
  .reference,
  .reference.flip {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .reference.flip .reference-photo {
    order: 0;
  }
  .reference.flip .reference-text {
    order: 0;
  }
  .references {
    gap: 5rem;
  }
}
.reference-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.reference-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 65%, rgba(44, 62, 80, 0.1));
}
.reference-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.reference-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.reference-name em {
  font-style: italic;
}
.reference-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.reference-prose {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48ch;
}
.spec-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--steel-pale);
}
.spec-list li {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--steel-pale);
  font-size: 0.95rem;
}
.spec-list .spec-key {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: center;
}
.spec-list .spec-val {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.spec-list .spec-val em {
  font-style: italic;
  color: var(--steel);
}
@media (max-width: 600px) {
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.75rem 0;
  }
}

/* Workshop strip — bench tools / process row (used on /workshop) */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.workshop-grid figure {
  margin: 0;
  position: relative;
}
.workshop-grid .photo {
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.workshop-grid figcaption {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.workshop-grid figcaption em {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.workshop-grid .tall {
  grid-column: span 5;
}
.workshop-grid .tall .photo {
  aspect-ratio: 3 / 4;
}
.workshop-grid .wide {
  grid-column: span 7;
}
.workshop-grid .wide .photo {
  aspect-ratio: 4 / 3;
}
.workshop-grid .third {
  grid-column: span 4;
}
.workshop-grid .third .photo {
  aspect-ratio: 1 / 1;
}
@media (max-width: 900px) {
  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .workshop-grid .tall,
  .workshop-grid .wide,
  .workshop-grid .third {
    grid-column: 1 / -1;
  }
}

/* Craftsmen list — five names (workshop) */
.craftsmen {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (max-width: 1000px) {
  .craftsmen {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .craftsmen {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.craftsman {
  border-top: 1px solid var(--steel-pale);
  padding-top: 1.25rem;
}
.craftsman .role {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.craftsman h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.craftsman p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Inquiry form — restrained, by-hand feel */
.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.enquiry-form .field-full {
  grid-column: 1 / -1;
}
.enquiry-form .field {
  display: flex;
  flex-direction: column;
}
.enquiry-form label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}
.enquiry-form label .label-hint {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.55);
  border: none;
  border-bottom: 1px solid var(--brass-pale);
  padding: 0.85rem 0.25rem;
  width: 100%;
  transition:
    border-color 0.4s,
    background 0.4s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.enquiry-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) center,
    calc(100% - 8px) center;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.enquiry-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
  background: rgba(255, 252, 244, 0.85);
}
.enquiry-form input.invalid,
.enquiry-form select.invalid,
.enquiry-form textarea.invalid {
  border-bottom-color: rgba(160, 60, 45, 0.55);
}
.enquiry-form .form-actions {
  grid-column: 1 / -1;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.enquiry-form .form-helper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-faint);
}
@media (max-width: 800px) {
  .enquiry-form {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .enquiry-form .field-full {
    grid-column: 1;
  }
}

/* Form thank-you state */
.form-thanks {
  text-align: left;
  padding: 3rem 0 2rem;
}
.form-thanks .section-eyebrow {
  color: var(--brass);
}
.form-thanks h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.form-thanks h3 em {
  font-style: italic;
}
.form-thanks p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1rem;
}

/* Two-column intro (used on /watches & /workshop) */
.two-column-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
@media (max-width: 900px) {
  .two-column-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.two-column-intro .left .section-title {
  margin-bottom: 0;
}

/* Waiting-list card — used on /inquire */
.wait-card {
  background: var(--cream-warm);
  border-left: 2px solid var(--brass);
  padding: 2.5rem 2.5rem;
  margin: 4rem 0 5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 60ch;
}
.wait-card strong {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
