:root {
  --ink: #17232b;
  --ink-soft: #34444e;
  --sky: #39a8d7;
  --sky-deep: #1688bb;
  --sky-pale: #eaf7fc;
  --paper: #f7f8f6;
  --white: #ffffff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --font-geist-mono: "Courier New", Courier, monospace;
  --muted: #636f77;
  --line: rgba(23, 35, 43, 0.55);
  --sky-text: #1374a0;
  --line-soft: rgba(23, 35, 43, 0.3);
  --field-bg: #f0f9fe;
  --field-line: #1688bb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 84px;
}

html.hc {
  --muted: #495158;
  --sky-text: #0e5677;
  --line: rgba(23, 35, 43, 0.75);
  --line-soft: rgba(23, 35, 43, 0.5);
  --field-bg: #e7f4fb;
  --field-line: #0e5677;
  font-size: 112.5%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html.hc body {
  line-height: 1.7;
}

html.hc .hero-grid,
html.hc .hero-glow,
html.hc .portfolio-fields {
  background-image: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--sky);
  color: var(--white);
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

a:focus-visible,
button:focus-visible,
input:focus,
select:focus,
textarea:focus,
summary:focus-visible {
  outline: 3px solid var(--sky-text);
  outline-offset: 3px;
}

input,
select,
textarea {
  background: var(--field-bg);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--field-line);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 13px;
}

input[type="text"],
input[type="email"],
textarea {
  font-weight: 400;
}

input:hover,
select:hover,
textarea:hover {
  background: #e9f5fd;
  border-color: var(--field-line);
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-left-width: 6px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
  opacity: 1;
}

.site-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  height: 118px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    height 0.35s var(--ease);
  z-index: 100;
}

.nav-shell {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100%;
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 clamp(24px, 4vw, 64px);
  width: 100%;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 36px rgba(23, 35, 43, 0.055);
  height: 80px;
}

.scroll-progress {
  background: var(--sky);
  bottom: -1px;
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  transform-origin: left center;
  will-change: transform;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  grid-column: 2;
  justify-self: center;
  padding: 10px 30px 12px;
  position: relative;
  text-decoration: none;
  transition:
    padding 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.wordmark::after {
  background: var(--sky);
  bottom: 2px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
  width: 42px;
}

.nav-logo {
  display: block;
  height: 64px;
  object-fit: contain;
  transition: height 0.35s var(--ease);
  width: auto;
}

.wordmark:hover,
.wordmark:focus-visible {
  transform: translateY(-1px);
}

.wordmark:hover::after,
.wordmark:focus-visible::after {
  width: 72px;
}

.site-nav.is-scrolled .wordmark {
  padding: 7px 24px 9px;
}

.site-nav.is-scrolled .nav-logo {
  height: 44px;
}

.wordmark-dot {
  background: var(--sky);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(57, 168, 215, 0.12);
  height: 9px;
  width: 9px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  grid-column: 3;
  justify-self: end;
}

.nav-links a,
.nav-links button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after,
.nav-links button::after {
  background: var(--sky-text);
  bottom: 2px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
  width: 100%;
}

.nav-links .contrast-toggle,
.mobile-nav .contrast-toggle {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  min-height: 38px;
  padding: 7px 11px;
  white-space: nowrap;
}

.nav-links .contrast-toggle::after,
.mobile-nav .contrast-toggle::after {
  display: none;
}

.contrast-toggle > span:first-child {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contrast-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -3px var(--sky);
  color: var(--white);
  font-weight: 750;
}

.mobile-nav {
  display: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links button:hover::after,
.nav-links button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(40px, 5vw, 90px);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  isolation: isolate;
  min-height: min(920px, 100svh);
  overflow: hidden;
  padding: 168px clamp(24px, 7vw, 112px) 110px;
  position: relative;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(23, 35, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 43, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
  pointer-events: none;
  position: absolute;
  z-index: -3;
}

.hero-glow {
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.hero-glow-one {
  background: radial-gradient(circle, rgba(57, 168, 215, 0.18), transparent 68%);
  height: 680px;
  right: -110px;
  top: -180px;
  width: 680px;
}

.hero-glow-two {
  background: radial-gradient(circle, rgba(107, 196, 152, 0.11), transparent 70%);
  bottom: -360px;
  height: 640px;
  left: -250px;
  width: 640px;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.overline {
  color: var(--sky-text);
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 30px;
}

.eyebrow-pulse {
  background: var(--sky);
  border-radius: 50%;
  height: 8px;
  position: relative;
  width: 8px;
}

.eyebrow-pulse::after {
  animation: pulse 2.4s ease-out infinite;
  border: 1px solid var(--sky);
  border-radius: inherit;
  content: "";
  inset: -5px;
  position: absolute;
}

.hero h1 {
  font-size: clamp(3.3rem, 6.3vw, 7.2rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.93;
  margin: 0;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--sky);
  font-style: normal;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  margin: 36px 0 0;
  max-width: 590px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.primary-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 680;
  gap: 22px;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.primary-button svg,
.portfolio-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 0.3s var(--ease);
  width: 18px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--ink);
  border-color: var(--sky-text);
  box-shadow: 0 14px 34px rgba(22, 136, 187, 0.2);
  transform: translateY(-3px);
}

.primary-button:hover svg,
.portfolio-button:hover svg {
  transform: translateX(4px);
}

.text-link {
  border-bottom: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  padding: 6px 0 4px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.text-link:hover {
  border-color: var(--sky-text);
  color: var(--sky-text);
}

.hero-orbit {
  aspect-ratio: 1;
  justify-self: center;
  max-width: 610px;
  position: relative;
  width: 100%;
}

.hero-orbit::before {
  background: radial-gradient(circle, rgba(57, 168, 215, 0.1), transparent 65%);
  border-radius: 50%;
  content: "";
  inset: 12%;
  position: absolute;
}

.orbit-center {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(57, 168, 215, 0.35);
  border-radius: 50%;
  box-shadow: 0 24px 80px rgba(22, 136, 187, 0.14);
  display: flex;
  flex-direction: column;
  height: 138px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 138px;
  z-index: 4;
}

.orbit-center > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.orbit-center > span:last-child {
  color: var(--sky-text);
  margin-top: 2px;
}

.orbit {
  animation: orbit-spin 30s linear infinite;
  border: 1px solid rgba(23, 35, 43, 0.15);
  border-radius: 50%;
  left: 50%;
  position: absolute;
  top: 50%;
}

.orbit-one {
  height: 62%;
  transform: translate(-50%, -50%);
  width: 62%;
}

.orbit-two {
  animation-direction: reverse;
  animation-duration: 42s;
  border-style: dashed;
  height: 92%;
  transform: translate(-50%, -50%);
  width: 92%;
}

.orbit-node {
  animation: orbit-counter-spin 30s linear infinite;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(23, 35, 43, 0.08);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 680;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  position: absolute;
  white-space: nowrap;
}

.orbit-two .orbit-node {
  animation-direction: reverse;
  animation-duration: 42s;
}

.orbit-node-one {
  left: -2%;
  top: 21%;
}

.orbit-node-two {
  bottom: 9%;
  right: 5%;
}

.orbit-node-three {
  right: 2%;
  top: 17%;
}

.orbit-node-four {
  bottom: 12%;
  left: 1%;
}

.orbit-node-five {
  bottom: -2%;
  left: 39%;
}

.orbit-node-six {
  left: 39%;
  top: -3%;
}

.orbit-coordinate {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  position: absolute;
}

.coordinate-one {
  left: 8%;
  top: 8%;
}

.coordinate-two {
  bottom: 5%;
  right: 10%;
}

.scroll-cue {
  align-items: center;
  bottom: 28px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 650;
  gap: 10px;
  left: 50%;
  letter-spacing: 0.15em;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  background: var(--line);
  height: 34px;
  overflow: hidden;
  position: relative;
  width: 1px;
}

.scroll-cue i::after {
  animation: scroll-line 2s var(--ease) infinite;
  background: var(--sky);
  content: "";
  height: 50%;
  left: 0;
  position: absolute;
  top: -50%;
  width: 1px;
}

.hero-enter {
  animation: hero-in 0.9s var(--ease) both;
}

.hero-enter-one {
  animation-delay: 0.08s;
}

.hero-enter-two {
  animation-delay: 0.17s;
}

.hero-enter-three {
  animation-delay: 0.3s;
}

.hero-enter-four {
  animation-delay: 0.43s;
}

.stats-section {
  background: linear-gradient(to bottom, var(--paper) 50%, var(--white) 50%);
  padding: 0 clamp(24px, 7vw, 112px);
}

.stats-shell {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1320px;
}

.stat {
  min-height: 230px;
  padding: 46px clamp(28px, 4vw, 60px);
  position: relative;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-kicker {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.stat strong {
  color: var(--sky);
  display: block;
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 710;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  margin: 16px 0 0;
}

.about-section {
  background: var(--white);
  padding: clamp(90px, 11vw, 170px) clamp(24px, 7vw, 112px);
}

.section-shell {
  margin: 0 auto;
  max-width: 1320px;
}

.section-header {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin-bottom: clamp(58px, 7vw, 96px);
  padding-top: 18px;
}

.section-header span {
  color: var(--sky-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-header p {
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  margin: 0;
  text-transform: uppercase;
}

.about-layout {
  align-items: center;
  display: grid;
  gap: clamp(60px, 9vw, 140px);
  grid-template-columns: minmax(300px, 0.85fr) minmax(380px, 1.15fr);
}

.portrait-frame {
  background: var(--sky-pale);
  overflow: hidden;
  position: relative;
}

.portrait-frame::before {
  border: 1px solid rgba(255, 255, 255, 0.75);
  content: "";
  inset: 18px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.portrait-frame img {
  aspect-ratio: 4 / 5;
  display: block;
  filter: saturate(0.9) contrast(1.02);
  object-fit: cover;
  object-position: center top;
  transition: transform 1s var(--ease);
  width: 100%;
}

.portrait-frame:hover img {
  transform: scale(1.025);
}

.portrait-accent {
  background: var(--sky);
  bottom: 0;
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.portrait-caption {
  align-items: center;
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding-top: 14px;
  text-transform: uppercase;
}

.portrait-caption span:last-child {
  color: var(--muted);
}

.about-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 710;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 20px 0 42px;
}

.about-copy h2 em {
  color: var(--sky);
  font-style: normal;
}

.about-body {
  border-left: 1px solid var(--line);
  max-width: 680px;
  padding-left: clamp(22px, 3vw, 42px);
}

.about-body p {
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  line-height: 1.85;
  margin: 0 0 20px;
}

.signature-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 26px;
}

.signature-row > div {
  display: flex;
  flex-direction: column;
}

.signature-row strong {
  font-size: 0.95rem;
}

.signature-row span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.linkedin-button {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 680;
  gap: 9px;
  padding: 11px 15px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.linkedin-button svg {
  height: 15px;
  width: 15px;
}

.linkedin-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.principles-section {
  background: var(--sky);
  overflow: hidden;
  padding: 26px 0;
}

.ticker {
  color: var(--white);
  overflow: hidden;
  width: 100%;
}

.ticker > div {
  align-items: center;
  animation: ticker 32s linear infinite;
  display: flex;
  gap: 34px;
  width: max-content;
}

.ticker span {
  font-size: 0.8rem;
  font-weight: 730;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker i {
  background: var(--white);
  border-radius: 50%;
  height: 5px;
  opacity: 0.55;
  width: 5px;
}

.portfolio-section {
  background: var(--ink);
  color: var(--white);
  padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 112px);
}

.section-header-light {
  border-color: rgba(255, 255, 255, 0.14);
}

.section-header-light p {
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-card {
  background: #1d2c35;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: 630px;
  overflow: hidden;
}

.portfolio-copy {
  padding: clamp(42px, 7vw, 94px);
}

.portfolio-topline {
  align-items: center;
  color: var(--sky);
  display: flex;
  font-size: 0.74rem;
  font-weight: 730;
  justify-content: space-between;
  letter-spacing: 0.15em;
  margin-bottom: 58px;
  text-transform: uppercase;
}

.portfolio-copy h2 {
  font-size: clamp(2.8rem, 4.7vw, 5.1rem);
  font-weight: 710;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0 0 40px;
}

.portfolio-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 600px;
}

.portfolio-copy .portfolio-intro {
  color: var(--white);
  font-weight: 620;
}

.portfolio-copy p a {
  color: var(--sky);
  text-decoration-color: rgba(57, 168, 215, 0.45);
  text-underline-offset: 3px;
}

.portfolio-button {
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 680;
  gap: 24px;
  margin-top: 18px;
  padding: 8px 0;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.portfolio-button:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.portfolio-fields {
  background:
    linear-gradient(rgba(23, 35, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 43, 0.055) 1px, transparent 1px),
    #dff3fa;
  background-size: 48px 48px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: clamp(40px, 5vw, 72px);
}

.fields-heading,
.fields-footer {
  align-items: center;
  display: flex;
  font-size: 0.74rem;
  font-weight: 720;
  justify-content: space-between;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fields-heading span:last-child {
  color: var(--sky-text);
  font-family: "Courier New", Courier, monospace;
}

.field-list {
  border-top: 1px solid var(--line);
}

.field-item {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 34px 1fr;
  padding: 25px 0;
}

.field-item > span {
  color: var(--sky-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding-top: 4px;
}

.field-item strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.025em;
}

.field-item p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 5px 0 0;
  max-width: 360px;
}

.fields-footer {
  justify-content: flex-start;
  gap: 14px;
}

.fields-footer i {
  background: var(--sky);
  height: 1px;
  width: 34px;
}

.contact-section {
  background: var(--paper);
  padding: clamp(72px, 9vw, 130px) clamp(24px, 7vw, 112px);
}

.contact-card {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 42px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  padding: clamp(48px, 6vw, 80px) 0;
}

.contact-card h2 {
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 18px 0 0;
}

footer {
  background: #10191f;
  color: var(--white);
  padding: 34px clamp(24px, 7vw, 112px);
}

.footer-shell {
  margin: 0 auto;
  max-width: 1320px;
}

.footer-main {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.wordmark-light {
  color: var(--white);
}

.footer-meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  font-size: 0.8rem;
  gap: 34px;
}

.footer-meta button {
  align-items: center;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.footer-meta button span {
  color: var(--sky);
  font-size: 1.1rem;
}

.imprint {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transform: translateY(-12px);
  transition:
    max-height 0.65s var(--ease),
    opacity 0.35s ease,
    padding 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.imprint.is-open {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 30px;
  max-height: 420px;
  opacity: 1;
  padding-top: 34px;
  transform: translateY(0);
}

.imprint h3 {
  color: var(--sky);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.imprint p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.75;
  margin: 0;
}

.imprint a {
  color: var(--sky);
  text-underline-offset: 3px;
}

.portfolio-section a:focus-visible,
footer a:focus-visible,
footer button:focus-visible {
  outline-color: var(--sky);
}

html.hc .imprint a,
html.hc .portfolio-section a {
  color: #8bdcff;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-one {
  transition-delay: 0.08s;
}

.reveal-delay-two {
  transition-delay: 0.16s;
}

.reveal-delay-three {
  transition-delay: 0.24s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.75;
    transform: scale(0.7);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-counter-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(300%);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.75fr);
    padding-left: 48px;
    padding-right: 48px;
  }

  .about-section,
  .portfolio-section,
  .contact-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .portfolio-copy {
    padding: 54px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    height: 126px;
  }

  .nav-shell {
    height: 78px;
    padding: 0 22px;
  }

  .site-nav.is-scrolled {
    height: 112px;
  }

  .site-nav.is-scrolled .nav-shell {
    height: 64px;
  }

  .wordmark {
    padding: 7px 12px 9px;
  }

  .nav-logo {
    height: 38px;
  }

  .site-nav.is-scrolled .wordmark {
    padding: 6px 10px 8px;
  }

  .site-nav.is-scrolled .nav-logo {
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line-soft);
    bottom: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.15fr 0.9fr 1.1fr;
    height: 48px;
    left: 0;
    position: absolute;
    right: 0;
  }

  .mobile-nav a,
  .mobile-nav button {
    align-items: center;
    background: none;
    border: 0;
    border-right: 1px solid var(--line-soft);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
    text-decoration: none;
  }

  .mobile-nav > :last-child {
    border-right: 0;
  }

  .mobile-nav .contrast-toggle {
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    min-height: 48px;
    padding: 8px 3px;
  }

  .hero {
    gap: 36px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 176px 24px 84px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 12.8vw, 5.7rem);
  }

  .hero-lead {
    max-width: 680px;
  }

  .hero-orbit {
    margin-top: 10px;
    max-width: 500px;
    width: min(92vw, 500px);
  }

  .scroll-cue {
    display: none;
  }

  .stats-section {
    padding: 0 24px;
  }

  .stats-shell {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
    padding: 34px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }

  .about-section,
  .portfolio-section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .portrait-column {
    max-width: 580px;
  }

  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .portfolio-fields {
    min-height: 520px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .imprint {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .nav-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wordmark {
    font-size: 0.78rem;
  }

  .nav-logo {
    height: 34px;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .hero {
    gap: 42px;
    min-width: 0;
    padding: 160px 18px 76px;
  }

  .hero-copy,
  .hero-lead {
    min-width: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12.4vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
  }

  .hero-lead {
    line-height: 1.65;
    margin-top: 28px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  .primary-button {
    width: 100%;
  }

  .hero-orbit {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
    min-width: 0;
    width: 100%;
  }

  .orbit-center {
    height: 110px;
    width: 110px;
  }

  .orbit-center > span {
    font-size: 0.72rem;
  }

  .orbit-node {
    font-size: 0.72rem;
    letter-spacing: 0.025em;
    padding: 6px 9px;
  }

  .orbit-coordinate {
    display: none;
  }

  .stats-section,
  .about-section,
  .portfolio-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-section,
  .portfolio-section {
    padding-bottom: 92px;
    padding-top: 92px;
  }

  .section-header {
    margin-bottom: 54px;
  }

  .portrait-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .about-copy h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .about-body {
    padding-left: 20px;
  }

  .signature-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-copy {
    min-width: 0;
    padding: 38px 22px 46px;
  }

  .portfolio-copy h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.2rem);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .portfolio-fields {
    min-height: 470px;
    min-width: 0;
    padding: 34px 22px;
  }

  .field-item {
    gap: 16px;
    grid-template-columns: 28px 1fr;
  }

  .contact-card {
    padding: 52px 0;
  }

  .contact-card h2 {
    font-size: clamp(2.2rem, 11vw, 2.75rem);
  }

  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .footer-main .wordmark {
    justify-self: start;
    padding-left: 0;
    padding-right: 0;
  }

  .imprint {
    grid-template-columns: 1fr;
  }

  .imprint.is-open {
    max-height: 940px;
  }
}

@media (max-width: 380px) {
  .mobile-nav a,
  .mobile-nav button {
    font-size: 0.74rem;
  }

  .hero h1,
  html.hc .hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 2.65rem);
  }

  .mobile-nav .contrast-toggle {
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
