/* =========================================================
   Atelier Noir — Hair Studio HTML Template
   Version 1.0
   ---------------------------------------------------------
   1.  Fonts & design tokens
   2.  Base
   3.  Layout helpers & type
   4.  Buttons & links
   5.  Header & menu
   6.  Hero
   7.  Home sections
   8.  Inner pages
   9.  Appointment, contact & forms
   10. Call to action & footer
   11. Motion
   12. Responsive
   ========================================================= */

/* 1. Fonts & design tokens
   Change the look of the whole template here. */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --color-paper: #ece5da;      /* page background */
  --color-sand: #e2d8ca;       /* alternate bands */
  --color-dark: #1f1a15;       /* espresso: dark bands */
  --color-dark-2: #2b241d;     /* menu, cards on dark */
  --color-ink: #231d17;        /* headings */
  --color-text: #4a4037;       /* body text */
  --color-muted: #776a5d;      /* secondary text */
  --color-accent: #9a7752;     /* small labels */
  --color-button: #e2d3bd;     /* light sand button */
  --color-light: #f0e9de;      /* text on dark */
  --color-light-muted: #b9ac9b;
  --line: rgba(35, 29, 23, .15);
  --line-strong: rgba(35, 29, 23, .34);
  --line-light: rgba(240, 233, 222, .2);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --section: clamp(72px, 8.5vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font: 400 .98rem/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--color-ink); margin: 0; text-wrap: balance; }
em { font-style: italic; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--color-dark); color: var(--color-light); text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--color-muted); }

/* 3. Layout helpers & type */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--color-sand); }
.title { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.title em { text-transform: none; letter-spacing: .01em; }
.title--page { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.small-title { font: 500 .7rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-ink); margin: 1.8rem 0 .8rem; }
.label { font: 500 .66rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-head .label { margin-bottom: .8rem; }
.page-intro { padding-bottom: clamp(36px, 4vw, 56px); }
.page-intro__text { max-width: 34rem; margin-top: 1.2rem; }

/* 4. Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 48px; padding: 13px 24px;
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 500 .68rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow-icon { transition: transform .35s var(--ease); }
.btn:hover .arrow-icon { transform: translateX(4px); }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: .64rem; }
.btn--sand { background: var(--color-button); border-color: var(--color-button); color: var(--color-ink); }
.btn--sand:hover { background: #ecdfcb; border-color: #ecdfcb; }
.btn--dark { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-light); }
.btn--dark:hover { background: #3a3027; border-color: #3a3027; }
.btn--ghost { border-color: rgba(240, 233, 222, .5); color: var(--color-light); }
.btn--ghost:hover { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.btn--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .66rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none;
}
.text-link .arrow-icon { transition: transform .35s var(--ease); }
.text-link:hover .arrow-icon { transform: translateX(6px); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.6rem; font: 500 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); text-decoration: none; }
.back-link:hover { color: var(--color-ink); }

/* 5. Header & menu */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--color-paper); color: var(--color-ink); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.has-dark-hero .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; color: var(--color-light); }
.has-dark-hero .site-header.is-scrolled { background: rgba(31, 26, 21, .97); box-shadow: 0 1px 0 var(--line-light); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: inline-grid; justify-items: center; color: inherit; text-decoration: none; line-height: 1; }
.logo__name { font: 400 1.12rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; margin-right: -.14em; white-space: nowrap; }
.logo__tag { margin-top: 6px; font: 500 .52rem/1 var(--font-body); letter-spacing: .4em; text-transform: uppercase; opacity: .75; margin-right: -.4em; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 32px); }
.main-nav a { position: relative; display: inline-block; padding: 8px 0; font: 500 .64rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: currentColor; transition: left .35s var(--ease), right .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { left: 0; right: .18em; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 -10px 0 auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.menu-toggle svg line { transition: transform .35s var(--ease); }
.menu-toggle:hover svg line:nth-child(2) { transform: translateX(-6px); }

.menu-panel { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.menu-panel.is-open { visibility: visible; pointer-events: auto; }
.menu-panel__inner {
  position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding: 14px var(--gutter) 32px; background: var(--color-dark-2); color: var(--color-light);
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu-panel.is-open .menu-panel__inner { opacity: 1; }
.menu-panel__top { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-close { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-right: -12px; background: none; border: 0; color: inherit; cursor: pointer; transition: transform .35s var(--ease); }
.menu-close:hover { transform: rotate(90deg); }
.menu-panel nav { margin-top: 3vh; }
.menu-panel nav a { display: inline-block; padding: 4px 0; font: 400 clamp(1.8rem, 6vw, 2.6rem)/1.25 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .35s var(--ease), color .25s var(--ease); }
.menu-panel nav a:hover { transform: translateX(8px); }
.menu-panel nav a[aria-current="page"] { font-style: italic; color: var(--color-button); }
.menu-panel__meta { margin-top: auto; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line-light); font: 500 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-light-muted); }
.menu-panel__meta ul { display: flex; gap: 22px; }
.menu-panel__meta a { text-decoration: none; }
.menu-panel__meta a:hover { color: var(--color-light); }
body.is-locked { overflow: hidden; }

/* 6. Hero */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, 86vh, 780px); background: var(--color-dark); color: var(--color-light); overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 20, 16, .72) 0%, rgba(25, 20, 16, .4) 42%, rgba(25, 20, 16, 0) 65%); }
.hero__inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 40px) 72px; }
.hero__title { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; color: var(--color-light); }
.hero__title em { text-transform: uppercase; }
.hero__text { margin: 1.8rem 0 2.2rem; max-width: 26rem; color: var(--color-light); }
.hero--404 { min-height: 100svh; }
.hero--404 .hero__media img { object-position: 75% 30%; }
.hero--404 .hero__title { font-size: clamp(2.2rem, 4vw, 3.4rem); }

/* 7. Home sections */
.split { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); background: var(--color-paper); }
.split__text { align-self: center; padding: clamp(56px, 6vw, 96px) clamp(32px, 5vw, 80px) clamp(56px, 6vw, 96px) var(--edge); }
.split__text .title { margin-bottom: 1.4rem; }
.split__text p:not(.label) { max-width: 26rem; margin-bottom: 2rem; }
.split__media { position: relative; min-height: clamp(380px, 36vw, 520px); overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.service-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5.3; background: var(--color-dark); color: var(--color-light); text-decoration: none; }
.service-grid--two .service-card { aspect-ratio: 16 / 11; }
.service-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.2s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25, 20, 16, .75) 0%, rgba(25, 20, 16, 0) 45%); }
.service-card:hover img { transform: scale(1.05); }
.service-card__body { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: grid; gap: 6px; }
.service-card__title { font: 500 .7rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); }
.service-grid--two .service-card__title { font-size: .76rem; }
.service-card__price { font-size: .85rem; color: var(--color-light-muted); }
.service-card__line { display: block; width: 18px; height: 1px; margin-top: 6px; background: currentColor; transition: width .45s var(--ease); }
.service-card:hover .service-card__line { width: 56px; }

.quote { position: relative; background: var(--color-dark); color: var(--color-light); overflow: hidden; }
.quote__media { position: absolute; inset: 0; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 20, 16, .92) 0%, rgba(25, 20, 16, .55) 50%, rgba(25, 20, 16, 0) 75%); }
.quote .wrap { position: relative; z-index: 1; }
.quote__inner { max-width: 30rem; padding-block: clamp(72px, 9vw, 128px); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 400 clamp(1.4rem, 2.3vw, 1.9rem)/1.35 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: var(--color-light); }
.quote figcaption { margin-top: 1.4rem; font: 500 .66rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light-muted); }
.quote figcaption::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }

/* 8. Inner pages */
.page-split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.page-split__text > p:not(.label):not(.price) { max-width: 30rem; }
.page-split__text .title--page { margin-bottom: 1.4rem; }
.page-split__text .btn { margin-top: 1rem; }
.page-split__media { overflow: hidden; aspect-ratio: 16 / 11; background: var(--color-sand); }
.page-split__media img { width: 100%; height: 100%; object-fit: cover; }
.page-split__media--tall { aspect-ratio: 4 / 5; max-height: 640px; }
.page-split__media--tall img { object-position: 50% 25%; }
.checklist { display: grid; gap: 8px; margin-bottom: 1.8rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--color-ink); }
.checklist svg { margin-top: 6px; color: var(--color-accent); }
.price { font: 400 1.6rem/1.2 var(--font-display); color: var(--color-ink); margin-bottom: 1.4rem; }
.price span { display: block; margin-top: 4px; font: 400 .85rem/1.4 var(--font-body); color: var(--color-muted); }

.values-band { position: relative; background: var(--color-dark); color: var(--color-light-muted); padding-block: clamp(64px, 7vw, 104px); overflow: hidden; }
.values-band__media { position: absolute; inset: 0; }
.values-band__media img { width: 100%; height: 100%; object-fit: cover; }
.values-band::after { content: ""; position: absolute; inset: 0; background: rgba(25, 20, 16, .82); }
.values-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); }
.values-band .title { color: var(--color-light); }
.values-band .label { color: var(--color-button); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { padding-top: 20px; border-top: 1px solid var(--line-light); }
.value__icon { display: inline-block; color: var(--color-button); margin-bottom: 14px; }
.value h3 { font: 500 .7rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); margin-bottom: .6rem; }
.value p { font-size: .92rem; }

.service-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); }
.service-note { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.service-note__title { font: 500 .72rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; margin-bottom: .6rem; }
.service-note p { max-width: 30rem; }
.service-note__price { margin-top: .6rem; font: 400 1.15rem/1.3 var(--font-display); color: var(--color-ink); }

.work-band { background: var(--color-dark); color: var(--color-light-muted); padding-block: clamp(56px, 6vw, 88px); }
.work-band .title, .work-band .text-link { color: var(--color-light); }
.work-band .label { color: var(--color-button); }
.work-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.work-strip figure { overflow: hidden; aspect-ratio: 4 / 3; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-strip figure:hover img { transform: scale(1.05); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: 10px; }
.shot { padding: 0; border: 0; overflow: hidden; background: var(--color-sand); cursor: zoom-in; }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.1s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.lightbox { width: min(1100px, 92vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(25, 20, 16, .96); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox__arrow { position: absolute; bottom: -52px; width: 48px; height: 40px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--color-light); cursor: pointer; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__close { position: absolute; top: -54px; right: -6px; margin: 0; color: var(--color-light); }

.products { border-top: 1px solid var(--line); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.product__name { font: 400 1.25rem/1.3 var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
.product p { margin: 0; font-size: .92rem; color: var(--color-muted); }
.product__size { font-size: .85rem; color: var(--color-muted); }
.product__price { justify-self: end; font: 400 1.15rem/1 var(--font-display); color: var(--color-ink); }

.post { max-width: 42rem; margin-top: 2rem; }
.post h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: .04em; text-transform: uppercase; margin: 2.2rem 0 .8rem; }

/* 9. Appointment, contact & forms */
.appointment__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.appointment__form > p:not(.label) { max-width: 30rem; margin: 1rem 0 2rem; }
.appointment__side { position: sticky; top: 108px; padding: clamp(26px, 3vw, 36px); background: var(--color-sand); }
.good-list { display: grid; gap: 16px; margin-bottom: 26px; }
.good-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--color-ink); font-size: .94rem; }
.good-list__icon { color: var(--color-accent); padding-top: 2px; }
.appointment__media { overflow: hidden; aspect-ratio: 16 / 11; }
.appointment__media img { width: 100%; height: 100%; object-fit: cover; }

.contact__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__text > p:not(.label) { max-width: 26rem; margin-top: 1rem; }
.contact-list { display: grid; gap: 16px; margin: 2rem 0 2.4rem; }
.contact-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--color-ink); }
.contact-item__icon { color: var(--color-accent); padding-top: 2px; }
.contact-item a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact-item a:hover { background-size: 100% 1px; }
.hours { padding: clamp(26px, 3vw, 36px); background: var(--color-sand); }
.hours .label { display: flex; align-items: center; gap: 10px; }
.hours__icon { color: var(--color-accent); }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dl div:last-child { border-bottom: 0; }
.hours dt { color: var(--color-ink); }
.hours dd { color: var(--color-text); white-space: nowrap; }
.map { line-height: 0; }
.map-art { display: block; width: 100%; height: clamp(260px, 30vw, 400px); }

.form { display: grid; gap: 16px; scroll-margin-top: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--three { grid-template-columns: 1.3fr 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 500 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: rgba(255, 255, 255, .35); color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 400 .98rem/1.4 var(--font-body);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-ink); background: rgba(255, 255, 255, .6); }
.input::placeholder, .textarea::placeholder { color: #918476; }
.select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23231d17' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.textarea { min-height: 120px; resize: vertical; }
.form-note { margin: 0; font-size: .86rem; color: var(--color-muted); }
.form-note a { color: var(--color-ink); }
.form-status { display: none; margin: 0; padding: 14px 16px; border: 1px solid var(--color-ink); color: var(--color-ink); font-size: .95rem; }
.form-status.is-visible { display: block; }

/* Date fields: Safari on iPhone needs flex + align-items to centre the chosen date */
input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-width: 0; max-width: 100%; position: relative; text-align: left; color-scheme: light; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input[type="date"].is-empty:not(:focus) { color: transparent; -webkit-text-fill-color: transparent; }
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-fields-wrapper,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-text,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-day-field,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-month-field,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-year-field { -webkit-text-fill-color: transparent; color: transparent; }
.field--date { position: relative; }
.date-hint { position: absolute; left: 15px; bottom: 0; height: 48px; display: none; align-items: center; pointer-events: none; color: #918476; }
.field--date input.is-empty:not(:focus) + .date-hint { display: flex; }

/* 10. Call to action & footer */
.cta { padding-block: 0 var(--section); }
.cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 48px; padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px); background: var(--color-dark); color: var(--color-light-muted); }
.cta__title { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--color-light); margin-bottom: .3rem; }
.cta__box p { margin: 0; max-width: 30rem; font-size: .92rem; }
.section + .cta, .values-band + .cta { padding-top: 0; }
.values-band + .cta { padding-top: var(--section); }

.site-footer { background: var(--color-sand); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 34px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 500 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.footer-links a { text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.footer-links a:hover { background-size: 100% 1px; }
.footer-links .footer-mail { text-transform: none; letter-spacing: .04em; font-size: .78rem; }
.footer-copy { margin: 0; font: 500 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }

/* 11. Motion */
.icon { display: block; overflow: visible; }
.icon .move { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* One calm entrance for the opening of each page */
  .hero__media img, .page-split__media img { animation: settle 2.6s var(--ease) backwards; }
  .hero__inner > *, .page-split__text > *, .page-intro .wrap > *, .appointment__form > *, .contact__text > * { animation: rise .9s var(--ease) backwards; }
  .hero__inner > :nth-child(2), .page-split__text > :nth-child(2), .page-intro .wrap > :nth-child(2), .appointment__form > :nth-child(2), .contact__text > :nth-child(2) { animation-delay: .12s; }
  .hero__inner > :nth-child(3), .page-split__text > :nth-child(3), .page-intro .wrap > :nth-child(3), .appointment__form > :nth-child(3), .contact__text > :nth-child(3) { animation-delay: .24s; }
  .page-split__text > :nth-child(n+4), .contact__text > :nth-child(n+4), .appointment__form > :nth-child(n+4) { animation-delay: .34s; }

  /* Sections slide in softly (only when JavaScript runs) */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Each icon moves in its own way on hover, once on phones when it scrolls into view */
  .value:hover .icon-comb .move, .icon-comb.is-played .move { animation: comb .9s var(--ease); }
  .value:hover .icon-scissors .move, .icon-scissors.is-played .move { animation: snip .7s var(--ease); transform-origin: 50% 70%; }
  .value:hover .icon-spark .move, .icon-spark.is-played .move { animation: spin 1.1s var(--ease); }
  .good-list li:hover .icon-mail .move, .contact-item:hover .icon-mail .move, .icon-mail.is-played .move { animation: flap .7s var(--ease); transform-origin: 50% 0%; }
  .good-list li:hover .icon-calendar .move, .icon-calendar.is-played .move { animation: pop .6s var(--ease); }
  .good-list li:hover .icon-phone, .contact-item:hover .icon-phone, .icon-phone.is-played { animation: buzz .5s linear; }
  .contact-item:hover .icon-pin .move, .icon-pin.is-played .move { animation: drop .7s var(--ease); }
  .hours:hover .icon-clock .move, .icon-clock.is-played .move { animation: tick 1s var(--ease); transform-origin: 50% 100%; }
  .map:hover .map-pin { animation: drop .7s var(--ease); }
  .checklist li:hover .icon-check path { animation: draw .6s var(--ease); }
}
@keyframes settle { from { transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes comb { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(2px); } 60% { transform: translateY(-1px); } }
@keyframes snip { 0%, 100% { transform: scaleX(1); } 35% { transform: scaleX(.55); } 70% { transform: scaleX(1.05); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-2px) rotate(-6deg); } 40%, 80% { transform: translateX(2px) rotate(6deg); } }
@keyframes drop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-6px); } 65% { transform: translateY(1px); } }
@keyframes tick { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.icon-check path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.icon-pin .move { transform-origin: 50% 100%; }
.map-pin { transform-box: fill-box; transform-origin: 50% 100%; }

/* 12. Responsive */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo { justify-items: start; }
  .logo__name, .logo__tag { margin-right: 0; }
}

@media (max-width: 900px) {
  .split, .page-split__inner, .appointment__inner, .contact__inner, .values-band__inner { grid-template-columns: 1fr; }
  .split__text { padding: 56px var(--gutter); }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: 1fr; gap: 24px; }
  .service-notes { grid-template-columns: 1fr; }
  .work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-strip figure:last-child { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 30vw, 220px); }
  .shot--wide { grid-column: span 2; grid-row: span 1; }
  .appointment__side { position: static; }
  .page-split__media--tall { max-height: none; aspect-ratio: 4 / 4.4; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: .96rem; }
  /* Phone: full photo with the whole heading on the first screen */
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero__media img { object-position: 68% 20%; }
  .hero::after { background: linear-gradient(0deg, rgba(25, 20, 16, .88) 0%, rgba(25, 20, 16, .55) 42%, rgba(25, 20, 16, .05) 70%); }
  .hero__title { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
  .hero__text { margin: 1.2rem 0 1.6rem; }
  .quote__media img { object-position: 85% 20%; }
  .quote::after { background: linear-gradient(0deg, rgba(25, 20, 16, .92) 0%, rgba(25, 20, 16, .5) 60%, rgba(25, 20, 16, .2) 100%); }
  .quote__inner { padding-block: 220px 56px; }
  .service-grid--two { grid-template-columns: 1fr; }
  .form-row, .form-row--three { grid-template-columns: 1fr; }
  .product { grid-template-columns: minmax(0, 1fr) auto; }
  .product__size { grid-column: 1; grid-row: 2; }
  .product__price { grid-row: 1; grid-column: 2; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lightbox__arrow { bottom: -56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
