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

:root {
  --black:   #07080d;
  --deep:    #0d0f18;
  --panel:   #111420;
  --orange:  #e8651a;
  --orange2: #f5832e;
  --blue:    #1e4d8c;
  --blue2:   #2e6ec4;
  --sky:     #4a9fd4;
  --paper:   #f0ece4;
  --mid:     #8890a4;
  --rule-o:  rgba(232,101,26,0.22);
  --rule-b:  rgba(30,77,140,0.3);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: rgba(232,101,26,0.2); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--orange); color: #fff;
  padding: 0.6rem 1rem; font-size: 0.8rem; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ══════════════════════════════════════
   PERSPECTIVE CANVAS (hero bg)
══════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  background: linear-gradient(to bottom, rgba(7,8,13,0.95) 0%, transparent 100%);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(7,8,13,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232,101,26,0.12);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-decoration: none;
  font-weight: 400;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-logo:hover::after { transform: scaleX(1); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--orange); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  position: relative;
  z-index: 1;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5.5rem;
  overflow: hidden;
}

.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-vp-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-eyebrow {
  position: relative;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--orange);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(4rem, 9.5vw, 9.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  position: relative;
}
.hero-name .ln1 { color: var(--paper); }
.hero-name .ln2 { color: rgba(240,236,228,0.55); }
.hero-name .ln3 { font-style: italic; color: var(--orange); display: block; }

.hero-tagline {
  margin-top: 2.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(240,236,228,0.42);
  max-width: 40ch;
  line-height: 2;
  border-left: 2px solid var(--blue2);
  padding-left: 1.2rem;
  position: relative;
}

.hero-corner {
  position: absolute;
  top: 7rem; right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}
.hero-corner-line {
  height: 1px;
  background: linear-gradient(to left, var(--orange), transparent);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.25);
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ══════════════════════════════════════
   SHARED SECTION PATTERNS
══════════════════════════════════════ */
main { position: relative; z-index: 1; }
section { padding: 8rem 4rem; position: relative; overflow: hidden; }

.section-label {
  font-size: 0.63rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--orange); }
.section-title .blue { color: var(--sky); }

.rule-duo { display: flex; gap: 4px; margin-bottom: 3rem; }
.rule-duo span:nth-child(1) { width: 48px; height: 2px; background: var(--orange); }
.rule-duo span:nth-child(2) { width: 16px; height: 2px; background: var(--blue2); }

/* ══════════════════════════════════════
   ORIGIN
══════════════════════════════════════ */
#origin { background: var(--paper); color: var(--black); }
#origin .section-label { color: var(--orange); }
#origin .section-label::before { background: var(--orange); }
#origin .section-title { color: var(--black); }
#origin::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(30,77,140,0.06) 49.5%, rgba(30,77,140,0.06) 50.5%, transparent 50.5%),
    linear-gradient(125deg, transparent 49.5%, rgba(232,101,26,0.05) 49.5%, rgba(232,101,26,0.05) 50.5%, transparent 50.5%);
  pointer-events: none;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.origin-text p {
  font-size: 1rem;
  line-height: 1.95;
  color: #2a2d38;
  margin-bottom: 1.4rem;
}
.origin-text p strong { font-weight: 500; color: var(--black); }

.origin-pull {
  position: relative;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  border-left: 3px solid var(--orange);
  background: linear-gradient(135deg, rgba(232,101,26,0.04) 0%, transparent 60%);
}
.origin-pull::before {
  content: '"';
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(232,101,26,0.1);
  position: absolute;
  top: -1rem; left: 1rem;
  pointer-events: none;
}
.origin-pull blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
}
.origin-pull-attr {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ══════════════════════════════════════
   TIMELINE
══════════════════════════════════════ */
#journey { background: var(--deep); }
#journey::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(8.333% - 1px),
    rgba(30,77,140,0.06) calc(8.333% - 1px),
    rgba(30,77,140,0.06) 8.333%
  );
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), var(--blue2), transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 3.8rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(odd)  .tl-content { grid-column: 1; text-align: right; padding-right: 2.5rem; }
.tl-item:nth-child(odd)  .tl-empty   { grid-column: 3; }
.tl-item:nth-child(even) .tl-content { grid-column: 3; text-align: left;  padding-left:  2.5rem; }
.tl-item:nth-child(even) .tl-empty   { grid-column: 1; }
.tl-dot { grid-column: 2; display: flex; align-items: flex-start; justify-content: center; padding-top: 0.35rem; }
.tl-dot-inner {
  width: 13px; height: 13px;
  background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(232,101,26,0.12), 0 0 16px rgba(232,101,26,0.2);
  flex-shrink: 0;
}
.tl-year { font-size: 0.63rem; letter-spacing: 0.22em; color: var(--orange); margin-bottom: 0.35rem; }
.tl-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 0.45rem; color: var(--paper); }
.tl-body  { font-size: 0.8rem; color: rgba(240,236,228,0.45); line-height: 1.85; }

/* ══════════════════════════════════════
   IMPACT STATS
══════════════════════════════════════ */
#impact {
  background: var(--panel);
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}
#impact::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(60deg,  rgba(232,101,26,0.05) 1px, transparent 1px),
    linear-gradient(120deg, rgba(30,77,140,0.05)  1px, transparent 1px),
    linear-gradient(0deg,   rgba(240,236,228,0.02) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 40px 40px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(232,101,26,0.1);
  margin-top: 3rem;
  position: relative;
}
.stat-card {
  background: var(--panel);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--orange), var(--blue2));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.stat-card:hover { background: #161928; }
.stat-card:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--orange);
  display: block;
}
.stat-num.blue { color: var(--sky); }
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.7rem;
  color: rgba(240,236,228,0.4);
}

/* ══════════════════════════════════════
   EXPERTISE
══════════════════════════════════════ */
#expertise { background: var(--black); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(30,77,140,0.15);
  margin-top: 3rem;
}
.expertise-card {
  background: var(--black);
  padding: 2.8rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}
.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(232,101,26,0.12) 49%, rgba(232,101,26,0.12) 51%, transparent 51%),
    linear-gradient(225deg, transparent 49%, rgba(30,77,140,0.08) 49%, rgba(30,77,140,0.08) 51%, transparent 51%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.expertise-card:hover { background: #0d0f1a; }
.expertise-card:hover::after { opacity: 1; }
.expertise-icon { font-size: 1.6rem; margin-bottom: 1.3rem; display: block; }
.expertise-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin-bottom: 0.7rem; color: var(--paper); }
.expertise-desc { font-size: 0.8rem; color: rgba(240,236,228,0.42); line-height: 1.85; }
.expertise-tags { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(46,110,196,0.35);
  color: var(--sky);
}
.tag.orange { border-color: rgba(232,101,26,0.3); color: var(--orange2); }

/* ══════════════════════════════════════
   FEATURED WORK
══════════════════════════════════════ */
#work { background: var(--deep); }
#work::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(30deg,  rgba(232,101,26,0.03) 1px, transparent 1px),
    linear-gradient(150deg, rgba(30,77,140,0.04)  1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.work-card {
  position: relative;
  background: var(--panel);
  padding: 2.5rem;
  border: 1px solid rgba(30,77,140,0.15);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.work-card:hover { border-color: rgba(232,101,26,0.4); transform: translateY(-5px); }
.work-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--orange) transparent transparent;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.work-card:hover::before { opacity: 1; }
.work-card-num {
  font-family: var(--serif);
  font-size: 5rem; font-weight: 300; line-height: 1;
  color: rgba(232,101,26,0.07);
  position: absolute; top: 0.8rem; right: 1.2rem;
}
.work-card-tag { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.9rem; }
.work-card-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 0.7rem; color: var(--paper); }
.work-card-body  { font-size: 0.79rem; color: rgba(240,236,228,0.42); line-height: 1.85; }

/* ══════════════════════════════════════
   PUBLICATIONS
══════════════════════════════════════ */
#publications { background: var(--paper); color: var(--black); }
#publications .section-label { color: var(--orange); }
#publications .section-label::before { background: var(--orange); }
#publications .section-title { color: var(--black); }
#publications::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background:
    linear-gradient(100deg, transparent 49.5%, rgba(30,77,140,0.07) 49.5%, rgba(30,77,140,0.07) 50.5%, transparent 50.5%),
    linear-gradient(80deg,  transparent 49.5%, rgba(232,101,26,0.05) 49.5%, rgba(232,101,26,0.05) 50.5%, transparent 50.5%);
  pointer-events: none;
}

.pub-row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(30,77,140,0.15);
}
.pub-row:first-of-type { border-top: 1px solid rgba(30,77,140,0.15); }
.pub-year  { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--orange); min-width: 58px; padding-top: 0.25rem; }
.pub-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--black); margin-bottom: 0.35rem; }
.pub-desc  { font-size: 0.8rem; color: #5a6070; line-height: 1.85; }

/* ══════════════════════════════════════
   CONNECT
══════════════════════════════════════ */
#connect {
  background: var(--black);
  text-align: center;
  padding: 10rem 4rem;
  position: relative;
  overflow: hidden;
}
#connect::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(232,101,26,0.035) 0deg,
    transparent 3deg,
    transparent 15deg
  );
  pointer-events: none;
}
#connect::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 30%, var(--black) 80%);
  pointer-events: none;
}
#connect > * { position: relative; z-index: 1; }
#connect .section-label { justify-content: center; }
#connect .section-label::before { display: none; }
#connect .section-title { max-width: 12ch; margin: 0 auto 1.2rem; }
#connect .rule-duo { justify-content: center; }
.connect-intro { font-size: 0.88rem; color: rgba(240,236,228,0.42); max-width: 50ch; margin: 0 auto 3.5rem; line-height: 1.95; }
.connect-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border: 1px solid rgba(232,101,26,0.3);
  color: var(--orange);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.connect-link:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.connect-link.primary { background: var(--orange); border-color: var(--orange); color: var(--black); }
.connect-link.primary:hover { background: var(--orange2); border-color: var(--orange2); }
.connect-link.b { border-color: rgba(46,110,196,0.35); color: var(--sky); }
.connect-link.b:hover { background: var(--blue2); border-color: var(--blue2); color: var(--paper); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  position: relative; z-index: 1;
  background: #050608;
  padding: 2.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(232,101,26,0.1);
}
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(240,236,228,0.35); }
.footer-copy  { font-size: 0.67rem; letter-spacing: 0.12em; color: rgba(240,236,228,0.18); }

/* ══════════════════════════════════════
   REVEAL
══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 1.2rem 2rem; }
  section { padding: 5rem 2rem; }
  #hero { padding: 0 2rem 4rem; }
  .origin-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; }
  .tl-dot { grid-column: 1; }
  .tl-item:nth-child(odd) .tl-content,
  .tl-item:nth-child(even) .tl-content { grid-column: 2; text-align: left; padding-left: 1.5rem; padding-right: 0; }
  .tl-empty { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  section { padding: 4rem 1.25rem; }
  #hero { padding: 0 1.25rem 3rem; }
  #impact, #connect { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-corner { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .pub-row { flex-direction: column; gap: 0.6rem; }
  .connect-link { width: 100%; justify-content: center; }
  footer { padding: 1.6rem 1.25rem; }
}

/* ══════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .tl-item { opacity: 1 !important; transform: none !important; }
}
