:root {
  --paper: #e8e9eb;
  --soft: #d8dade;
  --ink: #12151a;
  --ink-soft: #1c2128;
  --muted: #5c636e;
  --copper: #b87333;
  --copper-bright: #d4924a;
  --white: #f4f5f6;
  --line: rgba(18, 21, 26, 0.14);
  --line-dark: rgba(244, 245, 246, 0.16);
  --font-display: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

a:focus-visible,
.contact-email:focus-visible,
.round-link:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font: 700 25px/1 var(--font-display);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--copper);
}

.desktop-nav {
  display: flex;
  gap: 34px;
}

.desktop-nav a,
.nav-cta,
.header-actions a,
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.desktop-nav a {
  color: var(--muted);
}
.desktop-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions a {
  color: var(--muted);
}

.header-actions a:hover {
  color: var(--ink);
}

.nav-cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  color: var(--ink);
}

.nav-cta:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* —— Hero —— */
.hero {
  min-height: auto;
  padding: 48px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
}

.eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-intro {
  max-width: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 18px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.availability {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
  font-weight: 500;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.availability:hover {
  color: var(--copper);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
  font-weight: 500;
  max-width: 720px;
  color: var(--ink-soft);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: -0.04em;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-bottom p {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.round-link {
  width: 68px;
  height: 68px;
  border: 1px solid #9aa0a8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 23px;
  transition: 0.25s ease;
  flex-shrink: 0;
}

.round-link:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(4px);
}

/* —— Statement —— */
.statement-wrap {
  background: var(--ink);
  color: var(--white);
}

.statement {
  padding: 118px 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
}

.statement-kicker,
.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.statement-kicker {
  color: #9aa0a8;
}

.statement-copy {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  font-weight: 500;
}

.statement-copy strong {
  color: var(--copper-bright);
  font-weight: 600;
}

/* —— Metrics —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--soft);
}

.metric {
  padding: 54px 28px 54px 0;
  border-right: 1px solid var(--soft);
}

.metric:not(:first-child) {
  padding-left: 28px;
}
.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  font: 600 clamp(38px, 4vw, 56px)/1 var(--font-display);
  letter-spacing: -0.05em;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.45;
  margin-top: 10px;
  letter-spacing: 0.08em;
  max-width: 200px;
}

/* —— Sections —— */
.section {
  padding: 140px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2.05fr;
  gap: 40px;
  margin-bottom: 78px;
}

.section-head > div {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-top: 12px;
}

.section-num {
  font-size: 12px;
  color: var(--muted);
}

.section-head h2,
.about-heading h2 {
  font: 600 clamp(48px, 5.8vw, 84px)/0.98 var(--font-display);
  letter-spacing: -0.05em;
  margin: 0;
}

/* —— Projects —— */
.projects {
  display: grid;
  gap: 72px;
}

.project {
  border-top: 1px solid var(--soft);
  padding-top: 18px;
}

.project-featured {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-visual {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.project-featured .project-visual {
  height: 540px;
}

.project-body {
  padding-top: 22px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.project-body h3 {
  font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--font-display);
  letter-spacing: -0.035em;
  margin: 22px 0 12px;
}

.project-body p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 680px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  border: 1px solid #b8bcc4;
  border-radius: 2px;
  padding: 7px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.visual-ecg {
  background: linear-gradient(145deg, #c5cad3 0%, #e8e9eb 55%, #d4d8df 100%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 21, 26, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 26, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
}

.visual-copy {
  position: absolute;
  left: 38px;
  bottom: 35px;
  z-index: 2;
}

.visual-copy span {
  font-size: 10px;
  letter-spacing: 0.18em;
}

.visual-copy strong {
  display: block;
  font: 700 clamp(90px, 12vw, 178px)/0.8 var(--font-display);
  letter-spacing: -0.08em;
}

.pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--copper);
  animation: pulse-ring 4.5s ease-out infinite;
}

.pulse-a {
  width: 260px;
  height: 260px;
  right: -30px;
  top: 40px;
  animation-delay: 0s;
}
.pulse-b {
  width: 170px;
  height: 170px;
  right: 15px;
  top: 85px;
  animation-delay: 0.75s;
}
.pulse-c {
  width: 78px;
  height: 78px;
  right: 61px;
  top: 131px;
  background: var(--copper);
  border-color: var(--copper);
  animation: pulse-core 2.8s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.03);
  }
}

@keyframes pulse-core {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.visual-gatekeeper {
  background: #cfd3d9;
}

.route {
  position: absolute;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  animation: route-draw 3.2s ease-in-out infinite alternate;
}

.route-1 {
  width: 58%;
  left: 19%;
  top: 50%;
  transform: rotate(-23deg);
}
.route-2 {
  width: 53%;
  left: 25%;
  top: 34%;
  transform: rotate(29deg);
  animation-delay: 0.4s;
}
.route-3 {
  width: 48%;
  left: 26%;
  top: 65%;
  transform: rotate(-5deg);
  animation-delay: 0.8s;
}

@keyframes route-draw {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.node {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-family: var(--font-display);
}

.n1 {
  left: 14%;
  top: 43%;
}
.n2 {
  left: 45%;
  top: 16%;
  background: var(--ink);
  color: #fff;
}
.n3 {
  right: 12%;
  top: 31%;
}
.n4 {
  right: 20%;
  bottom: 11%;
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.visual-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.visual-pss {
  background: var(--ink-soft);
  color: white;
}

.ledger {
  position: absolute;
  left: 40px;
  top: 60px;
}

.ledger span,
.ledger small {
  display: block;
  color: #9aa0a8;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ledger b {
  display: block;
  font: 600 48px/1.1 var(--font-display);
  margin: 14px 0;
}

.bar {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 70px;
  height: 6px;
  background: #3a414c;
}

.bar i {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--copper);
  animation: bar-fill 3s ease-in-out infinite alternate;
}

@keyframes bar-fill {
  from {
    width: 58%;
  }
  to {
    width: 78%;
  }
}

.visual-erp {
  background: #d5d8de;
  display: grid;
  place-items: center;
}

.erp-window {
  width: 72%;
  height: 63%;
  background: var(--white);
  border: 1px solid #555b66;
  box-shadow: 18px 18px 0 var(--ink);
  padding: 16px;
  position: relative;
}

.erp-window > span {
  width: 8px;
  height: 8px;
  background: #888;
  display: inline-block;
  border-radius: 50%;
  margin-right: 4px;
}

.erp-title {
  font: 700 62px/1 var(--font-display);
  position: absolute;
  left: 20px;
  bottom: 38px;
  letter-spacing: -0.05em;
}

.erp-lines {
  position: absolute;
  right: 20px;
  bottom: 28px;
  width: 34%;
}

.erp-lines i {
  display: block;
  height: 2px;
  background: #a5a9b2;
  margin: 10px 0;
}

.visual-korarc {
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
}

.korarc-mark {
  font: 700 130px/1 var(--font-display);
  letter-spacing: -0.08em;
}

.korarc-mark span {
  font-size: 64px;
  color: var(--copper);
  vertical-align: 24px;
  margin-left: 10px;
}

.visual-korarc .visual-label {
  color: #9aa0a8;
}

/* —— Experience —— */
.dark-section {
  background: var(--ink);
  color: var(--white);
}

.section-head.light .section-num,
.section-head.light .section-kicker {
  color: #9aa0a8;
}

.timeline {
  border-top: 1px solid var(--line-dark);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 2fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}

.timeline-date {
  color: #9aa0a8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-row h3 {
  font: 600 24px/1.15 var(--font-display);
  margin: 0 0 6px;
}

.timeline-row p {
  margin: 0;
  color: #9aa0a8;
  line-height: 1.6;
}

.timeline-row div p {
  font-size: 13px;
}

.leadership-card {
  margin-top: 85px;
  border: 1px solid var(--line-dark);
  padding: 42px;
  display: grid;
  grid-template-columns: 0.6fr 1.8fr 1.2fr;
  gap: 40px;
}

.leadership-card > span {
  font-size: 11px;
  color: #9aa0a8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.leadership-card h3 {
  font: 500 clamp(28px, 3vw, 44px)/1.08 var(--font-display);
  letter-spacing: -0.04em;
  margin: 0;
}

.leadership-card h3 em {
  font-style: italic;
  color: var(--copper-bright);
  font-weight: 500;
}

.leadership-card p {
  color: #9aa0a8;
  line-height: 1.7;
  margin: 0;
}

/* —— Principles —— */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--soft);
  border-left: 1px solid var(--soft);
}

.principle {
  padding: 42px;
  border-right: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  min-height: 290px;
}

.principle > span {
  font-size: 11px;
  color: var(--muted);
}

.principle h3 {
  font: 600 28px/1.08 var(--font-display);
  letter-spacing: -0.035em;
  margin: 55px 0 14px;
}

.principle p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}

/* —— Stack —— */
.stack-section {
  padding: 82px 0;
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  overflow: hidden;
}

.stack-section .section-kicker {
  margin-left: 22px;
}

.stack-marquee {
  margin-top: 58px;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  font: 600 clamp(36px, 4.8vw, 68px)/1 var(--font-display);
  letter-spacing: -0.045em;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}

.stack-track i {
  font-style: normal;
  color: var(--copper);
  font-size: 0.5em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}

.about-heading .section-kicker {
  margin-left: 22px;
}
.about-heading h2 {
  margin-top: 52px;
}
.about-copy {
  padding-top: 62px;
}

.about-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.about-copy .lead {
  font: 500 28px/1.35 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-links {
  display: flex;
  gap: 36px;
  margin-top: 34px;
}

.about-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
}

.about-links a:hover {
  color: var(--copper);
  border-color: var(--copper);
}

/* —— Contact —— */
.contact-section {
  background: var(--ink-soft);
  color: white;
  border-top: 4px solid var(--copper);
}

.contact-inner {
  padding: 132px 0;
}

.contact-kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #9aa0a8;
}

.contact-inner h2 {
  font: 600 clamp(60px, 7.5vw, 118px)/0.9 var(--font-display);
  letter-spacing: -0.06em;
  margin: 38px 0;
}

.contact-inner h2 em {
  font-style: italic;
  color: var(--copper-bright);
  font-weight: 500;
}

.contact-inner p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: #b0b5bd;
}

.contact-email {
  display: inline-block;
  margin-top: 40px;
  font: 600 clamp(28px, 4.5vw, 52px)/1.1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 6px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--copper-bright);
  border-color: var(--copper-bright);
}

.contact-cv {
  display: block;
  width: fit-content;
  margin-top: 28px;
  font-size: 16px;
  color: #d4d8de;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 3px;
}

.contact-cv:hover {
  color: var(--copper-bright);
}

/* —— Footer —— */
.site-footer {
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 30px;
}

.site-footer > div:first-child strong,
.site-footer > div:first-child span {
  display: block;
}

.site-footer > div:first-child strong {
  font: 600 18px var(--font-display);
}

.site-footer > div:first-child span,
.site-footer > span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--copper);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.28s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse,
  .pulse-c,
  .route,
  .bar i,
  .stack-track {
    animation: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 14px;
  }
  .header-actions a:not(.nav-cta) {
    font-size: 13px;
  }
  .container {
    width: min(100% - 30px, 1240px);
  }
  .hero {
    min-height: auto;
    padding: 36px 0 56px;
    gap: 32px;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-name {
    font-size: clamp(48px, 12vw, 72px);
  }
  .hero-title {
    font-size: clamp(24px, 5.5vw, 36px);
    margin-top: 22px;
  }
  .statement {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 85px 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--soft);
  }
  .section {
    padding: 95px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 55px;
  }
  .project-featured,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-featured .project-visual,
  .project-visual {
    height: 420px;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .leadership-card {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-copy {
    padding-top: 0;
  }
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    height: 74px;
  }
  .header-actions a:not(.nav-cta) {
    display: none;
  }
  .nav-cta {
    font-size: 12px;
  }
  .hero {
    min-height: auto;
    padding: 28px 0 48px;
    gap: 28px;
  }
  .hero-name {
    font-size: clamp(40px, 14vw, 56px);
  }
  .hero-title {
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.15;
  }
  .hero-bottom p {
    font-size: 16px;
    padding-right: 20px;
  }
  .round-link {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric,
  .metric:not(:first-child) {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--soft);
  }
  .metric:last-child {
    border-bottom: 0;
  }
  .section-head h2,
  .about-heading h2 {
    font-size: 42px;
  }
  .project-featured .project-visual,
  .project-visual {
    height: 330px;
  }
  .project-body h3 {
    font-size: 26px;
  }
  .visual-copy strong {
    font-size: 104px;
  }
  .leadership-card {
    padding: 28px;
  }
  .principle {
    padding: 28px;
    min-height: auto;
  }
  .principle h3 {
    margin-top: 42px;
  }
  .about-copy .lead {
    font-size: 24px;
  }
  .about-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-inner h2 {
    font-size: 52px;
  }
  .contact-email {
    font-size: clamp(22px, 7vw, 32px);
    word-break: break-all;
  }
  .site-footer {
    padding: 34px 0;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}
