/* ==========================================================================
   Aim Andikara — Personal Leadership Profile
   Editorial redesign. Standalone stylesheet (no template dependencies).
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --ink: #15171d;
  --ink-soft: #3a3c43;
  --muted: #7a776f;
  --line: rgba(21, 23, 29, 0.12);
  --navy: #1d2757;
  --gold: #c8952a;
  --gold-soft: #e7c77d;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.gold { color: var(--gold); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  height: 46px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.is-scrolled .brand img { height: 38px; }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 90px) 0 clamp(80px, 10vw, 130px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 26px 0 30px;
}
.hero h1 span { display: block; }
.hero h1 .italic { font-weight: 400; color: var(--navy); padding-left: 0.6em; }

.hero-lead {
  max-width: 440px;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 38px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.traits li {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.4s var(--ease), gap 0.4s var(--ease);
}
.btn:hover { background: var(--navy); gap: 22px; }
.btn svg { width: 18px; height: 18px; }

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

/* Portrait with rotating text ring */
.portrait {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  margin-left: auto;
}
.portrait-ring {
  position: absolute;
  inset: 0;
  animation: spin 40s linear infinite;
}
.portrait-ring text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
.portrait-photo {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(21, 23, 29, 0.45);
}
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.portrait:hover .portrait-photo img { transform: scale(1.04); }
.portrait-dot {
  position: absolute;
  right: 13%;
  bottom: 14%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  box-shadow: 0 0 0 8px var(--paper);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(21, 23, 29, 0.18);
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-bg-word {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 22vw, 330px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 23, 29, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 1px 200%;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--paper-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 18px;
}
.section-title em { color: var(--navy); }
.section-note { max-width: 340px; color: var(--muted); margin: 0; }

/* Intro statement */
.statement {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(30px, 6vw, 90px);
}
.statement-label { padding-top: 14px; }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 40px;
}
.statement-text em { color: var(--navy); }
.statement-text .hl {
  background: linear-gradient(transparent 62%, rgba(200, 149, 42, 0.32) 0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.text-link:hover { gap: 20px; color: var(--navy); }
.text-link svg { width: 16px; height: 16px; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.principle {
  padding: 44px 36px 50px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.principle + .principle { padding-left: 36px; }
.principle:last-child { border-right: 0; }
.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  display: block;
  margin-bottom: 40px;
}
.principle h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.principle p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.8s var(--ease);
}
.principle + .principle::before { left: 36px; }
.principle:hover::before { width: calc(100% - 36px); }

/* Ventures / Companies */
.ventures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.venture {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: clamp(32px, 4vw, 52px);
  background: #fbf8f3;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.venture:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(29, 39, 87, 0.35);
}
.venture-logo {
  height: 120px;
  display: flex;
  align-items: center;
}
.venture-logo img { max-height: 100%; width: auto; max-width: 280px; }
.venture-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.venture h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 6px; }
.venture span { color: var(--muted); font-size: 14px; }
.venture-arrow {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), color 0.4s, transform 0.6s var(--ease);
}
.venture-arrow svg { width: 18px; height: 18px; }
.venture:hover .venture-arrow { background: var(--navy); color: #fff; transform: rotate(-45deg); }

.venture-featured {
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.venture-featured .venture-logo { height: 150px; justify-content: center; }
.venture-featured .venture-logo img { max-width: min(100%, 380px); }
.venture-featured .venture-arrow { position: absolute; top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); }
.venture-featured p { color: var(--ink-soft); margin: 18px 0 0; max-width: 420px; }
.venture-featured .venture-meta { display: block; }

/* Quotes */
.quotes {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.quotes .eyebrow { color: rgba(244, 239, 230, 0.6); }
.quote-mark {
  font-family: var(--serif);
  font-size: 200px;
  line-height: 0.6;
  color: var(--gold);
  height: 80px;
  display: block;
  margin: 30px 0 10px;
}
.quote-stage { position: relative; min-height: 290px; }
.quote {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote blockquote {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.22;
  max-width: 980px;
}
.quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.quote-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
}
.quote-controls button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.25);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.quote-controls button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.quote-controls svg { width: 18px; height: 18px; }
.quote-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin-left: 10px;
  color: rgba(244, 239, 230, 0.7);
}
.quote-progress {
  flex: 1;
  height: 1px;
  background: rgba(244, 239, 230, 0.15);
  margin-left: 20px;
  position: relative;
  overflow: hidden;
}
.quote-progress i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}
.quote-progress i.run { animation: progress 8s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); }
.crumbs {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.crumbs a:hover { color: var(--ink); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(60px, 11vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.page-hero h1 em { color: var(--navy); }
.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.page-hero-row p { max-width: 360px; color: var(--ink-soft); margin: 0 0 12px; }

.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.bio-aside { position: sticky; top: 110px; }
.bio-photo {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  outline: 1px dashed rgba(21, 23, 29, 0.2);
  outline-offset: 14px;
  background: var(--paper-2);
  box-shadow: 0 40px 80px -40px rgba(21, 23, 29, 0.5);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
.bio-caption strong { color: var(--ink); font-weight: 600; }
.bio-caption span { text-align: right; line-height: 1.5; }

.bio-body .lede {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  margin-bottom: 40px;
}
.bio-body .lede::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--navy);
  font-style: italic;
}
.bio-body p { font-size: 17px; color: var(--ink-soft); }

.pull {
  margin: 50px 0;
  padding: 34px 0 34px 34px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 50px;
}
.fact { background: var(--paper); padding: 26px 22px; }
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}
.fact span { font-size: 13px; color: var(--muted); }


/* Ventures list */
.ventures-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.vitem {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 44px 40px 48px 0;
  border-bottom: 1px solid var(--line);
}
.vitem + .vitem { padding-left: 40px; border-left: 1px solid var(--line); }
.vitem-num { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.vitem h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; transition: color 0.4s; }
.vitem-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin: 0; }
.vitem-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: gap 0.4s var(--ease), color 0.3s;
}
.vitem-link svg { width: 16px; height: 16px; }
.vitem:hover h3 { color: var(--navy); }
.vitem:hover .vitem-link { gap: 16px; color: var(--ink); }
.vitem::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--ink);
  transition: width 0.8s var(--ease);
}
.vitem + .vitem::before { left: 40px; }
.vitem:hover::before { width: calc(100% - 40px); }
.inline-link { color: var(--ink); border-bottom: 1px solid var(--gold); transition: color 0.3s; }
.inline-link:hover { color: var(--navy); }
@media (max-width: 960px) {
  .ventures-list { grid-template-columns: 1fr; }
  .vitem, .vitem + .vitem { padding: 36px 0; border-left: 0; }
  .vitem + .vitem::before { left: 0; }
  .vitem:hover::before { width: 100%; }
}


/* Thai wordmark */
.name-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -6px 0 30px;
}
.name-mark::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.name-mark img { height: clamp(30px, 3.2vw, 44px); width: auto; opacity: 0.88; }

.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero-mark {
  position: absolute;
  right: -9vw;
  top: 52%;
  transform: translateY(-46%);
  width: min(50vw, 740px);
  height: auto;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 960px) {
  .page-hero-mark { width: 90vw; right: -10vw; top: auto; bottom: 10px; transform: none; }
}


/* Family emblem watermark — small */
.emblem-mark {
  display: block;
  width: 96px;
  height: auto;
  margin-top: 48px;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.emblem-mark--aside { width: 88px; margin: 56px auto 0; }
@media (max-width: 960px) {
  .statement-label { position: relative; }
  .emblem-mark { position: absolute; right: 0; top: -14px; width: 64px; margin: 0; }
  .emblem-mark--aside { position: static; width: 72px; margin: 32px auto 0; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.7);
  padding: clamp(70px, 9vw, 110px) 0 40px;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}
.footer-sign img {
  height: 84px;
  width: auto;
  filter: invert(1) brightness(1.6);
  opacity: 0.92;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--paper);
  margin: 18px 0 0;
}
.footer-nav { display: flex; gap: 30px; }
.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--paper); }


/* Personal marks (About) */
.marks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mark {
  margin: 0;
  padding: clamp(36px, 5vw, 64px) 30px 34px;
  background: #fbf8f3;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.mark:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(21, 23, 29, 0.35); }
.mark-art {
  height: clamp(200px, 22vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark-art img { max-height: 100%; width: auto; }
.mark figcaption { text-align: center; }
.mark figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.mark figcaption span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .marks { grid-template-columns: 1fr; }
  .mark-art { height: 220px; }
}


/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { margin: 0 auto; width: min(86vw, 420px); grid-row: 1; }
  .hero-copy { text-align: left; }
  .scroll-cue { display: none; }
  .statement { grid-template-columns: 1fr; gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principle,
  .principle + .principle { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle + .principle::before { left: 0; }
  .principle:hover::before { width: 100%; }
  .principle-num { margin-bottom: 18px; }
  .venture-featured { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio-aside { position: static; max-width: 420px; padding: 15px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .nav { gap: 22px; }
  .nav a { font-size: 12px; }
  .brand img { height: 38px; }
  .hero h1 .italic { padding-left: 0.3em; }
  .facts { grid-template-columns: 1fr; }
  .quote-stage { min-height: 360px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
