:root {
  --ink: #000000;
  --paper: #f5f6f6;
  --white: #ffffff;
  --muted: #676b6a;
  --line: #c9cdcc;
  --purple: #98308e;
  --purple-dark: #6f1f69;
  --purple-soft: #eaddea;
  --gray: #dee1e0;
  --gray-deep: #aeb3b2;
  --charcoal: #171717;
  --hero-title-max: 82px;
  --hero-title-spacing: 0px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img {
  display: block;
  max-width: 100%;
  background: var(--gray);
}

h1,
h2,
h3,
p,
a,
button,
label,
span {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  word-break: keep-all;
}

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

.image-unavailable {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(251, 252, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand-mark {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 14px;
  font-weight: 800;
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 19;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.mobile-menu a {
  padding: 20px;
  background: var(--paper);
  font-size: 24px;
  font-weight: 900;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0) 58%, rgba(23, 23, 23, 0.7) 88%, #171717 100%),
    linear-gradient(90deg, rgba(23, 23, 23, 0.78) 0%, rgba(23, 23, 23, 0.52) 42%, rgba(23, 23, 23, 0.12) 78%);
  pointer-events: none;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6200ms ease;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 850px);
  max-width: 850px;
  padding: 0 clamp(20px, 6vw, 96px) clamp(82px, 10vw, 132px);
  color: var(--white);
  animation: riseIn 680ms ease 120ms both;
}

.hero-copy.copy-enter {
  animation: heroCopyEnter 520ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

main .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

main .section-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--purple);
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(32px, 5.8vw, var(--hero-title-max));
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: var(--hero-title-spacing);
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 28px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero .eyebrow {
  color: #ffffff;
}

.hero-controls {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 22px;
  color: var(--white);
}

.hero-pagination {
  display: flex;
  gap: 8px;
}

.hero-page {
  display: grid;
  grid-template-columns: auto 54px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.hero-page i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.hero-page i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-page.active {
  color: var(--white);
}

.hero-page.active i::after {
  animation: heroProgress 6000ms linear forwards;
}

.hero-arrows {
  display: flex;
  gap: 6px;
}

.hero-arrows button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 18px;
  transition: background 180ms ease, color 180ms ease;
}

.hero-arrows button:hover {
  background: var(--white);
  color: var(--ink);
}

.text-link,
.line-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid currentColor;
  padding: 0 16px;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.text-link::after,
.line-button::after { content: "→"; margin-left: 14px; }

.intro,
.services,
.works,
.process,
.clients,
.cases,
.why,
.contact {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 76px);
}

main > section:not(.hero) {
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

main > section.intro {
  border-top: 0;
  background: var(--charcoal);
  color: var(--white);
}

.services {
  background: var(--white);
}

.works.section-light {
  background: var(--gray);
}

.process {
  background: var(--white);
}

.clients.section-dark {
  border-top-color: var(--ink);
  background: var(--charcoal);
}

.cases {
  background: var(--paper);
}

.why.section-light {
  background: var(--white);
}

.intro,
.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
}

.intro-symbol {
  position: absolute;
  top: clamp(38px, 7vw, 80px);
  left: clamp(20px, 5vw, 76px);
  margin: 0;
  display: none;
  color: var(--purple);
  font-size: 18px;
}

.intro-title {
  padding-top: 0;
}

.intro .section-kicker {
  color: var(--white);
}

.intro h2 {
  max-width: 760px;
  color: var(--white);
}

.intro .intro-body p {
  color: var(--gray-deep);
}

.intro h2,
.section-heading h2,
.split-heading h2,
.clients h2,
.cases h2,
.why h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.05;
}

.intro-body p,
.contact-copy p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  background: transparent;
}

.stat-grid div {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .stat-grid div:hover {
    border-color: var(--purple);
    background: var(--purple);
    transform: translateY(-3px);
  }

  .stat-grid div:hover dt,
  .stat-grid div:hover dd {
    color: var(--white);
  }
}

.stat-grid dt {
  color: var(--gray-deep);
  font-size: 13px;
  font-weight: 800;
}

.stat-grid dd {
  margin: 16px 0 0;
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
}

.section-heading,
.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}

.section-heading {
  display: block;
  max-width: 860px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-card,
.work-card {
  min-width: 0;
  min-height: 310px;
  background: var(--paper);
}

.service-card {
  display: grid;
  align-content: space-between;
  padding: 28px;
  transition: background 200ms ease, transform 200ms ease;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 30px;
  filter: saturate(0.9) contrast(0.96);
  transition: transform 260ms ease, filter 260ms ease;
}

.service-card:hover {
  background: var(--purple-soft);
  transform: translateY(-2px);
}

.service-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1);
}

.service-card h3,
.work-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.05;
}

.service-card p,
.work-card p,
.process-step p,
.case-item p,
.why li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 320ms ease, filter 220ms ease;
}

.work-card:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.work-card:hover .work-info {
  background: var(--gray);
  color: var(--ink);
}

.work-card:hover .work-meta,
.work-card:hover p {
  color: var(--muted);
}

.work-info {
  padding: 24px;
  transition: background 180ms ease, color 180ms ease;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.process-list {
  display: grid;
  gap: 1px;
  align-self: start;
  background: var(--ink);
}

.process-step {
  display: grid;
  grid-template-columns: 28px 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  border: 0;
  padding: 24px 28px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: background 220ms ease, color 220ms ease, min-height 260ms ease;
}

.process-step > *,
.intro > *,
.clients > *,
.why > *,
.contact > *,
.section-heading > *,
.split-heading > * {
  min-width: 0;
}

.process-step:nth-child(1).active {
  background: var(--purple);
  color: var(--white);
}

.process-step:nth-child(2).active {
  background: var(--gray);
}

.process-step:nth-child(3).active {
  background: var(--ink);
  color: var(--white);
}

.process-step.active {
  min-height: 148px;
}

.process-mark::before {
  content: "+";
  font-size: 22px;
  font-weight: 900;
}

.process-step.active .process-mark::before {
  content: "■";
  font-size: 16px;
}

.process-step strong {
  font-size: 15px;
  text-transform: uppercase;
}

.process-step h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

.process-step p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, margin-top 260ms ease, opacity 180ms ease;
}

.process-step.active p {
  max-height: 120px;
  margin-top: 12px;
  opacity: 1;
}

.process-step:nth-child(3).active p {
  color: rgba(255, 255, 255, 0.74);
}

.process-step:nth-child(1).active p {
  color: rgba(255, 255, 255, 0.82);
}

.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.process .section-heading {
  margin-bottom: 0;
}

.clients {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 8vw, 130px);
}

.clients .section-kicker,
.clients h2 { color: var(--white); }

.client-years {
  display: grid;
  gap: 28px;
}

.client-year {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.client-year:hover {
  border-top-color: var(--purple);
  transform: translateX(8px);
}

.client-year strong { font-size: 28px; }
.client-year ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gray-deep);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.case-item {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  padding: 28px;
  background: var(--paper);
  transition: transform 180ms ease, filter 180ms ease;
}

.case-item:nth-child(1) { background: var(--purple-soft); }
.case-item:nth-child(2) { background: var(--gray); }
.case-item:nth-child(3) { background: #eceeed; }

.case-item span {
  font-weight: 900;
}

.case-item h3 {
  margin: 42px 0 14px;
  font-size: 30px;
  line-height: 1.12;
}

.case-item:hover {
  transform: translateY(-3px);
  filter: brightness(0.98);
}

.capability-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--white);
}

.capability-index article {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
  transition: background 180ms ease;
}

.capability-index article:last-child {
  border-right: 0;
}

.capability-index article:hover {
  background: var(--gray);
}

.capability-index span {
  display: block;
  margin-bottom: 30px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.capability-index strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(18px, 2vw, 25px);
}

.capability-index p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.why {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.why-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.why-gallery img:first-child {
  grid-column: 1 / -1;
  height: 340px;
}

.why-gallery img:hover {
  transform: scale(1.025);
}

.why ol {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
}

.why li {
  counter-increment: why;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.why li::before {
  content: counter(why, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--purple);
  font-weight: 900;
}

.why li strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact-copy p,
.contact-lines {
  color: rgba(255, 255, 255, 0.82);
}

.contact-lines {
  display: grid;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}

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

.contact-form label,
.admin-card label,
.password-card label {
  display: grid;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-card input,
.admin-card textarea,
.password-card input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: inherit;
  outline: 0;
}

.contact-form option {
  background: var(--white);
  color: var(--ink);
}

.contact-form .full,
.submit-button { grid-column: 1 / -1; }

.submit-button {
  justify-content: center;
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--purple);
  color: var(--white);
  font-size: 13px;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px 0 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(32, 33, 38, 0.14);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-to-top {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(32, 33, 38, 0.14);
  font-size: 18px;
  font-weight: 900;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.quick-contact:hover,
.back-to-top:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.quick-contact strong {
  font-size: 18px;
}

.admin-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.admin-icon-button:hover {
  transform: rotate(28deg);
}

.dark-icon {
  color: var(--ink);
}

.footer-admin {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-admin:hover {
  background: var(--ink);
  color: var(--white);
}

.admin-modal,
.password-modal {
  width: min(980px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.password-modal {
  width: min(440px, calc(100% - 28px));
}

.admin-modal::backdrop,
.password-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.admin-card,
.password-card {
  position: relative;
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 28px;
  background: var(--white);
}

.admin-top {
  position: sticky;
  top: -28px;
  z-index: 6;
  margin: -28px -28px 20px;
  padding: 28px 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-top .admin-tabs {
  margin-bottom: 0;
  border-bottom: 0;
}

.password-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.password-card p:not(.section-kicker):not(.password-error) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.password-error {
  margin: 8px 0 0;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 24px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-right: 44px;
}

.admin-head h2 { margin: 0; font-size: 30px; }
#adminStatus { color: var(--muted); font-size: 13px; font-weight: 900; }

.admin-help {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.security-save {
  margin-top: 22px;
  width: 100%;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.admin-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 900;
}

.admin-tab.active {
  border-bottom-color: var(--purple);
}

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

.admin-grid label:last-child {
  grid-column: 1 / -1;
}

.number-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.number-field small {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.admin-actions.sticky {
  position: sticky;
  bottom: -28px;
  margin: 24px -28px -28px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

[hidden] { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCopyEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroProgress {
  to { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-copy {
    padding-bottom: 128px;
  }
  .hero-controls {
    right: clamp(20px, 5vw, 76px);
    left: clamp(20px, 5vw, 76px);
    bottom: 26px;
    justify-content: space-between;
  }
  .intro,
  .clients,
  .why,
  .contact,
  .process {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .work-grid,
  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

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

  .mobile-menu {
    inset: var(--header-h) 0 auto;
  }

  .hero { min-height: 660px; }
  .hero h1 {
    font-size: min(38px, var(--hero-title-max));
    line-height: 1.1;
  }
  .hero p:not(.eyebrow) {
    font-size: 16px;
  }
  .hero-copy {
    padding-bottom: 126px;
  }
  .hero-controls {
    right: 20px;
    left: 20px;
    bottom: 22px;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-page {
    grid-template-columns: auto 26px;
    gap: 5px;
  }
  .hero-arrows button {
    width: 38px;
    height: 38px;
  }
  .process-step {
    grid-template-columns: 24px 70px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }
  .process-step strong {
    font-size: 12px;
  }
  .stat-grid,
  .service-grid,
  .work-grid,
  .case-list,
  .contact-form,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .section-heading,
  .split-heading,
  .site-footer,
  .admin-head,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .contact-form .full,
  .submit-button {
    grid-column: auto;
  }

  .floating-actions {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .quick-contact {
    width: 48px;
    justify-content: center;
    padding: 0;
  }

  .quick-contact span {
    display: none;
  }

  .capability-index {
    grid-template-columns: 1fr 1fr;
  }

  .capability-index article:nth-child(2) {
    border-right: 0;
  }

  .capability-index article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .admin-card,
  .password-card {
    padding: 22px 18px;
  }

  .admin-top {
    top: -22px;
    margin: -22px -18px 18px;
    padding: 22px 18px 0;
  }

  .admin-actions.sticky {
    bottom: -22px;
    margin: 24px -18px -22px;
    padding: 16px 18px;
  }
}

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

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

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