:root {
  --ink: #151515;
  --ink-soft: #35332f;
  --paper: #f4efe6;
  --paper-deep: #eee6da;
  --paper-light: #fff8ed;
  --accent: #df681d;
  --accent-dark: #b94f0e;
  --night: #111211;
  --success: #245b27;
  --danger: #8a1c14;
  --line: rgba(21, 21, 21, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.14);
  --content: 1440px;
  --display: Impact, "Arial Narrow", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(20, 20, 18, 0.055) 1px, transparent 1px);
  background-size: 168px 100%;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--paper-light);
  border: 2px solid var(--ink);
  font-weight: 800;
}

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

.container {
  width: min(100%, var(--content));
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: lowercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 76px;
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 42px);
  padding-inline: 24px;
}

.site-nav a {
  position: relative;
  padding-block: 26px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action {
  display: flex;
  align-items: center;
  padding-inline: 24px;
  border-left: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  min-width: 76px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button--accent:hover {
  border-color: var(--paper-light);
  background: var(--paper-light);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  color: var(--ink);
}

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

.button--light:hover {
  border-color: var(--accent);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: min(720px, calc(100vh - 76px));
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 12px clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  color: #625d54;
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--ink);
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--accent);
}

.hero--service h1 {
  font-size: clamp(50px, 5.4vw, 92px);
  line-height: 0.91;
}

.hero--case h1 {
  font-size: clamp(54px, 6.2vw, 104px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(54px, 7vw, 110px) clamp(28px, 6vw, 92px);
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(58px, 7vw, 124px);
  line-height: 0.88;
}

.hero-lead {
  max-width: 680px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--night);
  border-left: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
}

.hero-visual--embroidery img {
  filter: none;
}

.visual-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  background: rgba(17, 18, 17, 0.78);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.signal-item {
  min-height: 116px;
  padding: 28px 34px;
  border-right: 1px solid var(--line-light);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-item span {
  color: rgba(244, 239, 230, 0.8);
  font-size: 14px;
}

.section {
  padding: clamp(62px, 8vw, 112px) clamp(24px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(46px, 6vw, 76px);
}

.section--dark {
  color: var(--paper);
  background-color: var(--night);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 168px 100%;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-title {
  max-width: 900px;
  font-size: clamp(44px, 5.3vw, 80px);
  line-height: 0.94;
}

.section-intro {
  max-width: 560px;
  color: #514d45;
}

.section--dark .section-intro {
  color: rgba(244, 239, 230, 0.7);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cards--compact .card {
  min-height: 270px;
}

.cards--compact .card-number {
  margin-bottom: 32px;
}

.cards--compact .card h3 {
  font-size: clamp(27px, 2.4vw, 38px);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-fact {
  min-height: 150px;
  padding: 28px;
  background: rgba(255, 248, 237, 0.45);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-fact strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 0.9;
}

.case-fact span {
  color: #514d45;
  font-size: 14px;
}

.case-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 88px);
}

.case-story h2 {
  font-size: clamp(42px, 5vw, 72px);
}

.case-story__copy {
  max-width: 760px;
}

.case-story__copy p + p {
  margin-top: 18px;
}

.card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 32px;
  background: rgba(238, 230, 218, 0.72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-number {
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.card h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: lowercase;
}

.card p {
  color: #4c4942;
  font-size: 14px;
}

.card-link {
  margin-top: auto;
  padding-top: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-link::after {
  margin-left: 10px;
  color: var(--accent);
  content: "→";
}

.project-case {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
}

.project-case + .project-case {
  margin-top: clamp(20px, 3vw, 36px);
}

.project-case__summary {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(238, 230, 218, 0.72);
  border-right: 1px solid var(--line);
}

.project-case__logo {
  width: 128px;
  aspect-ratio: 1;
  margin-bottom: 36px;
  object-fit: contain;
}

.project-case__title {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: lowercase;
}

.project-case__title--brand {
  text-transform: none;
}

.project-case__copy {
  max-width: 430px;
  margin-top: 18px;
  color: #4c4942;
}

.project-case__metrics {
  margin: 30px 0;
}

.project-case__metrics div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.project-case__metrics div:last-child {
  border-bottom: 1px solid var(--line);
}

.project-case__metrics dt {
  color: var(--accent);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.project-case__metrics dd {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-case__summary .button {
  align-self: flex-start;
  margin-top: auto;
}

.project-case__gallery {
  display: grid;
  min-height: 620px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.project-case__gallery--single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.project-case__image {
  overflow: hidden;
  background: #fff;
}

.project-case__image--lead {
  grid-row: 1 / -1;
}

.project-case__gallery--single .project-case__image--lead {
  grid-column: 1;
  grid-row: 1;
}

.project-case__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process {
  counter-reset: process;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  list-style: none;
}

.process li {
  counter-increment: process;
  min-height: 265px;
  padding: 28px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process li::before {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  content: "0" counter(process);
  font-size: 12px;
  font-weight: 900;
}

.process h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.process p {
  color: rgba(244, 239, 230, 0.68);
  font-size: 13px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.check-item {
  position: relative;
  min-height: 110px;
  padding: 24px 28px 24px 66px;
  background: rgba(255, 248, 237, 0.45);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-item::before {
  position: absolute;
  top: 27px;
  left: 28px;
  color: var(--accent);
  content: "—";
  font-weight: 900;
}

.check-item strong {
  display: block;
  margin-bottom: 5px;
}

.check-item span {
  color: #5a554e;
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.media-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--night);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 100%;
}

.media-card img {
  object-fit: cover;
}

.media-card video {
  background: var(--night);
  object-fit: contain;
}

.media-card--portrait {
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.media-card--portrait video {
  object-fit: cover;
}

.media-card--video .visual-note {
  top: 16px;
  bottom: auto;
  pointer-events: none;
}

.media-card--small {
  min-height: 310px;
}

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

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

.faq-list summary {
  position: relative;
  padding: 24px 54px 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 21px;
  right: 8px;
  color: var(--accent);
  content: "+";
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 760px;
  padding: 0 56px 26px 0;
  color: #514d45;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.quote-copy {
  position: sticky;
  top: 112px;
}

.quote-copy h2 {
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.93;
}

.quote-copy p {
  max-width: 480px;
  margin-top: 24px;
  color: rgba(244, 239, 230, 0.7);
}

.quote-factors {
  margin-top: 26px;
  color: rgba(244, 239, 230, 0.72);
  font-size: 13px;
  list-style: none;
}

.quote-factors li {
  padding-block: 8px;
  border-bottom: 1px solid var(--line-light);
}

.quote-form {
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
}

.quote-form--callback {
  width: 100%;
  max-width: 620px;
  justify-self: start;
}

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

.form-grid--compact {
  grid-template-columns: minmax(0, 1fr);
}

.quote-form--callback .form-note {
  max-width: 360px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field-label {
  color: rgba(244, 239, 230, 0.78);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 239, 230, 0.58);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.field select option {
  color: var(--ink);
  background: var(--paper);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  color: rgba(244, 239, 230, 0.72);
  font-size: 12px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.form-note {
  max-width: 440px;
  color: rgba(244, 239, 230, 0.55);
  font-size: 11px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 750;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #9bd69f;
  background: rgba(47, 125, 50, 0.12);
}

.form-status.is-error {
  color: #ffc0b8;
  background: rgba(180, 35, 24, 0.12);
}

.analytics-consent {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  width: min(calc(100% - 32px), 1040px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px;
  color: var(--paper);
  background: var(--night);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent__copy h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.analytics-consent__copy p {
  max-width: 680px;
  color: rgba(244, 239, 230, 0.74);
  font-size: 13px;
}

.analytics-consent__copy a,
.analytics-consent__close,
.analytics-settings {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.analytics-consent__actions .button {
  min-height: 46px;
}

.analytics-consent__reject {
  border-color: rgba(244, 239, 230, 0.72);
  background: transparent;
  color: var(--paper);
}

.analytics-consent__close,
.analytics-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.analytics-consent__close {
  flex-basis: 100%;
  justify-self: end;
  color: rgba(244, 239, 230, 0.72);
  font-size: 12px;
  text-align: right;
}

.analytics-settings:hover,
.analytics-consent__close:hover {
  color: var(--accent);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.honeypot input {
  position: absolute !important;
  inset: 0 !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
}

.legal-banner {
  margin-bottom: 34px;
  padding: 18px 20px;
  color: var(--danger);
  background: rgba(180, 35, 24, 0.07);
  border: 1px solid rgba(180, 35, 24, 0.34);
  font-weight: 750;
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin: 42px 0 14px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  color: #45423c;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  list-style: disc;
}

.placeholder {
  padding: 2px 6px;
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
  border: 1px dashed rgba(180, 35, 24, 0.45);
  font-weight: 750;
}

.site-footer {
  color: var(--paper);
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(180px, 0.7fr));
  border-top: 1px solid var(--line-light);
}

.footer-column {
  min-height: 220px;
  padding: 34px;
  border-right: 1px solid var(--line-light);
}

.footer-column:last-child {
  border-right: 0;
}

.footer-brand {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.footer-title {
  margin-bottom: 16px;
  color: rgba(244, 239, 230, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column p,
.footer-column li {
  margin-bottom: 9px;
  color: rgba(244, 239, 230, 0.75);
  font-size: 13px;
  list-style: none;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 34px;
  color: rgba(244, 239, 230, 0.48);
  border-top: 1px solid var(--line-light);
  font-size: 11px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.not-found-code {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(110px, 25vw, 280px);
  line-height: 0.78;
}

.not-found h1 {
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: lowercase;
}

.not-found p {
  max-width: 560px;
  margin: 20px auto 30px;
  color: #514d45;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .header-action {
    padding-inline: 14px;
  }

  .hero {
    grid-template-columns: 1fr 0.82fr;
  }

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

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

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

  .footer-column:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand {
    padding-inline: 20px;
    border-right: 0;
  }

  .js .nav-toggle {
    display: block;
  }

  .header-action {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    justify-content: stretch;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .js .site-nav {
    display: none;
  }

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

  .site-nav a {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-head,
  .quote-section,
  .case-story {
    grid-template-columns: 1fr;
  }

  .quote-copy {
    position: static;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .project-case {
    grid-template-columns: 1fr;
  }

  .project-case__summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    background-size: 84px 100%;
  }

  .container {
    border-inline: 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 24px;
  }

  .nav-toggle {
    min-width: 68px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 56px 20px 48px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 60px);
    line-height: 0.92;
  }

  .hero--service h1,
  .hero--case h1 {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 0.94;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .signal-item {
    min-height: 0;
    padding: 24px 20px;
  }

  .section {
    padding: 58px 20px;
  }

  .section-head {
    gap: 20px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 44px;
  }

  .cards,
  .process,
  .check-grid,
  .case-facts,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 280px;
    padding: 24px;
  }

  .card-number {
    margin-bottom: 36px;
  }

  .project-case__summary {
    padding: 24px;
  }

  .project-case__logo {
    width: 104px;
    margin-bottom: 28px;
  }

  .project-case__metrics div {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }

  .project-case__gallery {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .project-case__image--lead {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .project-case__image:not(.project-case__image--lead) {
    aspect-ratio: 1;
  }

  .process li {
    min-height: 220px;
  }

  .media-card,
  .media-card--small {
    min-height: 340px;
  }

  .field--full {
    grid-column: auto;
  }

  .quote-form {
    padding: 20px;
  }

  .form-footer {
    display: grid;
  }

  .form-footer .button {
    width: 100%;
  }

  .analytics-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .analytics-consent__actions {
    display: grid;
  }

  .analytics-consent__actions .button {
    width: 100%;
  }

  .footer-column,
  .footer-column:nth-child(2) {
    min-height: 0;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .footer-bottom {
    flex-direction: column;
    padding-inline: 20px;
  }
}

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

/* Compact project cases: equal cards on desktop, short galleries on smaller screens. */
@media (min-width: 1101px) {
  #projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2vw, 32px);
  }

  #projects > .section-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  #projects > .project-case {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 340px;
  }

  #projects > .project-case + .project-case {
    margin-top: 0;
  }

  #projects .project-case__summary {
    padding: clamp(26px, 2.5vw, 36px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #projects .project-case__logo {
    width: 88px;
    margin-bottom: 20px;
  }

  #projects .project-case__title {
    font-size: clamp(38px, 3.3vw, 50px);
  }

  #projects .project-case__metrics {
    margin: 22px 0;
  }

  #projects .project-case__metrics div {
    grid-template-columns: 88px 1fr;
    padding: 10px 0;
  }

  #projects .project-case__metrics dt {
    font-size: 30px;
  }

  #projects .project-case__gallery {
    width: 100%;
    height: 340px;
    min-height: 0;
  }
}

#projects .project-case__gallery--single .project-case__image img {
  object-fit: cover;
  object-position: 50% 40%;
}

#projects .project-case__gallery:not(.project-case__gallery--single) .project-case__image img {
  object-fit: contain;
}

#projects .project-case__gallery:not(.project-case__gallery--single) .project-case__image {
  background: var(--paper-deep);
}

#projects .project-case__gallery:not(.project-case__gallery--single) .project-case__image img {
  mix-blend-mode: multiply;
}

@media (max-width: 1100px) and (min-width: 641px) {
  #projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #projects > .section-head {
    margin-bottom: 8px;
  }

  #projects > .project-case {
    grid-template-columns: 1fr;
  }

  #projects > .project-case + .project-case {
    margin-top: 0;
  }

  #projects .project-case__summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #projects .project-case__gallery {
    height: clamp(300px, 43vw, 400px);
    min-height: 0;
  }
}

@media (max-width: 640px) {
  #projects .project-case__gallery {
    height: clamp(220px, 72vw, 280px);
    min-height: 0;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  #projects .project-case__image {
    min-width: 0;
    min-height: 0;
  }

  #projects .project-case__image--lead {
    grid-column: 1;
    grid-row: 1 / -1;
    aspect-ratio: auto;
  }

  #projects .project-case__image:not(.project-case__image--lead) {
    aspect-ratio: auto;
  }

  #projects .project-case__gallery--single {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  #projects .project-case__gallery--single .project-case__image--lead {
    grid-column: 1;
    grid-row: 1;
  }
}
