:root {
  color-scheme: light;
  --ink: #0a0b0e;
  --muted: #5f6672;
  --line: #e2e6eb;
  --paper: #000000;
  --sky: #0ea5e9;
  --sky-mid: #38bdf8;
  --sky-light: #bae6fd;
  --sky-dark: #0284c7;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050608;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--sky);
  color: #fff;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 7.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.8vw, 5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.acc-italic {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 14px clamp(18px, 4vw, 44px);
  color: #fff;
  background: rgba(10, 11, 14, 0.62);
  backdrop-filter: saturate(140%) blur(22px);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background 0.3s ease, border-color 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 14, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  min-height: 58px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #ffffff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(14, 165, 233, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.brand:hover .brand-mark::after { opacity: 1; }

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== HOME HERO ===== */

.home-hero {
  display: block;
  min-height: min(860px, calc(92svh - var(--header)));
  padding-block: clamp(56px, 8vw, 100px) clamp(64px, 10vw, 120px);
  padding-inline: max(clamp(18px, 4vw, 44px), calc((100% - var(--max)) / 2));
  background: #050608;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 110% 0%, rgba(14, 165, 233, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at -10% 100%, rgba(2, 132, 199, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.45), transparent);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-hero-content > :not(h1) {
  max-width: min(640px, 60%);
}

.home-hero h1 {
  max-width: unset;
  font-size: clamp(3.2rem, 7.2vw, 7.6rem);
  color: #fff;
  margin-bottom: 28px;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.home-hero h1 .acc-italic {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}

.home-hero-statement {
  max-width: 540px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 26px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.home-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.home-hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--sky);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
}

.home-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.home-hero-visual {
  position: absolute;
  z-index: 1;
  top: clamp(140px, 18vw, 220px);
  right: max(clamp(18px, 4vw, 44px), calc((100% - var(--max)) / 2));
  aspect-ratio: 10 / 9;
  width: clamp(289px, 34vw, 440px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--sky-dark) 0%, var(--sky) 50%, var(--sky-light) 100%);
  box-shadow: 0 60px 120px -40px rgba(14, 165, 233, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(0);
  animation: hero-float 6s ease-in-out infinite alternate;
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 6, 8, 0.4));
  pointer-events: none;
}

@keyframes hero-float {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

/* ===== BUTTON SYSTEM ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.65, 0.2, 1), background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-on-dark {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-on-dark:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.btn-disabled {
  cursor: default;
  pointer-events: none;
}

.btn-primary.btn-disabled {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.78);
  color: rgba(10, 11, 14, 0.46);
}

/* ===== WORK SECTION (coming soon copy) ===== */

.work-section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 4vw, 44px);
  background: #ffffff;
}

.work-section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.work-section h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.work-section p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 300;
  line-height: 1.62;
}

/* ===== CAREER BAND ===== */

.career-band {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 44px);
  background: #0a0b0e;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.career-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 0% 100%, rgba(14, 165, 233, 0.16), transparent 60%);
  pointer-events: none;
}

.career-band-head {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.career-band-head h2 {
  max-width: 700px;
  color: #fff;
  margin-bottom: 0;
}

.career-rail {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.career-rail::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(14, 165, 233, 0.45), rgba(255, 255, 255, 0.05));
}

.career-rail li {
  position: relative;
  padding-top: 32px;
}

.career-rail-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: #0a0b0e;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.career-rail-dot.is-now {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.18);
  animation: pulse-now 2.4s ease-in-out infinite;
}

@keyframes pulse-now {
  0%, 100% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.18); }
  50% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
}

.career-rail-dates {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.career-rail h3 {
  margin-bottom: 6px;
  font-size: clamp(1.1rem, 1.6vw, 1.34rem);
  color: #fff;
  letter-spacing: -0.01em;
}

.career-rail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.5;
}

/* ===== FOOTER ===== */

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 58px) clamp(18px, 4vw, 44px);
  color: #fff;
  background: #0a0b0e;
}

.footer-label {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer p:not(.footer-label) {
  font-size: 1.12rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.footer-links a:hover {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */

@media (prefers-reduced-motion: reduce) {
  .home-hero-visual,
  .home-hero-meta .dot {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    align-items: flex-start;
    padding-top: clamp(48px, 8vw, 80px);
  }

  .home-hero-content > :not(h1) {
    max-width: 100%;
  }

  .home-hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .career-rail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .career-rail::before {
    top: 0; bottom: 0;
    left: 7px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(14, 165, 233, 0.45), rgba(255, 255, 255, 0.05));
  }
  .career-rail li { padding-left: 28px; padding-top: 0; }
  .career-rail-dot { left: 0; top: 4px; }
}

@media (max-width: 620px) {
  :root {
    --header: 106px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.7rem;
  }

  h1,
  .home-hero h1 {
    font-size: clamp(3rem, 14vw, 3.8rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .work-section,
  .career-band {
    padding-inline: 16px;
  }

  .home-hero {
    padding-inline: 16px;
  }
}

@media (max-width: 480px) {
  .home-hero h1 {
    font-size: clamp(3rem, 14vw, 3.8rem);
  }
}
