/* Homepage editorial hero + principles, inspired by the composition/rhythm of dayne.design.
   Purposefully re-authored for Michael Hawkins positioning and existing portfolio system. */

body[data-page="home"] {
  --home-accent: var(--redline);
  --home-accent-soft: var(--redline-wash);
  --home-ink: var(--ink);
  --home-muted: var(--ink-2);
  --home-surface: var(--paper-2);
  --home-surface-strong: var(--paper);
}

body[data-page="home"] .home-editorial-hero {
  position: relative;
  min-height: clamp(650px, calc(100svh - 72px), 850px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4.6rem, 9vw, 8.2rem) 0 clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 78% 24%, rgba(11,107,88,.13), transparent 25%),
    radial-gradient(circle at 62% 12%, rgba(11,107,88,.07), transparent 30%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 62%, #fff 100%);
  border-bottom: 1px solid var(--rule);
}

body[data-page="home"] .home-editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background-image: radial-gradient(circle, rgba(15,23,20,.14) 1.1px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.88) 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.88) 58%, transparent 100%);
}

body[data-page="home"] .home-editorial-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247,249,248,.94) 0%, rgba(247,249,248,.72) 42%, rgba(247,249,248,.18) 72%, rgba(247,249,248,.40) 100%);
  pointer-events: none;
}


body[data-page="home"] .home-editorial-hero__inner {
  position: relative;
  width: 100%;
}

body[data-page="home"] .home-editorial-hero__kicker,
body[data-page="home"] .home-principles__eyebrow {
  margin: 0 0 clamp(1.6rem, 3vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: clamp(.68rem, .63rem + .18vw, .78rem);
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--home-accent);
}

body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title {
  display: block;
  max-width: 16ch;
  margin: 0;
  font-family: "Playfair Display", "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(5rem, 6.7vw, 8rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.055em;
  color: var(--home-ink);
}

body[data-page="home"] .home-editorial-hero__fixed {
  display: block;
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-editorial-hero__rotator {
  display: block;
  position: relative;
  width: 100%;
  height: 1em;
  min-height: 1em;
  margin-top: .02em;
  color: var(--home-accent);
  font-style: italic;
  white-space: nowrap;
}


body[data-page="home"] .home-editorial-hero__phrase {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  transform: translate3d(0, .18em, 0);
  filter: blur(3px);
  transition: opacity 460ms cubic-bezier(.16,1,.3,1), transform 620ms cubic-bezier(.16,1,.3,1), filter 460ms ease;
  pointer-events: none;
}

body[data-page="home"] .home-editorial-hero__phrase.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  pointer-events: auto;
}

body[data-page="home"] .home-editorial-hero__phrase.is-leaving {
  opacity: 0;
  transform: translate3d(0, -.13em, 0);
  filter: blur(2px);
}

body[data-page="home"] .home-editorial-hero__lede {
  max-width: 62ch;
  margin: clamp(2rem, 3.5vw, 2.9rem) 0 0;
  color: var(--home-muted);
  font-size: clamp(1.05rem, .98rem + .34vw, 1.34rem);
  line-height: 1.6;
  letter-spacing: -.01em;
}

body[data-page="home"] .home-editorial-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: clamp(2rem, 4vw, 3.1rem);
}

body[data-page="home"] .home-editorial-hero__actions .btn {
  min-height: 54px;
  padding: 0 1.8rem;
  border-radius: 999px;
  border-color: var(--surface-border-strong);
  background: rgba(247,249,248,.88);
  color: var(--home-ink);
  box-shadow: var(--surface-shadow-soft);
}

body[data-page="home"] .home-editorial-hero__actions .home-editorial-hero__primary {
  border-color: var(--home-accent);
  background: var(--home-accent);
  color: #fff;
}

body[data-page="home"] .home-editorial-hero__actions .btn:hover,
body[data-page="home"] .home-editorial-hero__actions .btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--home-accent);
  background: #fff;
  color: var(--home-accent);
}

body[data-page="home"] .home-editorial-hero__actions .home-editorial-hero__primary:hover,
body[data-page="home"] .home-editorial-hero__actions .home-editorial-hero__primary:focus-visible {
  background: #075746;
  border-color: #075746;
  color: #fff;
}

body[data-page="home"] .home-editorial-hero__contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: .4rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--home-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}

body[data-page="home"] .home-editorial-hero__contact:hover,
body[data-page="home"] .home-editorial-hero__contact:focus-visible {
  color: var(--home-accent);
  border-color: var(--home-accent);
}

body[data-page="home"] .home-editorial-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.65rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  color: var(--home-muted);
  font-family: var(--font-mono);
  font-size: clamp(.68rem, .64rem + .08vw, .75rem);
  letter-spacing: .025em;
}

body[data-page="home"] .home-editorial-hero__proof span {
  display: inline-flex;
  gap: .45rem;
  align-items: baseline;
}

body[data-page="home"] .home-editorial-hero__proof strong {
  color: var(--home-ink);
  font-size: 1.05rem;
  font-weight: 650;
}

body[data-page="home"] .home-principles {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

body[data-page="home"] .home-principles__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.8fr);
  gap: clamp(3.5rem, 7vw, 8rem);
  align-items: center;
}

body[data-page="home"] .home-principles__intro {
  align-self: start;
  padding-top: .4rem;
}

body[data-page="home"] .home-principles__intro h2 {
  margin: 0;
  font-family: "Playfair Display", "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(3rem, 4.5vw, 5.25rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  color: var(--home-ink);
}

body[data-page="home"] .home-principles__intro p {
  max-width: 34ch;
  margin: 1.4rem 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, .96rem + .18vw, 1.12rem);
  line-height: 1.62;
}

body[data-page="home"] .home-principles__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 2rem);
}

body[data-page="home"] .home-principle {
  min-height: 300px;
  padding: clamp(2rem, 3vw, 2.8rem) clamp(1.55rem, 2.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  background: rgba(247,249,248,.92);
  box-shadow: var(--surface-shadow-soft);
  transition: transform 260ms cubic-bezier(.16,1,.3,1), border-color 260ms ease, box-shadow 260ms ease;
}

body[data-page="home"] .home-principle:hover {
  transform: translateY(-4px);
  border-color: rgba(11,107,88,.42);
  box-shadow: 0 18px 44px rgba(15,23,20,.08);
}

body[data-page="home"] .home-principle__num {
  display: block;
  margin-bottom: 1.65rem;
  font-family: var(--font-mono);
  color: var(--home-accent);
  font-size: .72rem;
  letter-spacing: .1em;
}

body[data-page="home"] .home-principle h3 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.45rem, 1.4rem + .35vw, 1.85rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--home-ink);
}

body[data-page="home"] .home-principle p {
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(.98rem, .95rem + .12vw, 1.07rem);
  line-height: 1.62;
}

@media (max-width: 1100px) {
  body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title { font-size: clamp(4.5rem, 7.6vw, 5.75rem); }
  body[data-page="home"] .home-principles__grid { grid-template-columns: 1fr; gap: 3rem; }
  body[data-page="home"] .home-principles__intro p { max-width: 48ch; }
}

@media (max-width: 820px) {
  body[data-page="home"] .home-editorial-hero {
    min-height: auto;
    padding: 4.25rem 0 4.75rem;
  }
  body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title { max-width: 100%; font-size: clamp(4rem, 9vw, 5.1rem); }
  body[data-page="home"] .home-editorial-hero__rotator { white-space: nowrap; min-height: 1em; }
  body[data-page="home"] .home-editorial-hero__phrase { width: 100%; }
  body[data-page="home"] .home-principles__cards { grid-template-columns: 1fr; }
  body[data-page="home"] .home-principle { min-height: 0; }
}

@media (max-width: 540px) {
  body[data-page="home"] .home-editorial-hero {
    padding: 3.4rem 0 3.8rem;
    background:
      radial-gradient(circle at 86% 16%, rgba(11,107,88,.12), transparent 35%),
      radial-gradient(circle at 72% 34%, rgba(11,107,88,.07), transparent 34%),
      linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 68%, #fff 100%);
  }
  body[data-page="home"] .home-editorial-hero::before { background-size: 20px 20px; opacity: .25; }
  body[data-page="home"] .home-editorial-hero__kicker { max-width: 30ch; margin-bottom: 1.35rem; line-height: 1.55; }
  body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title { max-width: 100%; font-size: clamp(3.05rem, 14.2vw, 4.6rem); line-height: .92; }
  body[data-page="home"] .home-editorial-hero__rotator { white-space: normal; height: 2.05em; min-height: 2.05em; }
  body[data-page="home"] .home-editorial-hero__lede { margin-top: 1.45rem; font-size: 1rem; line-height: 1.55; }
  body[data-page="home"] .home-editorial-hero__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: .7rem; margin-top: 1.8rem; }
  body[data-page="home"] .home-editorial-hero__actions .home-editorial-hero__primary { grid-column: 1 / -1; }
  body[data-page="home"] .home-editorial-hero__actions .btn { width: 100%; justify-content: center; padding: 0 1rem; min-height: 52px; }
  body[data-page="home"] .home-editorial-hero__contact { justify-content: center; margin-left: 0; min-height: 52px; border: 1px solid var(--surface-border-strong); border-radius: 999px; }
  body[data-page="home"] .home-editorial-hero__proof { display: grid; grid-template-columns: 1fr; gap: .55rem; margin-top: 1.8rem; }
  body[data-page="home"] .home-principles { padding: 4.5rem 0; }
  body[data-page="home"] .home-principles__grid { gap: 2.3rem; }
  body[data-page="home"] .home-principles__intro h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  body[data-page="home"] .home-principle { padding: 1.7rem; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-editorial-hero__phrase { transition: none; }
  body[data-page="home"] .home-editorial-hero__phrase:not(.is-active) { display: none; }
  body[data-page="home"] .home-principle { transition: none; }
}


/* v599-home-mobile-rotator-hardening */
@media (max-width: 540px) {
  body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title {
    font-size: clamp(3rem, 13.2vw, 4.6rem);
  }
  body[data-page="home"] .home-editorial-hero__rotator {
    height: 3.05em;
    min-height: 3.05em;
    overflow: visible;
  }
  body[data-page="home"] .home-editorial-hero__phrase {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}


/* v599-home-title-width-v2 */
body[data-page="home"] .hero.home-editorial-hero h1.home-editorial-hero__title {
  max-width: 17ch;
}
@media (max-width: 540px) {
  body[data-page="home"] .home-editorial-hero__rotator {
    height: 3.15em;
    min-height: 3.15em;
  }
}
