@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --plum: #513542;
  --plum-deep: #3d2731;
  --blush: #f7e6eb;
  --cream: #fff9fa;
  --pink: #f1bbca;
  --pink-hover: #f6cdd8;
  --rose: #93506b;
  --on-plum: #fff9fa;
  --on-plum-soft: #e9d3db;
  --muted: #7a5a67;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--rose) var(--blush); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: var(--plum-deep); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--pink); }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--plum); color: var(--on-plum); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Display: serif with an italic accent line */
.display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.display em { font-style: italic; color: var(--rose); }
.on-dark .display em { color: var(--pink); }
.h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); max-width: 13ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  font: 600 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-text { background: var(--plum); color: var(--on-plum); }
.btn-text:hover { background: var(--plum-deep); }
.btn-call { color: var(--plum); border-color: rgba(81, 53, 66, .35); }
.btn-call:hover { border-color: var(--plum); }
.on-dark .btn-text { background: var(--pink); color: var(--plum-deep); }
.on-dark .btn-text:hover { background: var(--pink-hover); }
.on-dark .btn-call { color: var(--on-plum); border-color: rgba(255, 249, 250, .4); }
.on-dark .btn-call:hover { border-color: var(--on-plum); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--blush);
}
.logo img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.lang { font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.site-nav .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.site-nav .btn:hover { text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 46fr 54fr;
  min-height: min(calc(100svh - 128px), 880px);
  background: var(--blush);
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 48px var(--gutter) clamp(140px, 15vw, 240px); }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.5rem); max-width: 11ch; }
.hero h1 em { display: block; }
.hero-lede { max-width: 36ch; margin: 24px 0 0; font-size: 1.1875rem; color: var(--muted); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-name {
  position: absolute; z-index: 3; right: 0; width: 100vw; bottom: -.1em;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(5.5rem, 17vw, 17rem); line-height: .8; letter-spacing: .01em;
  text-align: center; color: var(--cream);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* About: arched portrait, first-person bio, signature */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(96px, 12vw, 170px) var(--gutter) clamp(80px, 10vw, 150px); }
.about-photo { margin: 0; position: relative; max-width: 500px; justify-self: center; width: 100%; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 999px 999px 0 0; }
.about-copy .h2 { margin-bottom: 28px; }
.about-copy p { max-width: 58ch; margin: 0 0 1em; color: var(--muted); }
.signature { margin-top: 28px; color: var(--muted); }
.signature strong { display: block; font: italic 400 2rem/1.1 var(--serif); color: var(--rose); margin-top: 4px; }

/* Spread: full-bleed training photo on plum */
.spread { display: grid; grid-template-columns: 7fr 5fr; background: var(--plum); color: var(--on-plum); }
.spread-photo { margin: 0; min-height: min(92svh, 880px); position: relative; overflow: hidden; }
.spread-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.spread-copy { padding: clamp(64px, 9vw, 140px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.spread-copy .h2 { margin-bottom: 28px; }
.spread-copy p { max-width: 42ch; margin: 0 0 1em; font-size: 1.1875rem; line-height: 1.6; color: var(--on-plum-soft); }

/* Flush photo captions: data only */
figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 10px 16px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  background: var(--cream); color: var(--plum);
}

/* Close */
.close { display: grid; grid-template-columns: 7fr 4fr; background: var(--pink); }
.close-copy { padding: clamp(72px, 10vw, 150px) var(--gutter); align-self: center; }
.close .h2 { font-size: clamp(2.75rem, 5.4vw, 5rem); max-width: 11ch; }
.close .display em { color: var(--plum-deep); }
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 46ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(81, 53, 66, .2); }
.steps li::before { content: counter(step); font: 400 1.75rem/1 var(--serif); color: var(--plum-deep); }
.close-photo { margin: 0; position: relative; min-height: 560px; overflow: hidden; }
.close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Footer */
.site-footer {
  background: var(--plum-deep); color: var(--on-plum-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 36px var(--gutter) 40px; font-size: .9375rem;
}
.site-footer .logo img { width: 128px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-plum); }

.action-bar { display: none; }

/* Motion: content is visible by default; JS opts in. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: unveil 1.2s var(--ease) both; }
  .hero-name { animation: rise 1.4s var(--ease) .15s both; }
  .motion-ready .wipe img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
  .motion-ready .wipe.is-in img { clip-path: inset(0 0 0 0); }
}
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tablet */
@media (max-width: 1024px) {
  .site-nav .nav-link { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .spread, .close { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .site-header { padding: 10px 16px; }
  .logo img { width: 104px; }
  .site-nav { gap: 20px; }
  .site-nav .btn { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 5; max-height: 80svh; width: 100%; }
  .hero-name { width: 100%; font-size: 23vw; bottom: -.1em; }
  .hero-copy { padding: 48px var(--gutter) 56px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.25rem); }
  .about { grid-template-columns: 1fr; padding-top: 72px; }
  .about-photo { max-width: 340px; }
  .spread, .close { grid-template-columns: 1fr; }
  .spread-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .close-photo { min-height: 0; aspect-ratio: 1 / 1; order: -1; }
  .actions .btn { flex: 1 1 100%; }
  .action-bar {
    display: flex; gap: 8px; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--plum);
  }
  .action-bar .btn { flex: 1; min-height: 52px; padding: 0 12px; }
  .action-bar .btn-text { background: var(--pink); color: var(--plum-deep); }
  .action-bar .btn-call { flex: 0 0 auto; color: var(--on-plum); border-color: rgba(255, 249, 250, .4); }
}
