@import url("fonts.css");

:root {
  --paper: #f3eee6;
  --paper-2: #e8e1d4;
  --ink: #16130f;
  --ink-soft: #3c352d;
  --muted: #5c534a;
  --brass: #8a6a3b;
  --brass-deep: #6e5228;
  --line: rgba(22, 19, 15, 0.14);
  --cream: #f7f3ec;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header: 6.6rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--cream);
  padding: .6rem 1rem;
  z-index: 40;
  text-decoration: none;
}

.skip:focus { transform: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }

p { margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  width: min(1200px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand langs"
    "nav nav";
  align-items: center;
  gap: .2rem 1rem;
  padding: .7rem 0 .55rem;
}
.brand { grid-area: brand; }
.langs { grid-area: langs; justify-self: end; }
.nav { grid-area: nav; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .04em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: .2rem;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.05rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .15rem;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: none;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .35rem 0;
}

.nav a:hover { color: var(--ink); }

.langs {
  display: flex;
  align-items: center;
  justify-self: end;
}

.langs a {
  min-width: 2.6rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
}

.langs a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}

.langs a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(38rem, calc(100svh - var(--header)));
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 11, 8, .55) 0%, rgba(14, 11, 8, .12) 58%, rgba(14, 11, 8, .05) 100%),
    linear-gradient(180deg, rgba(14, 11, 8, .18) 0%, rgba(14, 11, 8, .05) 30%, rgba(14, 11, 8, .78) 100%);
}

.hero-copy {
  width: var(--wrap);
  margin: 0 auto 2.4rem;
  padding-top: 4rem;
}

.hero .eyebrow { color: #e4d3b4; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 7.4rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero-role {
  margin-top: 1rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .82);
}

.hero-promise {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  margin-top: 1.7rem;
}
.hero-actions .btn { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .8rem 1.2rem;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--cream);
  color: var(--ink);
}

.btn-solid:hover { background: #fff; }

.btn-line {
  border-color: rgba(247, 243, 236, .7);
  color: var(--cream);
  background: transparent;
}

.btn-line:hover { background: rgba(247, 243, 236, .1); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover { background: #2a241c; }

.btn-brass {
  background: transparent;
  color: var(--cream);
  border-color: #d7c09a;
}

.btn-brass:hover { background: rgba(215, 192, 154, .12); }

.hero-meta {
  margin-top: 1.15rem;
  font-size: .86rem;
  color: rgba(247, 243, 236, .78);
}

.hero-credit {
  margin: 1.5rem 0 0;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .7);
}
section[id] { scroll-margin-top: calc(var(--header) + .4rem); }
.contact-card strong { overflow-wrap: break-word; }
.contact-card.is-email strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0;
}

/* Sections */
.section { padding: 4.5rem 0; }

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: .95;
  max-width: 14ch;
}

.lead {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services { border-top: 1px solid var(--line); }

.service-grid {
  display: grid;
  gap: 0;
  margin-top: 2.6rem;
}

.service {
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.service-no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: .7rem;
}

.service h3 {
  margin: 0 0 .6rem;
  font-size: 2rem;
  line-height: 1;
}

.service p { color: var(--ink-soft); max-width: 36rem; }

/* Portfolio */
.portfolio {
  display: grid;
  background: var(--paper-2);
}

.portfolio-media {
  min-height: 18rem;
  position: relative;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
  max-height: 32rem;
}

.portfolio-copy {
  padding: 3rem 1.25rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-copy .wrap-inner { width: min(34rem, 100%); }

.portfolio h2 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: .95;
}

.portfolio .lead { margin-bottom: 1.6rem; }

.note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
}

/* About */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  gap: 2.2rem;
}

.about-prose p + p { margin-top: 1rem; }

.about-prose p { color: var(--ink-soft); max-width: 38rem; }

.facts { margin: 0; display: grid; gap: 0; }

.facts div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: .3rem;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
}

.facts a { text-decoration: none; border-bottom: 1px solid rgba(138, 106, 59, .45); }

.facts a:hover { border-bottom-color: var(--ink); }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--cream);
}

.contact .eyebrow { color: #d7c09a; }

.contact h2 { max-width: 12ch; }

.contact .lead { color: rgba(247, 243, 236, .78); }

.contact-grid {
  display: grid;
  gap: .75rem;
  margin-top: 2.2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  text-decoration: none;
  border: 1px solid rgba(247, 243, 236, .16);
  min-height: 7.2rem;
  justify-content: flex-end;
}

.contact-card:hover { border-color: #d7c09a; }

.contact-card span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d7c09a;
}

.contact-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: #100e0c;
  color: rgba(247, 243, 236, .72);
  padding: 2.4rem 0 2.6rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: .45rem;
}

.site-footer a { color: var(--cream); }

.fine {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 243, 236, .12);
  font-size: .82rem;
  color: rgba(247, 243, 236, .58);
}

.fine p + p { margin-top: .7rem; }

.fine a { color: rgba(247, 243, 236, .8); }

/* Gate */
.gate {
  min-height: 100svh;
  background: #100e0c;
  color: var(--cream);
  display: grid;
  align-items: end;
}

.gate-media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.gate-shade {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, .35), rgba(12, 10, 8, .2) 30%, rgba(12, 10, 8, .82)),
    linear-gradient(90deg, rgba(12, 10, 8, .55), rgba(12, 10, 8, .1));
}

.gate-panel {
  position: relative;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 12vh 0 8vh;
}

.gate .eyebrow { color: #e4d3b4; }

.gate h1 {
  margin: 0;
  font-size: clamp(4rem, 14vw, 8.2rem);
  line-height: .86;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.gate-role {
  margin-top: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(247, 243, 236, .78);
}

.gate-hints {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  font-size: .95rem;
  color: rgba(247, 243, 236, .8);
}

.gate-langs {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 28rem;
}

.gate-langs a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  border-top: 1px solid rgba(247, 243, 236, .28);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
}

.gate-langs li:last-child a { border-bottom: 1px solid rgba(247, 243, 236, .28); }

.gate-langs small {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e4d3b4;
}

.gate-langs a:hover small,
.gate-langs a:hover { color: #fff; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .service { padding-right: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .portfolio-copy { padding: 3.5rem 3rem; }
}

@media (min-width: 880px) {
  :root { --header: 4.6rem; }

  .header-inner {
    display: flex;
    height: var(--header);
    padding: 0;
    width: min(1200px, calc(100% - 4rem));
  }
  .brand { order: 1; }
  .nav {
    order: 2;
    margin-left: auto;
    margin-right: 1.1rem;
    overflow: visible;
    padding: 0;
    gap: 1.4rem;
  }
  .langs { order: 3; }

  .portfolio { grid-template-columns: 1.15fr .85fr; min-height: 42rem; }
  .portfolio-media img { max-height: none; height: 100%; min-height: 42rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .btn { width: auto; }
  .hero-copy { margin-bottom: 4rem; }
  .section { padding: 6.2rem 0; }
}

/* Portfolio button: wider, centred */
.btn-portfolio {
  display: flex;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  min-height: 3.75rem;
  padding: 1rem 1.5rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-align: center;
}
.portfolio .note { text-align: center; }

/* Miller section */
.miller { border-top: 1px solid var(--line); background: var(--cream); }

.miller-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.miller-media { display: flex; justify-content: center; }

/* Inline Miller video (9:16) */
.mvideo {
  position: relative;
  width: min(100%, calc(80vh * 9 / 16));
  width: min(100%, calc(80svh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #100e0c;
  box-shadow: 0 30px 60px -30px rgba(22, 19, 15, .55);
  isolation: isolate;
}

.mvideo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(138, 106, 59, .45);
  pointer-events: none;
  z-index: 3;
}

.mvideo-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #100e0c;
  cursor: pointer;
}

.mvideo-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0) 55%, rgba(16, 14, 12, .45) 100%);
  transition: opacity .25s ease, visibility .25s ease;
}

.mvideo-play-icon {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 14, 12, .5);
  box-shadow: 0 0 0 1px rgba(215, 192, 154, .85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .25s ease, transform .25s ease;
}

.mvideo-play-icon svg { width: 1.6rem; height: 1.6rem; fill: var(--cream); margin-left: .2rem; }

.mvideo-play:hover .mvideo-play-icon { background: rgba(138, 106, 59, .9); transform: scale(1.05); }

.mvideo.is-playing .mvideo-play { opacity: 0; visibility: hidden; pointer-events: none; }

.mvideo-ctrl {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 14, 12, .62);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .2s ease;
}

.mvideo-ctrl svg { width: 1rem; height: 1rem; fill: currentColor; }
.mvideo-ctrl .i-pause { display: none; }
.mvideo.is-playing .mvideo-ctrl .i-play { display: none; }
.mvideo.is-playing .mvideo-ctrl .i-pause { display: block; }
.mvideo-ctrl:hover, .mvideo-ctrl:focus-visible { background: var(--brass); }
.mvideo-ctrl:focus-visible { outline: 2px solid #d7c09a; outline-offset: 2px; }

.miller-copy h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: .9;
}

.miller-story {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34rem;
}

.miller-story + .miller-story { margin-top: 1rem; }

.miller-story.is-placeholder-unused {
  font-style: italic;
  color: var(--muted);
  padding: 1.2rem 1.4rem;
  border: 1px dashed rgba(138, 106, 59, .55);
}

.miller-sign {
  margin-top: 1.6rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* Social icons: solid glyphs, no ring. Size is set here for every
   breakpoint; the SVGs also carry width/height attributes so they can
   never render at full container width if this stylesheet is stale. */
.socials { --soc-hit: 3.125rem; --soc-glyph: 1.5625rem; max-width: 100%; }

.socials ul {
  list-style: none;
  margin: 0 0 0 calc((var(--soc-hit) - var(--soc-glyph)) / -2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.socials li { flex: none; }

.socials a {
  width: var(--soc-hit);
  height: var(--soc-hit);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.socials svg {
  display: block;
  width: var(--soc-glyph);
  height: var(--soc-glyph);
  flex: none;
  fill: currentColor;
}

.socials a:hover,
.socials a:focus-visible { color: var(--brass); transform: translateY(-1px); }

/* Light glyphs on the dark contact section and footer */
.contact .socials a,
.site-footer .socials a { color: var(--cream); }

.contact .socials a:hover,
.contact .socials a:focus-visible,
.site-footer .socials a:hover,
.site-footer .socials a:focus-visible { color: #d7c09a; }

.contact-social {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(247, 243, 236, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.6rem;
}

.contact-social-title {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d7c09a;
}

.footer-social { margin-top: 1.8rem; }

.footer-personal { margin-top: .45rem; }
.footer-personal a { color: #d7c09a; text-decoration: none; border-bottom: 1px solid rgba(215, 192, 154, .4); }

@media (min-width: 720px) {
  .miller-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .mvideo { width: min(100%, calc(70vh * 9 / 16)); width: min(100%, calc(70svh * 9 / 16)); }
  .socials { --soc-hit: 3.4375rem; --soc-glyph: 1.71875rem; }
}

@media (min-width: 880px) {
  .nav { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header { position: static; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* r3: CENTURY 21 Seven logo, sits on the corner where "Lic. Miller" starts */
.hero-logo {
  display: block;
  width: clamp(4.6rem, 15vw, 7rem);
  height: auto;
  margin: .2rem 0 1.1rem;
  filter: drop-shadow(0 2px 10px rgba(14, 11, 8, .45));
}
.gate-logo { margin-bottom: 1rem; }

/* r3: Miller bio card, same height as the video on desktop */
.miller-card {
  --card-bg: #fbf8f2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.6rem 1.4rem 1.3rem;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(138, 106, 59, .35), 0 30px 60px -40px rgba(22, 19, 15, .35);
}
.miller-card h2 { margin: 0 0 1rem; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: .9; }
.miller-bio-frame { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.miller-bio-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.5rem;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0), var(--card-bg) 90%);
  pointer-events: none;
  transition: opacity .25s ease;
}
.miller-card.at-end .miller-bio-frame::after,
.miller-card.is-open .miller-bio-frame::after { opacity: 0; }
.miller-bio {
  max-height: 22rem;
  overflow: hidden;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.miller-card.is-open .miller-bio { max-height: none; }
.miller-bio > * + * { margin-top: .85rem; }
.miller-bio .bio-head {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.miller-bio h3 {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brass-deep);
}
.bio-list { list-style: none; margin: .85rem 0 0; padding: 0; }
.bio-list li { position: relative; padding-left: 1.1rem; }
.bio-list li + li { margin-top: .7rem; }
.bio-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .4rem; height: 1px; background: var(--brass); }
.bio-list strong { font-weight: 600; color: var(--ink); }
.bio-cta { margin-top: 1.4rem !important; }
.bio-cta a {
  display: block;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--brass);
  background: rgba(138, 106, 59, .08);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
}
.bio-cta a span:last-child { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .9rem; color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }
.bio-cta a:hover { background: rgba(138, 106, 59, .14); }
.miller-bio:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
.miller-more {
  align-self: flex-start;
  margin-top: .9rem;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--brass);
  background: none;
  color: var(--brass-deep);
  font: 500 .74rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.miller-more[hidden] { display: none; }
.miller-card .miller-sign { margin-top: 1rem; }

@media (min-width: 720px) {
  .miller-grid { align-items: stretch; }
  .miller-media { align-items: center; }
  .miller-copy { position: relative; min-height: 0; }
  .miller-card { position: absolute; inset: 0; padding: 1.8rem 1.4rem 1.4rem 1.8rem; }
  .miller-bio {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 1rem;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 106, 59, .55) transparent;
  }
  .miller-bio::-webkit-scrollbar { width: 6px; }
  .miller-bio::-webkit-scrollbar-track { background: transparent; }
  .miller-bio::-webkit-scrollbar-thumb { background: rgba(138, 106, 59, .5); border-radius: 6px; }
  .miller-bio::-webkit-scrollbar-thumb:hover { background: var(--brass); }
  .miller-more { display: none !important; }
}

/* r3c: logo anchored to the hero text block, sitting on the eyebrow,
   layered above the photo/overlay and below the text */
.hero-copy { position: relative; z-index: 1; padding-top: 7.5rem; }
.hero-stamp {
  position: absolute;
  z-index: -1;
  left: -.45rem;
  top: 7.5rem;
  width: clamp(5.25rem, 9vw, 8rem);
  height: auto;
  transform: translateY(calc(-100% - .3rem));
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(14, 11, 8, .55)) drop-shadow(0 0 16px rgba(14, 11, 8, .45));
}

/* r3e: wide screens match the client mockup (measured at 1024 wide, scales with vw):
   text column starts at 13.3vw just under the header, logo sits in the left gutter */
@media (min-width: 1000px) {
  .hero { align-items: flex-start; }
  .hero-copy {
    width: auto;
    max-width: 62vw;
    margin: 0 0 3rem 13.25vw;
    padding-top: 4.5vw;
  }
  .hero h1 { font-size: 7.7vw; }
  /* everything below the title scales like the mockup (1rem at 1440 = 1.111vw) */
  .hero-copy { font-size: 1.1111vw; }
  .hero .eyebrow { font-size: .72em; margin-bottom: .8em; }
  .hero-role { font-size: .78em; margin-top: .7em; }
  .hero-promise { font-size: 2em; margin-top: 1em; max-width: 14em; }
  .hero-actions { margin-top: 1.7em; gap: .75em; }
  .hero-actions .btn { font-size: .74em; min-height: 4.19em; padding: 1.08em 1.62em; }
  .hero-meta { font-size: .86em; margin-top: 1.34em; }
  .hero-credit { font-size: .68em; margin-top: 2.2em; }
  .hero-stamp {
    left: -12.85vw;
    top: .7vw;
    width: 10.1vw;
    transform: none;
  }
}
