/* ============================================================
   v5.1 — Dark editorial luxury (Saya & Associates)
   ------------------------------------------------------------
   saya = shade/shelter. Asymmetric magazine layout, sharp 2px
   radius, navy-tinted shadows, restrained motion.
   ============================================================ */

:root {
  --night:    #060d1a;
  --ink:      #0a1628;
  --ink-2:    #0f2240;
  --ink-3:    #14294b;
  --gold:     #c9a24b;
  --gold-hi:  #e9d49a;
  --gold-deep:#9a7732;
  --green:    #12382c;
  --cream:    #f5efe4;
  --cream-d:  #c3bcae;
  --grey:     #7d8590;
  --line:     rgba(201,162,75,.22);
  --line-2:   rgba(201,162,75,.42);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --gold-grad: linear-gradient(120deg, #e9d49a 0%, #c9a24b 45%, #9a7732 100%);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 40px;
  --s-7: 64px;
  --s-8: 96px;

  --radius: 2px;
  --ease-luxe: cubic-bezier(.65,.05,0,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  --focus-ring: 0 0 0 2px var(--night), 0 0 0 5px var(--gold);
  --focus-outline: 2px solid var(--gold);
  --focus-offset: 3px;

  --shadow-navy: 0 22px 50px rgba(6,13,26,.55), 0 8px 20px rgba(10,22,40,.35);
  --shadow-navy-sm: 0 10px 28px rgba(6,13,26,.4);
}

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

html { scroll-behavior: auto; }

body {
  background:
    radial-gradient(1100px 700px at 88% -12%, rgba(201,162,75,.10), transparent 58%),
    radial-gradient(900px 650px at -8% 22%, rgba(18,56,44,.55), transparent 55%),
    linear-gradient(180deg, #081425 0%, #060d1a 42%, #040914 100%);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — sits above everything, never blocks input */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--night); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--gold);
  color: var(--night);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.skip:focus {
  left: 16px;
  top: 16px;
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* ---------- type ---------- */
.d1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: balance;
}
.d1 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.d2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}

.d3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--cream);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--cream-d);
  max-width: 58ch;
}
.body { color: var(--cream-d); }
.cite {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- utilities ---------- */
.mt-s { margin-top: var(--s-4); }
.mt-m { margin-top: var(--s-5); }
.lede-gap { margin-top: var(--s-5); }
.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.note {
  margin-top: var(--s-5);
  font-size: 14px;
  color: var(--cream-d);
  max-width: 62ch;
  opacity: .85;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  cursor: pointer;
  position: relative;
  transition:
    transform .3s var(--ease-luxe),
    box-shadow .3s ease,
    border-color .3s ease,
    color .3s ease,
    background .3s ease;
}
.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.btn:active,
.btn.is-pressed {
  transform: scale(0.98) translateY(0);
}
.btn-solid {
  background: var(--gold-grad);
  color: var(--night);
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(201,162,75,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(201,162,75,.38), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-solid:active,
.btn-solid.is-pressed {
  transform: scale(0.98) translateY(0);
}
.btn-line {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-2);
}
.btn-line:hover {
  background: rgba(201,162,75,.12);
  color: var(--gold-hi);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,75,.16);
}
.btn-line:active,
.btn-line.is-pressed {
  transform: scale(0.98) translateY(0);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
}
.hero-cta.center {
  justify-content: center;
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6,13,26,.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease-luxe);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}
.mark { display: flex; align-items: center; gap: 12px; }
.mark img { height: 40px; width: auto; }
.mark b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 14px;
  color: var(--cream-d);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--cream); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--gold-grad);
  transition: width .25s ease;
}
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--cream); }
.nav a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.hdr .cta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--gold-grad);
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(201,162,75,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hdr .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201,162,75,.4);
}
.hdr .cta:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.hdr .cta:active { transform: scale(0.98); }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.burger i {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform .25s var(--ease-luxe), opacity .2s ease;
  transform-origin: center;
}
.burger[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- hero split ---------- */
/* ambient hero wash behind split layout */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-colonnade-1600.webp') center/cover no-repeat;
  opacity: 0.18; filter: saturate(.8) contrast(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(201,162,75,.14), transparent 58%),
    linear-gradient(90deg, rgba(6,13,26,.92) 0%, rgba(6,13,26,.55) 48%, rgba(6,13,26,.35) 100%);
}
.hero-split .hero-copy, .hero-split .hero-visual { position: relative; z-index: 1; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero.hero-split {
  min-height: min(100dvh, 920px);
  display: flex;
  align-items: center;
}
.hero-split .hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-copy .eyebrow {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 30px;
}
.hero-copy .d1 { max-width: 12ch; }
.hero-copy .lede { margin-top: 30px; }

.hero-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15,34,64,.7), rgba(10,22,40,.9));
  box-shadow: var(--shadow-navy), 0 0 0 1px rgba(201,162,75,.06);
}
.hero-frame-inner {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,.08);
}
.hero-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.05);
}

/* ---------- sections ---------- */
.sec {
  padding: clamp(72px, 10vh, 120px) 0;
  position: relative;
}
.sec-grey {
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(201,162,75,.06), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #081120 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { margin-bottom: 56px; }
.sec-head .d2 { max-width: 20ch; }

/* ---------- cards / shells ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-luxe), border-color .35s ease, box-shadow .35s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--gold-grad);
  transition: width .4s ease;
}
.card::after {
  content: '';
  position: absolute;
  top: -60%; right: -40%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(201,162,75,.10), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-navy);
}
.card:hover::before { width: 100%; }
.card:hover::after { opacity: 1; }
.card p {
  color: var(--cream-d);
  margin-top: 12px;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.card h3 { position: relative; z-index: 1; }
.card:focus-within {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.card-shell {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6,13,26,.45);
  box-shadow: var(--shadow-navy-sm);
}
.card-shell .card {
  margin: 0;
  box-shadow: none;
}

/* ---------- bento (asymmetric practices) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 18px;
}
.bento-feat,
.bento-rest .card {
  /* share card visuals */
}
.bento > a.card,
.bento-rest > a.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  height: 100%;
}
.bento-feat:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 340px;
  padding: 40px 34px;
}
.bento-feat:nth-child(2) {
  grid-column: span 2;
  min-height: 200px;
}
.bento-feat:nth-child(3) {
  grid-column: span 2;
  min-height: 200px;
}
.bento-rest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-feat .d3 { font-size: clamp(22px, 2.4vw, 28px); }
.bento-feat:nth-child(1) .d3 { font-size: clamp(26px, 3vw, 34px); }

/* ---------- steps (engagement timeline) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 0;
}
.step {
  position: relative;
  padding: 0 0 var(--s-7) var(--s-6);
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,75,.12);
}
.step-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.step .body { margin-top: 12px; max-width: 58ch; }

/* ---------- pinned media ---------- */
.pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pin-sticky { position: sticky; top: 100px; }
.pin-media {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-navy), 0 0 0 6px rgba(201,162,75,.03);
  padding: 6px;
}
.pin-media::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 2;
}
.pin-media img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
  border-radius: var(--radius);
}
.pin-media img:first-child,
.pin-media img.is-on { opacity: 1; }
.pin-steps {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.pin-step .body { margin-top: 16px; }

/* ---------- matters ---------- */
.matters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.matter {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.matter:nth-child(even) {
  padding-left: 36px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.matter:nth-child(odd) { padding-right: 36px; }
.matter:nth-child(3),
.matter:nth-child(4) { padding-top: 48px; }
.matter p {
  color: var(--cream-d);
  margin-top: 12px;
  font-size: 15px;
}

/* ---------- CTA ---------- */
.sec-navy {
  background:
    radial-gradient(800px 500px at 50% 120%, rgba(201,162,75,.16), transparent 60%),
    linear-gradient(180deg, var(--green) 0%, #0c2b22 100%);
  border-top: 1px solid var(--line);
}
.on-dark .d2 { color: var(--cream); }

/* ---------- reveal ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
}
.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s var(--ease-out);
}

/* ---------- footer ---------- */
.ftr {
  background:
    radial-gradient(700px 400px at 85% -20%, rgba(201,162,75,.07), transparent 60%),
    linear-gradient(180deg, #04070c 0%, #030509 100%);
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
}
.ftr-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.ftr-logo img { width: 150px; height: auto; opacity: .9; }
.ftr h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.ftr ul li { margin-bottom: 10px; }
.ftr ul a {
  color: var(--cream-d);
  font-size: 14.5px;
  transition: color .2s ease;
}
.ftr ul a:hover,
.ftr ul a.is-active { color: var(--cream); }
.ftr ul a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
.ftr p { color: var(--cream-d); font-size: 14px; }
.ftr-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--cream-d);
}
.ftr-bot span { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-bot a { color: var(--cream-d); transition: color .2s ease; }
.ftr-bot a:hover { color: var(--cream); }
.disclaimer {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cream-d);
  max-width: 100ch;
  opacity: .8;
}

/* ---------- mobile nav ---------- */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ink);
  padding: 24px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  z-index: 70;
}
body.nav-open { overflow: hidden; }
body.nav-open .hdr .cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .hdr-in { padding: 14px 24px; }
  .nav { display: none; }
  .hdr .cta { display: none; }
  .burger { display: block; }
  .hero.hero-split {
    min-height: auto;
    padding: 72px 0 64px;
  }
  .hero-split .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-frame-inner { aspect-ratio: 16 / 11; }
  .pin-grid { grid-template-columns: 1fr; gap: 40px; }
  .pin-sticky { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-feat:nth-child(1),
  .bento-feat:nth-child(2),
  .bento-feat:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 0;
  }
  .bento-rest { grid-template-columns: 1fr; }
  .matters { grid-template-columns: 1fr; }
  .matter:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .matter:nth-child(odd),
  .matter:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .step { padding-left: var(--s-5); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .d1 { font-size: 44px; }
  .ftr-top { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta.center { align-items: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rv,
  .js .rv.in {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .btn-solid:hover,
  .btn-line:hover,
  .card:hover {
    transform: none;
  }
}
