/* ---------- Design tokens ---------- */
:root {
  --bg: #050507;
  --bg-elevated: #0c0c11;
  --bg-card: #101015;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-dim: #a1a1ac;
  --text-faint: #6b6b76;
  --accent: #ff7a1a;
  --accent-light: #ffcf9a;
  --accent-glow: rgba(255, 122, 26, 0.35);
  --green: #4f9d6b;
  --green-deep: #316c45;
  --warn: #e0a458;
  --warn-light: #f3d5aa;
  --radius: 14px;
  --max-width: 1120px;
  --font: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

/* Display headings in Geist; body + small subheads (h3) stay in Inter. */
h1, h2 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.lede {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 640px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 7, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Condensed state once scrolled (class toggled in script.js). */
.nav.scrolled {
  background: rgba(5, 5, 7, 0.92);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav .wrap {
  transition: height 0.3s ease;
}

@media (min-width: 861px) {
  .nav.scrolled .wrap { height: 60px; }
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand {
  gap: 9px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

/* Sliding underline on hover. */
.nav-links a:not(.btn) {
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a:not(.btn)::after { transition: none; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text);
  color: #08080a;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1.5px rgba(255, 122, 26, 0.55), 0 3px 12px 0 rgba(255, 122, 26, 0.48);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.nav-actions .short-hide {
  display: none;
}

/* ---------- Hero (base) ---------- */
/* Neutral hero shared by simple pages (e.g. team.html): centered, dark theme,
   soft accent glow behind the title. The homepage adds .hero-sunrise on top. */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero:not(.hero-sunrise)::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Hero (sunrise, homepage only) ---------- */
/* Bright orange morning sky. This is the "starting page" — one strong color,
   then a stark break to black at the horizon line below. */
:root {
  --sky-dark: #0c0602;
  --sky-rust: #5a250f;
  --sky-top: #ff8a2b;
  --sky-mid: #ff9d3d;
  --sky-low: #ffbf66;
  --sky-ink: #3a1a05;        /* dark warm ink for text/marks on the sky */
  --sky-ink-dim: #6e401d;
  --horizon-line: #ffd089;
}

.hero-sunrise {
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding: 132px 0 96px;
  color: var(--sky-ink);
  /* Dune-poster treatment: near-black at the top, warming through rust into
     a vivid orange glow where the sun sits, settling into pale gold at the
     horizon. Black bleeds back in below via the .horizon seam. */
  background: linear-gradient(
    180deg,
    var(--sky-dark) 0%,
    var(--sky-rust) 24%,
    var(--sky-top) 46%,
    var(--sky-mid) 66%,
    var(--sky-low) 100%
  );
  border-bottom: none;
}

/* Decorative sky layer: glowing sun + slow rays, both rising from the horizon. */
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sun-glow {
  position: absolute;
  left: 50%;
  bottom: -52%;
  width: 120vw;
  max-width: 1300px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 249, 235, 0.7) 0%,
    rgba(255, 226, 170, 0.42) 20%,
    rgba(255, 190, 110, 0.18) 40%,
    rgba(255, 160, 70, 0) 64%
  );
  animation: sun-breathe 11s ease-in-out infinite;
}

/* Flowing diagonal lines across the upper sky (ifp.org-style field of curves).
   Kept faint and confined above the headline so text stays fully readable. */
.hero-flowlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
}

.hero-flowlines .flow {
  animation: flow-drift 22s ease-in-out infinite;
}

.hero-flowlines .flow:nth-child(1) { animation-delay: 0s; }
.hero-flowlines .flow:nth-child(2) { animation-delay: -3s; }
.hero-flowlines .flow:nth-child(3) { animation-delay: -6s; }
.hero-flowlines .flow:nth-child(4) { animation-delay: -9s; }
.hero-flowlines .flow:nth-child(5) { animation-delay: -12s; }
.hero-flowlines .flow:nth-child(6) { animation-delay: -15s; }
.hero-flowlines .flow:nth-child(7) { animation-delay: -18s; }

/* Concentric light arcs radiating from the horizon sun (ifp-style line-work). */
.sun-arcs {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 170vw;
  max-width: 1900px;
  height: 92%;
  transform: translateX(-50%);
}

.sun-arcs .arc {
  opacity: 1;
  animation: arc-shimmer 9s ease-in-out infinite;
}

.sun-arcs .arc:nth-child(1) { stroke-opacity: 0.18; animation-delay: 0s; }
.sun-arcs .arc:nth-child(2) { stroke-opacity: 0.15; animation-delay: 0.9s; }
.sun-arcs .arc:nth-child(3) { stroke-opacity: 0.12; animation-delay: 1.8s; }
.sun-arcs .arc:nth-child(4) { stroke-opacity: 0.10; animation-delay: 2.7s; }
.sun-arcs .arc:nth-child(5) { stroke-opacity: 0.08; animation-delay: 3.6s; }
.sun-arcs .arc:nth-child(6) { stroke-opacity: 0.06; animation-delay: 4.5s; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;             /* fill the hero so children can't overflow the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(230px, 30vw, 320px);
  margin-bottom: 34px;
  filter: drop-shadow(0 12px 30px rgba(120, 45, 0, 0.28));
}

.hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-turtle {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.hero-sunrise h1 {
  max-width: min(820px, 100%);   /* never exceed the container (fixes mobile clip) */
  color: var(--sky-ink);
}

.hero-sunrise .lede {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--sky-ink-dim);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons re-tuned for the light sunrise background. */
.hero-sunrise .btn-primary {
  background: #1a0d04;
  color: #fff3e2;
}

.hero-sunrise .btn-primary:hover {
  background: #1a0d04;
  border-color: var(--text);
  box-shadow: 0 0 0 0.75px var(--text);
}

.hero-sunrise .btn-outline {
  border-color: rgba(58, 26, 5, 0.4);
  color: var(--sky-ink);
}

.hero-sunrise .btn-outline:hover {
  border-color: var(--sky-ink);
}

/* ---------- Horizon: the stark orange → black seam ---------- */
.horizon {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--horizon-line) 12%,
    var(--horizon-line) 88%,
    transparent
  );
  box-shadow: 0 0 22px 2px rgba(255, 190, 110, 0.5);
}

/* ---------- Sunrise animation keyframes ---------- */
@keyframes sun-breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.92; }
  50%      { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

@keyframes sun-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ---------- Motion: hero entrance, sun float, turtle, arcs, scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* staggered entrance for the hero on load */
  .hero-sunrise .hero-logo,
  .hero-sunrise h1,
  .hero-sunrise .lede,
  .hero-sunrise .hero-actions {
    animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-sunrise .hero-logo { animation-delay: 0.05s; }
  .hero-sunrise h1 { animation-delay: 0.18s; }
  .hero-sunrise .lede { animation-delay: 0.3s; }
  .hero-sunrise .hero-actions { animation-delay: 0.42s; }

  /* the whole mark gently floats */
  .hero-logo-svg {
    animation: sun-float 6.5s ease-in-out infinite;
    will-change: transform;
  }

  /* the turtle slowly crawls */
  .hero-turtle {
    animation: turtle-crawl 6s ease-in-out infinite;
  }

  /* scroll reveal — class added by script.js. Hide is instant (no flash);
     only the reveal transitions. */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes sun-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes turtle-crawl {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(5px, -1px) rotate(-3deg); }
}

@keyframes arc-shimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes flow-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(14px, -6px); }
}

@media (prefers-reduced-motion: reduce) {
  .sun-glow,
  .sun-arcs .arc,
  .hero-flowlines .flow,
  .hero-logo-svg,
  .hero-turtle {
    animation: none;
  }
}

/* ---------- Section rhythm ---------- */
/* Sections alternate tone (black / elevated) and each carries a faint warm
   glow bleeding down from the hero, so the orange/black identity continues
   quietly all the way down the page instead of stopping dead at the horizon. */
#mission,
#philsophy,
#team-preview,
.cta {
  position: relative;
  overflow: hidden;
}

#mission::before,
#philsophy::before,
#team-preview::before,
.cta::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  max-width: 140vw;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255, 122, 26, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#philsophy {
  background: var(--bg-elevated);
}

#mission .wrap,
#philsophy .wrap,
#team-preview .wrap,
.cta .wrap {
  position: relative;
  z-index: 1;
}

/* A thin accent rule above each section's eyebrow — a small structural
   flourish that reads as intentional, not decorative clutter. */
.eyebrow-rule {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  margin-bottom: 18px;
}

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.mission-points {
  display: grid;
  gap: 20px;
}

.point {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.point:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.point .num {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: block;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.point h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.point p {
  margin: 0;
  font-size: 0.95rem;
}

.point p + p {
  margin-top: 12px;
}

.point ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.point ul li {
  margin-top: 6px;
}

/* Closing manifesto line in the "How We Work" section — set as a pull-quote
   rather than a plain paragraph, so it lands with the right weight. */
.pull-quote {
  margin: 16px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.lede a,
.point p a,
.callout p a,
.paper-card h3 a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lede a:hover,
.point p a:hover,
.callout p a:hover,
.paper-card h3 a:hover {
  color: var(--text);
}

/* ---------- Callout (stakes / warnings) ---------- */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-top: 40px;
}

.eyebrow-warn {
  color: var(--warn-light);
  background: rgba(224, 164, 88, 0.12);
  border-color: rgba(224, 164, 88, 0.3);
}

.callout p {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

/* ---------- Team ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head p {
  margin: 0;
  max-width: 480px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

/* Thin top accent bar, consistent across every card. */
.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.team-card.open-role::before {
  background: var(--border-strong);
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #08080a;
  font-size: 1.1rem;
  margin-bottom: 20px;
  overflow: hidden;
}

.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.team-role {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.team-card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.team-card .link-arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.team-card.open-role {
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card.open-role .avatar {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
}

/* ---------- Publications ---------- */
.papers-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.paper-card .eyebrow {
  display: block;
  width: fit-content;
}

.paper-area {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.paper-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.paper-authors {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.paper-card .link-arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Talk ---------- */
#talks-publications {
  padding-top: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Hiring ---------- */
.hiring {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

/* Faint warm corner glow, echoing the hero sun, anchors the panel below. */
.hiring::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 620px;
  max-width: 70vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.1), transparent 70%);
  pointer-events: none;
}

.hiring-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

.req-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.req-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);     /* center on the whole item (between lines) */
  width: 18px;
  height: 18px;
  border-radius: 100px;
  background: rgba(255, 122, 26, 0.15);
  border: 1px solid rgba(255, 122, 26, 0.45);
}

/* Inline check, centered in the circle; draws in when the section reveals. */
.req-check {
  position: absolute;
  left: 4.5px;                      /* +1px optical nudge: a check reads left of its geometric center */
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  overflow: visible;
}

.req-check path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dashoffset: 0;            /* fully drawn by default (no-JS / reduced motion) */
}

@media (prefers-reduced-motion: no-preference) {
  .req-check path {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;         /* hidden until the hiring block scrolls in */
    transition: stroke-dashoffset 0.55s ease;
  }
  .hiring-grid > div.in .req-check path { stroke-dashoffset: 0; }
  .req-list li:nth-child(2) .req-check path { transition-delay: 0.12s; }
  .req-list li:nth-child(3) .req-check path { transition-delay: 0.24s; }
}

.hiring-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: fit-content;
  overflow: hidden;
}

.hiring-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
}

.hiring-card h3 {
  font-size: 1.15rem;
}

.hiring-location {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hiring-card .btn {
  width: 100%;
  margin-top: 20px;
}

/* ---------- Profile (Ray Sun page) ---------- */
.profile-hero {
  padding-top: 72px;
  padding-bottom: 32px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 100px;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  color: #08080a;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-meta h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.profile-meta .team-role {
  margin-bottom: 8px;
}

.profile-meta .team-role + .team-role {
  margin-top: -4px;
}

.profile-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-email {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-email:hover {
  color: var(--text);
}

.profile-linkedin {
  padding: 5px 14px;
}

.profile-body {
  max-width: 700px;
  display: grid;
  gap: 16px;
}

.profile-body p:last-of-type {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--text);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.focus-tags span {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

/* ---------- CTA / Footer ---------- */
.cta {
  text-align: center;
}

.cta .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

footer {
  padding: 48px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer-actions {
  display: flex;
  gap: 12px;
}

.footer-note {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 24px;
  text-align: center;
}

/* ---------- Modal (Subscribe) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal h3 {
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 0.85rem;
  min-height: 18px;
  margin-top: 4px;
}

.form-status.success {
  color: #6fd08c;
}

.form-status.error {
  color: #ef6b6b;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mission-grid,
  .hiring-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hiring-grid {
    padding: 32px 24px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn-primary span.full {
    display: none;
  }

  .nav-actions .short-hide {
    display: inline;
  }

  .nav-actions .btn {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-linkedin {
    display: none;
  }
}

@media (max-width: 560px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ Brand motifs — logo woven through the page ============ */

/* 2. Giant faint sun bleeding from a section edge (brand texture) */
.sun-watermark {
  position: absolute;
  z-index: 0;
  width: 720px;
  max-width: 92vw;
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 105, 56, 0.07), rgba(255, 159, 117, 0.015) 70%, transparent);
  pointer-events: none;
}
#mission .sun-watermark { right: -150px; bottom: -100px; }
#hiring .sun-watermark  { left: -170px;  bottom: -120px; }

/* 3. Horizon dividers between sections (logo's cream baseline as rhythm) */
.hz-divider {
  position: relative;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 137, 0.38) 14%, rgba(255, 208, 137, 0.38) 86%, transparent);
}
.hz-divider.has-turtle { overflow: visible; }
.hz-turtle {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 34px;
  height: auto;
  filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.35));
}
/* dividers replace the faint section borders here */
#mission, #philsophy, #team-preview { border-bottom: none; }

/* 4. Mini sun marker on the point numbers (01 / 02) */
.point .num {
  position: relative;
  padding-top: 15px;
}
.point .num::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 22px;
  height: 11px;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, #ff6938, #ff9f75);
}

/* 1. Sunset bookend on the closing CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding-bottom: 200px;      /* room for the setting sun below the buttons */
  background: linear-gradient(180deg, var(--bg) 0%, #140a05 62%, #24120a 100%);
}
.cta-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -46%;
  width: 120vw;
  max-width: 1200px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 80, 0.2), rgba(255, 120, 50, 0.06) 38%, transparent 62%);
}
.cta-arcs {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150vw;
  max-width: 1700px;
  height: 74%;
  transform: translateX(-50%);
}
.cta-sun {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: min(440px, 66vw);
  height: auto;
  filter: drop-shadow(0 -6px 30px rgba(200, 80, 30, 0.4));
}

/* Time-of-day dividers: a sun cresting the horizon, higher towards mid-page */
.hz-divider.hz-sun { overflow: visible; }
.hz-crest {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 88px;
  height: var(--h, 18px);
  overflow: hidden;
  pointer-events: none;
}
.hz-crest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6938, #ff9f75);
}
/* soft glow behind the cresting sun (unclipped, so no box edge) */
.hz-divider.hz-sun::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 150px;
  height: 70px;
  background: radial-gradient(ellipse at center bottom, rgba(255, 120, 50, 0.22), transparent 70%);
  pointer-events: none;
}
/* on the midday divider the turtle sits just left of the high sun */
.hz-divider.has-turtle .hz-turtle { left: calc(50% - 66px); }

/* Scroll-linked "sun across the sky" progress on the nav's lower edge */
.day-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, #ff8a2b, #ff6938);
  z-index: 46;
  pointer-events: none;
}
.day-progress-sun {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffce8a;
  box-shadow: 0 0 8px 2px rgba(255, 180, 90, 0.85);
}

/* ============ Sunrise treatment for subpages (team / profiles) ============ */
/* Shorter sunrise hero band for interior pages */
.hero-sunrise.hero-sub {
  min-height: auto;
  padding: 120px 0 84px;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
.hero-sunrise.hero-sub .hero-inner {
  flex: none;
  justify-content: center;
}
/* eyebrow needs dark ink to read on the bright sky */
.hero-sunrise .eyebrow {
  color: #7c3f14;
  background: rgba(58, 26, 5, 0.08);
  border-color: rgba(58, 26, 5, 0.26);
}

/* Warm the dark profile hero + give the avatar a sunrise ring */
.profile-hero { position: relative; }
.profile-avatar {
  box-shadow: 0 0 0 2px rgb(255, 195, 155), 0 8px 26px rgba(255, 105, 56, 0.18);
}
