:root {
  /* LinkedIn brand: light grey band, white base, signal orange */
  --bg: #ffffff;
  --bg-2: #f2f2f2;
  --band: #d4d4d4;
  --fg: #1b1b1b;
  --muted: #5c5c5c;
  --line: rgba(27, 27, 27, 0.12);
  --accent: #f16a10;
  --accent-ink: #c9520a; /* orange dark enough for small text on white */
  --glow: rgba(241, 106, 16, 0.22);
  --on-accent: #ffffff;
  --ink: #161616;
  color-scheme: light;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Small labels (replaces the old mono style) */
.eyebrow, .count, .step__num, .project__index, .project__year, .footer, .about__cols h3 {
  font-variant-numeric: tabular-nums;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; display: inline-flex; align-items: center; gap: 10px; }
.nav__mark span { color: var(--accent); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 15px; font-weight: 500; align-items: center; }
.nav__links a { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 8px 18px; transition: background .3s, transform .3s var(--ease); }
.nav__cta:hover { background: var(--ink); transform: translateY(-1px); }

/* Hero: the grey banner with the geodesic globe */
.hero {
  min-height: 100svh;
  padding: 140px var(--gutter) 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--band);
}
.hero__globe {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  pointer-events: none;
}
.eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted); margin: 0 0 24px;
}
.hero .eyebrow { color: var(--fg); font-size: clamp(14px, 1.3vw, 17px); }
.eyebrow .sep { color: var(--accent); margin: 0 .35em; font-weight: 400; }
.hero__title { font-family: var(--display);
  font-size: clamp(34px, 8.6vw, 160px);
  line-height: 0.95; letter-spacing: -0.055em; font-weight: 650;
  margin: 0 0 48px; color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title em { font-style: normal; color: var(--accent); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }

.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero__meta p { max-width: 520px; margin: 0; color: #3d3d3d; font-size: clamp(16px, 1.4vw, 20px); }
.pill {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 24px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s;
}
.pill:hover { background: var(--accent); transform: translateY(-2px); }

.badges {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.badges li {
  background: color-mix(in srgb, #fff 86%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px;
}
.badges strong { white-space: nowrap; line-height: 1.05; font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 650; letter-spacing: -0.045em; color: var(--accent); }
.badges span { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 88px); font-weight: 650; letter-spacing: -0.05em; margin: 0; line-height: 1; }
.count { color: var(--muted); font-size: 14px; font-weight: 500; }

/* Pipeline: nodes on a connecting line, echoing the globe */
.pipeline__intro { max-width: 640px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); margin: -16px 0 56px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 2px solid var(--accent);
}
.step { padding: 28px 24px 0 0; position: relative; display: grid; gap: 12px; align-content: start; }
.step::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px #fff;
}
.step:last-child::before { box-shadow: 0 0 0 4px #fff, 0 0 0 10px var(--glow), 0 0 24px 6px var(--glow); }
.step__num { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.step h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.035em; margin: 0; line-height: 1.1; }
.step p { margin: 0; font-size: 15px; color: var(--muted); max-width: 32ch; }

/* Projects */
.work { background: var(--bg-2); }
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project { border-bottom: 1px solid var(--line); }
.project__row {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 60px 1.2fr 1.6fr auto; gap: 24px; align-items: baseline;
  padding: 28px 0; position: relative;
}
.project__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project__index, .project__year { font-size: 14px; font-weight: 500; color: var(--muted); }
.project__name { font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 72px); font-weight: 650; letter-spacing: -0.05em; line-height: 1;
  transition: transform .5s var(--ease), color .3s;
}
.project__tags { color: var(--muted); font-size: 15px; }
.project__row:hover .project__name, .project.is-open .project__name { transform: translateX(16px); color: var(--accent); }

.project__body {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .8s var(--ease), opacity .5s, padding .5s;
}
.project.is-open .project__body { max-height: 900px; opacity: 1; padding-bottom: 40px; }
.project__visual {
  aspect-ratio: 4 / 3; border-radius: 14px; position: relative; overflow: hidden;
  background-color: var(--band);
}
.project__visual::after {
  content: ""; position: absolute; inset: -50%;
  background: inherit; filter: blur(40px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: rotate(25deg) scale(1.15); } }
.v-airspace { background-image: radial-gradient(circle at 30% 60%, var(--accent), transparent 45%), radial-gradient(circle at 80% 20%, #fff, transparent 40%); }
.v-ekkono { background-image: radial-gradient(circle at 70% 40%, var(--accent), transparent 45%), radial-gradient(circle at 20% 80%, #fff, transparent 40%); }
.v-tm { background-image: radial-gradient(circle at 50% 50%, var(--accent), transparent 40%), radial-gradient(circle at 10% 10%, #fff, transparent 35%); }
.v-ubi { background-image: radial-gradient(circle at 40% 30%, var(--accent), transparent 42%), radial-gradient(circle at 85% 85%, #fff, transparent 40%); }
.v-crytek { background-image: radial-gradient(circle at 60% 70%, var(--accent), transparent 45%), radial-gradient(circle at 15% 30%, #fff, transparent 40%); }
.project__text .lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 24px; }
.project__text ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.project__text li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); font-size: 16px; position: relative; }
.project__text li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* Cursor dot that follows the pointer (desktop) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg); border: 1px solid transparent; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-active { opacity: .45; }
.cursor.is-big { width: 28px; height: 28px; background: transparent; border-color: var(--accent); opacity: .8; }
@media (hover: none) { .cursor { display: none; } }

/* About */
.about { background: var(--ink); color: #f4f4f4; }
.about .section-head h2 { color: #fff; }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about__statement { font-family: var(--display); font-size: clamp(24px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -0.035em; margin: 0; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.about__cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0 0 10px; color: var(--accent); }
.about__cols p { margin: 0; font-size: 16px; color: #c9c9c9; }

/* Contact */
.contact {
  min-height: 80svh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.contact__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.contact__portrait {
  margin: 0; width: 100%; max-width: 460px; justify-self: end; position: relative;
}
.contact__portrait::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  animation: spin 60s linear infinite;
}
.contact__portrait::after {
  content: ""; position: absolute; top: 8%; right: 4%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px var(--glow), 0 0 28px 8px var(--glow);
}
.contact__portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%;
  border: 8px solid #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35);
  transition: transform .6s var(--ease);
}
.contact__portrait:hover img { transform: scale(1.02); }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__big { font-family: var(--display);
  display: flex; align-items: center; gap: .2em;
  font-size: clamp(48px, 8vw, 168px); white-space: nowrap; font-weight: 650; letter-spacing: -0.055em; line-height: .9;
}
.contact__big .arrow { color: var(--accent); transition: transform .5s var(--ease); }
.contact__big:hover .arrow { transform: translateX(.15em) rotate(-45deg); }
.contact__links { list-style: none; padding: 0; margin: 56px 0 0; display: flex; gap: 32px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.contact__links a { color: var(--muted); transition: color .3s; }
.contact__links a:hover { color: var(--accent-ink); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__portrait { justify-self: center; max-width: 340px; margin-top: 24px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .step { border-top: 2px solid var(--accent); }
  .badges { grid-template-columns: 1fr; }
  .project__row { grid-template-columns: 36px 1fr auto; }
  .project__tags { grid-column: 2 / -1; grid-row: 2; }
  .project__body, .about__grid { grid-template-columns: 1fr; }
  .project__visual { aspect-ratio: 16 / 9; }
  .project.is-open .project__body { max-height: 1400px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
  .about__cols { grid-template-columns: 1fr; }
  .contact__big { font-size: clamp(44px, 15vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .hero__globe { opacity: .6; }
  .eyebrow .sep { margin: 0 .2em; }
}
.hero__lead { display: block; color: var(--ink); font-weight: 600; font-size: 1.15em; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: .5em; }
.project__logo {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 18px; padding: 22px 30px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35);
}
img.project__logo { width: min(220px, 52%); height: auto; max-height: 72px; object-fit: contain; box-sizing: content-box; }
.project__wordmark { font-weight: 700; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; }
