/* ---- Variables ---- */
:root {
  --accent:       #e8602c;
  --dark-bg:      #0b1524;
  --light-bg:     #faf9f6;
  --quote-bg:     #efece6;
  --muted-dark:   #9aa6b5;
  --muted-light:  #56514a;
  --border-dark:  #1e3046;
  --border-light: #e2ddd4;
  --mono:  'Space Mono', monospace;
  --serif: 'Newsreader', serif;
  --sans:  'Hanken Grotesk', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark-bg); font-family: var(--sans); color: #1a1916; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
a { text-decoration: none; }
img { display: block; width: 100%; }

/* ---- Entry animations ---- */
@keyframes dkjRise {
  from { opacity: 0; transform: translateY(115%) rotate(2deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes dkjFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dkjSlideLeft {
  from { opacity: 0; transform: translateX(55px); }
  to   { opacity: 1; transform: translateX(0); }
}
.dkj-line { display: block; overflow: hidden; }
.dkj-word { display: inline-block; animation: dkjRise 1s cubic-bezier(0.22,1,0.36,1) both; }
.dkj-fade { animation: dkjFade 0.9s cubic-bezier(0.22,1,0.36,1) both; }

/* ---- Nav ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 6vw;
  mix-blend-mode: difference; color: #fff;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.site-nav.nav--hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.nav-logo { font-family: var(--mono); font-size: 15px; letter-spacing: 0.14em; color: #fff; font-weight: 700; }
.nav-links { display: flex; gap: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links a { color: #fff; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; background: var(--dark-bg); color: #eef2f7; display: flex; align-items: center; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 260px;
  background: linear-gradient(to left, var(--dark-bg) 15%, transparent 100%);
  z-index: 10; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 6vw;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
}
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.hero-photo { display: flex; align-items: center; justify-content: flex-start; }
.hero-photo img {
  width: 115%; height: auto; display: block;
  animation: dkjSlideLeft 1.4s cubic-bezier(0.22,1,0.36,1) 0.3s both;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 22%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 22%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  mask-composite: intersect;
}
.hero-name { font-family: var(--serif); font-weight: 400; font-size: clamp(52px,8.4vw,116px); line-height: 0.96; letter-spacing: -0.02em; margin: 0 0 28px; max-width: 14ch; }
.hero-tagline { font-family: var(--serif); font-size: clamp(19px,2.1vw,26px); line-height: 1.45; color: #aeb9c7; max-width: 34ch; margin: 0 0 40px; }
.hero-tagline em { font-style: italic; color: #eef2f7; }
.hero-meta { display: flex; gap: 34px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #7e8a9a; }
.meta-sep { color: #34465c; }
.scroll-hint { position: absolute; bottom: 34px; left: 6vw; z-index: 2; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #6b7888; }
.scroll-line { width: 46px; height: 1px; background: #2a3c52; display: block; }

/* ---- 3-D Cube ---- */
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(62vh,580px); perspective: 1300px; }
.cube-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(232,96,44,0.16), transparent 65%); filter: blur(20px); pointer-events: none; }
.cube { position: relative; width: 260px; height: 260px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-22deg); will-change: transform; }
.cube-face { position: absolute; width: 260px; height: 260px; left: 0; top: 0; border: 1px solid rgba(255,255,255,0.18); }
.cube-face--front { background: linear-gradient(135deg,rgba(232,96,44,0.12),rgba(255,255,255,0.015)); box-shadow: inset 0 0 50px rgba(255,255,255,0.035); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transform: translateZ(130px); }
.cube-icon { width: 74px; height: 74px; border: 1px solid var(--accent); }
.cube-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: rgba(243,241,236,0.55); }
.cube-face--back   { background: linear-gradient(135deg,rgba(255,255,255,0.07),rgba(255,255,255,0.015)); box-shadow: inset 0 0 50px rgba(255,255,255,0.03); transform: rotateY(180deg) translateZ(130px); }
.cube-face--right  { background: linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.01)); box-shadow: inset 0 0 50px rgba(255,255,255,0.03); transform: rotateY(90deg) translateZ(130px); }
.cube-face--left   { background: linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.01)); box-shadow: inset 0 0 50px rgba(255,255,255,0.03); transform: rotateY(-90deg) translateZ(130px); }
.cube-face--top    { border-color: rgba(255,255,255,0.2);  background: linear-gradient(135deg,rgba(232,96,44,0.16),rgba(255,255,255,0.02)); box-shadow: inset 0 0 50px rgba(255,255,255,0.04); transform: rotateX(90deg) translateZ(130px); }
.cube-face--bottom { border-color: rgba(255,255,255,0.12); background: linear-gradient(135deg,rgba(255,255,255,0.03),rgba(0,0,0,0.05)); transform: rotateX(-90deg) translateZ(130px); }
.cube-shadow { position: absolute; bottom: 9%; left: 50%; width: 300px; height: 56px; transform: translateX(-50%); background: radial-gradient(ellipse at center,rgba(0,0,0,0.6),transparent 70%); filter: blur(9px); opacity: 0.3; pointer-events: none; }

/* ---- Sections ---- */
.section { padding: clamp(90px,13vw,160px) 6vw; }
.section--light { background: var(--light-bg); }
.section--dark  { background: var(--dark-bg); color: #eef2f7; }
.section--quote { background: var(--quote-bg); padding: clamp(100px,15vw,180px) 6vw; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-inner--centered { max-width: 1000px; text-align: center; }

/* Scroll reveal — JS sets opacity:1 / transform:none when element enters view */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }

.section-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 54px; }
.section-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.2vw,54px); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 34px; }

/* ---- 01 Profile ---- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.portrait-img {
  width: 82%; aspect-ratio: 3/4; object-fit: cover; object-position: 58% 18%; display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 6%, black 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 6%, black 88%, transparent 100%);
  mask-composite: intersect;
}
.profile-bio p { font-size: 18px; line-height: 1.7; color: var(--muted-light); max-width: 54ch; margin-bottom: 22px; }
.profile-bio p + p { margin-bottom: 44px; }
.profile-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; padding-top: 30px; }
.stat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #a09a8e; margin-bottom: 9px; }
.stat-value { font-family: var(--serif); font-size: 21px; }
/* Profile on dark background overrides */
.section--dark .profile-bio p { color: var(--muted-dark); }
.section--dark .profile-stats { border-top-color: var(--border-dark); }
.section--dark .stat-label { color: #7e8a9a; }
.section--dark .stat-value { color: #eef2f7; }

/* ---- 02 Milestone ---- */
.section--dark .section-label { margin-bottom: 40px; }
.milestone-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(32px,5.4vw,72px); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; margin-bottom: 32px; }
.milestone-desc { font-size: 18px; line-height: 1.7; color: var(--muted-dark); max-width: 58ch; margin-bottom: 0; }
.milestone-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; border-top: 1px solid var(--border-dark); padding-top: 46px; }
.milestone-stat { text-align: center; }
.stat-number { font-family: var(--serif); font-size: clamp(38px,5vw,62px); line-height: 1; letter-spacing: -0.02em; }
.stat-number.accent { color: var(--accent); }
.section--dark .stat-label { color: #7e8a9a; margin-top: 14px; font-size: 11px; }

/* Milestone accordion */
.ms-accordion { margin-bottom: 64px; }
.ms-item { border-top: 1px solid var(--border-dark); }
.ms-item:last-child { border-bottom: 1px solid var(--border-dark); }
.ms-trigger { width: 100%; display: flex; align-items: center; gap: 28px; padding: 26px 0; background: none; border: none; cursor: pointer; text-align: left; color: inherit; }
.ms-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); flex-shrink: 0; }
.ms-short { font-family: var(--mono); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: #7e8a9a; flex: 1; transition: color 0.3s; }
.ms-item--open .ms-short, .ms-trigger:hover .ms-short { color: #eef2f7; }
.ms-icon { font-family: var(--mono); font-size: 24px; color: #7e8a9a; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), color 0.3s; line-height: 1; }
.ms-item--open .ms-icon { transform: rotate(180deg); color: var(--accent); }
.ms-body { overflow: hidden; max-height: 0; transition: max-height 0.55s cubic-bezier(0.22,1,0.36,1); }
.ms-item--open .ms-body { max-height: 500px; }
.ms-body-inner { padding-bottom: 44px; }

/* ---- 03 Ventures ---- */
.ventures-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.ventures-header .section-label { margin-bottom: 0; }

.carousel-outer {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
  cursor: grab;
}
.carousel-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 27vw, 360px);
  gap: 22px;
  padding: 10px 6vw 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 0.05s linear;
}
.carousel-track.is-dragging { cursor: grabbing; transition: none; }

.venture-card {
  flex-shrink: 0;
  width: clamp(260px, 27vw, 360px);
  background: #fff;
  border: 1px solid #e7e2d9;
  padding: 34px 30px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  cursor: grab;
}
.venture-card:hover, .venture-card.is-hovered { box-shadow: 0 18px 40px rgba(0,0,0,0.09); transform: translateY(-4px); }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-bottom: 12px; }
.card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a09a8e; }

/* ---- Quote ---- */
.quote-mark { font-family: var(--serif); font-size: 48px; line-height: 0; color: var(--accent); height: 30px; display: block; margin-bottom: 8px; }
.quote-text { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,4.4vw,52px); line-height: 1.18; letter-spacing: -0.015em; }
.quote-attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #a09a8e; margin-top: 38px; }

/* ---- 04 Beyond Business ---- */
.csr-carousel-outer {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
  cursor: grab;
}
.csr-carousel-track {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 360px);
  gap: 72px;
  padding: 44px 24px 24px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 0.05s linear;
}
.csr-carousel-track.is-dragging { cursor: grabbing; transition: none; }
.csr-item { display: flex; flex-direction: column; gap: 0; }
.csr-stack {
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.csr-photo {
  position: absolute; inset: 0;
  background: #e2ddd5;
  border: 1px solid #d4cfc6;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.csr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csr-photo--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  background: #ffffff;
}
.csr-text-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1916;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d4cfc6;
}
.csr-text-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: #5a5550;
}
.csr-photo--1 { z-index: 3; transform: rotate(0deg); background: #ddd8cf; }
.csr-photo--2 { z-index: 2; transform: rotate(3deg) translate(7px, -5px); background: #d4cfc6; }
.csr-photo--3 { z-index: 1; transform: rotate(-2.5deg) translate(-5px, -8px); background: #cbc5bc; }
.csr-stack:hover .csr-photo--2 { transform: rotate(9deg) translate(18px, -10px); }
.csr-stack:hover .csr-photo--3 { transform: rotate(-7deg) translate(-16px, -14px); }
.csr-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: #2a2520;
  text-align: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #d8d3ca;
}

/* ---- Footer ---- */
.footer { background: var(--dark-bg); color: #eef2f7; padding: clamp(100px,14vw,170px) 6vw 50px; }
.footer .section-label { margin-bottom: 36px; }
.footer-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(40px,7vw,96px); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 56px; max-width: 16ch; }
.contact-row { display: flex; gap: 64px; flex-wrap: wrap; border-top: 1px solid var(--border-dark); padding-top: 40px; }
.contact-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #7e8a9a; margin-bottom: 12px; }
.contact-value { font-family: var(--serif); font-size: 24px; color: #f3f1ec; }
a.contact-value:hover { text-decoration: underline; }
.footer-bottom { max-width: 1280px; margin: 90px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #48566a; }

/* ---- Responsive ---- */

/* Tablet — 768px to 900px (iPad, iPad Mini, etc.) */
@media (max-width: 900px) {
  /* Hero — reorder: name → photo → tagline/location */
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 130px;
    padding-bottom: 80px;
  }
  .hero::after { display: none; }
  .hero-text { display: contents; }
  .hero-name { order: 1; margin-bottom: 0; text-align: center; max-width: none; }
  .hero-photo { order: 2; justify-content: center; }
  .hero-text-sub { order: 3; text-align: center; }
  .hero-tagline { max-width: none; }
  .hero-photo img { width: 90%; max-width: 520px; }

  .profile-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait-img { width: 65%; max-width: 380px; margin: 0 auto; }

  .milestone-stats { grid-template-columns: repeat(2, 1fr); }

  .csr-carousel-track { gap: 44px; }
}

/* Mobile — phones up to 600px */
@media (max-width: 600px) {
  .site-nav { padding: 18px 5vw; }
  .nav-links { display: none; }

  .hero-inner { gap: 20px; padding-top: 100px; padding-bottom: 60px; }
  .hero-photo img { width: 88%; }
  .hero-meta { justify-content: center; }

  .profile-grid { gap: 32px; }
  .portrait-img { width: 66%; margin: 0 auto; }
  .profile-bio p { font-size: 16px; }

  .ms-trigger { gap: 14px; padding: 18px 0; }
  .ms-short { font-size: 10.5px; }
  .milestone-desc { font-size: 16px; }
  .milestone-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .milestone-stat:last-child { grid-column: 1 / -1; }

  .carousel-track {
    grid-auto-columns: clamp(220px, 72vw, 300px);
    gap: 14px;
    padding: 10px 5vw 10px;
  }
  .venture-card { min-height: 190px; padding: 26px 22px; }
  .card-name { font-size: 22px; }

  .csr-carousel-track {
    grid-auto-columns: clamp(220px, 70vw, 300px);
    gap: 28px;
  }
  .csr-text-title { font-size: 24px; }
  .csr-text-desc { font-size: 14px; }
  .csr-photo--text { padding: 28px 22px; }

  .footer-heading { margin-bottom: 40px; }
  .contact-row { flex-direction: column; gap: 28px; }
  .contact-value { font-size: 20px; }
}
