/* ==========================================================================
   June Aubrey — editorial stylesheet
   ========================================================================== */

:root {
  /* Palette: warm paper, deep ink, a single bronze accent */
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --ink: #1d1b19;
  --ink-soft: #4a4540;
  --muted: #847a6f;
  --rule: rgba(29, 27, 25, 0.14);
  --accent: #8a6a45;
  --deep: #1f2523;
  --deep-2: #2a312e;
  --on-deep: #ece6da;
  --on-deep-muted: #a59d90;
  --rule-deep: rgba(236, 230, 218, 0.16);
  --accent-on-deep: #c4a57c;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(96px, 14vw, 200px);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 980px; }
.section { padding: var(--section) 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow-light { color: var(--on-deep-muted); }

.section-title,
.band-title,
.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.section-title em,
.band-title em,
.contact-title em,
.hero-title em,
.statement-text em,
.pull-quote em { color: var(--accent); font-weight: 300; }

.body-lg { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-soft); max-width: 34em; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Links & buttons ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.04em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), gap .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { gap: 20px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: transparent; color: var(--on-deep); border-color: var(--on-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 28px 0;
}
.site-header.is-scrolled {
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--rule);
  padding: 16px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-list { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-list a { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); transition: color .3s; }
.nav-list a:hover { color: var(--ink); }
.nav-cta a { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ----------
   Full-bleed photograph. The softly blurred left half carries the copy;
   June stays in focus on the right. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 150px 0 40px;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
}
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 30%;
  animation: hero-settle 2.4s var(--ease) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 26, 28, 0.78) 0%, rgba(22, 26, 28, 0.5) 38%, rgba(22, 26, 28, 0) 62%),
    linear-gradient(0deg, rgba(22, 26, 28, 0.55) 0%, rgba(22, 26, 28, 0) 32%),
    linear-gradient(180deg, rgba(22, 26, 28, 0.35) 0%, rgba(22, 26, 28, 0) 18%);
}
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
.hero-grid { position: relative; }
.hero-copy { max-width: min(620px, 44vw); }
.hero .eyebrow { color: rgba(236, 230, 218, 0.72); }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.hero-title .line { display: block; }
.hero-title em { color: var(--accent-on-deep); }
.hero-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: rgba(236, 230, 218, 0.82);
  max-width: 26em;
  margin-bottom: 44px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.hero .link-arrow:hover { color: var(--accent-on-deep); }
.btn-hero { background: var(--on-deep); color: var(--deep); }
.btn-hero:hover { background: var(--accent-on-deep); color: var(--deep); }
.hero-foot {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  margin-top: clamp(56px, 8vw, 96px);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(236, 230, 218, 0.66);
}
.hero-foot-rule { flex: 1; height: 1px; background: rgba(236, 230, 218, 0.2); }

/* Header sits on the photograph until the page scrolls */
.site-header:not(.is-scrolled) .wordmark,
.site-header:not(.is-scrolled) .nav-list a { color: var(--on-deep); }
.site-header:not(.is-scrolled) .nav-list a:hover { color: var(--accent-on-deep); }

/* ---------- Photography ---------- */
.photo { position: relative; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.photo-portrait { aspect-ratio: 4 / 5.2; }
.photo-tall { aspect-ratio: 3 / 4; }
.photo-landscape { aspect-ratio: 3 / 2; }
.caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 14px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Statement ---------- */
.statement { padding: var(--section) 0 calc(var(--section) * 0.6); border-top: 1px solid var(--rule); }
.statement-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.statement-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  color: var(--ink-soft);
  margin-left: auto; max-width: 760px;
}

/* ---------- Approach ---------- */
.section-head { margin-bottom: clamp(56px, 8vw, 110px); }
.section-head-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.arrow { color: var(--accent); font-weight: 300; padding: 0 0.12em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.step { padding: 40px clamp(20px, 3vw, 48px) 0 0; }
.step + .step { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--rule); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.step-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1;
  margin: 18px 0 20px;
}
.step p { color: var(--ink-soft); }

/* ---------- Expertise ---------- */
.expertise { background: var(--paper-2); }
.expertise-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 140px); }
.expertise-intro { position: sticky; top: 140px; align-self: start; }
.expertise-intro .section-title { margin-bottom: 36px; font-size: clamp(40px, 4.4vw, 64px); }
.figure-stat {
  display: flex; align-items: flex-start; gap: 22px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule);
}
.stat-num { font-family: var(--serif); font-weight: 300; font-size: 88px; line-height: 0.8; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted); max-width: 16em; line-height: 1.55; }
.index-list { border-top: 1px solid var(--rule); }
.index-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 40px 0; border-bottom: 1px solid var(--rule);
}
.index-num { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); padding-top: 12px; }
.index-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1;
  margin-bottom: 14px;
  transition: color .4s var(--ease);
}
.index-item p { color: var(--ink-soft); max-width: 34em; }
.index-item:hover .index-title { color: var(--accent); }

/* ---------- Dark bands ---------- */
.band-dark { background: var(--deep); color: var(--on-deep); }
.band-dark em { color: var(--accent-on-deep); }
.band { position: relative; padding: var(--section) 0; overflow: hidden; }
.band-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none; }
.band-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 8vw, 140px); }
.band-grid .eyebrow { grid-column: 1 / -1; }
.band-title { font-size: clamp(46px, 6.4vw, 96px); }
.band-copy { display: grid; gap: 24px; color: var(--on-deep-muted); align-self: end; font-size: 18px; }
.band-copy p:last-child { color: var(--on-deep); }

/* ---------- Work ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.offer {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(0px, 3vw, 56px) clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.offer:nth-child(even) { padding-left: clamp(24px, 3vw, 56px); padding-right: 0; border-left: 1px solid var(--rule); }
.offer-meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.offer-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; margin-bottom: 20px; }
.offer p { color: var(--ink-soft); max-width: 30em; }
.offer .offer-format {
  margin-top: auto; padding-top: 28px;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent);
}

/* ---------- Quote ---------- */
.quote-section { padding: 0 0 var(--section); }
.quote-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.pull-quote p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 3.8vw, 56px); line-height: 1.12; letter-spacing: -0.01em;
}
.pull-quote::before {
  content: ""; display: block; width: 48px; height: 1px; background: var(--accent); margin-bottom: 36px;
}

/* ---------- Audience ---------- */
.audience { border-top: 1px solid var(--rule); }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); }
.audience-copy { display: grid; gap: 40px; align-content: start; padding-top: 52px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  font-size: 13px; letter-spacing: 0.04em;
  padding: 9px 18px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 9vw, 150px); align-items: start; }
.about-copy { padding-top: clamp(0px, 6vw, 100px); }
.about-copy .section-title { margin-bottom: 48px; }
.prose { display: grid; gap: 22px; color: var(--ink-soft); max-width: 34em; }
.prose p:last-child { color: var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.signature {
  margin-top: 48px;
  font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--accent);
}

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); }
.contact-title { margin-bottom: 36px; }
.contact-intro > p { color: var(--on-deep-muted); max-width: 30em; }
.contact-details { margin-top: 48px; display: grid; gap: 20px; }
.contact-details div { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid var(--rule-deep); padding-top: 16px; }
.contact-details dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-deep-muted); padding-top: 4px; }
.contact-details a { border-bottom: 1px solid var(--rule-deep); transition: border-color .3s; }
.contact-details a:hover { border-color: var(--on-deep); }

.contact-form { display: grid; gap: 30px; align-content: start; padding-top: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-deep-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-deep);
  padding: 10px 0 12px;
  color: var(--on-deep);
  font-size: 17px; font-weight: 300;
  border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--on-deep-muted) 50%), linear-gradient(135deg, var(--on-deep-muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--on-deep); }
.field.has-error input, .field.has-error textarea { border-color: #c98f7a; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; }
.form-foot .fine { color: var(--on-deep-muted); max-width: 22em; }
.form-foot .fine a { border-bottom: 1px solid var(--rule-deep); }
.form-status { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-deep); min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid var(--rule-deep); padding: 56px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.wordmark-footer { color: var(--on-deep); margin-bottom: 6px; }
.footer-line { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a:hover { color: var(--on-deep); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(1) { transition-delay: .3s; }
.js .hero .reveal:nth-child(2) { transition-delay: .4s; }
.js .hero .reveal:nth-child(3) { transition-delay: .55s; }
.js .hero .reveal:nth-child(4) { transition-delay: .7s; }

/* ---------- Legal pages ---------- */
.legal { padding: 180px 0 var(--section); }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 72px); line-height: 1.05; margin-bottom: 56px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 40em; }
.legal p + p { margin-top: 14px; }
.legal .placeholder { background: var(--paper-2); padding: 2px 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 821px) {
  .hero-copy { max-width: 52vw; }
  .hero-media img { object-position: 30% 30%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(22, 26, 28, 0.85) 0%, rgba(22, 26, 28, 0.6) 48%, rgba(22, 26, 28, 0.1) 72%),
      linear-gradient(0deg, rgba(22, 26, 28, 0.55) 0%, rgba(22, 26, 28, 0) 32%);
  }
}

@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-intro { position: static; }
  .band-grid, .audience-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .audience-copy { padding-top: 0; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .band-pattern { opacity: 0.45; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; padding: 10px;
    position: relative; z-index: 2;
  }
  .nav-toggle-line { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav-list {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 22px; padding: 0 var(--gutter);
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; }
  .nav-list a { font-family: var(--serif); font-size: 38px; letter-spacing: 0; color: var(--ink); }
  .nav-cta { margin-top: 24px; }
  .nav-cta a { font-family: var(--sans); font-size: 15px; }

  /* Phone: photograph on top, cropped to June; copy below on paper */
  .hero { min-height: 0; padding: 0 0 48px; background: var(--paper); color: var(--ink); }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; margin-bottom: 44px; }
  .hero-media img { object-position: 70% 25%; }
  .hero-copy { max-width: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(22, 26, 28, 0.45) 0%, rgba(22, 26, 28, 0) 22%); }
  .hero .eyebrow { color: var(--muted); }
  .hero-title em { color: var(--accent); }
  .hero-lede { color: var(--ink-soft); }
  .hero .link-arrow:hover { color: var(--accent); }
  .btn-hero { background: var(--ink); color: var(--paper); }
  .btn-hero:hover { background: var(--accent); color: var(--paper); }
  .hero-foot { flex-wrap: wrap; gap: 12px 24px; margin-top: 56px; color: var(--muted); }
  .hero-foot-rule { display: none; }
  .site-header:not(.is-scrolled) .nav-toggle-line { background: var(--on-deep); }
  .site-header:not(.is-scrolled) .nav-toggle[aria-expanded="true"] .nav-toggle-line { background: var(--ink); }
  .site-header:not(.is-scrolled) .nav-list a { color: var(--ink); }

  .statement-body { grid-template-columns: 1fr; }
  .section-head-split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 36px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer:nth-child(even) { padding: 40px 0; border-left: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
  .index-item { grid-template-columns: 44px 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: space-between; }
  .caption { flex-direction: column; gap: 4px; }
  .stat-num { font-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
