:root {
  color-scheme: light;
  --ink: #121826;
  --ink-soft: #303849;
  --muted: #697386;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: #d8d3c9;
  --line-strong: #b9b3a8;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-soft: #e7e5ff;
  --success: #13795b;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(18, 24, 38, 0.09);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --content: 1180px;
  --narrow: 760px;
  --header-height: 76px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f3ee;
  --ink-soft: #d7dae2;
  --muted: #a8afbf;
  --paper: #0c101a;
  --surface: #121827;
  --surface-strong: #171e30;
  --line: #2b3449;
  --line-strong: #48536a;
  --accent: #8c89ff;
  --accent-dark: #aaa8ff;
  --accent-soft: #252651;
  --success: #69d6ad;
  --danger: #ff8d86;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f5f3ee;
    --ink-soft: #d7dae2;
    --muted: #a8afbf;
    --paper: #0c101a;
    --surface: #121827;
    --surface-strong: #171e30;
    --line: #2b3449;
    --line-strong: #48536a;
    --accent: #8c89ff;
    --accent-dark: #aaa8ff;
    --accent-soft: #252651;
    --success: #69d6ad;
    --danger: #ff8d86;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav > a,
.nav-dropdown > button {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.nav-dropdown > button:hover {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button::after {
  content: "↓";
  margin-left: 0.35rem;
  font-size: 0.8em;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  z-index: 10;
  min-width: 170px;
  padding: 0.6rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 0.65rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--line);
}

.language-link,
.theme-toggle,
.menu-toggle {
  min-width: 2.65rem;
  min-height: 2.65rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.theme-toggle:hover,
.language-link:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle::before {
  content: "◐";
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 4vw, 4rem) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 920px;
  margin: 1.5rem 0 1.75rem;
  font-size: clamp(3.35rem, 7vw, 5.9rem);
  font-weight: 600;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.accent {
  color: var(--accent);
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero .button-row {
  margin-top: 1.75rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: #fff;
}

.hero-note {
  position: relative;
  padding: 1.5rem 0 0 1.5rem;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(220px, 0.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-number {
  align-self: start;
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
}

.section-intro {
  margin: 0;
  color: var(--muted);
}

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

.service-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .service-promo {
  background: var(--accent-soft);
  color: var(--ink);
}

.service-promo .section-kicker {
  color: color-mix(in srgb, var(--accent) 80%, white);
}

.service-promo h3 {
  max-width: 680px;
  margin: 1.5rem 0 1.25rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.service-promo-copy > p {
  max-width: 650px;
  margin: 0;
  color: color-mix(in srgb, currentColor 74%, transparent);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.service-promo .button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.service-promo .button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.service-promo .button-secondary {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 45%, transparent);
}

[data-theme="dark"] .service-promo .button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
}

.service-benefits {
  display: grid;
  align-content: center;
}

.service-benefit {
  padding: 1.35rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.service-benefit:last-child {
  border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.service-benefit strong,
.service-benefit span {
  display: block;
}

.service-benefit strong {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
}

.service-benefit span {
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.92rem;
}

.service-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  text-align: center;
}

.project-list {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.project-card:nth-child(even) .project-image {
  order: 2;
}

.project-image {
  min-height: 330px;
  overflow: hidden;
  background: var(--accent-soft);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.project-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-meta {
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--accent);
}

.tag {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.center-action {
  margin-top: 2.5rem;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: center;
}

.portrait-frame {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.85) contrast(1.02);
}

.portrait-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.prose {
  max-width: 700px;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 0.25rem;
}

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

.expertise-card {
  min-height: 310px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.expertise-card .card-index {
  display: block;
  margin-bottom: 4rem;
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.expertise-card p {
  color: var(--muted);
}

.stage-card {
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}

[data-theme="dark"] .stage-card {
  background: var(--accent-soft);
  color: var(--ink);
}

.stage-card h3 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.stage-card p {
  margin: 0;
  color: color-mix(in srgb, currentColor 74%, transparent);
}

.stage-card .button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

[data-theme="dark"] .stage-card .button {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 8vw, 8rem);
}

.contact-copy p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-links a {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  padding: 0.9rem 1rem;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.form-feedback {
  display: none;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  color: var(--success);
}

.form-feedback.error {
  display: block;
  color: var(--danger);
}

.page-hero {
  padding: clamp(6rem, 12vw, 11rem) 0 clamp(4rem, 8vw, 7rem);
}

.page-hero h1 {
  max-width: 1000px;
}

.page-hero p {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.detail-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-card ul,
.detail-card ol {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.detail-card li + li {
  margin-top: 0.7rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: process;
}

.process-step {
  padding: 2rem;
  border-top: 1px solid var(--line-strong);
  counter-increment: process;
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 4rem;
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
}

.process-step p {
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

summary {
  cursor: pointer;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

details p {
  max-width: 760px;
  color: var(--muted);
}

.service-marquee {
  overflow: hidden;
  padding: 1rem;
  border-block: 1px solid var(--line);
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 3rem);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.legal-copy h2 {
  margin-top: 3rem;
  font-size: 1.8rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--ink-soft);
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: start;
}

.footer-main h2 {
  max-width: 760px;
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 200;
  width: min(calc(100% - 2rem), 640px);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.cookie-actions button {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions .accept {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}

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

@media (min-width: 1440px) {
  :root {
    --content: 1360px;
    --narrow: 840px;
    font-size: 112.5%;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-note {
    font-size: 1rem;
  }

  .webdesign-page .page-hero {
    padding-block: 8rem 6rem;
  }

  .webdesign-page .page-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 780px) auto;
    align-items: end;
    justify-content: space-between;
    column-gap: 5rem;
    row-gap: 1.5rem;
  }

  .webdesign-page .page-hero .eyebrow,
  .webdesign-page .page-hero h1 {
    grid-column: 1 / -1;
  }

  .webdesign-page .page-hero h1 {
    margin: 0;
  }

  .webdesign-page .page-hero p {
    margin: 0;
  }

  .webdesign-page .page-hero .button-row {
    justify-content: flex-end;
    margin: 0;
  }

  .webdesign-page .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: clamp(4rem, 7vw, 7rem);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    background: var(--paper);
    backdrop-filter: none;
  }

  .menu-toggle {
    display: inline-grid;
    position: relative;
    font-size: 0;
  }

  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  }

  .menu-toggle::before {
    box-shadow: 0 -0.38rem 0 currentColor, 0 0.38rem 0 currentColor;
  }

  .menu-toggle::after {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"]::before {
    box-shadow: none;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"]::after {
    opacity: 1;
    transform: rotate(-45deg);
  }

  .menu-toggle > span:not(.sr-only) {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    align-content: start;
    padding: 2rem 1rem;
    background: var(--paper);
    overflow-y: auto;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav > a,
  .nav-dropdown > button {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 1.25rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0.5rem 0 0.5rem 1rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .header-tools {
    margin-top: 1rem;
    padding: 1rem 0 0;
    border-left: 0;
  }

  .hero-grid,
  .about-grid,
  .contact-layout,
  .service-promo {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 420px;
  }

  .section-head {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .section-intro {
    grid-column: 2;
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }

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

  .expertise-card {
    min-height: 0;
  }

  .expertise-card .card-index,
  .process-step::before {
    margin-bottom: 2rem;
  }

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

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

  h1 {
    font-size: clamp(2rem, 10.5vw, 4.6rem);
  }

  .legal-copy h2 {
    font-size: clamp(1.3rem, 6.5vw, 1.8rem);
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .header-inner {
    gap: 0.7rem;
  }

  .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
  }

  .section-head {
    display: block;
  }

  .section-number {
    display: block;
    margin-bottom: 1rem;
  }

  .section-intro {
    margin-top: 1.25rem;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 460px;
  }

  .facts,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    margin-top: 3rem;
  }

  .button-row .button {
    width: 100%;
  }

  .cookie-banner {
    padding: 1.15rem;
  }

  .cookie-banner p {
    font-size: 0.9rem;
  }

  .cookie-actions button {
    flex: 1;
  }

  .service-marquee {
    padding: 1.25rem;
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    line-height: 1.4;
    text-wrap: balance;
    white-space: normal;
  }
}

@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 {
    opacity: 1;
    transform: none;
  }
}
