/* ==========================================================================
   Double Prosperity — site.css
   An Art Deco system built from the letterhead: the Broadway wordmark's
   apricot, midnight lacquer, ivory paper, and double-line frames.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-deco: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;

  /* Brand constants (both schemes) */
  --midnight: #12161f;
  --midnight-rgb: 18 22 31;
  --midnight-2: #1a1f2b;
  --apricot: #f4b183;
  --apricot-light: #f9d7bd;
  --apricot-glow: rgb(244 177 131 / 0.16);
  --on-dark: #f5efe6;
  --on-dark-muted: #bdb3a8;
  --on-dark-line: rgb(244 177 131 / 0.2);

  /* Light scheme */
  --bg: #fbf7f1;
  --bg-raised: #fffdf9;
  --bg-inset: #f3ece1;
  --text: #1d1b1f;
  --text-muted: #58524d;
  --text-subtle: #6d6660;
  --rule: #e6dccd;
  --rule-strong: #cdbca4;
  --accent: #9c4a22;
  --accent-hover: #7f3a19;
  --accent-wash: rgb(156 74 34 / 0.07);
  --focus: #9c4a22;
  --shadow: 0 1px 2px rgb(29 27 31 / 0.05), 0 20px 44px -28px rgb(29 27 31 / 0.35);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171f;
    --bg-raised: #1a1e28;
    --bg-inset: #0f1219;
    --text: #f1ebe2;
    --text-muted: #bcb2a7;
    --text-subtle: #a39a90;
    --rule: #2c303b;
    --rule-strong: #454955;
    --accent: #f4b183;
    --accent-hover: #f9d7bd;
    --accent-wash: rgb(244 177 131 / 0.08);
    --focus: #f4b183;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 20px 44px -28px rgb(0 0 0 / 0.8);
  }
}

/* ---------- Base ---------- */

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.nav-lock {
  overflow: hidden;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
}

p,
dl,
dd,
figure {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[role="list"] {
  list-style: none;
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

.on-dark :focus-visible {
  outline-color: var(--apricot);
}

main:focus {
  outline: none;
}

::selection {
  background: var(--apricot);
  color: var(--midnight);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--apricot);
  color: var(--midnight);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.skip-link:hover {
  color: var(--midnight);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Italic Bodoni accents */
h1 em,
h2 em,
.statement em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.on-dark h1 em,
.on-dark h2 em {
  color: var(--apricot);
}

/* ---------- Deco labels & rules ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-family: var(--font-deco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.eyebrow::after {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.on-dark .eyebrow {
  color: var(--apricot);
}

.deco-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--rule-strong);
}

.deco-rule::before,
.deco-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

.deco-rule span {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Double-line frame: the letterhead's quiet formality */
.frame {
  border: 1px solid var(--rule-strong);
  outline: 1px solid var(--rule);
  outline-offset: -7px;
  background: var(--bg-raised);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
}

/* The bar's background lives on a pseudo-element: a backdrop-filter on the
   header itself would become the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--on-dark-line);
  background: rgb(var(--midnight-rgb) / 0.88);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.nav-open::before {
  opacity: 1;
}

.site-header.nav-open::before {
  background: var(--midnight);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--apricot);
  text-decoration: none;
}

.brand:hover {
  color: var(--apricot-light);
}

.wordmark {
  display: block;
  width: auto;
  height: 22px;
  fill: currentColor;
}

.brand .wordmark {
  aspect-ratio: 459.9 / 38.9;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
}

.site-nav ul a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--on-dark-muted);
  font-family: var(--font-deco);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--apricot);
}

.site-nav ul a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.55em;
}

@media (max-width: 859.98px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--apricot);
    cursor: pointer;
  }

  .nav-toggle .bar {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transform-origin: 12px 12px;
    transition: transform 0.35s var(--ease);
  }

  .nav-toggle[aria-expanded="true"] .bar-1 {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .bar-2 {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--midnight);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--on-dark-line);
    color: var(--on-dark);
    font-size: 1rem;
  }

  .site-nav ul a[aria-current="page"] {
    text-decoration: none;
  }

  .site-nav .button {
    min-height: 52px;
  }
}

/* ---------- Buttons ---------- */

.button {
  --btn-bg: var(--accent);
  --btn-fg: #fffdf9;
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.85rem 1.5rem 0.75rem;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-deco);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.button:hover {
  --btn-bg: var(--accent-hover);
  color: var(--btn-fg);
}

@media (prefers-color-scheme: dark) {
  .button {
    --btn-fg: var(--midnight);
  }
}

/* Apricot, with an inset second line: the Deco double rule */
.button--gold {
  --btn-bg: var(--apricot);
  --btn-fg: var(--midnight);
  box-shadow: inset 0 0 0 3px var(--apricot), inset 0 0 0 4px rgb(var(--midnight-rgb) / 0.45);
}

.button--gold:hover {
  --btn-bg: var(--apricot-light);
  box-shadow: inset 0 0 0 3px var(--apricot-light), inset 0 0 0 4px rgb(var(--midnight-rgb) / 0.45);
}

.button--line-dark {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-line: rgb(244 177 131 / 0.45);
}

.button--line-dark:hover {
  --btn-bg: rgb(244 177 131 / 0.08);
  --btn-line: var(--apricot);
}

.button--line {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--rule-strong);
}

.button--line:hover {
  --btn-bg: var(--accent-wash);
  --btn-line: var(--accent);
}

.button--sm {
  min-height: 42px;
  padding: 0.65rem 1.1rem 0.55rem;
  font-size: 0.75rem;
}

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

a:hover > .arrow,
.strip-link:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-deco);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

/* ---------- Heroes ---------- */

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--midnight);
  color: var(--on-dark);
}

/* The rising sun: a glow and a sunburst, anchored on a horizon line */
.sunrise {
  position: absolute;
  z-index: -1;
  right: max(-6%, calc(50% - 880px));
  bottom: 0;
  width: min(1180px, 118vw);
  aspect-ratio: 2 / 1;
  pointer-events: none;
}

.sunrise::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(244 177 131 / 0.28), rgb(244 177 131 / 0.08) 55%, transparent 76%);
  transform: translate(-50%, 50%);
}

.sunburst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sunburst .ray {
  fill: none;
  stroke: var(--apricot);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.22;
}

.sun-disc {
  fill: rgb(244 177 131 / 0.1);
  stroke: var(--apricot);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-opacity: 0.5;
}

.sun-ring {
  fill: none;
  stroke: var(--apricot);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-opacity: 0.45;
}

.sun-ring--outer {
  stroke-opacity: 0.18;
}

/* Scrim: keeps the copy legible over the rays */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--midnight-rgb) / 0.92) 0%, rgb(var(--midnight-rgb) / 0.6) 38%, rgb(var(--midnight-rgb) / 0) 70%),
    linear-gradient(180deg, rgb(var(--midnight-rgb) / 0.7) 0%, rgb(var(--midnight-rgb) / 0) 180px);
}

@media (max-width: 760px) {
  .hero::after,
  .page-hero::after {
    background: linear-gradient(180deg, rgb(var(--midnight-rgb) / 0.8) 0%, rgb(var(--midnight-rgb) / 0.55) 45%, rgb(var(--midnight-rgb) / 0.7) 100%);
  }

  .sunrise,
  .hero-foot .sunrise {
    right: 50%;
    transform: translateX(50%);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  min-height: min(max(660px, 100svh), 1000px);
  padding-top: calc(var(--header-h) + clamp(3rem, 11vh, 8rem));
}

.hero-body {
  position: relative;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2.9rem, 1.4rem + 5.2vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--on-dark-muted);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero-foot {
  position: relative;
  margin-top: auto;
  padding-top: clamp(3.5rem, 9vh, 6.5rem);
}

/* On the home page the sun rises from the service strip's top rule. */
.hero-foot .sunrise {
  right: -12%;
  bottom: calc(100% - 1px - clamp(3.5rem, 9vh, 6.5rem));
  width: min(1100px, 112vw);
}

/* Service strip along the bottom of the home hero */
.strip {
  display: grid;
  border-top: 1px solid var(--on-dark-line);
}

.strip-link {
  display: block;
  padding: 1.3rem 0 1.5rem;
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark);
  text-decoration: none;
}

.strip-link:hover {
  color: var(--apricot);
}

.strip-index {
  display: block;
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
}

.strip-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-family: var(--font-deco);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip-link:nth-child(even) {
    padding-left: 1.75rem;
    border-left: 1px solid var(--on-dark-line);
  }
}

@media (min-width: 1024px) {
  .strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .strip-link {
    padding: 1.5rem 1.5rem 1.75rem 0;
    border-bottom: 0;
  }

  .strip-link + .strip-link {
    padding-left: 1.5rem;
    border-left: 1px solid var(--on-dark-line);
  }
}

.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 10vh, 7rem)) 0 clamp(4rem, 9vh, 6.5rem);
}

.page-hero .sunrise {
  width: min(900px, 110vw);
  opacity: 0.85;
}

.page-hero h1 {
  max-width: 14em;
  font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.9rem);
  line-height: 1.02;
}

.page-hero--full {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--raised {
  background: var(--bg-raised);
}

.section--inset {
  background: var(--bg-inset);
}

h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  line-height: 1.05;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.section-head > p:not(.eyebrow) {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .eyebrow::after {
  display: none;
}

.section-head--center > p:not(.eyebrow) {
  margin-inline: auto;
}

/* ---------- Home: our name ---------- */

.name-block {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}

.name-mark {
  display: grid;
  place-items: center;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(2.25rem, 4vw, 3.75rem);
  color: var(--apricot);
}

.name-mark .wordmark {
  width: clamp(200px, 24vw, 300px);
  height: auto;
}

.statement {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.12;
}

.name-copy > p:not(.eyebrow) {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

@media (min-width: 860px) {
  .name-block {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  gap: 1.25rem;
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3vw, 2.75rem);
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-numeral {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--rule-strong);
  color: var(--accent);
  transform: rotate(45deg);
}

.service-icon .icon {
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
}

.service h3 {
  margin-top: 1.75rem;
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
}

.service > p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.service ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.service li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.service li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: translateY(-2px) rotate(45deg);
}

.service .link-arrow {
  margin-top: auto;
}

@media (min-width: 800px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Engagement models ---------- */

.models {
  display: grid;
  gap: 1.25rem;
}

.model {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3vw, 2.5rem);
  text-align: center;
}

.model-mark {
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
}

.model h3 {
  margin-top: 1.25rem;
  font-size: 1.6rem;
}

.model-tag {
  margin-top: 0.35rem;
  color: var(--accent);
  font-family: var(--font-deco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.model > p:not(.model-tag) {
  margin-top: 1rem;
  color: var(--text-muted);
}

.model-best {
  margin-top: auto;
  padding-top: 1.5rem;
}

.model-best p {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.model-best span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-subtle);
  font-family: var(--font-deco);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Steps (roman numerals) ---------- */

.steps-row {
  display: grid;
  gap: 2.25rem 2rem;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  transform: rotate(45deg);
}

.section--raised .step::before {
  background: var(--bg-raised);
}

.step-numeral {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
}

.step h3 {
  margin-top: 0.9rem;
  font-size: 1.45rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .steps-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  gap: 0 3.5rem;
}

.principle {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}

.principle .icon {
  width: 26px;
  height: 26px;
  margin-top: 0.2rem;
  color: var(--accent);
}

.principle h3 {
  font-size: 1.35rem;
}

.principle p {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

@media (min-width: 800px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Services page ---------- */

.service-detail {
  display: grid;
  gap: 2rem 4.5rem;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.service-detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-detail h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.service-detail .service-intro {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.detail-lists {
  display: grid;
  gap: 2rem;
}

.detail-lists h3 {
  color: var(--text-subtle);
  font-family: var(--font-deco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-lists dl {
  margin-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.detail-lists dl > div {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.detail-lists dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.detail-lists dd {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chips li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule-strong);
  font-size: 0.875rem;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .service-detail {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .service-detail > div:first-child {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* ---------- About: company facts ---------- */

.facts {
  display: grid;
  border-top: 1px solid var(--rule);
}

.facts > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--text-subtle);
  font-family: var(--font-deco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.facts dd {
  font-size: 1.0625rem;
}

@media (min-width: 640px) {
  .facts > div {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.split {
  display: grid;
  gap: 2.5rem 5rem;
}

.split-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition:
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  background: var(--accent);
  transform: rotate(225deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  max-width: 44rem;
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.email-card {
  container-type: inline-size;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.email-link {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 7cqi, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.email-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.email-card hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.email-card h2 {
  font-size: 1.35rem;
}

.email-card h2 + p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-aside h2 {
  font-size: 1.9rem;
}

.contact-aside > * + h2 {
  margin-top: 3rem;
}

.checklist {
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.6rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.checklist strong,
.next-steps strong {
  color: var(--text);
}

.next-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  counter-reset: step;
}

.next-steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  color: var(--text-muted);
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step, upper-roman) ".";
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.4;
}

.next-steps strong {
  display: block;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Call to action ---------- */

.cta {
  padding-block: 0 var(--section-y);
}

.section--raised + .cta,
.section--inset + .cta {
  padding-top: calc(var(--section-y) * 0.55);
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  border: 1px solid rgb(244 177 131 / 0.35);
  outline: 1px solid rgb(244 177 131 / 0.2);
  outline-offset: -9px;
  background: var(--midnight);
  color: var(--on-dark);
}

/* Deco fan pattern */
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23f4b183' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M10 40a30 30 0 0 1 60 0M20 40a20 20 0 0 1 40 0M30 40a10 10 0 0 1 20 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}

.cta-panel h2 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
}

.cta-panel p {
  max-width: 32rem;
  margin-top: 1rem;
  color: var(--on-dark-muted);
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.cta-email {
  padding-bottom: 3px;
  border-bottom: 1px solid rgb(244 177 131 / 0.4);
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  text-decoration: none;
}

.cta-email:hover {
  border-bottom-color: currentColor;
  color: var(--apricot-light);
}

@media (min-width: 960px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .cta-actions {
    align-items: flex-end;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  background: var(--midnight);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

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

.footer-brand .brand .wordmark {
  height: auto;
  width: 190px;
  aspect-ratio: auto;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 1.25rem;
}

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  text-decoration: none;
}

.footer-email:hover {
  color: var(--apricot-light);
  text-decoration: underline;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--apricot);
  font-family: var(--font-deco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--apricot);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* The rays catch the light one after another, like a slow sunrise shimmer.
     A ray's place in the sweep comes from its position, not an inline style
     (the CSP blocks style=""): index = --col + 4 × --row, 13 rules for 44 rays. */
  .sunburst .ray {
    animation: shimmer 7s ease-in-out infinite;
    animation-delay: calc((var(--col, 0) + 4 * var(--row, 0)) * 0.16s);
  }

  .sunburst .ray:nth-child(4n + 2) { --col: 1; }
  .sunburst .ray:nth-child(4n + 3) { --col: 2; }
  .sunburst .ray:nth-child(4n + 4) { --col: 3; }
  .sunburst .ray:nth-child(n + 5) { --row: 1; }
  .sunburst .ray:nth-child(n + 9) { --row: 2; }
  .sunburst .ray:nth-child(n + 13) { --row: 3; }
  .sunburst .ray:nth-child(n + 17) { --row: 4; }
  .sunburst .ray:nth-child(n + 21) { --row: 5; }
  .sunburst .ray:nth-child(n + 25) { --row: 6; }
  .sunburst .ray:nth-child(n + 29) { --row: 7; }
  .sunburst .ray:nth-child(n + 33) { --row: 8; }
  .sunburst .ray:nth-child(n + 37) { --row: 9; }
  .sunburst .ray:nth-child(n + 41) { --row: 10; }

  .reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-body > *,
  .hero-foot {
    animation: rise 1s var(--ease) both;
  }

  .hero-body > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .hero-body > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .hero-body > :nth-child(n + 4) {
    animation-delay: 0.21s;
  }

  .hero-foot {
    animation-delay: 0.3s;
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.18;
  }

  45% {
    opacity: 0.6;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .sunrise,
  .cta,
  .hero-actions,
  .email-actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero,
  .page-hero,
  .site-footer {
    min-height: 0;
    padding-top: 1rem;
    background: none !important;
    color: #000000 !important;
  }

  .hero::after,
  .page-hero::after {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .on-dark,
  .on-dark * {
    color: #000000 !important;
  }
}

/* ---------- Small-screen and dark-scheme refinements ---------- */

@media (max-width: 479.98px) {
  .eyebrow::after {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  .hero,
  .page-hero {
    border-bottom: 1px solid var(--on-dark-line);
  }
}
