:root {
  color-scheme: light;
  --ink: #101114;
  --ink-soft: #292b2d;
  --yellow: #f5ea00;
  --paper: #f5f2e9;
  --white: #fffef8;
  --muted: #6c6c66;
  --line: rgba(16, 17, 20, 0.18);
  --line-light: rgba(245, 242, 233, 0.2);
  --content: 1280px;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --radius: 2px;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.section--light :focus-visible,
.section--yellow :focus-visible {
  outline-color: var(--ink);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  min-height: 88px;
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.72rem;
  min-width: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 0.91;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.brand span:not(.brand-mark) {
  display: block;
}

.brand small,
.brand span span {
  display: block;
  margin-top: 0.4em;
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 0.52em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.17em;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  overflow: hidden;
  background: var(--ink) url("/brand/swea-logotyp-referens.png") left top / 278% auto no-repeat;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.15rem, 2vw, 2.25rem);
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

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

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

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.15rem;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--paper);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 88px));
  background: var(--ink);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 11.111% 100%;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(3.25rem, 5vw, 5rem) var(--gutter);
}

/* A long heading must never dictate the minimum width of a grid column. */
.hero-inner > *,
.split > *,
.contact-grid > *,
.detail-layout > *,
.form-row > *,
.footer-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.3rem, 2.5vw, 2.25rem);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  flex: 0 0 26px;
  height: 2px;
  background: currentColor;
}

.hero-title,
.page-hero h1 {
  max-width: 13ch;
  margin-bottom: 1.65rem;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 6.8vw, 7rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.087em;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero-title em,
.page-hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lede {
  max-width: 58ch;
  margin-bottom: 2.3rem;
  color: #d2d0c8;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 54px;
  padding: 0.98rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.77rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.085em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button::after {
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 0.8;
}

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

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

.button--yellow:hover {
  background: var(--white);
}

.button--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

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

.service-board {
  width: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  color: var(--paper);
  background: #1b1d1f;
  border: 1px solid rgba(245, 242, 233, .22);
  border-top: 4px solid var(--yellow);
}

.service-board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #b8bab3;
  font-size: .65rem;
  letter-spacing: .13em;
  font-weight: 700;
}

.service-board-title {
  margin: 1.5rem 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.service-board-title em {
  color: var(--yellow);
  font-style: normal;
}

.service-board-links a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .65rem;
  min-height: 52px;
  padding: .75rem 0;
  border-top: 1px solid rgba(245, 242, 233, .18);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
}

.board-number {
  color: var(--yellow);
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
}

.service-board-links a:hover { color: var(--yellow); }
.service-board-links a:focus-visible { outline-color: var(--yellow); outline-offset: 2px; }
.service-board-links a > :last-child { color: var(--yellow); }
.service-board-bottom {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  color: #b8bab3;
  font-size: .7rem;
}
.board-dot { width: 5px; height: 5px; background: var(--yellow); flex: none; }

.section {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
}

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

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.section-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.section-heading {
  max-width: 14ch;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6.5vw, 6.75rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-intro {
  max-width: 64ch;
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
  color: inherit;
  font-size: clamp(1.02rem, 1.45vw, 1.25rem);
  line-height: 1.7;
  opacity: 0.8;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 220ms ease, color 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  right: -5.5rem;
  bottom: -6rem;
  width: 14rem;
  aspect-ratio: 1;
  border: 2.2rem solid currentColor;
  border-radius: 50%;
  opacity: 0.035;
  transition: transform 260ms ease, opacity 260ms ease;
}

.service-card:hover,
.service-card:focus-within {
  background: var(--yellow);
  color: var(--ink);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: translate(-1.2rem, -1.2rem);
  opacity: 0.09;
}

.service-index {
  display: block;
  margin-bottom: auto;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.service-card h2,
.service-card h3 {
  position: relative;
  max-width: 12ch;
  margin: 3rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.service-card p {
  position: relative;
  max-width: 34ch;
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.service-card a {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 0;
}

.service-card a:focus-visible {
  outline-offset: -6px;
}

.card-arrow {
  position: absolute;
  top: clamp(1.5rem, 2.8vw, 2.5rem);
  right: clamp(1.5rem, 2.8vw, 2.5rem);
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 200ms ease;
}

.service-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

.section--dark .service-grid,
.section--dark .service-card {
  border-color: var(--line-light);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.split > img,
.split > figure {
  width: 100%;
  min-height: 420px;
  aspect-ratio: 0.92;
  object-fit: cover;
  background: var(--ink-soft);
}

.split > figure {
  margin: 0;
  overflow: hidden;
}

.split > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.copy {
  max-width: 68ch;
}

.copy p {
  margin-bottom: 1.35rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.copy p:last-child {
  margin-bottom: 0;
}

.copy .button {
  margin-top: 1.25rem;
}

.feature-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.feature-list li {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.feature-list li::before {
  content: "↗";
  flex: none;
  color: var(--yellow);
}

.section--yellow .feature-list li::before {
  color: var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid currentColor;
}

.process-step {
  position: relative;
  min-height: 235px;
  padding: 1.75rem 1.6rem 1.75rem 0;
  border-right: 1px solid rgba(16, 17, 20, 0.3);
}

.process-step + .process-step {
  padding-left: 1.6rem;
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span:first-child,
.process-step > small:first-child {
  display: block;
  margin-bottom: 3rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.process-step h2,
.process-step h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.process-step p {
  max-width: 28ch;
  margin-bottom: 0;
  font-size: 0.92rem;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

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

.faq-item p,
.faq-item > div {
  max-width: 70ch;
  padding-bottom: 1.4rem;
  color: var(--muted);
}

.section--dark .faq-list,
.section--dark .faq-item {
  border-color: var(--line-light);
}

.section--dark .faq-item p,
.section--dark .faq-item > div {
  color: #c5c4be;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.contact-panel {
  padding-top: 1rem;
}

.contact-panel a:not(.button) {
  display: block;
  width: fit-content;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.contact-panel a:not(.button):hover {
  color: var(--yellow);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--line-light);
  background: #1b1d20;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.field label,
.field > span:first-child {
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(245, 242, 233, 0.32);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.field textarea,
.contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a9aaa4;
}

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

.contact-form .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.contact-form p,
.contact-form small {
  margin: 0;
  color: #c5c4be;
  font-size: 0.82rem;
  line-height: 1.55;
}

.contact-form p a,
.contact-form small a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--yellow);
  background: rgba(245, 234, 0, 0.08);
  color: var(--paper);
  font-size: 0.9rem;
}

.form-status[role="alert"] {
  border-color: #ff877d;
  background: rgba(255, 135, 125, 0.1);
}

.site-footer {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--line-light);
  background: #0b0c0e;
  color: var(--paper);
}

.footer-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 1rem;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  transition: color 180ms ease;
}

.footer-grid a:not(.brand):hover {
  color: var(--yellow);
}

.footer-inner > :last-child {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
  color: #aaa9a2;
  font-size: 0.8rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter) clamp(4rem, 7vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}

.page-hero > * {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content));
  margin-left: auto;
  margin-right: auto;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -14rem;
  right: -14rem;
  width: min(55vw, 680px);
  aspect-ratio: 1;
  border: clamp(3rem, 7vw, 8rem) solid rgba(245, 234, 0, 0.075);
  border-radius: 50%;
}

.page-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.75rem, 8vw, 8rem);
}

.page-hero p {
  max-width: 60ch;
  margin-bottom: 0;
  color: #d2d0c8;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.6rem;
  color: #c1c1b9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.breadcrumb > * + *::before {
  content: "/";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--yellow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  width: min(100%, var(--content));
  margin-inline: auto;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 2rem;
  border-top: 2px solid var(--ink);
}

.detail-sidebar a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 800;
  transition: padding-left 180ms ease, color 180ms ease;
}

.detail-sidebar a:hover,
.detail-sidebar a[aria-current="page"] {
  padding-left: 0.5rem;
  color: #777100;
}

.detail-content {
  max-width: 75ch;
}

.detail-content h2,
.privacy-copy h2 {
  margin: 3.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.detail-content h2:first-child,
.privacy-copy h2:first-child {
  margin-top: 0;
}

.detail-content h3,
.privacy-copy h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.detail-content p,
.detail-content li,
.privacy-copy p,
.privacy-copy li {
  font-size: 1.04rem;
  line-height: 1.8;
}

.detail-content ul,
.detail-content ol,
.privacy-copy ul,
.privacy-copy ol {
  padding-left: 1.3rem;
  margin: 1rem 0 1.5rem;
}

.detail-content li,
.privacy-copy li {
  margin-bottom: 0.5rem;
}

.detail-content a:not(.button),
.privacy-copy a {
  text-decoration: underline;
  text-decoration-color: #aaa000;
  text-underline-offset: 3px;
}

.notice {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--yellow);
  background: #e9e6dc;
  color: var(--ink);
}

.notice p:last-child {
  margin-bottom: 0;
}

.privacy-copy {
  width: min(100%, 75ch);
  margin-inline: auto;
}

.section--yellow a:focus-visible,
.section--yellow button:focus-visible {
  outline-color: var(--ink);
}

@media (max-width: 1050px) {
  .desktop-nav,
  .header-inner > .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav[data-open="true"] {
    display: grid;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-light);
  }
  .mobile-nav a { padding: 1rem 0; }
  .mobile-nav .nav-cta { width: fit-content; padding: 1rem; margin-top: .5rem; }
  .desktop-nav {
    gap: 1rem;
  }

  .desktop-nav a {
    font-size: 0.7rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
    gap: 2rem;
  }

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

@media (max-width: 760px) {
  :root {
    --gutter: 1.25rem;
  }

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .desktop-nav,
  .header-inner > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open,
  .mobile-nav[data-open="true"],
  .menu-toggle[aria-expanded="true"] ~ .mobile-nav {
    display: grid;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    background: var(--ink);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.9rem;
  }

  .mobile-nav .nav-cta {
    display: inline-flex;
    width: fit-content;
    margin-top: 1rem;
    padding-inline: 1.25rem;
    border: 0;
    color: var(--ink);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(5rem, 14vw, 7rem);
    padding-bottom: 4rem;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    font-family: var(--font-body);
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
    text-wrap: initial;
  }

  .service-board { margin-top: 1rem; }
  .service-board-title { font-size: clamp(2.5rem, 8vw, 4rem); }

  .split,
  .contact-grid,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .split > img,
  .split > figure {
    min-height: 0;
    aspect-ratio: 1.25;
  }

  .detail-sidebar {
    position: static;
  }

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

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(n + 3) {
    border-top: 1px solid rgba(16, 17, 20, 0.3);
  }

  .process-step:nth-child(3) {
    padding-left: 0;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-inner { padding-top: 3rem; padding-bottom: 3rem; gap: 2rem; }
  .hero-actions .button { gap: 1rem; text-align: left; }
  .hero-lede { margin-bottom: 1.75rem; }

  .section {
    padding-block: 4.5rem;
  }

  .section-heading {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    overflow-wrap: anywhere;
  }

  .service-grid,
  .process-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 275px;
  }

  .process-step,
  .process-step + .process-step,
  .process-step:nth-child(3) {
    min-height: 0;
    padding: 1.4rem 0;
    border-right: 0;
    border-top: 1px solid rgba(16, 17, 20, 0.3);
  }

  .process-step:first-child {
    border-top: 0;
  }

  .process-step > span:first-child,
  .process-step > small:first-child {
    margin-bottom: 1rem;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    max-width: 100%;
    line-height: 1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  .page-hero { padding-top: 3rem; padding-bottom: 3rem; }
  .service-board { padding: 1.25rem; }
  .field input, .field textarea, .field select { font-size: 16px; min-width: 0; }
}

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

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