:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #0b1f3a;
  --blue-soft: #eff6ff;
  --cyan: #38bdf8;
  --ink: #121826;
  --text: #4b5565;
  --muted: #6b7280;
  --line: #e5eaf1;
  --surface: #f7f9fc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .13);
  --container: 1180px;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(229, 234, 241, .82);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand-photo {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.brand:hover .brand-photo img {
  transform: scale(1.08);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16834b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.availability-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.availability-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: inherit;
  content: "";
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50% { opacity: .8; transform: scale(1); }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  transition: color .2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, .22);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .3);
}

.button-light {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
}

.button-light:hover {
  border-color: rgba(37, 99, 235, .28);
  background: var(--blue-soft);
}

.button-white {
  color: var(--blue-deep);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.button:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(4px);
}

.menu-button {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  position: absolute;
  left: 12px;
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button::before {
  top: 14px;
}

.menu-button span {
  top: 20px;
}

.menu-button::after {
  top: 26px;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  top: 20px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px),
  linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: radial-gradient(ellipse 75% 65% at 40% 5%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 40% 5%, #000 45%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: -250px;
  right: -180px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .17), rgba(37, 99, 235, .08) 40%, transparent 70%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 7fr) minmax(330px, 5fr);
  align-items: center;
  gap: 70px;
  padding-block: 90px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}

.eyebrow-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

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

h1,
h2,
.display-font {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.hero h1 {
  max-width: 820px;
  margin: 25px 0 24px;
  font-size: clamp(3rem, 5.6vw, 5.1rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.hero h1 em {
  color: var(--blue);
  font-style: italic;
  font-family: "DM Sans", var(--font-sans);
  font-weight: 600;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

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

.stats {
  display: grid;
  max-width: 660px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding-right: 18px;
}

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

.stat-value {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
}

.portrait-wrap::before {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 28px;
  content: "";
}

.portrait-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: .9;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}

.portrait-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.portrait-card:hover > img {
  transform: scale(1.04);
}

.portrait-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 17, 35, .58), transparent 48%);
  content: "";
  pointer-events: none;
}

.portrait-note {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portrait-note span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portrait-note strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.portrait-note svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.section {
  padding-block: 110px;
  border-bottom: 1px solid var(--line);
}

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

.section-heading-grid {
  display: grid;
  grid-template-columns: minmax(230px, 4fr) minmax(0, 8fr);
  gap: 70px;
  align-items: start;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.section-title em {
  color: var(--blue);
  font-style: italic;
  font-family: "DM Sans", var(--font-sans);
  font-weight: 600;
}

.section-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 17px;
}

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

.feature-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
  transform: translateY(-4px);
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.section-topline .section-title {
  max-width: 780px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.experience-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.experience-marker {
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.experience-body {
  min-width: 0;
}

.experience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 8px;
}

.experience-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.experience-item p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.tag {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  white-space: nowrap;
}


.projects-intro {
  max-width: 690px;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 380px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.project-card::before {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), rgba(37, 99, 235, .06) 55%, transparent 70%);
  content: "";
}

.project-card:hover {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
  transform: translateY(-5px);
}

.project-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.project-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-stack {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.stack-grid {
  display: grid;
  grid-template-columns: minmax(230px, 4fr) minmax(0, 8fr);
  gap: 70px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.tech-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  transition: border-color .2s ease, background .2s ease;
}

.tech-card:hover {
  border-color: rgba(37, 99, 235, .32);
  background: var(--blue-soft);
}

.tech-card svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.tech-card strong {
  display: block;
  font-size: 14px;
}

.tech-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: 80px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color .2s ease;
}

.faq-item[open] {
  border-color: rgba(37, 99, 235, .35);
}

.faq-item summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  content: "+";
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer p {
  margin-bottom: 0;
}

.contact {
  position: relative;
  overflow: hidden;
  padding-block: 110px;
  color: rgba(255, 255, 255, .75);
  background:
  radial-gradient(circle at 10% 100%, rgba(56, 189, 248, .18), transparent 35%),
  radial-gradient(circle at 95% 10%, rgba(37, 99, 235, .26), transparent 34%),
  var(--blue-deep);
}

.contact::before {
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 78%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(380px, 5fr);
  gap: 80px;
  align-items: center;
}

.contact .section-eyebrow {
  color: #7dd3fc;
}

.contact .section-title {
  color: var(--white);
  font-size: clamp(3rem, 5.2vw, 5rem);
}

.contact .section-title em {
  color: #7dd3fc;
}

.contact-copy > p {
  max-width: 570px;
  margin-bottom: 28px;
  font-size: 17px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 600;
}

.contact-meta span,
.contact-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-meta svg {
  width: 17px;
  height: 17px;
  color: #7dd3fc;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field input {
  height: 48px;
  padding-inline: 14px;
}

.form-field textarea {
  min-height: 125px;
  resize: vertical;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.form-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding-block: 28px;
  color: var(--muted);
  background: #07172b;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-tagline {
  color: rgba(255, 255, 255, .48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tina admin preview (iframe): keep content visible after island re-renders */
html.tina-preview .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: minmax(0, 6fr) minmax(300px, 4fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 6vw, 4.7rem);
  }

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

  .project-card:last-child {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .contact-grid {
    gap: 45px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .nav-actions > .button {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    z-index: 99;
    top: 83px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu nav {
    display: grid;
    gap: 4px;
  }

  .mobile-menu nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
  }

  .mobile-menu .button {
    width: 100%;
    margin-top: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 76px;
  }

  .portrait-wrap {
    width: min(100%, 520px);
    justify-self: start;
  }

  .portrait-card {
    aspect-ratio: 1.05;
  }

  .section-heading-grid,
  .stack-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-grid {
    align-items: start;
  }

  .section-topline {
    align-items: start;
    flex-direction: column;
  }
}

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

  .nav-inner {
    min-height: 76px;
  }

  .brand-photo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 16px;
  }

  .mobile-menu {
    top: 77px;
  }

  .hero-grid {
    gap: 54px;
    padding-block: 58px 72px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .stats {
    gap: 15px;
  }

  .stat {
    padding-right: 5px;
  }

  .stat + .stat {
    padding-left: 14px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-label {
    font-size: 10px;
  }

  .portrait-wrap::before {
    top: 14px;
    right: -12px;
  }

  .portrait-card {
    aspect-ratio: .94;
  }

  .portrait-note {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .section,
  .contact {
    padding-block: 78px;
  }

  .section-title {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .philosophy-grid,
  .projects-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 225px;
  }

  .experience-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .experience-marker {
    margin-top: 9px;
  }

  .experience-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tag {
    white-space: normal;
  }

  .project-card,
  .project-card:last-child {
    min-height: 340px;
    grid-column: auto;
  }

  .tech-card {
    min-height: 120px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Thank-you page */
.thank-you {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, .18), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 55%, #f7f9fc 100%);
}

.thank-you-inner {
  max-width: 640px;
  text-align: center;
}

.thank-you .section-title {
  margin-block: 12px 16px;
}

.thank-you .section-lead {
  margin: 0 auto 28px;
}

.thank-you .button {
  margin-inline: auto;
}
