/* =========================================================
   SKYGROVE — Site styles
   One canonical type scale. Editorial layout rhythm.
   Paper texture. Generous space.
   ========================================================= */

:root {
  /* ---- Canonical type scale (fluid) ---------------------- */
  --t-display: clamp(64px, 10.4vw, 156px); /* hero / page name */
  --t-1:       clamp(44px, 6.8vw, 100px);  /* page-lede headlines */
  --t-2:       clamp(32px, 4.4vw, 60px);   /* secondary display */
  --t-3:       clamp(24px, 2.8vw, 34px);   /* list titles, pull quotes */
  --t-lede:    clamp(20px, 2.1vw, 28px);   /* lede paragraph */
  --t-body:    17px;
  --t-small:   14px;
  --t-micro:   11px;

  --lh-display: 1.02;
  --lh-heading: 1.12;
  --lh-quote:   1.28;
  --lh-body:    1.65;

  --tk-display: -0.028em;
  --tk-heading: -0.018em;
  --tk-quote:   -0.005em;
  --tk-caps:    0.24em;
  --tk-caps-lg: 0.3em;

  /* ---- Paper grain (data-uri SVG) ------------------------ */
  --paper-grain:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.12  0 0 0 0 0.07  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  hyphens: none;
  -webkit-hyphens: none;
}
img { display: block; max-width: 100%; }
a  { color: inherit; }

/* Subtle paper grain on the entire body — never on top of UI */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--paper-grain);
  background-size: 220px 220px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.site, .footer { position: relative; z-index: 1; }

/* ---------- Layout shell ---------- */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 720px) { .shell { padding: 0 24px; } }

/* ---------- Header / Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border: 0; }
.nav__brand img { height: 48px; width: auto; }
@media (max-width: 720px) { .nav__brand img { height: 36px; } }
.nav__links {
  display: flex;
  gap: 36px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tk-caps);
  color: var(--fg-display);
}
.nav__links a {
  text-decoration: none;
  border: 0;
  position: relative;
  padding-bottom: 4px;
  transition: opacity var(--dur-fast) var(--ease-editorial);
}
.nav__links a:hover { opacity: 0.55; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -29px;
  border-top: 2px solid var(--fg-display);
}
@media (max-width: 540px) {
  .nav__links { gap: 18px; font-size: 10px; letter-spacing: 0.18em; }
}

/* ---------- Eyebrow / subhead ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tk-caps);
  color: var(--fg-muted);
  line-height: 1;
}
.eyebrow--lg { font-size: 12px; letter-spacing: var(--tk-caps-lg); color: var(--fg-display); }
.eyebrow__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--fg-display);
  text-transform: none;
}
.eyebrow__rule {
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Headlines (one canonical scale) ---------- */
.h-display,
.h-1,
.h-2,
.h-3 {
  font-family: var(--font-display);
  color: var(--fg-display);
  margin: 0;
  text-wrap: balance;
}
.h-display {
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h-1 {
  font-weight: 700;
  font-size: var(--t-1);
  line-height: var(--lh-display);
  letter-spacing: var(--tk-display);
}
.h-2 {
  font-weight: 700;
  font-size: var(--t-2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tk-heading);
}
.h-3 {
  font-weight: 700;
  font-size: var(--t-3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tk-heading);
}

/* Italic editorial pull-quote — same scale, italic, lighter weight */
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-3);
  line-height: var(--lh-quote);
  letter-spacing: var(--tk-quote);
  color: var(--fg-accent);
  margin: 0;
  text-wrap: balance;
}
.pull--lg {
  font-size: var(--t-2);
  line-height: 1.18;
  color: var(--fg-display);
}

/* ---------- Body / lede / note ---------- */
.lede {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--t-lede);
  line-height: 1.4;
  color: var(--fg-display);
  margin: 0;
  max-width: 38ch;
  text-wrap: balance;
}
.lede--wide { max-width: 52ch; }

.body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg);
  max-width: 60ch;
  text-wrap: pretty;
}
.body p { margin: 0 0 1.35em; }
.body p:last-child { margin-bottom: 0; }
.body a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity var(--dur-fast) var(--ease-editorial);
}
.body a:hover { opacity: 0.55; }

.note {
  font-family: var(--font-text);
  font-size: var(--t-small);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0;
}
.note a {
  color: var(--fg-display);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tk-caps);
  color: var(--fg-inverse);
  background: var(--bg-inverse);
  padding: 16px 22px 15px;
  border: 1px solid var(--bg-inverse);
  text-decoration: none;
  transition: background var(--dur) var(--ease-editorial),
              color var(--dur) var(--ease-editorial);
  cursor: pointer;
}
.cta:hover { background: transparent; color: var(--fg-display); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-row__meta {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tk-caps-lg);
  color: var(--fg-muted);
}
.cta-row__meta em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-display);
}

/* ---------- Section / Rules ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--tight { padding: clamp(36px, 5vw, 72px) 0; }
.section--mini  { padding: clamp(20px, 3vw, 40px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.no-rule    { border-top: none !important; }

/* Two-column editorial intro: eyebrow/meta left, headline+body right */
.intro {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.intro__meta { display: flex; flex-direction: column; gap: 14px; }
.intro__body { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 720px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
}

/* Asymmetric body block — narrow indented column */
.col {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.col--shift {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
@media (max-width: 720px) {
  .col, .col--shift { grid-template-columns: 1fr; gap: 16px; }
}

/* Ornamental rule with centered diamond */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--rule-strong);
}
.flourish::before, .flourish::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  max-width: 220px;
}
.flourish__mark {
  width: 6px; height: 6px;
  background: var(--fg-display);
  transform: rotate(45deg);
}

/* ---------- Hero (homepage v1 — masthead) ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 88px);
  padding-top: clamp(64px, 9vw, 132px);
  padding-bottom: clamp(56px, 8vw, 120px);
  align-items: end;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: end;
  padding-bottom: 6px;
}
.hero__meta-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-display);
  max-width: 22ch;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 48px);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--fg-display);
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--fg-accent);
}
.hero__lede {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--fg-display);
  margin: 0;
  max-width: 48ch;
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__meta { padding-bottom: 0; }
}

/* ---------- Services list ---------- */
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  counter-reset: svc;
}
.svc-list__item {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr);
  align-items: baseline;
  gap: clamp(18px, 2.4vw, 48px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.svc-list__item::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--fg-muted);
  line-height: 1.2;
}
.svc-list__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: var(--tk-heading);
  color: var(--fg-display);
}
.svc-list__body {
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  max-width: 50ch;
  margin: 0;
}
@media (max-width: 720px) {
  .svc-list__item {
    grid-template-columns: 36px 1fr;
    gap: 14px 18px;
  }
  .svc-list__body { grid-column: 2; }
}

/* ---------- Page name (Who I am) ---------- */
.page-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--fg-display);
  margin: 0;
}
.page-name em {
  font-style: italic;
  font-weight: 400;
}

/* ---------- Page lede (used as headline on inside pages) ---------- */
.page-lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-1);
  line-height: 1.05;
  letter-spacing: var(--tk-display);
  color: var(--fg-display);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.page-lede--narrow { max-width: 18ch; }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 56px 0 40px;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--paper-grain);
  background-size: 220px 220px;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
}
@media (max-width: 720px) {
  .footer__row { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
}
.footer__signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--fg-inverse);
  max-width: 22ch;
  margin: 0;
  opacity: 0.95;
}
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
@media (max-width: 720px) { .footer__right { align-items: flex-start; } }
.footer__links {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.footer__link {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tk-caps);
  color: var(--fg-inverse);
  text-decoration: none;
  border: 0;
  transition: opacity var(--dur-fast) var(--ease-editorial);
}
.footer__link:hover { opacity: 0.6; }
.footer__wordmark {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.footer__legal {
  margin-top: 40px;
  padding: 18px 56px 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(255,248,241,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-text);
  font-size: 10px;
  letter-spacing: var(--tk-caps);
  text-transform: uppercase;
  color: rgba(255,248,241,0.5);
}
@media (max-width: 720px) { .footer__legal { padding-left: 24px; padding-right: 24px; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease-editorial),
              transform var(--dur-slow) var(--ease-editorial);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Deck (used by deck.html — kept compatible)
   ========================================================= */
.deck-shell { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.deck-section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.deck-section:first-of-type { border-top: 0; padding-top: clamp(72px, 12vw, 144px); }
.deck-mark img { height: 56px; width: auto; }
.deck-eyebrow {
  font-family: var(--font-text); font-weight: 700;
  font-size: var(--t-micro); text-transform: uppercase;
  letter-spacing: var(--tk-caps-lg); color: var(--fg-muted); margin-bottom: 28px;
}
.deck-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--fg-display); margin: 0;
  max-width: 18ch; text-wrap: balance;
}
.deck-body {
  font-family: var(--font-text); font-weight: 400;
  font-size: 18px; line-height: 1.75; color: var(--fg);
  max-width: 70ch; margin: 28px 0 0;
}
.deck-body p { margin: 0 0 1.3em; }
.deck-body p:last-child { margin-bottom: 0; }
.section {
  min-height: 100vh;
  min-height: 100dvh;
}
@media (max-width: 720px) {
  .footer__row {
    flex-direction: column;
    gap: 16px;
  }
}