:root {
    --ink: #0d1117;
    --paper: #f5f0e8;
    --ocean: #1a3a4a;
    --brass: #b8922a;
    --brass-light: #d4a93a;
    --fog: #8a9ba8;
    --rule: rgba(184,146,42,0.3);
    --card-bg: #faf7f2;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
  }

  /* ── NOISE TEXTURE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    background: var(--ocean);
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,58,74,0) 0%, rgba(13,17,23,0.6) 100%),
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(184,146,42,0.03) 40px,
        rgba(184,146,42,0.03) 41px
      );
  }

  /* Animated compass rose */
  .compass {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    opacity: 0.08;
    animation: slowspin 120s linear infinite;
  }

  @keyframes slowspin {
    to { transform: translateY(-50%) rotate(360deg); }
  }

  .compass-svg { width: 100%; height: 100%; }

  /* Horizon line */
  .horizon {
    position: absolute;
    bottom: 38%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(184,146,42,0.4) 20%, rgba(184,146,42,0.4) 80%, transparent 100%);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8% 40px;
    position: relative;
    z-index: 2;
  }

  .hero-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
  }

  .hero-name {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 300;
    line-height: 0.92;
    color: var(--paper);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
  }

  .hero-name em {
    font-style: italic;
    color: var(--brass-light);
  }

  .hero-creds {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--fog);
    letter-spacing: 0.15em;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.55s forwards;
  }

  .hero-tagline {
    max-width: 480px;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(245,240,232,0.75);
    border-left: 2px solid var(--brass);
    padding-left: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
  }

  .hero-contact {
    display: flex;
    gap: 32px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(184,146,42,0.2);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.85s forwards;
    flex-wrap: wrap;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fog);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    transition: color 0.2s;
  }

  .contact-item:hover { color: var(--brass-light); }

  .contact-item .icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    fill: currentColor;
  }

  .hero-scroll {
    padding: 0 8% 48px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.1s forwards;
  }

  .scroll-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--fog);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .scroll-label::after {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--brass);
    display: block;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── NAVIGATION ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ocean);
    border-bottom: 1px solid rgba(184,146,42,0.25);
    padding: 0 8%;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 40px;
  }

  .nav-monogram {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brass);
    letter-spacing: 0.1em;
    margin-right: auto;
  }

  nav a {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--fog);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  nav a:hover { color: var(--brass-light); }

  /* ── SECTIONS ── */
  section {
    padding: 96px 8%;
  }

  .section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--brass);
  }

  /* ── ABOUT ── */
  #about {
    background: var(--paper);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .about-heading {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ocean);
  }

  .about-heading em {
    font-style: italic;
    color: var(--brass);
  }

  .about-body p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: #3a3530;
    margin-bottom: 20px;
  }

  .credentials-strip {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .cred-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--ocean);
    background: transparent;
    border: 1px solid rgba(26,58,74,0.3);
    padding: 6px 14px;
    text-transform: uppercase;
  }

  /* ── EXPERIENCE ── */
  #experience {
    background: var(--ocean);
    color: var(--paper);
  }

  #experience .section-label { color: var(--brass); }

  .exp-list { display: flex; flex-direction: column; gap: 0; }

  .exp-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(184,146,42,0.15);
    position: relative;
  }

  .exp-item:last-child { border-bottom: none; }

  .exp-meta {
    padding-top: 4px;
  }

  .exp-company {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--paper);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .exp-period {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--brass);
    margin-bottom: 6px;
  }

  .exp-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--fog);
    text-transform: uppercase;
  }

  .exp-body {}

  .exp-title {
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    color: var(--brass-light);
    margin-bottom: 14px;
  }

  .exp-desc {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(245,240,232,0.72);
    margin-bottom: 20px;
  }

  .exp-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .exp-achievements li {
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(245,240,232,0.65);
    padding-left: 20px;
    position: relative;
  }

  .exp-achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--brass);
    font-size: 0.8rem;
  }

  .exp-projects {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .project-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(184,146,42,0.15);
    border-left: 2px solid var(--brass);
    padding: 16px 20px;
  }

  .project-client {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .project-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245,240,232,0.65);
  }

  /* ── EARLIER CAREER ── */
  #earlier {
    background: var(--card-bg);
  }

  .timeline {
    position: relative;
    padding-left: 32px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--brass) 0%, rgba(184,146,42,0.1) 100%);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 48px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 10px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--brass);
    background: var(--card-bg);
    transform: rotate(45deg);
  }

  .tl-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .tl-company {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ocean);
  }

  .tl-period {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--brass);
  }

  .tl-role {
    font-size: 1rem;
    font-style: italic;
    color: #5a5048;
    margin-bottom: 10px;
  }

  .tl-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #4a4540;
  }

  /* ── EXPERTISE ── */
  #expertise {
    background: var(--ink);
    color: var(--paper);
    padding: 96px 8% 112px;
  }

  #expertise .section-label { color: var(--brass); }

  .expertise-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
  }

  .expertise-headline {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--paper);
    letter-spacing: -0.015em;
  }

  .expertise-headline em {
    font-style: italic;
    color: var(--brass-light);
  }

  .expertise-summary {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245,240,232,0.6);
    align-self: end;
  }

  /* Big feature cards — top row */
  .expertise-feature-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2px;
    margin-bottom: 2px;
  }

  /* Secondary row */
  .expertise-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 2px;
  }

  .expertise-cell {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(184,146,42,0.1);
    transition: background 0.35s, border-color 0.35s;
    cursor: default;
    display: flex;
    flex-direction: column;
  }

  .expertise-cell:hover {
    background: rgba(184,146,42,0.08);
    border-color: rgba(184,146,42,0.3);
  }

  .expertise-cell-inner {
    padding: 44px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .expertise-cell.feature .expertise-cell-inner {
    padding: 52px 48px;
  }

  .expertise-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--brass);
    margin-bottom: 28px;
    display: block;
  }

  .expertise-title {
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--paper);
    margin-bottom: 18px;
  }

  .expertise-cell.feature .expertise-title {
    font-size: 1.75rem;
  }

  .expertise-desc {
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(245,240,232,0.52);
    margin-bottom: 28px;
    flex: 1;
  }

  .expertise-cell.feature .expertise-desc {
    font-size: 1.05rem;
    color: rgba(245,240,232,0.6);
  }

  .expertise-proof {
    border-top: 1px solid rgba(184,146,42,0.15);
    padding-top: 20px;
    margin-top: auto;
  }

  .expertise-proof-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: rgba(184,146,42,0.6);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .expertise-proof-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .proof-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: rgba(245,240,232,0.4);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 10px;
  }

  /* Stats bar inside feature cell */
  .expertise-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 24px;
  }

  .stat-value {
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--brass-light);
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(245,240,232,0.4);
    max-width: 120px;
    line-height: 1.4;
  }

  /* ── QUALIFICATIONS ── */
  #qualifications {
    background: var(--paper);
  }

  .qual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .qual-group-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--fog);
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
  }

  .qual-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
  }

  .qual-name {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--ocean);
    line-height: 1.4;
  }

  .qual-year {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--brass);
    white-space: nowrap;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--ocean);
    padding: 48px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(184,146,42,0.2);
    flex-wrap: gap;
    gap: 24px;
  }

  .footer-name {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--paper);
    letter-spacing: 0.05em;
  }

  .footer-contact {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-contact a {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--fog);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-contact a:hover { color: var(--brass-light); }

  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.animate-hidden {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 1100px) {
    .expertise-feature-row { grid-template-columns: 1fr 1fr; }
    .expertise-feature-row .expertise-cell.feature { grid-column: 1 / -1; }
    .expertise-secondary-row { grid-template-columns: 1fr 1fr; }
    .expertise-secondary-row .expertise-cell.feature { grid-column: 1 / -1; }
    .expertise-intro { grid-template-columns: 1fr; gap: 32px; }
  }

  @media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .exp-item { grid-template-columns: 1fr; gap: 12px; }
    .qual-grid { grid-template-columns: 1fr; gap: 40px; }
    nav a:nth-child(n+3) { display: none; }
    .compass { display: none; }
  }

  @media (max-width: 600px) {
    section { padding: 64px 6%; }
    .expertise-feature-row, .expertise-secondary-row { grid-template-columns: 1fr; }
    .expertise-feature-row .expertise-cell.feature, .expertise-secondary-row .expertise-cell.feature { grid-column: auto; }
    .hero-content { padding: 80px 6% 40px; }
    nav { padding: 0 6%; }
    footer { padding: 40px 6%; flex-direction: column; align-items: flex-start; }
  }