/* ==========================================================================
   ALI SHAYAN HAIDER — Core stylesheet
   --------------------------------------------------------------------------
   Structure
     1.  Design tokens
     2.  Reset & base
     3.  Typography
     4.  Layout primitives
     5.  Header & navigation
     6.  Index rail
     7.  Hero
     8.  Statement / hook
     9.  Chapter (full-bleed image breaks)
     10. Ventures ledger
     11. Journey
     12. Principles
     13. Editorial cards (insights / media)
     14. Contact & forms
     15. Footer
     16. Motion & accessibility
     17. Venture sub-brand themes
   ========================================================================== */


/* 1. DESIGN TOKENS ========================================================= */

:root {
  /* --- Master brand palette -------------------------------------------
     Deliberately achromatic. All colour on this site comes from the
     photography and from the individual ventures. Do not add an accent
     colour here — the venture themes (section 17) depend on the parent
     being neutral. */
  --ink:        #000000;
  --paper:      #ffffff;
  --bone:       #f1f0ec;   /* warm-neutral surface, not cream */
  --graphite:   #66655f;   /* secondary text */
  --mute:       #9a998f;   /* tertiary text, index numerals */
  --rule:       #dad9d4;   /* hairlines */
  --rule-dark:  rgba(255,255,255,.22);

  /* --- Type ------------------------------------------------------------ */
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Fluid scale. Display sizes use the width axis (see .display). */
  --fs-display: clamp(2.75rem, 8.5vw, 7.5rem);
  --fs-h1:      clamp(2.25rem, 6vw, 5rem);
  --fs-h2:      clamp(1.75rem, 4vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 2.2vw, 1.75rem);
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.375rem);
  --fs-body:    clamp(1rem, 1.05vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* --- Space ----------------------------------------------------------- */
  --gutter:     clamp(1.25rem, 5vw, 5rem);
  --section:    clamp(4.5rem, 11vw, 10rem);
  --rail:       0px;                     /* widened at >=1200px */
  --maxw:       1440px;
  --measure:    62ch;

  /* --- Motion ---------------------------------------------------------- */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-io:    cubic-bezier(.65, 0, .35, 1);
  --dur:        .6s;
}


/* 2. RESET & BASE ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-variation-settings: 'wdth' 100, 'wght' 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

/* Visible, unambiguous keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

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


/* 3. TYPOGRAPHY ============================================================ */

/* .display is the signature treatment: Archivo pushed to its expanded
   width axis at heavy weight, with negative tracking and tight leading.
   This width contrast — not a second typeface — carries the brand. */
.display {
  font-size: var(--fs-display);
  font-variation-settings: 'wdth' 118, 'wght' 700;
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-variation-settings: 'wdth' 108, 'wght' 650;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-variation-settings: 'wdth' 104, 'wght' 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 .75rem;
}

p { margin: 0 0 1.25rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 46ch;
}

.meta {
  font-size: var(--fs-small);
  color: var(--graphite);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  letter-spacing: .005em;
}

/* Section marker. The numeral is meaningful here: the homepage is an
   ordered narrative and the ventures are a genuine running list. */
.marker {
  display: flex;
  align-items: baseline;
  gap: .875rem;
  font-size: var(--fs-small);
  color: var(--mute);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2.5rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--rule);
}
.marker span:last-child { color: var(--graphite); }

/* Links inside body copy */
.link {
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--ease);
}
.link:hover { border-color: var(--ink); }


/* 4. LAYOUT PRIMITIVES ===================================================== */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { padding-left: var(--rail); }

.section { padding-block: var(--section); }
.section--tight  { padding-block: clamp(3rem, 7vw, 6rem); }
.section--bone   { background: var(--bone); }
.section--ink    { background: var(--ink); color: var(--paper); }
.section--ink .lead,
.section--ink .meta { color: rgba(255,255,255,.66); }
.section--ink .marker { color: rgba(255,255,255,.45); border-bottom-color: var(--rule-dark); }
.section--ink .marker span:last-child { color: rgba(255,255,255,.7); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stack > * + * { margin-top: 1.25rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .9375rem 1.625rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section--ink .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.section--ink .btn:hover { background: transparent; color: var(--paper); }
.section--ink .btn--ghost { background: transparent; color: var(--paper); }
.section--ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Figures ---------------------------------------------------------------- */
figure { margin: 0; }
figure img { width: 100%; }
figcaption {
  margin-top: .875rem;
  font-size: var(--fs-micro);
  color: var(--mute);
  letter-spacing: .01em;
}


/* 5. HEADER & NAVIGATION =================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: background .4s var(--ease), padding .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Scrolled state: the bar condenses and gains a surface. */
.site-header.is-scrolled {
  padding-block: .875rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-size: .9375rem;
  font-variation-settings: 'wdth' 112, 'wght' 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  position: relative;
  padding-block: .25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: .625rem 1.125rem;
  border: 1px solid var(--ink);
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 600;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta::after { display: none; }

/* Mobile menu ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  color: var(--paper);
  padding: 6.5rem var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.nav-panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.nav-panel ul { list-style: none; margin: 0; padding: 0; }

.nav-panel li {
  border-bottom: 1px solid var(--rule-dark);
  overflow: hidden;
}

.nav-panel li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(.75rem, 2.4vw, 1.125rem);
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-variation-settings: 'wdth' 112, 'wght' 650;
  letter-spacing: -.025em;
  transform: translateY(110%);
  transition: transform .6s var(--ease);
}
.nav-panel.is-open li a { transform: translateY(0); }
.nav-panel.is-open li:nth-child(1) a { transition-delay: .10s; }
.nav-panel.is-open li:nth-child(2) a { transition-delay: .16s; }
.nav-panel.is-open li:nth-child(3) a { transition-delay: .22s; }
.nav-panel.is-open li:nth-child(4) a { transition-delay: .28s; }
.nav-panel.is-open li:nth-child(5) a { transition-delay: .34s; }
.nav-panel.is-open li:nth-child(6) a { transition-delay: .40s; }

.nav-panel li a span {
  font-size: var(--fs-micro);
  color: rgba(255,255,255,.4);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.nav-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  font-size: var(--fs-small);
  color: rgba(255,255,255,.6);
}
.nav-panel-foot a { border-bottom: 1px solid var(--rule-dark); }

body.nav-open { overflow: hidden; }


/* 6. INDEX RAIL ============================================================
   A persistent contents column. Present because the site is structured as
   a running index of what has been built — it is navigation, not ornament. */

.index-rail {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 90;
  width: var(--rail);
  padding-left: 1.75rem;
}

.index-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.index-rail a {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: var(--fs-micro);
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  transition: color .3s var(--ease);
}

.index-rail .bar {
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width .45s var(--ease);
  flex: none;
}

.index-rail a:hover { color: var(--graphite); }

.index-rail a.is-active { color: var(--ink); }
.index-rail a.is-active .bar { width: 30px; }

.index-rail .label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.index-rail a.is-active .label,
.index-rail a:hover .label { opacity: 1; transform: translateX(0); }


/* 7. HERO ================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero-name {
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

/* Each line of the headline is clipped and lifted on load. */
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.is-loaded .reveal-line > span { transform: translateY(0); }
.is-loaded .reveal-line:nth-child(1) > span { transition-delay: .12s; }
.is-loaded .reveal-line:nth-child(2) > span { transition-delay: .22s; }
.is-loaded .reveal-line:nth-child(3) > span { transition-delay: .32s; }

.hero-sub {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 40ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease) .55s, transform .8s var(--ease) .55s;
}
.is-loaded .hero-sub { opacity: 1; transform: none; }

.hero-actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s;
}
.is-loaded .hero-actions { opacity: 1; transform: none; }

/* Portrait: revealed by an expanding mask, then held on a slow parallax. */
.hero-portrait {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero-portrait .frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.15s var(--ease) .3s;
  background: var(--bone);
}
.is-loaded .hero-portrait .frame { clip-path: inset(0 0 0 0); }

.hero-portrait picture { display: block; }

.hero-portrait img {
  width: 100%;
  aspect-ratio: 768 / 1344;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  transition: opacity .8s var(--ease) 1.1s;
}
.is-loaded .hero-scroll { opacity: 1; }

.hero-scroll .line {
  width: 46px; height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: scroll-hint 2.6s var(--ease-io) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}


/* 8. STATEMENT / HOOK ====================================================== */

.statement {
  padding-block: clamp(5rem, 13vw, 11rem);
  border-top: 1px solid var(--rule);
}

.statement .display {
  max-width: 18ch;
  font-variation-settings: 'wdth' 120, 'wght' 700;
}

.statement-body {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.statement-body p { color: var(--graphite); font-size: var(--fs-lead); line-height: 1.5; }


/* 9. CHAPTER (full-bleed image break) ====================================== */

.chapter {
  position: relative;
  min-height: clamp(60vh, 78vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.chapter-media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.chapter::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.46) 42%,
    rgba(0,0,0,.06) 78%
  );
}

.chapter-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 6rem);
  width: 100%;
}
.chapter-content .display,
.chapter-content h2 { color: var(--paper); max-width: 16ch; }
.chapter-content p { color: rgba(255,255,255,.78); max-width: 44ch; margin-top: 1.5rem; }


/* 10. VENTURES LEDGER ======================================================
   Ventures are rows in a list, not cards. The list is the argument: it has
   an order, it has a length, and its last entry is deliberately empty. */

.ledger { border-top: 1px solid var(--rule); }

.ledger-row {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  transition: padding-left .5s var(--ease);
}
.ledger-row:hover { padding-left: clamp(.5rem, 1.5vw, 1.5rem); }

.ledger-index {
  font-size: var(--fs-small);
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: color .4s var(--ease);
}
.ledger-row:hover .ledger-index { color: var(--ink); }

.ledger-main { min-width: 0; }

.ledger-title {
  font-size: clamp(1.75rem, 4.4vw, 3.5rem);
  font-variation-settings: 'wdth' 112, 'wght' 650;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 .5rem;
}

.ledger-desc {
  color: var(--graphite);
  font-size: var(--fs-small);
  max-width: 48ch;
  margin: 0;
}

.ledger-cta {
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.ledger-cta .arrow {
  display: inline-block;
  transition: transform .4s var(--ease);
}
.ledger-row:hover .ledger-cta .arrow { transform: translateX(5px); }

/* Preview image slides in from the right on hover (desktop only). */
.ledger-preview {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 230px;
  aspect-ratio: 4 / 5;
  transform: translate(24px, -50%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  display: none;
}
.ledger-preview img { width: 100%; height: 100%; object-fit: cover; }
.ledger-row:hover .ledger-preview { opacity: 1; transform: translate(0, -50%); }

/* Inline venture image. Hidden on desktop, where the hover preview does this
   job instead; shown permanently on touch devices (see responsive.css). */
.ledger-media { display: none; }
.ledger-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }


/* The unfinished entry. This is the site's thesis in one row. */
.ledger-row--next {
  border-bottom-style: dashed;
  color: var(--mute);
}
.ledger-row--next:hover { padding-left: 0; }
.ledger-row--next .ledger-title {
  color: var(--mute);
  font-variation-settings: 'wdth' 112, 'wght' 400;
}

.caret {
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: .12em;
  background: var(--mute);
  vertical-align: -.12em;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }


/* 11. JOURNEY ==============================================================
   A sequence with no dates attached — add years in the .journey-when slot
   once they are confirmed. */

.journey { list-style: none; margin: 0; padding: 0; }

.journey li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.journey li:last-child { border-bottom: 1px solid var(--rule); }

.journey-when {
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 600;
  letter-spacing: .01em;
}
.journey-what { color: var(--graphite); margin: 0; max-width: 52ch; }

.section--ink .journey li { border-top-color: var(--rule-dark); }
.section--ink .journey li:last-child { border-bottom-color: var(--rule-dark); }
.section--ink .journey-what { color: rgba(255,255,255,.68); }


/* 12. PRINCIPLES =========================================================== */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.principle {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.principle:nth-child(2n) { border-right: 0; }

.principle h3 { margin-bottom: .625rem; }
.principle p { color: var(--graphite); font-size: var(--fs-small); margin: 0; }

.section--ink .principles { border-top-color: var(--rule-dark); }
.section--ink .principle { border-bottom-color: var(--rule-dark); border-right-color: var(--rule-dark); }
.section--ink .principle p { color: rgba(255,255,255,.65); }


/* 13. EDITORIAL CARDS (insights / media) =================================== */

.editorial { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

.entry {
  display: block;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.entry-media {
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bone);
  aspect-ratio: 3 / 2;
}
.entry-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.entry:hover .entry-media img { transform: scale(1.04); }

.entry-kicker {
  font-size: var(--fs-micro);
  color: var(--mute);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .625rem;
}
.entry h3 { margin-bottom: .5rem; }
.entry p { color: var(--graphite); font-size: var(--fs-small); }

/* Empty states — an invitation, not an apology. */
.empty {
  border: 1px dashed var(--rule);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: left;
}
.empty h3 { margin-bottom: .75rem; }
.empty p { color: var(--graphite); max-width: 52ch; }


/* 14. CONTACT & FORMS ====================================================== */

.contact-methods { border-top: 1px solid var(--rule); margin-top: 2rem; }

.contact-method {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .45s var(--ease);
}
.contact-method:hover { padding-left: .75rem; }

.contact-method .what {
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  font-variation-settings: 'wdth' 106, 'wght' 600;
  letter-spacing: -.02em;
}
.contact-method .value { color: var(--graphite); font-size: var(--fs-small); }

.form { display: grid; gap: 1.25rem; max-width: 34rem; }

.field { display: grid; gap: .5rem; }

.field label {
  font-size: var(--fs-small);
  font-variation-settings: 'wdth' 100, 'wght' 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: .8125rem .9375rem;
  border-radius: 0;
  width: 100%;
  transition: border-color .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline-offset: 1px; }

.field textarea { min-height: 9rem; resize: vertical; }

.form-note { font-size: var(--fs-micro); color: var(--mute); max-width: 40ch; }

.form-status { font-size: var(--fs-small); min-height: 1.5rem; }
.form-status[data-state='error']   { color: #a3231b; }
.form-status[data-state='success'] { color: var(--ink); font-variation-settings: 'wdth' 100, 'wght' 600; }


/* 15. FOOTER =============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
  margin-left: var(--rail);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule-dark);
}

.footer-statement {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-variation-settings: 'wdth' 112, 'wght' 650;
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 15ch;
  margin: 0 0 1.25rem;
}

.footer-role { color: rgba(255,255,255,.6); font-size: var(--fs-small); }

.footer-col h4 {
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 1.125rem;
  font-variation-settings: 'wdth' 100, 'wght' 600;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }

.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.82);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--fs-micro);
  color: rgba(255,255,255,.45);
}


/* 16. MOTION & ACCESSIBILITY =============================================== */

/* Single scroll-reveal mechanic, applied sparingly. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* A drawn rule, used on section markers only. */
.draw { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.draw.is-visible { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* Ensure everything that animates in is simply present. */
  .reveal,
  .hero-sub,
  .hero-actions,
  .hero-scroll { opacity: 1 !important; transform: none !important; }

  .reveal-line > span { transform: none !important; }
  .hero-portrait .frame { clip-path: none !important; }
  .hero-portrait img { transform: none !important; }
  .draw { transform: scaleX(1) !important; }
  .nav-panel li a { transform: none !important; }
  .caret { animation: none !important; }
  .hero-scroll .line::after { animation: none !important; transform: translateX(0) !important; }
}


/* 17. VENTURE SUB-BRAND THEMES =============================================
   Values taken from each venture's own brand guidelines. The master brand is
   achromatic precisely so these can run at full strength without clashing
   with a parent accent colour. */

/* --- ASH Digital ---------------------------------------------------------
   Vivid Blue #0978F6, Dravit Grey #606061, Buttery White #FFFBEA.
   NOTE: the supplied logo PNG is #547EED — a lighter blue than the documented
   Vivid Blue. The UI follows the guidelines. See README section 5. */
body.theme-ash {
  --venture:      #0978f6;
  --venture-soft: #fffbea;
  --venture-alt:  #606061;
}

/* --- Molten Ice Cream and Cafe -------------------------------------------
   Sampled from the supplied logo artwork:
   fudge #59301C, caramel #D5975C, cream #FCEDDE. */
body.theme-molten {
  --venture:      #59301c;
  --venture-soft: #fceddd;
  --venture-alt:  #d5975c;
}

/* Venture pages tint their own surfaces instead of using the neutral bone. */
body.theme-ash    .section--bone,
body.theme-molten .section--bone { background: var(--venture-soft); }

.venture-hero {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: var(--venture-soft, var(--bone));
}

/* Logo lockups ------------------------------------------------------------ */
.venture-logo {
  display: block;
  height: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.venture-logo--ash    { width: clamp(150px, 20vw, 230px); }
.venture-logo--molten { width: clamp(190px, 26vw, 320px); }

/* Small mark inside a ledger row. */
.ledger-logo { height: 20px; width: auto; margin-bottom: .875rem; }

.venture-eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--venture, var(--graphite));
  margin-bottom: 1.25rem;
  font-variation-settings: 'wdth' 100, 'wght' 600;
}

.venture-rule {
  height: 3px;
  width: 4.5rem;
  background: var(--venture, var(--ink));
  margin-bottom: 1.75rem;
}

/* Role and dates, stated plainly rather than buried in prose. */
.venture-facts {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  display: grid;
  gap: .875rem;
  border-top: 1px solid var(--rule);
  max-width: 30rem;
}
.venture-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: var(--fs-small);
}
.venture-facts .k { color: var(--graphite); }
.venture-facts .v {
  font-variation-settings: 'wdth' 100, 'wght' 600;
  text-align: right;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.capability-list li {
  padding: 1.375rem 1.25rem 1.375rem 0;
  border-bottom: 1px solid var(--rule);
}
.capability-list h3 {
  font-size: 1rem;
  margin-bottom: .375rem;
  color: var(--venture, var(--ink));
}
.capability-list p { font-size: var(--fs-small); color: var(--graphite); margin: 0; }

.section--venture { background: var(--venture); color: var(--paper); }
.section--venture h2,
.section--venture h3,
.section--venture .display { color: var(--paper); }
.section--venture p,
.section--venture .lead { color: rgba(255,255,255,.8); }
.section--venture .btn { background: var(--paper); border-color: var(--paper); color: var(--venture); }
.section--venture .btn:hover { background: transparent; color: var(--paper); }
.section--venture .btn--ghost { background: transparent; color: var(--paper); }
.section--venture .btn--ghost:hover { background: var(--paper); color: var(--venture); }
.section--venture .venture-facts { border-top-color: var(--rule-dark); }
.section--venture .venture-facts .k { color: rgba(255,255,255,.6); }

/* Case study -------------------------------------------------------------- */
.case {
  border-top: 3px solid var(--venture, var(--ink));
  padding-top: 2rem;
  max-width: 62ch;
}
.case-client {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-variation-settings: 'wdth' 110, 'wght' 650;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

/* 18. SOCIAL LINKS =========================================================
   Icon-only links with accessible names. Used in the footer and on the
   contact page. */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.socials svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Reversed for the dark footer. */
.site-footer .socials a { border-color: var(--rule-dark); color: rgba(255,255,255,.82); }
.site-footer .socials a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* 19. GROUP STRUCTURE ======================================================
   ASH Group is the parent; ASH Digital Agency and Molten operate under it.
   The chart is plain HTML and CSS — no image, so it stays legible at every
   size and can be edited when a third company is added. */

body.theme-group {
  --venture:      #101010;
  --venture-soft: #f1f0ec;
  --venture-alt:  #606061;
}

.org {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  justify-items: center;
  gap: 0;
}

.org-parent {
  border: 1.5px solid var(--ink);
  padding: 1.125rem 2rem;
  text-align: center;
  min-width: 15rem;
}
.org-parent .name {
  font-size: 1.125rem;
  font-variation-settings: 'wdth' 110, 'wght' 700;
  letter-spacing: -.01em;
  display: block;
}
.org-parent .role,
.org-child .role {
  font-size: var(--fs-micro);
  color: var(--graphite);
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-top: .375rem;
}

/* Connector: one stem down, one bar across, one stem into each child. */
.org-stem { width: 1px; height: 2.25rem; background: var(--rule); }

.org-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  position: relative;
  padding-top: 2.25rem;
}

/* horizontal bar */
.org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--rule);
}

.org-child {
  position: relative;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand, var(--rule));
  padding: 1.25rem 1.375rem;
  text-align: center;
  background: var(--paper);
}

/* vertical stem into each child */
.org-child::before {
  content: '';
  position: absolute;
  top: -2.25rem;
  left: 50%;
  width: 1px;
  height: 2.25rem;
  background: var(--rule);
}

.org-child .name {
  font-size: 1rem;
  font-variation-settings: 'wdth' 106, 'wght' 650;
  letter-spacing: -.01em;
  display: block;
}

.org-child--ash    { --brand: #0978f6; }
.org-child--molten { --brand: #59301c; }

/* The vacancy, matching the ledger's unfinished row. */
.org-child--next {
  border-style: dashed;
  border-top-style: dashed;
  border-top-width: 1px;
  border-color: var(--rule);
  color: var(--mute);
  display: grid;
  place-items: center;
}

/* Single-column stacking on narrow screens: drop the bar, keep the stems. */
@media (max-width: 720px) {
  .org-children::before { left: 50%; right: auto; width: 1px; height: 0; }
  .org-children { padding-top: 1.5rem; gap: 1.5rem; }
  .org-child::before { top: -1.5rem; height: 1.5rem; }
}

/* Ledger rows carry a parent label when they sit under the group. */
.ledger-parent {
  font-size: var(--fs-micro);
  color: var(--mute);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}

/* 20. LOCATIONS ============================================================
   Simple status chips for Molten's cities. Deliberately plain — a map would
   overstate four locations, two of which aren't open yet. */

.locations {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.location {
  background: var(--paper);
  padding: 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.location-status {
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 100, 'wght' 600;
}

.location-city {
  font-size: 1.0625rem;
  font-variation-settings: 'wdth' 106, 'wght' 650;
  letter-spacing: -.01em;
}

.location--open .location-status { color: var(--venture, #2f6b3a); }
.location--building .location-status,
.location--next .location-status { color: var(--mute); }
.location--next { opacity: .7; }
