:root {
  color-scheme: dark;
  --ink: #0e0e10;
  --paper: #f0e8d9;
  --muted: #c3baae;
  --line: #3d3734;
  --accent: #bdc5ee;
  --serif: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Trebuchet MS', Arial, sans-serif;
  --panel: #17151b;
  --panel-border: #8c79645e;
  --card-radius: clamp(17px, 2.2vw, 26px);
  --card-ink: #271f20;
  --card-muted: #564a46;
  --interaction-ease: cubic-bezier(.22, 1, .36, 1);
  --panel-background: radial-gradient(ellipse at 12% 0%, #74604e30, transparent 47%),
    radial-gradient(ellipse at 93% 8%, #444e7a44, transparent 47%), var(--panel);
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 100% 37%, #24295054, transparent 37rem),
    radial-gradient(ellipse at 0% 61%, #17244350, transparent 34rem),
    var(--ink);
  color: var(--paper);
  font: 1rem/1.5 var(--sans);
}
.cursor-glow { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-glow {
    display: block;
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease, transform .15s ease-out;
  }
  .cursor-glow::before {
    content: '';
    display: block;
    width: 175px;
    height: 175px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #6e8df22e, #476dec12 36%, transparent 70%);
  }
  .cursor-glow.is-active { opacity: 1; }
}
main, .site-header, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8797ff; outline-offset: 4px; }
.frame { width: min(100% - 80px, 1280px); margin-inline: auto; }
.site-header { z-index: 2; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #b5c5fe13, #b5c5fe03 36%, #b8c5ff0b); }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--paper); font-size: 1.4rem; font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.wordmark img { display: block; object-fit: contain; }
.site-header nav { display: flex; align-self: center; gap: clamp(4px, .7vw, 11px); }
.site-header nav, .site-footer { color: var(--muted); font-size: .9rem; }
.site-header a:hover, .site-footer a:hover { color: var(--accent); }
.site-header nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1vw, 15px);
  white-space: nowrap;
  border-radius: 999px;
  transition: color .45s var(--interaction-ease), transform .58s var(--interaction-ease);
}
.site-header nav a::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #85766b7d;
  border-radius: inherit;
  background-color: #222127;
  box-shadow: inset 0 1px #fff2, 0 6px 12px #0005;
  transform-origin: 50% 25%;
  transition: transform .48s var(--interaction-ease), background-color .46s var(--interaction-ease),
    border-color .46s var(--interaction-ease), box-shadow .46s var(--interaction-ease);
}
.site-header nav a[aria-current="page"] { color: var(--paper); }
.site-header nav a[aria-current="page"]::before { border-color: #d7c6ab; }
.site-header nav a:focus-visible { color: #1d1921; }
.site-header nav a:focus-visible::before { background-color: #fffdf8; border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:is(:hover, :focus-visible) {
    color: #1d1921;
    transform: translateY(-4px);
  }
  .site-header nav a:is(:hover, :focus-visible)::before {
    transform: scale(1.055);
    background-color: #fffdf8;
    border-color: #fff;
    box-shadow: inset 0 0 0 2px #d2b79865, 0 7px 25px #e0c3ff5e;
  }
}
.header-contact { justify-self: end; border: 1px solid #84735e78; border-radius: 10px 10px 3px 3px; padding: 8px 14px; font-size: .875rem; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - var(--header-height) - 1px); text-align: center; padding: clamp(18px, 4.5svh, 52px) 0 clamp(20px, 4svh, 48px); }
.eyebrow { font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; margin: 0; }
.hero-label { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.hero-heading { position: relative; z-index: 1; }
.hero h1 { z-index: 1; margin: 10px 0 0; font-size: clamp(2.9rem, min(8.3vw, 12.5svh), 8rem); line-height: .95; letter-spacing: -.06em; text-wrap: balance; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-weight: inherit; }
.hero-art {
  position: relative;
  width: 100%;
  margin-top: clamp(-53px, -4vw, -18px);
  aspect-ratio: 3.05;
  max-height: 38svh;
  overflow: hidden;
  mask-image: linear-gradient(0deg, transparent, #000 25%, #000 77%, transparent),
    linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-hand { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-scroll-exit] { opacity: var(--exit-opacity, 1); }
  [data-scroll-exit]:is(:focus-visible, :has(:focus-visible)) { opacity: 1; }
  .hero-heading { opacity: var(--hero-heading-opacity, 1); }
  .hero-art.is-moving {
    opacity: var(--hero-art-opacity, 1);
    background: radial-gradient(ellipse at 51% 53%, #1823449c, transparent 54%);
  }
  .hero-art.is-moving .hero-still { opacity: 0; }
  .hero-art.is-moving .hero-hand {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--hero-image) center / cover no-repeat;
  }
  .hero-hand-left {
    mask-image: linear-gradient(90deg, #000 43%, transparent 51.8%),
      radial-gradient(ellipse 5.2% 38% at 47.2% 51%, #000 70%, transparent 90%);
    transform: translateX(calc(-1 * var(--hand-gap, 0%)));
  }
  .hero-hand-right {
    mask-image: linear-gradient(90deg, transparent 51.6%, #000 59%),
      radial-gradient(ellipse 4% 40% at 55.2% 53%, #000 65%, transparent 90%);
    transform: translateX(var(--hand-gap, 0%));
  }
}
.hero-bottom { position: relative; margin-top: -4px; }
.hero-bottom p { max-width: 470px; margin: 0 auto clamp(12px, 2.5svh, 23px); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero-heading .hero-label { transform: translateY(calc(-1 * var(--hero-progress, 0) * clamp(50px, 8vw, 115px))); }
  .hero-heading h1 span { transform: translateY(calc(-1 * var(--hero-progress, 0) * clamp(45px, 7vw, 100px))); }
  .hero-heading h1 em { transform: translateY(calc(-1 * var(--hero-progress, 0) * clamp(38px, 6vw, 86px))); }
  .hero-bottom p { opacity: var(--hero-copy-opacity, 1); }
  .hero-bottom .actions { opacity: var(--hero-actions-opacity, 1); transform: translateY(calc((var(--hero-actions-opacity, 1) - 1) * clamp(18px, 3vw, 34px))); }
  .hero-bottom .actions:focus-within { opacity: 1; }
  .hero.has-hidden-actions .actions:not(:focus-within) { pointer-events: none; }
}
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 21px; border: 1px solid transparent; border-radius: 12px 12px 3px 3px; font-size: .94rem; font-weight: 700; transition: background-color .18s, color .18s, border-color .18s; }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: var(--accent); }
.button-outline { border-color: #8875618c; }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.section { padding: clamp(55px, 8vw, 108px) 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(30px, 4vw, 52px); }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 8px; }
h2 { font-size: clamp(2.8rem, 6.7vw, 6.3rem); line-height: .95; letter-spacing: -.06em; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.service-card { min-width: 0; overflow: hidden; border: 1px solid var(--panel-border); border-radius: var(--card-radius); padding-bottom: 20px; background: var(--panel-background); }
.service-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.16;
  background-color: #111218;
  box-shadow: 0 16px 38px #0005;
  transition: box-shadow .22s ease;
}
.service-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 4% 0%, #a7775554, transparent 28%),
    radial-gradient(ellipse at 96% 5%, #a5b1e44e, transparent 27%),
    linear-gradient(124deg, #f8e6d219, transparent 23%, transparent 72%, #818cca20);
  pointer-events: none;
  box-shadow: inset 0 1px 2px #e3c9ac4a, inset 0 -12px 26px #06071186;
  transition: box-shadow .22s ease;
}
.service-card h3 { font-size: clamp(1.55rem, 3.1vw, 2.65rem); line-height: 1.08; letter-spacing: -.04em; margin: 16px 18px 0; }
.service-card p { margin: 8px 18px 0; color: var(--muted); max-width: 37ch; }
.services-link { display: flex; width: fit-content; max-width: 100%; margin: clamp(25px, 4vw, 42px) auto 0; }
.button-accent {
  gap: 14px;
  min-height: 54px;
  padding-inline: clamp(14px, 2.4vw, 27px);
  color: #281e18;
  text-align: center;
  border: 1px solid #e3c9a5;
  border-radius: 999px;
  background: linear-gradient(108deg, #f8edda, #e0c29e 46%, #f8edda);
  background-size: 180% 100%;
  box-shadow: inset 0 0 0 3px #8d5f4138, 0 8px 26px #ad825332;
  transition: background-position .55s var(--interaction-ease), box-shadow .55s var(--interaction-ease),
    transform .55s var(--interaction-ease);
}
.button-accent::after {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid #715034;
  background: #956a4638;
  transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) {
  .button-accent:hover {
    background-position: 100% center;
    box-shadow: inset 0 0 0 3px #8d5f4138, 0 9px 36px #e2b27a55;
    transform: translateY(-2px);
  }
}
@media (hover: hover) {
  .service-card:hover .service-art { box-shadow: 0 12px 40px #5a60bc44; }
  .service-card:hover .service-art::after { box-shadow: inset 0 1px 3px #f4edff94, inset 0 -12px 26px #06071186; }
}
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.work-card { border: 1px solid var(--panel-border); border-radius: var(--card-radius); overflow: hidden; min-width: 0; background: var(--panel-background); transition: border-color .25s, transform .25s; }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover { border-color: #747da5; transform: translateY(-4px); }
}
.site-sample, .bot-sample { min-height: 280px; }
.site-sample { color: var(--paper); display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(ellipse at 50% 92%, #333552, transparent 62%), #15141a; text-align: center; overflow: hidden; }
.site-sample img { object-fit: contain; }
.site-sample strong { font: italic 400 clamp(3.8rem, 9vw, 7rem)/.9 var(--serif); letter-spacing: -.07em; }
.site-sample i { margin-top: 10px; font-size: .875rem; font-style: normal; color: #d3d0db; }
.bot-sample { background: #17171b; }
.chat-head { display: flex; gap: 12px; align-items: center; min-height: 66px; padding: 10px 17px; background: #25222a; }
.chat-head small { display: block; color: var(--muted); }
.chat-avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 50%; background: #3a437b; color: white; }
.chat-body { padding: 15px 17px 18px; }
.chat-body p { width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 9px 13px; border: 1px solid #6054686d; border-radius: 4px 14px 14px; background: #262331; }
.bot-options { display: flex; flex-wrap: wrap; gap: 7px; }
.bot-options button { background: #202331; color: #c6caff; border: 1px solid #545b82; padding: 6px 12px; min-height: 42px; border-radius: 4px; }
.bot-options button:hover { background: #353c62; }
.card-copy { padding: 20px; }
.card-copy .eyebrow { color: var(--accent); }
.card-copy h3 { font-size: 2rem; margin-top: 2px; }
.card-copy p:last-child { color: var(--muted); margin: 4px 0 0; }
.process-intro { max-width: 44ch; color: var(--muted); margin: 13px 0 0; }
.process-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 23px); counter-reset: step; }
.process ol { display: contents; list-style: none; }
.process li, .process-note {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  color: var(--process-ink, var(--paper));
  background-color: var(--process-surface, #1a171e);
  transition: color .45s var(--interaction-ease), background-color .45s var(--interaction-ease), border-color .45s var(--interaction-ease),
    box-shadow .45s var(--interaction-ease);
}
.process li { counter-increment: step; min-height: 224px; }
.process li:last-child { grid-column: span 2; }
.process li::before { display: block; content: counter(step, decimal-leading-zero); margin-bottom: clamp(16px, 2.7vw, 32px); font-family: var(--serif); color: var(--process-number, #d3b798); line-height: 1; transition: color .45s var(--interaction-ease); }
.process li h3, .process-note h3 { font-size: clamp(1.35rem, 2.7vw, 2.25rem); line-height: 1.13; }
.process li p, .process-note p { margin: 10px 0 0; color: var(--process-copy, var(--muted)); max-width: 46ch; transition: color .45s var(--interaction-ease); }
.process-note p { margin-bottom: 17px; }
@media (hover: hover) and (pointer: fine) {
  .process-board :is(li, .process-note):hover {
    --process-ink: var(--card-ink);
    --process-copy: var(--card-muted);
    --process-number: #80573d;
    --process-surface: #fffdf9;
    border-color: #fff;
    box-shadow: 0 10px 32px #0004;
  }
}
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 5vw, 70px);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  background: var(--panel-background);
  box-shadow: inset 0 1px #e3c9ac24;
}
.about-panel .section-heading { margin: 0; }
.about-copy { max-width: 510px; margin-top: clamp(19px, 3vw, 34px); color: #ded8dc; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 16px; }
.about-brand { color: #f2d5a9; border-bottom: 1px solid #b98f69; padding-bottom: 1px; }
.about-portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1.08;
  justify-self: center;
}
.about-portrait::before {
  content: '';
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 54%, #8883984f, transparent 70%);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(#000 96%, transparent);
}
.contact { position: relative; padding: clamp(26px, 5vw, 64px) 0 28px; }
.contact::before, .contact::after { content: ''; position: absolute; top: 0; pointer-events: none; }
.contact::before {
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8a7561 30%, #8a7561 47%, transparent 47% 53%, #8a7561 53%, #8a7561 70%, transparent);
}
.contact::after {
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #c1a484;
  background: #201a1b;
  transform: translate(-50%, -50%) rotate(45deg);
}
.contact-paper {
  position: relative;
  isolation: isolate;
  color-scheme: light;
  color: #1d1b19;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 6vw, 84px);
  padding: clamp(27px, 5.2vw, 75px);
}
.contact-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 10px, 7% 7px, 15% 10px, 24% 4px, 37% 7px, 46% 2px, 55% 6px,
    70% 3px, 79% 4px, 93% 0, calc(100% - 25px) 2px, 100% 27px, calc(100% - 3px) 44%,
    100% 64%, calc(100% - 3px) calc(100% - 9px), 92% calc(100% - 6px), 85% calc(100% - 8px),
    72% calc(100% - 4px), 64% calc(100% - 7px), 54% calc(100% - 5px), 46% calc(100% - 8px),
    34% calc(100% - 2px), 23% calc(100% - 5px), 17% calc(100% - 2px), 7% 100%, 2px calc(100% - 6px), 0 74%, 3px 60%, 0 34%);
  background:
    repeating-linear-gradient(118deg, #291a0c08 0 1px, transparent 1px 4px),
    repeating-linear-gradient(45deg, #fff3 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 15% 14%, #fff4dc, transparent 52%),
    linear-gradient(155deg, #eadcbc, #f0e5ce 51%, #ded0af);
  box-shadow: inset 0 0 60px #80613747;
}
.contact-paper::after {
  content: '';
  position: absolute;
  inset: 2px 0 auto auto;
  z-index: -1;
  width: 25px;
  height: 25px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #fff8e6, #bea984);
  pointer-events: none;
}
.contact-intro { border-top: 1px solid #3c332a8f; padding-top: 14px; }
.contact-intro .eyebrow { font-family: 'Courier New', monospace; }
.contact h2 { margin-top: 12px; }
.contact-intro > p:not(.eyebrow) { max-width: 330px; }
.contact-mark { display: block; width: clamp(95px, 14vw, 156px); height: auto; margin: 8px 0 0 auto; mix-blend-mode: multiply; }
form { display: flex; flex-direction: column; gap: 14px; align-self: start; }
label { display: block; font-size: .9rem; font-weight: 700; }
input, textarea { display: block; width: 100%; box-sizing: border-box; background: #fbf8ee; border: 1px solid #8e8b81; color: #15151a; margin-top: 5px; padding: 10px; font-size: 1rem; border-radius: 0; }
.contact-paper :is(input, textarea):focus {
  border-color: #8b5d3d;
  outline: 2px solid #8b5d3d;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #b4814922;
}
textarea { resize: vertical; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin: -7px 0 0; font-size: .875rem; color: #4a4841; }
.button-dark { align-self: start; background: #191923; color: var(--paper); }
.button-dark:hover { background: #333c75; }
.button-dark:disabled { opacity: .7; cursor: wait; }
#form-status { margin: 0; font-size: .9rem; }
#form-status:empty { display: none; }
#form-status[data-state="error"] { color: #842327; }
.lead-confirmation {
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: clamp(24px, 5vw, 40px);
  color-scheme: light;
  color: #281e18;
  border: 1px solid #b79670;
  border-radius: 22px 22px 6px 6px;
  background: linear-gradient(130deg, #fcf1d9, #eadcbc);
  box-shadow: inset 0 0 0 4px #a579512b, 0 18px 55px #0008;
}
.lead-confirmation::backdrop { background: #101018b8; }
.lead-confirmation h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.lead-confirmation p { margin: 14px 0 22px; }
.lead-confirmation :focus-visible { outline-color: #8b5d3d; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .lead-confirmation[open] { animation: confirmation-appear .26s var(--interaction-ease) both; }
}
@keyframes confirmation-appear {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0 29px; }
.footer-details { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.footer-details a { color: var(--paper); text-decoration: underline; text-underline-offset: .26em; }
.footer-details p { margin: 0; }
.footer-details strong { color: var(--paper); font-weight: 400; }

.benefits { padding-block: clamp(45px, 8vw, 105px); }
.benefits-heading { max-width: 790px; margin-bottom: clamp(28px, 5vw, 64px); }
.benefits-heading h1 { font-size: clamp(2.5rem, 8vw, 7rem); line-height: .97; letter-spacing: -.055em; }
.benefits-heading p { max-width: 54ch; color: var(--muted); margin: 22px 0 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.benefit-card { overflow: hidden; border: 1px solid var(--panel-border); border-radius: var(--card-radius); background: var(--panel-background); }
.benefit-card .service-art { aspect-ratio: 1.22; }
.benefit-copy { padding: clamp(22px, 4vw, 50px); }
.benefit-copy h2 { font-size: clamp(1.95rem, 4.5vw, 4rem); line-height: 1.04; }
.benefit-copy p, .benefit-copy li { color: var(--muted); }
.benefit-copy ul { padding-inline-start: 1.25em; margin-bottom: 0; }
.benefit-copy li + li { margin-top: 8px; }
.benefits-cta { margin-top: clamp(28px, 5vw, 60px); padding: clamp(22px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: var(--panel-background); border: 1px solid var(--panel-border); border-radius: var(--card-radius); }
.benefits-cta p { max-width: 56ch; margin: 0; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 40px); }
  .hero-art { aspect-ratio: 2.45; }
  .contact-paper { grid-template-columns: 1fr; }
}

@media (max-width: 810px) {
  :root { --header-height: 100px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 9px 5px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 3px; font-size: clamp(.72rem, 2.3vw, .88rem); }
  .site-header nav a { padding-inline: clamp(4px, 1.35vw, 15px); }
}

@media (max-width: 730px) {
  .services { grid-template-columns: 1fr; gap: 28px; }
  .service-art { aspect-ratio: 1.4; }
  .process-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:last-child { grid-column: auto; }
  .process-note { grid-column: 1 / -1; }
  .benefits-grid { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 310px); }
}

@media (max-width: 530px) {
  .frame { width: calc(100% - 30px); }
  .site-header .wordmark img, .site-footer .wordmark img { width: 32px; height: 32px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.9rem); }
  .hero-art {
    width: calc(100% + 30px);
    aspect-ratio: 2.7;
    margin: clamp(8px, 2svh, 18px) 0;
    mask-image: linear-gradient(0deg, transparent, #000 22%, #000 80%, transparent),
      linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  .work-grid, .contact-fields { grid-template-columns: 1fr; }
  .process-board { grid-template-columns: 1fr; }
  .process li { min-height: auto; }
  .actions { gap: 7px; }
  .actions .button { padding-inline: 8px; font-size: .84rem; }
  .site-sample, .bot-sample { min-height: 250px; }
  .site-footer { align-items: flex-start; }
  .footer-details { flex-direction: column; align-items: flex-end; text-align: right; }
}

@media (max-height: 610px) {
  .hero { padding-block: 12px 16px; }
  .hero-art { max-height: 28svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .site-header nav a:is(:hover, :focus-visible), .site-header nav a:is(:hover, :focus-visible)::before { transform: none; }
  .work-card:hover { transform: none; }
  .button-accent:hover { transform: none; }
}
