:root {
  --ink: #10263d;
  --ink-deep: #081827;
  --blue: #245b91;
  --blue-bright: #3c82f6;
  --blue-soft: #eaf2fb;
  --white: #ffffff;
  --paper: #f7f9fc;
  --line: #d8e1eb;
  --muted: #566678;
  --shadow: 0 18px 45px rgba(13, 38, 64, 0.12);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink-deep);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(216, 225, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: var(--shell);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset -8px -8px 0 var(--blue);
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 0.96rem; letter-spacing: 0.01em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 0.77rem; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: #33475b; font-size: 0.91rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-resume {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
}
.menu-button {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 650px;
  padding-block: 112px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 70px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42px;
  right: -90px;
  width: 420px;
  height: 420px;
  opacity: 0.55;
  background-image: linear-gradient(rgba(36, 91, 145, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 91, 145, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, transparent, #000 35%, transparent 82%);
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-intro {
  max-width: 700px;
  margin: 28px 0 0;
  color: #42566b;
  font-size: clamp(1.13rem, 2vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 9px 24px rgba(16, 38, 61, 0.22); }
.button-primary:hover { background: var(--blue); }
.button-secondary { border-color: var(--line); color: var(--ink); background: var(--white); }
.button-secondary:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(36, 91, 145, 0.1); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; }
.button-light { color: var(--ink-deep); background: var(--white); }
.button-outline-light { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }

.hero-proof {
  position: relative;
  padding: 30px;
  border: 1px solid #cbd8e6;
  border-radius: var(--radius);
  background: linear-gradient(155deg, #fff, #f2f7fc);
  box-shadow: var(--shadow);
}
.hero-proof::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 88px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: var(--blue-bright);
}
.proof-label { margin: 0 0 18px; color: var(--muted); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-proof dl { margin: 0; }
.hero-proof dl div { padding: 17px 0; display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; border-top: 1px solid var(--line); }
.hero-proof dt { font-size: 1.55rem; font-weight: 850; letter-spacing: -0.03em; }
.hero-proof dd { margin: 0; color: #4b5d70; font-size: 0.9rem; }
.proof-tools { margin: 20px 0 0; color: var(--blue); font-size: 0.82rem; font-weight: 800; }

.work-section { padding-block: 100px; background: var(--paper); }
.section-heading { margin-bottom: 40px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 70px; align-items: end; }
.section-heading h2, .approach-intro h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-heading > p { margin: 0; color: var(--muted); }
.compact-heading { grid-template-columns: 1fr; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(13, 38, 64, 0.06);
}
.project-card-featured { grid-column: 1 / -1; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 1fr; }
.project-image { overflow: hidden; min-height: 250px; background: var(--ink-deep); }
.project-card-featured .project-image { min-height: 410px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.project-image:hover img { transform: scale(1.025); }
.project-card-body { padding: 28px; display: flex; flex-direction: column; }
.project-card-featured .project-card-body { padding: 38px; justify-content: center; }
.project-number { margin: 0 0 7px; color: var(--blue); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.16; letter-spacing: -0.03em; }
.project-card-body > p:not(.project-number) { color: var(--muted); }
.tag-list { margin: 9px 0 25px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li { padding: 5px 9px; border-radius: 999px; color: #385069; background: var(--blue-soft); font-size: 0.72rem; font-weight: 800; }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.text-link { color: var(--blue); font-size: 0.87rem; font-weight: 850; text-underline-offset: 4px; }

.case-studies { padding-block: 105px; }
.case-study {
  scroll-margin-top: 96px;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 70px 0.78fr 1.22fr;
  gap: 34px;
  border-top: 1px solid var(--line);
}
.case-study:last-child { border-bottom: 1px solid var(--line); }
.case-index { color: #a7b9ca; font-size: 1.15rem; font-weight: 850; }
.case-kicker { margin: 0 0 8px; color: var(--blue); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.case-title h3 { margin: 0; font-size: 2rem; line-height: 1.12; letter-spacing: -0.035em; }
.case-lead { margin: 15px 0 22px; color: var(--muted); }
.case-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
.case-body h4 { margin: 0 0 7px; font-size: 0.96rem; }
.case-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.approach-section { padding-block: 100px; color: var(--white); background: var(--ink-deep); }
.approach-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.approach-intro .eyebrow { color: #85b5ff; }
.approach-intro p:last-child { max-width: 480px; color: #b9c9d9; font-size: 1.06rem; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { padding: 23px 0; display: grid; grid-template-columns: 52px 1fr; gap: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.process-list span { color: #85b5ff; font-size: 0.8rem; font-weight: 850; }
.process-list h3 { margin: 0; font-size: 1.1rem; }
.process-list p { margin: 4px 0 0; color: #aebfd0; font-size: 0.93rem; }

.experience-section { padding-block: 100px; }
.experience-list { margin-bottom: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.experience-list article { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.experience-date { margin: 0 0 14px; color: var(--blue); font-size: 0.78rem; font-weight: 850; }
.experience-list h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.experience-org { min-height: 48px; margin: 5px 0 12px; color: #45596e; font-size: 0.86rem; font-weight: 750; }
.experience-list article > p:last-child { margin: 0; color: var(--muted); font-size: 0.9rem; }

.contact-section { padding-block: 78px; color: var(--white); background: var(--blue); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.contact-section .eyebrow { color: #d5e8ff; }
.contact-section h2 { max-width: 680px; }
.contact-section p:last-child { max-width: 700px; color: #deebf8; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.site-footer { padding-block: 26px; color: #91a4b7; background: var(--ink-deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; font-size: 0.78rem; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 66px;
    right: 20px;
    min-width: 210px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 10px; }
  .hero { min-height: auto; padding-block: 80px; grid-template-columns: 1fr; gap: 42px; }
  .hero-proof { max-width: 640px; }
  .section-heading, .approach-grid, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .project-card-featured { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .project-card-featured .project-image { min-height: 320px; }
  .case-study { grid-template-columns: 50px 1fr; }
  .case-body { grid-column: 2; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-org { min-height: 0; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 68px; }
  .brand-copy small { display: none; }
  .hero { padding-block: 64px; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .hero-actions .button { width: 100%; }
  .hero-proof { padding: 23px; }
  .hero-proof dl div { grid-template-columns: 94px 1fr; }
  .work-section, .case-studies, .approach-section, .experience-section { padding-block: 72px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-card-featured .project-image, .project-image { min-height: 220px; }
  .project-card-featured .project-card-body, .project-card-body { padding: 24px; }
  .project-actions { align-items: stretch; }
  .project-actions .button { flex: 1; }
  .case-study { grid-template-columns: 1fr; gap: 12px; }
  .case-index { font-size: 0.8rem; }
  .case-body { grid-column: 1; grid-template-columns: 1fr; margin-top: 12px; }
  .contact-actions { display: grid; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
