/* =========================================================================
   Miwako Lucy Photography – redesign mockup stylesheet
   Implements 03-design/design-system.md exactly: washi paper + sumi ink,
   single aizome indigo accent, sakura blush support, sumi brush motif.
   Sharp corners everywhere (border-radius: 0). Spectral + Public Sans.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens (the full :root from design-system §10)
   ------------------------------------------------------------------------- */
:root {
  /* ---- type ---- */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 4.5vw, 4rem);
  --fs-h1:      clamp(2rem, 1.4rem + 3vw, 3rem);
  --fs-h2:      clamp(1.6875rem, 1.3rem + 1.9vw, 2.25rem);
  --fs-h3:      1.75rem;
  --fs-h4:      1.375rem;
  --fs-h5:      1.125rem;
  --fs-h6:      0.9375rem;
  --fs-lead:    clamp(1.1875rem, 1.05rem + 0.7vw, 1.3125rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-overline:0.75rem;

  /* ---- colour: raw ---- */
  --c-washi: #F6F2EA; --c-washi-raised: #FCFAF4; --c-washi-sink: #EFE9DC;
  --c-sumi: #1F1B17; --c-sumi-soft: #4A443C;
  --c-hinoki: #D9D1C2; --c-hinoki-strong: #C3B9A6;
  --c-aizome: #27406B; --c-aizome-deep: #1B2E4E; --c-aizome-tint: #E4E8F0;
  --c-sakura: #E7C9C6; --c-sakura-tint: #F4E7E5;
  --c-success: #3F6B4F; --c-warning: #9A6A1E;
  --c-error: #9A3324; --c-error-tint: #F2E2DE;

  /* ---- colour: semantic (use THESE in components) ---- */
  --bg: var(--c-washi); --surface: var(--c-washi-raised); --surface-2: var(--c-washi-sink);
  --ink: var(--c-sumi); --muted: var(--c-sumi-soft);
  --line: var(--c-hinoki); --line-2: var(--c-hinoki-strong);
  --accent: var(--c-aizome); --accent-2: var(--c-aizome-deep); --accent-bg: var(--c-aizome-tint);
  --blush: var(--c-sakura); --blush-bg: var(--c-sakura-tint);
  --ink-inverse: #F6F2EA; --bg-inverse: #1F1B17; --line-inverse: #4A443C;

  /* ---- spacing (4px base) ---- */
  --space-3xs: 0.25rem; --space-2xs: 0.5rem; --space-xs: 0.75rem;
  --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 3rem;
  --space-2xl: 4rem; --space-3xl: 6rem; --space-4xl: 8rem;
  --section-y: 6rem; --section-y-mobile: 4rem;

  /* ---- layout ---- */
  --container: 1200px; --container-wide: 1440px; --container-text: 720px;
  --measure: 68ch; --gutter: 1.5rem; --gutter-mobile: 1rem;
  --radius: 0;

  /* ---- borders / shadow / focus ---- */
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-2);
  --shadow-sm: 0 1px 2px rgba(31,27,23,0.06);
  --shadow-md: 0 6px 20px rgba(31,27,23,0.08);
  --shadow-lg: 0 14px 40px rgba(31,27,23,0.10);
  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);

  /* ---- motion (short, purposeful, never ambient) ---- */
  --ease: cubic-bezier(0,0,0.2,1);
  --dur-fast: 120ms; --dur: 180ms; --dur-slow: 240ms;

  /* ---- z-index ---- */
  --z-header: 100; --z-menu: 200; --z-skip: 300;
}

/* -------------------------------------------------------------------------
   2. Global reset – radius zero by mandate + box model
   ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* enforce the mandate globally */
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }

/* -------------------------------------------------------------------------
   3. Base typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--space-sm); color: var(--ink); }
h1 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
h5 { font-family: var(--font-body); font-size: var(--fs-h5); font-weight: 600; line-height: 1.35; margin: 0 0 var(--space-2xs); }
h6 { font-family: var(--font-body); font-size: var(--fs-h6); font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; margin: 0 0 var(--space-2xs); }

p { margin: 0 0 var(--space-md); max-width: var(--measure); }

.display {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.02em;
}
.lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.55; font-weight: 400; color: var(--ink);
  max-width: var(--measure);
}
.small { font-size: var(--fs-small); line-height: 1.55; }
.xs    { font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-block;
  margin: 0 0 var(--space-2xs);
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-2); }
a:focus-visible { box-shadow: var(--focus-ring); outline: none; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent);
  max-width: var(--measure);
}

ul, ol { padding-left: 1.2em; }
li { margin-bottom: var(--space-2xs); max-width: var(--measure); }
strong { font-weight: 700; }
:lang(ja), .ja { font-family: var(--font-body); }

/* -------------------------------------------------------------------------
   4. Accessibility primitives
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-sm); top: -100px;
  z-index: var(--z-skip);
  background: var(--accent); color: var(--ink-inverse);
  padding: var(--space-2xs) var(--space-sm);
  font: 600 var(--fs-small)/1 var(--font-body);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* -------------------------------------------------------------------------
   5. The sumi brush motif
   ------------------------------------------------------------------------- */
.brush { display: block; color: var(--accent); }
.brush--short { width: 88px; height: 10px; margin-top: 8px; }
.brush--rule  { width: 100%; height: 12px; color: var(--line-2); opacity: .9; }

.brush-underline { position: relative; padding-bottom: 14px; }
.brush-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 88px; height: 3px;
  background: var(--accent);
  clip-path: polygon(0 40%, 12% 10%, 60% 60%, 88% 20%, 100% 55%,
                     90% 100%, 55% 70%, 14% 100%, 0 65%);
}

/* -------------------------------------------------------------------------
   6. Layout utilities
   ------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.section { padding: var(--section-y) 0; }
.section--tint  { background: var(--surface-2); }
.section--blush { background: var(--blush-bg); }
.section--ink   { background: var(--bg-inverse); color: var(--ink-inverse); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--ink-inverse); }
.section--ink p { color: var(--ink-inverse); }
.section--ink .overline { color: var(--blush); }
.section__head  { margin-bottom: var(--space-xl); max-width: 56ch; }
.section__head p { color: var(--muted); }
.section--ink .section__head p { color: var(--ink-inverse); }

.stack > * + * { margin-top: var(--space-md); }
.text-center { text-align: center; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }

.divider { width: 100%; max-width: var(--container); margin: var(--section-y) auto;
  padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-xl) 0; }

/* -------------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--btn-h);
  padding: 0 var(--space-lg);
  font: 600 var(--fs-small)/1 var(--font-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--ink-inverse);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-inverse); }
.btn--primary:focus-visible { box-shadow: var(--focus-ring); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--secondary:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.btn--quiet {
  min-height: 44px;
  padding: 0 var(--space-2xs);
  background: transparent;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-body);
  border: 0;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}
.btn--quiet:hover { box-shadow: inset 0 -2px 0 var(--accent); color: var(--accent-2); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
.btn--block { width: 100%; }

/* on inverse bands */
.section--ink .btn--secondary { color: var(--ink-inverse); border-color: var(--line-inverse); }
.section--ink .btn--secondary:hover { border-color: var(--ink-inverse); background: rgba(246,242,234,0.08); color: var(--ink-inverse); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }

/* -------------------------------------------------------------------------
   8. Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* condensed sticky header on scroll */
.site-header.is-condensed {
  padding-top: var(--space-2xs); padding-bottom: var(--space-2xs);
  box-shadow: var(--shadow-sm);
}

.brand { display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; letter-spacing: -0.01em; }
.brand__sub  { font-family: var(--font-body); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.brand__dot  { width: 7px; height: 7px; background: var(--accent);
  align-self: center; }

.nav__menu { display: flex; align-items: center; gap: var(--space-md);
  list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; }
.nav__link, .nav__menu a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 var(--fs-small)/1 var(--font-body);
  color: var(--ink); text-decoration: none; background: none; border: 0;
  cursor: pointer;
}
.nav__menu a:not(.btn) { box-shadow: inset 0 0 0 var(--accent); transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav__menu a:not(.btn):hover { box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink); }
.nav__menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); color: var(--accent); }
.nav__link:focus-visible, .nav__menu a:focus-visible { box-shadow: var(--focus-ring); }
.nav__link { gap: 4px; }
.nav__caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  display: inline-block; }

/* sessions dropdown (desktop) */
.nav__item.has-sub { position: relative; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 248px;
  display: none; flex-direction: column;
  margin: 0; padding: var(--space-2xs) 0; list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav__item.has-sub:hover .nav__sub,
.nav__item.has-sub:focus-within .nav__sub,
.nav__link[aria-expanded="true"] + .nav__sub { display: flex; }
.nav__sub li { margin: 0; }
.nav__sub a { padding: 0 var(--space-md); min-height: 44px; width: 100%; box-shadow: none !important; }
.nav__sub a:hover { background: var(--accent-bg); }

.nav__toggle { display: none; }

@media (max-width: 768px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); color: var(--ink);
    cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav__bars { position: relative; }
  .nav__bars::before { position: absolute; top: -6px; left: 0; }
  .nav__bars::after  { position: absolute; top: 6px; left: 0; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: 57px 0 0 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-md) var(--gutter);
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
    overflow-y: auto;
  }
  .nav__menu[data-open="true"] { transform: translateX(0); }
  .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav__menu a, .nav__link { min-height: 52px; width: 100%; font-size: var(--fs-body);
    justify-content: space-between; }
  .nav__sub { position: static; display: none; box-shadow: none; border: 0;
    background: var(--surface-2); padding-left: var(--space-sm); }
  .nav__link[aria-expanded="true"] + .nav__sub { display: flex; }
  .nav__item--cta { border-bottom: 0; margin-top: var(--space-md); }
  .nav__item--cta .btn { width: 100%; }
  .nav__caret { transform: rotate(45deg); }
  .nav__link[aria-expanded="true"] .nav__caret { transform: rotate(-135deg) translateY(-2px); }
}

/* -------------------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; display: grid; }
.hero__img {
  grid-area: 1 / 1;
  width: 100%; height: clamp(420px, 70vh, 760px);
  object-fit: cover;
}
.hero__panel {
  grid-area: 1 / 1;
  align-self: end; justify-self: start;
  max-width: 640px; margin: var(--space-2xl) var(--gutter);
  padding: var(--space-lg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-left: 3px solid var(--accent);
}
.hero__title { margin-top: var(--space-2xs); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-md); margin-top: var(--space-md); }

@media (max-width: 768px) {
  .hero__panel { margin: var(--space-md) var(--gutter-mobile);
    padding: var(--space-md); max-width: none; }
  .hero__img { height: clamp(360px, 60vh, 520px); }
}

/* compact page banner for interior pages (no full hero photo) */
.page-head { padding: var(--space-2xl) 0 var(--space-xl); border-bottom: 1px solid var(--line); }
.page-head .overline { color: var(--accent); }
.page-head p { color: var(--muted); }
.page-head--blush { background: var(--blush-bg); }

/* -------------------------------------------------------------------------
   10. Trust strip
   ------------------------------------------------------------------------- */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin: 0; padding: var(--space-md) var(--gutter);
  list-style: none;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font: 500 var(--fs-small)/1.4 var(--font-body);
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: var(--space-2xs); margin: 0; max-width: none; }
.trust li::before { content: ""; width: 5px; height: 5px;
  background: var(--accent); display: inline-block; }
.trust li:first-child::before { display: none; }

/* -------------------------------------------------------------------------
   11. Session / service cards
   ------------------------------------------------------------------------- */
.cards {
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md);
  transform: translateY(-2px); }
.card__media { display: block; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--space-md); display: flex; flex-direction: column;
  gap: var(--space-2xs); flex: 1; }
.card__title { font-size: var(--fs-h4); margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__title a:focus-visible { box-shadow: var(--focus-ring); }
.card__body p { margin: 0; }
.card__cue { margin-top: auto; padding-top: var(--space-2xs);
  font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); }
.card:hover .card__cue { color: var(--accent-2); }

/* -------------------------------------------------------------------------
   12. Category cards (text-led, indigo left rule)
   ------------------------------------------------------------------------- */
.cat-cards { display: grid; gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cat-card {
  display: grid; gap: 4px;
  padding: var(--space-md);
  min-height: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat-card:hover { background: var(--accent-bg); border-left-color: var(--accent-2); color: var(--ink); }
.cat-card:focus-visible { box-shadow: var(--focus-ring); }
.cat-card__title { font-family: var(--font-display); font-size: var(--fs-h4);
  font-weight: 600; }
.cat-card__meta  { font-size: var(--fs-small); color: var(--muted); }
.cat-card__price { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); }
.cat-card--blush { border-left-color: var(--blush); }
.cat-card--blush:hover { background: var(--blush-bg); border-left-color: var(--c-sakura); }
.cat-card--blush .cat-card__price { color: var(--accent); }

/* -------------------------------------------------------------------------
   13. Split / media-text rows
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl);
  align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border: 1px solid var(--line); }
.split__body p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split--reverse .split__media { order: 0; }
}

/* feature list with sumi dot bullets */
.feature-list { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.feature-list li { position: relative; padding-left: var(--space-md);
  margin-bottom: var(--space-2xs); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: var(--accent); }

/* quote band (why photos matter) */
.pullquote { font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.3;
  max-width: 22ch; margin: var(--space-md) 0 0; }

/* -------------------------------------------------------------------------
   14. Gallery
   ------------------------------------------------------------------------- */
.gallery { display: grid; gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); }
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* -------------------------------------------------------------------------
   15. Testimonials
   ------------------------------------------------------------------------- */
.quote-grid { display: grid; gap: var(--gutter); list-style: none;
  margin: var(--space-lg) 0 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote { background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); padding: var(--space-lg); }
.quote blockquote { margin: 0 0 var(--space-md); padding: 0; border: 0;
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-h4);
  line-height: 1.4; color: var(--ink); }
.quote__by { margin: 0; font: 600 var(--fs-small)/1 var(--font-body);
  color: var(--muted); }

.social-line { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs);
  align-items: center; }

/* -------------------------------------------------------------------------
   16. Pricing table
   ------------------------------------------------------------------------- */
.price-wrap { margin-top: var(--space-lg); }
.pricing-table { width: 100%; border-collapse: collapse;
  font-size: var(--fs-small); margin-bottom: var(--space-2xl); }
.pricing-table caption { text-align: left; margin-bottom: var(--space-sm);
  font: 600 var(--fs-overline)/1 var(--font-body); text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent); }
.pricing-table th, .pricing-table td {
  text-align: left; padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing-table thead th { font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-2); font-family: var(--font-body); }
.pricing-table tbody tr:hover { background: var(--surface); }
.pricing-table .price { font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h5); white-space: nowrap; color: var(--ink); }
.pricing-table td p { margin: 0; max-width: 52ch; }
.pricing-table .sess { font-weight: 600; }
.pricing-note { font-size: var(--fs-xs); color: var(--muted);
  margin-top: var(--space-sm); }

@media (max-width: 600px) {
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
    display: block; width: 100%; }
  .pricing-table thead { display: none; }
  .pricing-table tr { border: 1px solid var(--line); margin-bottom: var(--space-sm);
    padding: var(--space-sm); }
  .pricing-table td { border: 0; padding: 4px 0; }
  .pricing-table td::before { content: attr(data-label) ": ";
    font-weight: 700; color: var(--muted); }
  .pricing-table td.sess::before { content: ""; }
}

/* -------------------------------------------------------------------------
   17. Forms
   ------------------------------------------------------------------------- */
.form { max-width: 640px; display: grid; gap: var(--space-md); }
.form--wide { max-width: 820px; }
.field { display: grid; gap: var(--space-3xs); }
.field--row { grid-template-columns: 1fr 1fr; gap: var(--space-md); display: grid; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.field__label { font: 600 var(--fs-small)/1.3 var(--font-body); color: var(--ink); }
.field__req { color: var(--accent); }
.field__input {
  width: 100%; min-height: 48px;
  padding: var(--space-2xs) var(--space-sm);
  font: 400 var(--fs-body)/1.4 var(--font-body);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 1.25rem, calc(100% - 14px) 1.25rem;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: var(--space-2xl); }
.field__input::placeholder { color: var(--muted); }
.field__input:hover { border-color: var(--ink); }
.field__input:focus-visible { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg); }
.field__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

.field--error .field__input { border-color: var(--error); background: var(--error-tint); }
.field--error .field__hint  { color: var(--error); }
.field--success .field__input { border-color: var(--success); }

.field--hp { position: absolute; left: -9999px; }

.form-note { font-size: var(--fs-small); color: var(--muted);
  border-left: 3px solid var(--line-2); padding-left: var(--space-md);
  max-width: var(--measure); }

/* -------------------------------------------------------------------------
   18. Contact details list
   ------------------------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid;
  gap: var(--space-md); }
.contact-list li { margin: 0; max-width: none; }
.contact-list .label { display: block; font: 600 var(--fs-overline)/1 var(--font-body);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 2px; }
.contact-list .value { font-size: var(--fs-h5); }
.info-panel { background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); padding: var(--space-lg); }

/* -------------------------------------------------------------------------
   19. Blog strip
   ------------------------------------------------------------------------- */
.blog-row { display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }

/* -------------------------------------------------------------------------
   20. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--bg-inverse); color: var(--ink-inverse);
  padding: var(--section-y) var(--gutter) var(--space-lg); }
.footer__cols { max-width: var(--container); margin: 0 auto;
  display: grid; gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer__col p { margin: 0 0 var(--space-2xs); color: var(--ink-inverse);
  font-size: var(--fs-small); max-width: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--space-2xs); max-width: none; }
.footer__col a { color: var(--ink-inverse); text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(246,242,234,0.4); }
.footer__col a:hover { box-shadow: inset 0 -2px 0 var(--ink-inverse); color: var(--ink-inverse); }
.footer__col a:focus-visible { box-shadow: var(--focus-ring); }
.overline--inverse { color: var(--ink-inverse); opacity: 0.7; }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-top: var(--space-sm); }
.footer__base { max-width: var(--container); margin: var(--space-xl) auto 0;
  padding-top: var(--space-md); border-top: 1px solid var(--line-inverse);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm);
  font-size: var(--fs-xs); color: var(--ink-inverse); }
.footer__base p { margin: 0; max-width: none; }
.footer__base a { color: var(--ink-inverse); }

/* -------------------------------------------------------------------------
   21. Scroll-reveal (one effect, IntersectionObserver-driven)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   22. Reduced motion – disable transitions and the reveal entirely
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card__media img { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}

/* -------------------------------------------------------------------------
   23. Print
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .hero__actions, .btn, .footer__social, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .hero__img, .gallery { break-inside: avoid; }
}

/* -------------------------------------------------------------------------
   24. Small-screen spacing tweaks
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: var(--section-y-mobile) 0; }
  .container, .container--wide, .container--text { padding: 0 var(--gutter-mobile); }
  .divider { margin: var(--section-y-mobile) auto; }
  .site-header { gap: var(--space-md); }
  .page-head { padding: var(--space-xl) 0 var(--space-lg); }
}

/* -------------------------------------------------------------------------
   25. Explicit breakpoint map (360 / 480 / 768 / 1080 / 1280 / 1440)
   Mirrors design-system §8. Each step is a real layout change, not a tweak.
   ------------------------------------------------------------------------- */

/* 360px: smallest target. Single column everywhere, tightest type. */
@media (max-width: 380px) {
  .hero__panel { margin: var(--space-sm) var(--gutter-mobile); padding: var(--space-sm); }
  .hero__title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .trust { gap: var(--space-2xs) var(--space-md); padding: var(--space-sm) var(--gutter-mobile); }
  .trust li { font-size: var(--fs-xs); }
  .btn { padding: 0 var(--space-md); width: 100%; }
  .hero__actions .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .brand__sub { display: none; }
}

/* 480px: still single column, a two-up gallery, slightly looser. */
@media (min-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* 481px to 768px: two-up cards and category cards begin to breathe. */
@media (min-width: 481px) and (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr; }
  .pricing-table .price { font-size: var(--fs-h4); }
}

/* 769px to 1079px: desktop nav row returns; cards go 2-up; split stays split. */
@media (min-width: 769px) and (max-width: 1079px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { gap: var(--space-xl); }
}

/* 1080px: gallery widens, cards reach 2 to 3 up. */
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .split { gap: var(--space-3xl); }
  .hero__panel { padding: var(--space-xl); }
}

/* 1280px: design baseline. Full type scale, roomy section heads. */
@media (min-width: 1280px) {
  .section__head { max-width: 60ch; }
  .hero__panel { max-width: 660px; }
}

/* 1440px: wide container available for full-bleed galleries; the text column
   stays at 1200px so running line lengths never grow too long. */
@media (min-width: 1440px) {
  .container--wide { max-width: var(--container-wide); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* -------------------------------------------------------------------------
   26. Gallery rhythm: let the first tile span two columns on wide screens
   for a calmer, editorial layout (the work, not the chrome, leads).
   ------------------------------------------------------------------------- */
@media (min-width: 1080px) {
  .gallery--feature > :first-child { grid-column: span 2; grid-row: span 2; }
  .gallery--feature > :first-child img { aspect-ratio: 1 / 1; height: 100%; }
}

/* -------------------------------------------------------------------------
   27. Section head centring helper and lead spacing inside heads
   ------------------------------------------------------------------------- */
.section__head .lead { margin-top: var(--space-2xs); }
.section--ink .info-panel { background: rgba(246,242,234,0.06); border-color: var(--line-inverse); }
.section--ink .info-panel .overline { color: var(--blush); }

/* -------------------------------------------------------------------------
   28. Quiet link affordance inside body copy (keeps underlines for contrast
   without the heavy default decoration thickness on long-form prose)
   ------------------------------------------------------------------------- */
.container--text a:not(.btn) { text-decoration-thickness: 1px; }
.container--text a:not(.btn):hover { text-decoration-thickness: 2px; }

/* -------------------------------------------------------------------------
   29. Feature-list and contact-list spacing inside ink bands
   ------------------------------------------------------------------------- */
.section--ink a:not(.btn) { color: var(--ink-inverse); text-decoration-color: var(--blush); }
.section--ink a:not(.btn):hover { color: var(--blush); }

/* -------------------------------------------------------------------------
   30. Forms: stack action buttons full-width on the narrowest screens
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .form .btn--block { width: 100%; }
  .field--row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   31. Honour reduced motion for the header condense + menu slide too
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .nav__menu { transition: none; }
  .skip-link { transition: none; }
}
