:root {
  --background: #0a0e13;
  --background-secondary: #10161e;
  --surface: #151d27;
  --surface-hover: #1a2531;
  --text-primary: #eef3f8;
  --text-secondary: #a6b1bd;
  --text-muted: #748190;
  --blue: #39a9ff;
  --blue-dark: #1675b8;
  --orange: #ff7a1a;
  --border: #26313d;
  --border-light: #344150;
  --font-heading: "Space Grotesk", "Aptos Display", "Segoe UI", sans-serif;
  --font-body: Inter, Aptos, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --container: 1180px;
  --header-height: 80px;
  --radius: 3px;
  --shadow: 0 24px 60px rgb(0 0 0 / 24%);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    linear-gradient(rgb(10 14 19 / 94%), rgb(10 14 19 / 98%)),
    url("assets/images/decorative-grid.svg") top center / 920px auto repeat;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  top: -20rem;
  left: 50%;
  width: 70rem;
  height: 46rem;
  background: radial-gradient(ellipse, rgb(57 169 255 / 10%), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--text-primary);
  background: rgb(22 117 184 / 65%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

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

.section {
  padding: 120px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--background);
  background: var(--text-primary);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: rgb(38 49 61 / 85%);
  background: rgb(10 14 19 / 88%);
  box-shadow: 0 10px 40px rgb(0 0 0 / 14%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  transition: min-height 180ms ease;
}

.is-scrolled .header-inner {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand i {
  color: var(--orange);
  font-style: normal;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.primary-nav a {
  position: relative;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.025em;
  transition: color 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--text-primary);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 16px;
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--border);
  background: rgb(16 22 30 / 60%);
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--background);
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 9px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px 0;
  background: currentcolor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-last-child(2) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Type and shared components */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.6vw, 6.25rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
  font-weight: 640;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.eyebrow,
.section-index,
.panel-label,
.credential-type {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--blue);
  content: "";
}

.section-heading {
  display: flex;
  margin-bottom: 52px;
  flex-direction: column;
  gap: 8px;
}

.section-heading p:last-child {
  max-width: 540px;
  color: var(--text-secondary);
}

.section-index {
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06111a;
  background: var(--blue);
}

.button-primary:hover {
  background: #68bdff;
}

.button-secondary {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: rgb(21 29 39 / 70%);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: var(--surface-hover);
}

/* Hero */
.hero {
  display: flex;
  min-height: min(940px, 100svh);
  padding-top: calc(var(--header-height) + 80px);
  align-items: center;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr);
}

.hero-copy {
  position: relative;
}

.hero-rail {
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-portrait {
  position: relative;
  height: 280px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero-portrait::before {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgb(8 13 18 / 76%) 100%),
    linear-gradient(135deg, rgb(57 169 255 / 12%), transparent 45%);
}

.hero-portrait::after {
  top: -1px;
  right: 28px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.82) contrast(1.04) brightness(0.88);
}

.hero-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 15px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-portrait figcaption span:last-child {
  color: var(--text-secondary);
}

.hero-description {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.tag-list {
  display: flex;
  padding: 0;
  margin: 0 0 34px;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-list li {
  padding: 7px 11px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgb(16 22 30 / 65%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.availability {
  display: flex;
  margin: 22px 0 0;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.availability > span:first-child {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44d69a;
  box-shadow: 0 0 0 4px rgb(68 214 154 / 10%);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgb(21 29 39 / 92%), rgb(12 18 24 / 92%));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  top: -1px;
  left: 28px;
  width: 56px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.panel-label {
  display: flex;
  margin-bottom: 26px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
}

.panel-label span:first-child {
  color: var(--orange);
}

.principle {
  display: grid;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  gap: 18px;
  grid-template-columns: 28px 1fr;
}

.principle-number {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
}

.principle h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.panel-code {
  display: flex;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Expertise */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.expertise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expertise-card {
  position: relative;
  min-height: 225px;
  padding: 30px;
  overflow: hidden;
  background: var(--background-secondary);
  transition: background 180ms ease, transform 180ms ease;
}

.expertise-card::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border-light);
  content: "";
  transform: rotate(45deg);
  transition: border-color 180ms ease;
}

.expertise-card:hover {
  z-index: 1;
  background: var(--surface);
  transform: translateY(-4px);
}

.expertise-card:hover::after {
  border-color: var(--blue);
}

.card-number {
  display: block;
  margin-bottom: 46px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.expertise-card p {
  max-width: 310px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Impact */
.impact-section {
  border-block: 1px solid var(--border);
  background: rgb(16 22 30 / 55%);
}

.impact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
  position: relative;
  min-height: 288px;
  padding: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--background-secondary));
  transition: border-color 180ms ease, transform 180ms ease;
}

.impact-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.impact-card::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  content: "";
}

.impact-value {
  display: block;
  margin-bottom: 50px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.impact-card:nth-child(2) .impact-value {
  color: var(--orange);
}

.impact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Experience */
.experience-layout {
  display: grid;
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.section-heading-sticky {
  position: sticky;
  top: 120px;
  margin: 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-item {
  position: relative;
  padding: 0 0 52px 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 8px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--blue);
  background: var(--background);
  transform: rotate(45deg);
}

.timeline-item:first-child .timeline-marker {
  border-color: var(--orange);
  background: var(--orange);
}

.timeline-meta {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.timeline-company {
  margin: 0;
  font-size: 23px;
}

.timeline-period {
  flex: 0 0 auto;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
}

.timeline-role {
  margin-bottom: 13px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.timeline-description {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.details-toggle {
  display: inline-flex;
  padding: 10px 0;
  border: 0;
  margin-top: 12px;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-toggle::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
}

.details-toggle[aria-expanded="true"]::after {
  content: "−";
}

.timeline-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.timeline-details > div {
  overflow: hidden;
}

.timeline-details.is-open {
  grid-template-rows: 1fr;
}

.timeline-details ul {
  padding: 16px 0 0 18px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.timeline-details li {
  padding-left: 6px;
  margin-bottom: 7px;
}

.timeline-details li::marker {
  color: var(--orange);
}

/* Industries */
.industries-section {
  padding: 48px 0;
  border-block: 1px solid var(--border);
}

.industries-section .section-index {
  margin-bottom: 24px;
}

.industries-grid {
  display: grid;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.industry-item {
  display: flex;
  min-height: 76px;
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.industry-item::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--blue);
  content: "";
  transform: rotate(45deg);
}

/* Credentials */
.credentials-heading {
  display: grid;
  align-items: end;
  gap: 48px;
  grid-template-columns: 1.6fr 0.8fr;
}

.credentials-heading h2,
.credentials-heading p {
  margin-bottom: 0;
}

.credentials-list {
  border-top: 1px solid var(--border-light);
}

.credential-item {
  display: grid;
  min-height: 98px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 28px;
  grid-template-columns: 100px 1fr auto;
  transition: padding 180ms ease, background 180ms ease;
}

.credential-item:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: var(--background-secondary);
}

.credential-code {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
}

.credential-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.credential-type {
  color: var(--text-muted);
  font-size: 9px;
}

/* Contact and footer */
.contact-section {
  padding-top: 40px;
}

.contact-card {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: clamp(32px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid var(--border-light);
  align-items: end;
  gap: 52px;
  background:
    linear-gradient(110deg, rgb(21 29 39 / 98%) 30%, rgb(12 31 46 / 92%)),
    url("assets/images/decorative-grid.svg") center / 720px;
  box-shadow: var(--shadow);
  grid-template-columns: 1.4fr 0.7fr;
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.contact-card::before {
  top: 0;
  right: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.contact-card::after {
  right: -80px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 1px solid rgb(57 169 255 / 20%);
  transform: rotate(45deg);
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.contact-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.contact-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 13px;
}

.text-link {
  display: flex;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  border-color: var(--blue);
  color: var(--text-primary);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.footer-inner,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-inner {
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  gap: 24px;
}

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

/* Reveal motion */
.reveal,
[data-render] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible,
[data-render] > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-render] > *:nth-child(2) {
  transition-delay: 45ms;
}

[data-render] > *:nth-child(3) {
  transition-delay: 90ms;
}

[data-render] > *:nth-child(4) {
  transition-delay: 135ms;
}

[data-render] > *:nth-child(5),
[data-render] > *:nth-child(6) {
  transition-delay: 180ms;
}

/* Responsive */
@media (max-width: 980px) {
  .section {
    padding: 96px 0;
  }

  .primary-nav {
    gap: 20px;
  }

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

  .hero-grid {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hero-rail {
    align-content: stretch;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  }

  .hero-portrait {
    height: auto;
  }

  .hero-portrait img {
    height: 100%;
  }

  .hero-panel {
    display: grid;
    gap: 0 28px;
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-label,
  .panel-code {
    grid-column: 1 / -1;
  }

  .principle {
    grid-template-columns: 24px 1fr;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-card {
    min-height: 250px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .section-heading-sticky {
    position: static;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 72px;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    background: rgb(10 14 19 / 98%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
    visibility: hidden;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

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

  .hero-portrait {
    height: 360px;
    max-width: 460px;
  }

  .hero-portrait img {
    object-position: 50% 26%;
  }

  .panel-label,
  .panel-code {
    grid-column: auto;
  }

  .credentials-heading {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 76px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 13.5vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher button {
    min-width: 30px;
    padding-inline: 5px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-portrait {
    width: 100%;
    height: 320px;
    max-width: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-panel {
    padding: 22px;
  }

  .expertise-grid,
  .impact-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card,
  .impact-card {
    min-height: auto;
  }

  .card-number,
  .impact-value {
    margin-bottom: 30px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-meta {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 4px;
  }

  .credential-item {
    gap: 5px 18px;
    grid-template-columns: 66px 1fr;
  }

  .credential-code {
    grid-row: 1 / 3;
  }

  .credential-type {
    grid-column: 2;
  }

  .contact-section {
    padding-top: 18px;
  }

  .contact-card {
    min-height: 0;
    padding: 30px 22px;
    gap: 38px;
  }

  .contact-copy h2 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

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

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

  .reveal,
  [data-render] > * {
    opacity: 1;
    transform: none;
  }
}

/* 404 page */
.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.not-found {
  max-width: 760px;
  padding-block: 80px;
}

.not-found-code {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.not-found h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.not-found p {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 18px;
}
