:root {
  --background: #f7f8f6;
  --foreground: #171b1d;
  --muted: #667075;
  --accent: #155d68;
  --line: #dadddc;
  --container: 1160px;
  --section-space: clamp(96px, 12vw, 156px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  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;
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  font: inherit;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
}

.section-bordered {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(218, 221, 220, 0.78);
  background: rgba(247, 248, 246, 0.93);
  backdrop-filter: blur(12px);
}

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

.brand {
  position: relative;
  z-index: 52;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.nav > a:hover,
.nav > a:focus-visible {
  color: var(--foreground);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.language-switcher span {
  color: var(--line);
}

.language-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.language-btn.active {
  color: var(--foreground);
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: min(820px, calc(100svh - 72px));
  padding: clamp(86px, 11vw, 150px) 0 64px;
}

.hero-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.25rem, 7.2vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 560;
}

.hero-title span {
  display: block;
}

.hero-description {
  max-width: 760px;
  margin: clamp(34px, 5vw, 54px) 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.34rem);
  line-height: 1.62;
}

.hero-tech {
  margin: 25px 0 0;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 42px;
}

.hero-actions a {
  font-size: 0.92rem;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-primary {
  padding: 12px 18px;
  border: 1px solid var(--foreground);
  transition: background 180ms ease, color 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--foreground);
  color: var(--background);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 72px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) 1fr;
  gap: 18px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 190px;
  padding: 36px 34px 34px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric + .metric {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.metric strong {
  font-size: clamp(2.3rem, 4.6vw, 4.6rem);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric span {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-note {
  max-width: 520px;
  margin: 22px 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) 1fr;
  gap: 18px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.experience-featured {
  padding-top: 0;
  border-top: 0;
}

.experience-period {
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.company {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-header h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 560;
  letter-spacing: -0.045em;
}

.context {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.tech-line {
  margin: 24px 0 0;
  font-size: 0.83rem;
  line-height: 1.7;
}

.cases {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.case-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.case-row > span {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
}

.case-row h4,
.compact-cases h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.case-row p,
.compact-cases p,
.experience-trailing {
  max-width: 760px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.94rem;
}

.compact-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 42px;
}

.experience-trailing {
  margin-top: 38px;
}

.stack-groups {
  border-top: 1px solid var(--line);
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.stack-row h3 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 620;
}

.stack-row p {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.48rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.projects-pending {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) 1fr;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.projects-pending span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.projects-pending p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) 1fr;
  gap: 18px;
}

.about-intro p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.68;
  letter-spacing: -0.02em;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 84px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.about-details h3 {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-list {
  display: grid;
}

.info-item {
  display: grid;
  gap: 5px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.info-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.info-item strong {
  font-size: 0.95rem;
  font-weight: 620;
}

.info-item span,
.info-item small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.contact {
  padding: clamp(100px, 15vw, 190px) 0;
}

.contact > .container > .eyebrow {
  margin-bottom: 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(50px, 10vw, 130px);
}

.contact-grid h2 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  font-weight: 550;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.contact-grid > div:first-child > p {
  max-width: 560px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.contact-links a {
  text-underline-offset: 5px;
}

.contact-email {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  word-break: break-word;
}

.contact-email span {
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.footer-inner strong {
  color: var(--foreground);
  font-weight: 620;
}

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

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--foreground);
}

@media (max-width: 820px) {
  .menu-toggle {
    position: relative;
    z-index: 52;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 1px;
    background: var(--foreground);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 51;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 96px 20px 48px;
    background: var(--background);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav > a {
    color: var(--foreground);
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: -0.04em;
  }

  .language-switcher {
    margin-top: 12px;
    padding-left: 0;
    border-left: 0;
  }

  .language-btn {
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  .section-heading,
  .experience-item,
  .stack-row,
  .projects-pending,
  .about-intro {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric + .metric {
    min-height: 150px;
    padding: 28px 0;
    border-left: 0;
  }

  .metric + .metric {
    border-top: 1px solid var(--line);
  }

  .metric span {
    margin-top: 26px;
  }

  .experience-item {
    gap: 20px;
  }

  .compact-cases {
    grid-template-columns: 1fr;
  }

  .about-intro > div {
    display: none;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-meta {
    flex-direction: column;
    gap: 7px;
    padding-top: 70px;
  }

  .case-row {
    grid-template-columns: 36px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== V3 — Market positioning / visual life ===== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(21, 93, 104, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 93, 104, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 75%);
}

.nav-cta {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--foreground) !important;
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--foreground);
  background: rgba(23, 27, 29, 0.035);
}

.hero {
  min-height: calc(100svh - 72px);
  overflow: hidden;
  position: relative;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 78% 27%, rgba(21, 93, 104, 0.09), transparent 22%),
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(21, 93, 104, .055) calc(100% - 1px));
  background-size: auto, 120px 100%;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .62fr);
  gap: clamp(54px, 7vw, 100px);
  align-items: center;
  min-height: 610px;
}

.hero-copy {
  min-width: 0;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.hero-topline .eyebrow {
  margin: 0;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(21, 93, 104, 0.08);
}

.hero-title {
  max-width: 900px;
  font-size: clamp(3.55rem, 6.5vw, 6.9rem);
}

.hero-description {
  max-width: 710px;
  color: #505a5e;
}

.button-secondary {
  padding: 12px 18px;
  border: 1px solid var(--line);
  gap: 18px;
  transition: border-color 180ms ease, background 180ms ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--foreground);
  background: rgba(23, 27, 29, 0.03);
}

.button-primary {
  gap: 18px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 25px;
  color: var(--muted);
  font-size: .82rem;
}

.hero-links a {
  text-underline-offset: 5px;
}

.hero-profile {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(247, 248, 246, 0.76);
  box-shadow: 0 24px 60px rgba(23, 27, 29, 0.045);
}

.hero-profile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 54px;
  height: 2px;
  background: var(--accent);
}

.profile-head,
.profile-role,
.profile-facts > div,
.profile-result {
  display: flex;
}

.profile-head {
  justify-content: space-between;
  gap: 20px;
}

.profile-kicker,
.profile-code,
.profile-result > span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.profile-kicker,
.profile-result > span {
  color: var(--accent);
}

.profile-code {
  color: var(--muted);
}

.profile-role {
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
}

.profile-role > span {
  color: var(--muted);
  font-size: .78rem;
}

.profile-role strong {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.profile-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}

.profile-facts {
  margin: 0;
}

.profile-facts > div {
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(218, 221, 220, .75);
}

.profile-facts dt,
.profile-facts dd {
  margin: 0;
  font-size: .77rem;
}

.profile-facts dt {
  color: var(--muted);
}

.profile-facts dd {
  max-width: 200px;
  text-align: right;
}

.profile-result {
  position: relative;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding: 22px;
  overflow: hidden;
  background: var(--foreground);
  color: var(--background);
}

.profile-result::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(247,248,246,.15);
  border-radius: 50%;
}

.profile-result > span {
  color: #87b7be;
}

.profile-result strong {
  margin-top: 8px;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 560;
}

.profile-result p {
  margin: 0;
  max-width: 220px;
  color: rgba(247,248,246,.72);
  font-size: .78rem;
  line-height: 1.5;
}

.trust-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-rail span {
  padding: 17px 16px;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.trust-rail span + span {
  border-left: 1px solid var(--line);
}

.section-heading-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-item {
  min-height: 275px;
  padding: 28px 30px 30px 0;
}

.value-item + .value-item {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.value-number {
  display: inline-block;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.value-item h3 {
  max-width: 290px;
  margin: 70px 0 12px;
  font-size: 1.32rem;
  font-weight: 590;
  letter-spacing: -.03em;
  line-height: 1.18;
}

.value-item p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.68;
}

.metric {
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(21, 93, 104, .35);
  border-right: 1px solid rgba(21, 93, 104, .35);
}

.company-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 9px;
}

.company-line .company {
  margin: 0;
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .08em;
}

.case-row {
  position: relative;
  transition: padding-left 180ms ease, background 180ms ease;
}

.case-row:hover {
  padding-left: 10px;
  background: rgba(21, 93, 104, 0.025);
}

.projects-preview {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.projects-copy {
  padding: 34px 34px 34px 0;
}

.projects-copy h3 {
  max-width: 600px;
  margin: 56px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.projects-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.projects-github {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.projects-github > span:first-child {
  position: absolute;
  top: 30px;
  left: 30px;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.projects-github strong {
  max-width: 220px;
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -.03em;
}

.projects-github .arrow {
  position: absolute;
  right: 30px;
  bottom: 28px;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.projects-github:hover,
.projects-github:focus-visible {
  background: var(--foreground);
  color: var(--background);
}

.projects-github:hover > span:first-child,
.projects-github:focus-visible > span:first-child {
  color: #87b7be;
}

.projects-github:hover .arrow,
.projects-github:focus-visible .arrow {
  transform: translate(4px, -4px);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "TB";
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  color: rgba(21, 93, 104, 0.035);
  font-size: min(34vw, 540px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.12em;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 2;
}

/* Active navigation */
.nav > a.active {
  color: var(--foreground);
}

.nav > a.active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--accent);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(.2,.7,.2,1),
    transform 650ms cubic-bezier(.2,.7,.2,1);
}

.reveal-delay {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-profile {
    max-width: 680px;
  }

  .trust-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-rail span:nth-child(4),
  .trust-rail span:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item + .value-item {
    min-height: auto;
    padding: 28px 0;
    border-left: 0;
  }

  .value-item + .value-item {
    border-top: 1px solid var(--line);
  }

  .value-item h3 {
    margin-top: 38px;
  }
}

@media (max-width: 820px) {
  .nav-cta {
    border: 0;
    padding: 0;
  }

  .nav > a.active::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.85rem);
  }

  .hero-profile {
    padding: 22px;
  }

  .trust-rail {
    grid-template-columns: 1fr 1fr;
  }

  .trust-rail span,
  .trust-rail span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-rail span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .projects-preview {
    grid-template-columns: 1fr;
  }

  .projects-copy {
    padding-right: 0;
  }

  .projects-github {
    min-height: 210px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .case-row:hover {
    padding-left: 0;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-row,
  .projects-github,
  .projects-github .arrow {
    transition: none;
  }
}
