@font-face {
  font-family: "InterLocal";
  src: url("assets/fonts/inter_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterLocal";
  src: url("assets/fonts/inter_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RubikLocal";
  src: url("assets/fonts/rubik_medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #1b2423;
  --muted: #5d6b68;
  --line: #dce3df;
  --cobalt: #155eef;
  --emerald: #047857;
  --amber: #b7791f;
  --deep: #12201f;
  --soft-blue: #e8f0ff;
  --soft-green: #e8f7ef;
  --shadow: 0 24px 70px rgba(21, 35, 34, 0.09);
  --radius: 8px;
  --shell: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "InterLocal", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--cobalt);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.32);
  outline-offset: 4px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 245, 0.86);
  border-bottom: 1px solid rgba(220, 227, 223, 0.75);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.98rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

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

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #3f4c4a;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep);
  background: rgba(21, 94, 239, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(650px, 72svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(247, 248, 245, 0.98) 0%,
    rgba(247, 248, 245, 0.92) 35%,
    rgba(247, 248, 245, 0.36) 72%,
    rgba(247, 248, 245, 0.06) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 54px 48px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--emerald);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "RubikLocal", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #374340;
  font-size: clamp(1.03rem, 1.8vw, 1.24rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.94rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 32, 31, 0.18);
}

.button.primary:hover {
  background: #203431;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(18, 32, 31, 0.17);
  color: var(--deep);
}

.button.tertiary {
  background: var(--soft-blue);
  color: #123f9f;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 760px;
  margin-top: 30px;
  color: #4b5956;
  font-size: 0.94rem;
}

.hero-links a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(21, 94, 239, 0.28);
  text-underline-offset: 4px;
}

.portrait-card {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: 186px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(18, 32, 31, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.portrait-card img {
  width: 100%;
  height: 230px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-card figcaption {
  display: grid;
  gap: 2px;
  padding-top: 10px;
}

.portrait-card strong {
  color: var(--deep);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.95rem;
}

.portrait-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section,
.section-band {
  padding-block: 92px;
}

.section-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.alt {
  background: #eef4f1;
  border-block: 1px solid var(--line);
}

.impact {
  padding-block: 64px;
}

.impact h2,
.section-heading h2,
.credentials-layout h2,
.contact h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.metric-card {
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.metric-card strong {
  color: var(--deep);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card,
.skill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 32, 31, 0.04);
}

.case-card {
  min-height: 430px;
  padding: 26px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.24);
  box-shadow: var(--shadow);
}

.case-meta {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--amber);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.company-link {
  text-decoration: underline;
  text-decoration-color: rgba(21, 94, 239, 0.24);
  text-underline-offset: 4px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.company-link:hover {
  color: var(--cobalt);
  text-decoration-color: rgba(21, 94, 239, 0.7);
}

.case-card h3,
.timeline-body h3,
.skill-card h3,
.credential-list h3 {
  margin-bottom: 14px;
  font-size: 1.34rem;
  line-height: 1.18;
}

.case-card p {
  margin-bottom: 20px;
}

.case-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-card li {
  position: relative;
  padding-left: 18px;
  color: #40504d;
  font-size: 0.95rem;
}

.case-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  padding-block: 28px;
  border-top: 1px solid rgba(18, 32, 31, 0.13);
}

.timeline-item:last-child {
  border-bottom: 1px solid rgba(18, 32, 31, 0.13);
}

.timeline-date {
  color: var(--emerald);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.92rem;
}

.timeline-body p {
  max-width: 780px;
  margin-bottom: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 24px;
  min-height: 230px;
}

.skill-card h3 {
  margin-bottom: 18px;
}

.skill-card p {
  margin-bottom: 0;
}

.schedule-section {
  background: var(--surface);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.schedule-layout h2 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.schedule-layout p {
  max-width: 620px;
}

.scheduler {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  box-shadow: var(--shadow);
}

.scheduler label {
  display: grid;
  gap: 8px;
}

.scheduler label span {
  color: var(--deep);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.85rem;
}

.scheduler select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd9d4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.scheduler select:focus {
  outline: 3px solid rgba(21, 94, 239, 0.26);
  border-color: var(--cobalt);
}

.scheduler-summary {
  min-height: 72px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft-green);
  color: #23413b;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.credentials-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: start;
}

.credential-list {
  display: grid;
  gap: 14px;
}

.credential-list article {
  padding: 22px 0;
  border-top: 1px solid rgba(18, 32, 31, 0.15);
}

.credential-list article:last-child {
  border-bottom: 1px solid rgba(18, 32, 31, 0.15);
}

.credential-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "RubikLocal", Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.credential-list p {
  margin-bottom: 0;
}

.contact {
  background: var(--deep);
  color: #fff;
}

.contact .section-kicker {
  color: #8de0b8;
}

.contact h2,
.contact p {
  color: #fff;
}

.contact p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  justify-content: flex-end;
}

.contact .button.primary {
  background: #fff;
  color: var(--deep);
}

.contact .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.contact .button.tertiary {
  background: rgba(141, 224, 184, 0.14);
  color: #c7f8df;
}

.site-footer {
  background: #0d1716;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.site-footer .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100vw - 32px, 720px);
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background: rgba(247, 248, 245, 0.9);
  }

  .hero-content {
    padding-block: 76px 56px;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 4.4rem);
  }

  .metric-grid,
  .case-grid,
  .skill-grid,
  .section-heading,
  .schedule-layout,
  .credentials-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .credentials-layout,
  .contact-layout {
    gap: 24px;
  }

  .case-card {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .portrait-card {
    position: static;
    width: min(100%, 430px);
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 26px;
  }

  .portrait-card img {
    height: 90px;
    aspect-ratio: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(247, 248, 245, 0.96);
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 64px 16px auto 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    min-height: 46px;
  }

  .hero-visual {
    opacity: 0.32;
    object-position: 62% center;
  }

  .hero-content {
    padding-block: 42px 32px;
  }

  h1 {
    font-size: clamp(2.4rem, 8.4vw, 3.25rem);
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-links {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    font-size: 0.92rem;
  }

  .portrait-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .portrait-card img {
    height: 78px;
  }

  .section,
  .section-band {
    padding-block: 68px;
  }

  .impact {
    padding-block: 48px;
  }

  .scheduler {
    padding: 18px;
  }

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

  .metric-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 138px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 24px;
  }

  .site-footer .shell {
    min-height: 84px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
