/*
Theme Name: Schaktmiljö 2026
Theme URI: https://schaktmiljo.se/
Author: Schaktmiljö Sverige AB
Description: Ett snabbt, tillgängligt och skräddarsytt WordPress-tema för Schaktmiljö.
Version: 1.0.17
Requires at least: 6.2
Requires PHP: 8.1
Text Domain: schaktmiljo
*/

@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-800.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-900.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }

:root {
  --ink: #0b0b0b;
  --paper: #f2f0ea;
  --paper-light: #faf9f5;
  --white: #ffffff;
  --gold: #d69b32;
  --gold-dark: #925d0e;
  --muted: #66625a;
  --line: #cbc7bc;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
a,
button {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

main h1,
main h2,
main h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

main section,
main article,
main aside,
.content-block,
.hero-copy,
.project-detail-copy,
.knowledge-article-copy,
.article-main,
.article-section > div,
.footer-main > * {
  min-width: 0;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  background: var(--ink);
  color: var(--white);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: clamp(230px, 26vw, 380px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.6vw, 3.2rem);
}

.site-nav a {
  position: relative;
  padding: 2rem 0 1.75rem;
  font-size: 0.98rem;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.35rem;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a:last-child {
  color: #f2ba57;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero {
  display: grid;
  min-height: calc(100svh - 92px);
  max-width: 1920px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  background: var(--paper-light);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7.4vw, 7.8rem) clamp(2rem, 5.8vw, 6.5rem)
    clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.project-detail h1 {
  margin-bottom: 1.7rem;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: clamp(4rem, 6.25vw, 7.7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.94;
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  text-align: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: #292929;
}

.button-outline {
  border-color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: #eab24e;
}

.service-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.3rem;
  margin: auto 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-ticker li {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
}

.service-ticker a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.service-ticker a:hover,
.service-ticker a:focus-visible {
  border-bottom-color: var(--gold);
}

.service-ticker a span {
  color: var(--gold-dark);
  transition: transform 180ms ease;
}

.service-ticker a:hover span,
.service-ticker a:focus-visible span {
  transform: translateX(0.18rem);
}

.service-ticker li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -1.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.hero-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #30322d;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 10%), transparent 35%),
    linear-gradient(0deg, rgb(0 0 0 / 20%), transparent 45%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-project {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 3rem);
  width: min(290px, calc(100% - 2.5rem));
  padding: 1.5rem;
  background: rgb(10 10 10 / 82%);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-project p,
.hero-project strong,
.hero-project span {
  display: block;
}

.hero-project p {
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.hero-project strong {
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.hero-project span {
  color: #efb646;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-project span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8.5rem) clamp(1.5rem, 5vw, 5.5rem);
}

.section-projects {
  background: var(--paper);
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(2.6rem, 4.5vw, 4.5rem);
}

.section-intro h2,
.statement h2,
.quality-preview h2,
.contact-panel h2,
.content-block h2 {
  margin-bottom: 1.5rem;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: clamp(2.7rem, 4.7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.section-intro > p:last-child,
.split-intro > p,
.quality-copy p,
.contact-panel-copy p,
.content-block > p {
  max-width: 650px;
  color: #444139;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: block;
  min-width: 0;
  background: var(--paper-light);
}

.project-image {
  position: relative;
  display: block;
  height: clamp(330px, 37vw, 540px);
  overflow: hidden;
  background: #d4d2cb;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:first-child .project-image img {
  object-position: 50% 58%;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-image > span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  background: rgb(10 10 10 / 78%);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.project-meta {
  margin-bottom: 0.8rem;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta span {
  margin: 0 0.35rem;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.1;
}

.project-card:hover .project-content h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.project-content > p:not(.project-meta) {
  max-width: 540px;
  margin-bottom: 1.3rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentcolor;
  font-weight: 700;
}

.text-link span {
  color: var(--gold-dark);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link.back-link:hover span {
  transform: translateX(-4px);
}

.project-return-button {
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.section-action {
  margin-top: 2.5rem;
  text-align: right;
}

.services-home {
  max-width: none;
  background: var(--paper-light);
}

.services-home > * {
  width: min(calc(var(--max) - 11rem), calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.split-intro {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  padding: clamp(1.35rem, 2.5vw, 2.4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-number {
  margin-bottom: 3rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 1.55vw, 1.7rem);
  line-height: 1.12;
}

.service-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card-link {
  display: block;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
}

.service-card-link span {
  color: var(--gold-dark);
}

.statement {
  display: grid;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 9vw, 10rem) clamp(1.5rem, 8vw, 9rem);
  background: var(--ink);
  color: var(--white);
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1.55fr);
}

.statement > div:last-child {
  max-width: 950px;
}

.statement-label {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.statement h2 {
  max-width: 850px;
}

.statement p {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #d7d5cf;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
}

.partner-section {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: clamp(2.5rem, 8vw, 9rem);
  padding: clamp(5rem, 9vw, 10rem) clamp(1.5rem, 8vw, 9rem);
  background: var(--gold);
  color: var(--ink);
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
}

.partner-section::after {
  position: absolute;
  top: -110px;
  right: -85px;
  width: 380px;
  height: 380px;
  border: 58px solid rgb(27 32 33 / 9%);
  border-radius: 50%;
  content: "";
}

.partner-kicker {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 0.4rem;
  border-top: 2px solid var(--ink);
}

.partner-kicker span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.partner-kicker p {
  max-width: 270px;
  font-size: 1.05rem;
  font-weight: 600;
}

.partner-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.partner-copy .eyebrow {
  color: var(--ink);
}

.partner-copy h2,
.work-track h2,
.partner-detail-intro h2,
.expectation-section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 4.7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.partner-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.quality-preview {
  display: grid;
  gap: clamp(2rem, 8vw, 9rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.quality-copy {
  padding-top: 2.15rem;
}

.quality-copy p {
  margin-bottom: 2rem;
}

.contact-panel {
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.5rem, 8vw, 9rem);
  background: #171715;
  color: var(--white);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.contact-panel-copy {
  align-self: end;
}

.contact-panel-copy p {
  margin-bottom: 2rem;
  color: #d7d5cf;
}

/* Structured contact forms */
.form-page .page-hero {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.form-page .page-hero h1 {
  max-width: 980px;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
}

.form-section {
  background: var(--paper);
}

.form-shell {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.form-required-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-required-note span,
.form-field label > span,
.form-consent strong {
  color: var(--gold-dark);
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  width: 100%;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.05;
}

.form-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  max-width: 100%;
  min-width: 0;
  align-content: start;
  gap: 0.55rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.form-field label small {
  margin-left: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #99958c;
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input[type="file"] {
  display: block;
  overflow: hidden;
  min-height: 64px;
  padding: 0.9rem;
  background: #e8e5dd;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-dark);
  outline: 3px solid rgb(214 155 50 / 28%);
  outline-offset: 0;
}

.form-field > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-consent {
  display: flex;
  width: min(760px, 100%);
  max-width: 760px;
  min-width: 0;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.form-consent > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--gold-dark);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.form-demo-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  margin: -2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-light);
  font-weight: 600;
}

.contact-email-fallback {
  margin: 1.7rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 4rem clamp(1.5rem, 6vw, 6.5rem) 1.5rem;
  background: #050505;
  color: var(--white);
}

.footer-main {
  display: grid;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto 4rem;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(150px, 0.65fr));
}

.footer-brand img {
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 1.4rem;
  aspect-ratio: 706 / 126;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 360px;
  color: #aaa8a3;
}

.footer-main h2 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main li + li {
  margin-top: 0.55rem;
}

.footer-main a:hover {
  color: #efb646;
}

.footer-main a {
  overflow-wrap: anywhere;
}

.footer-contact address {
  margin-bottom: 1rem;
  color: #d2d0cb;
  font-style: normal;
}

.footer-bottom {
  display: flex;
  max-width: var(--max);
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid #333;
  color: #85837d;
  font-size: 0.78rem;
}

.footer-bottom span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Interior pages */
.page-hero {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 8vw, 9rem);
  background: var(--paper-light);
}

.page-hero h1 {
  max-width: 1050px;
  font-size: clamp(4rem, 8vw, 9rem);
}

.page-hero > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  line-height: 1.65;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-back-link span {
  color: var(--gold-dark);
  transition: transform 180ms ease;
}

.page-back-link:hover span {
  transform: translateX(-4px);
}

.content-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 8vw, 9rem);
}

.content-section.alt {
  background: var(--paper-light);
}

.content-block {
  max-width: 840px;
}

.content-block.wide {
  max-width: var(--max);
}

.content-block h2 {
  max-width: 820px;
}

.content-block > p {
  margin-bottom: 1.5rem;
}

.legal-content {
  max-width: 960px;
}

.legal-content h2 {
  margin: 3.25rem 0 1.25rem;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 2rem 0 0.65rem;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.15;
}

.legal-content p,
.legal-content li {
  color: #45423b;
  font-size: 1.06rem;
  line-height: 1.72;
}

.legal-content ul {
  margin: 0 0 1.75rem;
  padding-left: 1.35rem;
}

.legal-content a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-dark);
  text-underline-offset: 0.2em;
}

.service-hero-image {
  width: min(1920px, 100%);
  height: clamp(420px, 52vw, 780px);
  margin: 0 auto;
  overflow: hidden;
  background: #c7c4bc;
}

.service-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-story,
.quality-feature {
  display: grid;
  max-width: var(--max);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.about-story-media,
.quality-feature-media {
  overflow: hidden;
  background: #cbc8c0;
}

.about-story-media {
  aspect-ratio: 4 / 3;
}

.quality-feature-media {
  aspect-ratio: 3 / 4;
}

.about-story-media img,
.quality-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-feature-media img {
  object-position: 42% 50%;
}

.leadership-section {
  max-width: none;
  background: var(--ink);
  color: var(--white);
}

.leadership-section > .content-block {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.leadership-section h2 {
  max-width: 980px;
}

.leadership-grid {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid #3e3e3a;
  border-left: 1px solid #3e3e3a;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leadership-card {
  min-height: 480px;
  padding: clamp(1.8rem, 4vw, 4rem);
  border-right: 1px solid #3e3e3a;
  border-bottom: 1px solid #3e3e3a;
  background: #171715;
}

.leadership-card-founder {
  background: var(--gold);
  color: var(--ink);
}

.leadership-card > span {
  display: block;
  margin-bottom: clamp(3rem, 7vw, 7rem);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leadership-card-founder > span {
  color: var(--ink);
}

.leadership-card h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1;
}

.leadership-role {
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}

.leadership-card-founder .leadership-role {
  color: #3d2b0b;
}

.leadership-card > p:not(.leadership-role) {
  max-width: 620px;
  color: #d1cfc9;
}

.leadership-card-founder > p:not(.leadership-role) {
  color: #28241d;
}

.leadership-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 2rem;
}

.leadership-links a {
  border-bottom: 1px solid currentcolor;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.service-list {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  gap: 2rem;
  color: inherit;
  text-decoration: none;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  scroll-margin-top: 2rem;
}

.service-row h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.05;
}

.service-row p {
  max-width: 750px;
  margin: 0;
  color: #4b4841;
  font-size: 1.05rem;
}

.service-row:hover h2,
.service-row:focus-visible h2 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.service-focus-grid {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-focus-grid article {
  min-height: 270px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-focus-grid span {
  display: block;
  margin-bottom: 5rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-focus-grid h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.principles-grid {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle {
  min-height: 260px;
  padding: 2rem;
  background: var(--paper-light);
}

.principle span {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.principle h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.project-index-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.project-filters button {
  max-width: 100%;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  white-space: normal;
}

.project-filters button:hover,
.project-filters button.is-active {
  background: var(--ink);
  color: var(--white);
}

.project-count {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.project-detail {
  background: var(--paper-light);
}

.project-detail-hero {
  display: grid;
  min-height: calc(100svh - 92px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.project-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 6vw, 6rem);
}

.project-detail-copy h1 {
  font-size: clamp(4rem, 6.5vw, 7.6rem);
}

.project-detail-copy > p:last-of-type {
  max-width: 620px;
  margin-bottom: 2rem;
  color: #4d4a43;
  font-size: 1.15rem;
}

.project-detail-media {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.project-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-stockfallet .project-detail-media img {
  object-position: 50% 56%;
}

.image-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  background: rgb(0 0 0 / 74%);
  color: var(--white);
  font-size: 0.75rem;
}

.fact-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-facts {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.project-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.project-area-list li {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
}

.fact-list div {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  margin-bottom: 0.35rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-details {
  display: grid;
  gap: 2rem;
}

.contact-details h2 {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-details p,
.contact-details address {
  margin: 0;
  color: #444139;
  font-size: 1.15rem;
  font-style: normal;
}

.contact-email {
  font-size: clamp(1.45rem, 3.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-team-grid {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-team-grid article {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-team-grid article > p {
  margin-bottom: auto;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-team-grid h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
  line-height: 1;
}

.contact-team-grid a {
  border-bottom: 1px solid transparent;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-team-grid a:hover {
  border-bottom-color: currentcolor;
}

.evaluation-note {
  padding: 1.2rem clamp(1.5rem, 8vw, 9rem);
  background: #e8e4da;
  color: #5e5a51;
  font-size: 0.82rem;
  text-align: center;
}

.work-tracks {
  display: grid;
  background: var(--paper-light);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-track {
  min-height: 610px;
  padding: clamp(3.5rem, 7vw, 7.5rem) clamp(1.5rem, 6vw, 6.5rem);
  border-right: 1px solid var(--line);
}

.work-track-primary {
  background: var(--ink);
  color: var(--white);
}

.work-track-primary .eyebrow {
  color: var(--gold);
}

.work-track > p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.work-track-primary > p:not(.eyebrow) {
  color: #d7d5cf;
}

.work-index {
  display: block;
  margin-bottom: clamp(3rem, 8vw, 8rem);
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.work-track-primary .work-index {
  color: var(--gold);
}

.partner-details {
  background: var(--paper);
}

.partner-detail-intro {
  display: grid;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.partner-detail-intro > p {
  color: var(--muted);
  font-size: 1.12rem;
}

.partner-checklist {
  display: grid;
  margin: clamp(3rem, 6vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-checklist li {
  min-height: 310px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-checklist span {
  display: block;
  margin-bottom: 4.2rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.partner-checklist strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.partner-checklist p {
  color: var(--muted);
  font-size: 0.95rem;
}

.expectation-section {
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 8vw, 9rem);
  background: var(--gold);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.expectation-section .eyebrow {
  color: var(--ink);
}

.expectation-list {
  align-self: end;
}

.expectation-list p {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid rgb(27 32 33 / 45%);
  font-size: 1.08rem;
  font-weight: 600;
}

/* Knowledge and deeper editorial content */
.knowledge-preview {
  max-width: none;
  background: #e7e3d9;
}

.knowledge-preview > * {
  width: min(calc(var(--max) - 11rem), calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.knowledge-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-grid-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper-light);
}

.knowledge-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #cbc8c0;
}

.knowledge-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.knowledge-card-image:hover img {
  transform: scale(1.025);
}

.knowledge-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
}

.knowledge-card-copy > p:first-child {
  margin-bottom: 1.1rem;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.knowledge-card-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.25vw, 2.35rem);
  line-height: 1.06;
}

.knowledge-card-copy h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.knowledge-card-copy > p:not(:first-child) {
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.knowledge-card-copy .text-link {
  margin-top: auto;
}

.knowledge-article-hero {
  display: grid;
  min-height: calc(100svh - 92px);
  background: var(--paper-light);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.knowledge-article-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 6vw, 6rem);
}

.knowledge-article-copy h1 {
  margin-bottom: 1.7rem;
  font-size: clamp(3.4rem, 4.9vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.knowledge-article-copy > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: #4d4a43;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.knowledge-article-media {
  min-height: 650px;
  overflow: hidden;
}

.knowledge-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  display: grid;
  gap: clamp(3rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
}

.article-section {
  display: grid;
  gap: 2rem;
  padding: 0 0 clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 50px minmax(0, 1fr);
}

.article-section + .article-section {
  padding-top: clamp(3rem, 5vw, 5rem);
}

.article-section > span {
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-section h2,
.article-checklist h2,
.service-input-layout h2,
.history-section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 4vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.article-section p {
  color: #45423b;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-checklist {
  position: sticky;
  top: 2rem;
  min-width: 0;
  align-self: start;
  padding: clamp(1.7rem, 2.5vw, 2.5rem);
  background: var(--ink);
  color: var(--white);
}

.article-checklist .eyebrow {
  color: var(--gold);
}

.article-checklist h2 {
  font-size: clamp(1.9rem, 2.25vw, 2.6rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.article-checklist ol {
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: article-check;
  list-style: none;
}

.article-checklist li {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0;
  border-top: 1px solid #3d3d38;
  color: #dedbd4;
  counter-increment: article-check;
  grid-template-columns: 2rem minmax(0, 1fr);
}

.article-checklist li::before {
  color: var(--gold);
  content: counter(article-check, decimal-leading-zero);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Service depth */
.service-role-section {
  background: var(--paper-light);
}

.service-considerations {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-considerations article {
  min-height: 270px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.service-considerations span {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-considerations h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.service-considerations p {
  margin: 0;
  color: var(--muted);
}

.service-input-section,
.service-knowledge-cta {
  background: var(--gold);
}

.service-input-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.service-input-layout .eyebrow {
  color: var(--ink);
}

.service-input-layout > div > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 1.08rem;
}

.service-input-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-input-list li {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgb(11 11 11 / 45%);
  grid-template-columns: 42px minmax(0, 1fr);
}

.service-input-list span {
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.service-input-list strong {
  font-size: 1.08rem;
}

.related-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-project-grid .project-image {
  height: clamp(290px, 28vw, 430px);
}

/* Company history, project narrative and quality */
.history-grid,
.quality-topics-grid {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-grid article,
.quality-topics-grid article {
  min-height: 300px;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-grid span {
  display: block;
  margin-bottom: 4rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.history-grid h3,
.quality-topics-grid h3 {
  margin-bottom: 0.8rem;
  font-size: 1.45rem;
}

.history-grid p,
.quality-topics-grid p {
  margin: 0;
  color: var(--muted);
}

.merit-section {
  background: var(--paper-light);
}

.merit-section h2 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 5.8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.merit-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.merit-grid {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merit-card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.merit-logo {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #171715;
}

.merit-logo img {
  width: auto;
  max-width: min(100%, 210px);
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.merit-copy {
  padding: 1.4rem 1.5rem 1.6rem;
}

.merit-copy > span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merit-copy h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.05;
}

.merit-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-story-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-method-section .principles-grid {
  margin-top: 0;
}

.quality-process {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quality-process li {
  display: grid;
  min-height: 220px;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 42px minmax(0, 1fr);
}

.quality-process span {
  color: var(--gold-dark);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.quality-process h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.quality-process p {
  margin: 0;
  color: var(--muted);
}

.quality-topics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .site-header {
    min-height: 80px;
    padding: 0 1.5rem;
  }

  .site-nav {
    gap: 1.35rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: calc(100svh - 80px);
  }

  .hero-copy {
    padding: 4rem 2.3rem 2rem;
  }

  .knowledge-article-hero,
  .project-detail-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .knowledge-article-media,
  .project-detail-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-body {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .article-checklist {
    position: static;
  }

  .service-ticker {
    gap: 0.6rem 1.65rem;
  }

  .service-ticker li:not(:last-child)::after {
    right: -1rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-home > * {
    width: calc(100% - 3rem);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-grid-preview,
  .related-project-grid,
  .quality-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 210px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0;
  }

  .menu-lines {
    display: grid;
    width: 23px;
    gap: 6px;
  }

  .menu-lines i {
    display: block;
    height: 2px;
    background: currentcolor;
    transition: transform 180ms ease;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.8rem;
    border-top: 1px solid #333;
    background: var(--ink);
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid #2d2d2d;
    font-size: 1.05rem;
  }

  .site-nav a::after {
    bottom: 0;
    width: 45px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: calc(100svh - 72px);
    padding: 4.5rem 1.5rem 2rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 16vw, 6.2rem);
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .split-intro,
  .statement,
  .partner-section,
  .quality-preview,
  .contact-panel,
  .contact-layout,
  .about-story,
  .quality-feature,
  .project-detail-hero,
  .partner-detail-intro,
  .expectation-section,
  .knowledge-article-hero,
  .service-input-layout,
  .project-story-layout {
    grid-template-columns: 1fr;
  }

  .article-body {
    grid-template-columns: 1fr;
  }

  .article-checklist {
    position: static;
  }

  .work-tracks {
    grid-template-columns: 1fr;
  }

  .work-track {
    min-height: 0;
  }

  .partner-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statement {
    gap: 2rem;
  }

  .quality-copy,
  .contact-panel-copy {
    padding-top: 0;
  }

  .project-detail-hero {
    min-height: auto;
  }

  .project-detail-media {
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
  }

  .project-detail-media img {
    display: block;
    height: auto;
    object-fit: contain;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .service-considerations,
  .history-grid,
  .knowledge-grid-preview {
    grid-template-columns: 1fr;
  }

  .merit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .brand img {
    width: min(190px, 57vw);
  }

  .hero-copy {
    min-height: auto;
    padding: 3.5rem 1.25rem 1.8rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11.2vw, 4.1rem);
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 9.7vw, 3.35rem);
  }

  .form-page .page-hero h1 {
    font-size: clamp(2rem, 9.2vw, 3.15rem);
  }

  .project-detail-copy h1,
  .knowledge-article-copy h1 {
    font-size: clamp(2.1rem, 9.5vw, 3.25rem);
    line-height: 0.98;
  }

  main h1,
  main h2,
  main h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .service-ticker {
    display: grid;
    gap: 0.55rem 1.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-ticker li::after {
    display: none !important;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-project {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
  }

  .section,
  .content-section {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .project-grid,
  .project-index-grid,
  .knowledge-grid,
  .service-grid,
  .fact-list,
  .service-focus-grid,
  .partner-checklist,
  .leadership-grid,
  .contact-team-grid {
    grid-template-columns: 1fr;
  }

  .merit-grid {
    grid-template-columns: 1fr;
  }

  .merit-logo {
    min-height: 190px;
  }

  .knowledge-preview > * {
    width: calc(100% - 2.5rem);
  }

  .knowledge-article-copy {
    padding: 3.5rem 1.25rem;
  }

  .section-intro h2,
  .statement h2,
  .quality-preview h2,
  .contact-panel h2,
  .content-block h2,
  .partner-copy h2,
  .work-track h2,
  .partner-detail-intro h2,
  .expectation-section h2 {
    font-size: clamp(2.25rem, 9.5vw, 3.2rem);
  }

  .article-section h2,
  .article-checklist h2,
  .service-input-layout h2,
  .history-section h2 {
    font-size: clamp(1.95rem, 8.1vw, 2.7rem);
  }

  .knowledge-article-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .article-body {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .article-section {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .quality-process,
  .quality-topics-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-submit-row .button {
    width: 100%;
  }

  .service-hero-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .quality-feature-media {
    aspect-ratio: 4 / 3;
  }

  .leadership-card {
    min-height: 440px;
  }

  .project-image {
    height: 74vw;
    min-height: 300px;
  }

  .project-card:first-child .project-image img {
    object-position: 50% 57%;
  }

  .section-action {
    text-align: left;
  }

  .services-home > * {
    width: calc(100% - 2.5rem);
  }

  .split-intro {
    gap: 1.5rem;
  }

  .service-card {
    min-height: 280px;
  }

  .statement,
  .partner-section,
  .contact-panel {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .page-hero {
    padding: 4rem 1.25rem;
  }

  .service-row {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .project-detail-copy {
    padding: 4rem 1.25rem;
  }

  .project-detail-media {
    min-height: 0;
    aspect-ratio: auto;
  }

  .fact-list div {
    border-right: 0;
  }

  .site-footer {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .footer-brand img {
    width: min(240px, 72vw);
  }

  .footer-main {
    gap: 2.5rem;
    margin-bottom: 3rem;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sm-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-alert { margin: 0 0 2rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: var(--paper-light); font-weight: 700; }
.form-alert-error { border-color: #a11b1b; color: #761313; }
.contact-form .button[disabled] { opacity: .6; cursor: wait; }
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }
.wp-block-image img { height: auto; }
.project-card[hidden] { display: none; }
.filter-empty { grid-column: 1 / -1; padding: 2rem 0; color: var(--muted); }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
