:root {
  --ink: #151515;
  --ink-soft: #292929;
  --paper: #ffffff;
  --paper-soft: #f5f5f3;
  --line: #d9d9d5;
  --muted: #5d5d5a;
  --accent: #a9afb4;
  --accent-strong: #7f878d;
  --header-height: 78px;
  --container: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
  background: rgba(17, 17, 17, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.site-header.is-scrolled {
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
}

.brand-dot,
.brand strong {
  color: var(--accent);
}

.brand strong {
  font-weight: 900;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.main-navigation > a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-navigation > a:not(.nav-phone)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-navigation > a:hover::after,
.main-navigation > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-phone {
  padding: 10px 15px;
  color: var(--ink) !important;
  background: var(--accent);
}

.nav-phone:hover {
  background: #c9cdd0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px 9px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: #111;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.56) 48%, rgba(8, 8, 8, 0.36) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.35), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-height) + 70px) 110px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #666d72;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section .eyebrow::after {
  content: "";
  width: min(900px, 100%);
  height: 1px;
  flex: 1;
  background: #aaaaaa;
}

.hero-eyebrow {
  color: var(--accent);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 6.3vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-proof {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-proof strong {
  color: var(--accent);
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.button-primary:hover {
  background: #c9cdd0;
  border-color: #c9cdd0;
}

.button-secondary {
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.scroll-link {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-link span {
  color: var(--accent);
  font-size: 1.35rem;
}

.trust-strip {
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: #5f666b;
  font-size: 0.96rem;
}

.trust-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.81rem;
}

.section {
  padding-block: clamp(76px, 9vw, 126px);
}

.section-heading {
  display: grid;
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.feature-copy h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 28px 24px 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: #949ba0;
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.1);
  transform: translateY(-6px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scaleX(1);
}

.service-card > img {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
}

.service-card p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-card > span {
  margin-top: auto;
  color: #555c61;
  font-size: 0.83rem;
  font-weight: 850;
}

.feature-dark {
  color: var(--ink);
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.feature-grid-reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
}

.feature-media::before {
  display: none;
}

.feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  box-shadow: none;
}

.image-label {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: -18px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-copy h2 {
  margin-bottom: 25px;
}

.feature-copy > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--muted);
}

.feature-dark .feature-copy h2 {
  color: var(--ink);
}

.feature-dark .feature-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.feature-dark .eyebrow {
  color: #666d72;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.91rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #50565a;
  font-weight: 850;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link span {
  transition: transform 0.2s ease;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.detail-list article {
  scroll-margin-top: calc(var(--header-height) + 30px);
  padding: 16px 18px;
  background: var(--paper-soft);
  border-left: 4px solid var(--accent);
}

.detail-list h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-banner .about-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% top;
  z-index: -2;
}

.about-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.90), rgba(0,0,0,.75) 35%, transparent 65%);
  z-index: -1;
}

.about-banner .about-copy { max-width: 43%; }
.about-banner .about-copy h2,
.about-banner .about-copy > p,
.about-banner .about-signature { color: #fff; }
.about-banner .about-signature small { color: #ddd; }

@media (min-width: 981px) {
  .about-banner { min-height: 37.5vw; }
}

@media (max-width: 980px) {
  .about-banner { padding-top: 0; }
  .about-banner .about-backdrop {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: right center;
    z-index: auto;
    margin-bottom: 32px;
  }
  .about-banner::after { display: none; }
  .about-banner .about-copy { max-width: none; }
  .about-banner .about-copy h2,
  .about-banner .about-copy .about-lead,
  .about-banner .about-signature { color: var(--ink); }
  .about-banner .about-copy > p,
  .about-banner .about-signature small { color: var(--muted); }
}

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.about-copy h2 {
  margin-bottom: 26px;
}

.about-copy > p {
  color: var(--muted);
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.about-signature img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
}

.about-signature strong,
.about-signature small {
  display: block;
}

.about-signature small {
  color: var(--muted);
}

.about-media {
  position: relative;
  padding: 0;
}

.about-media::before {
  display: none;
}

.about-media > img {
  position: relative;
  width: 100%;
  min-height: 450px;
  object-fit: cover;
  box-shadow: none;
}

.experience-card {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.experience-card strong {
  font-size: 2.25rem;
  line-height: 1;
}

.experience-card span {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.projects {
  color: var(--ink);
  background: #fff;
}

.projects .eyebrow {
  color: #666d72;
}

.projects-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.projects-heading h2 {
  color: var(--ink);
}

.projects-heading > p {
  max-width: 330px !important;
  color: var(--muted) !important;
  font-size: 0.93rem !important;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  background: #222;
  border: 0;
  cursor: zoom-in;
}

.project-card-tall {
  aspect-ratio: 3 / 4;
}

.project-card::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  place-items: center;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card > span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 52px 20px 18px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.project-card strong,
.project-card small {
  display: block;
}

.project-card strong {
  font-size: 1rem;
}

.project-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.045);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(45px, 8vw, 105px);
}

.contact .eyebrow {
  color: #666d72;
}

.contact-copy h2 {
  color: var(--ink);
}

.contact-copy > p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-links img {
  width: 30px;
  height: 30px;
}

.contact-links small,
.contact-links strong {
  display: block;
}

.contact-links small {
  color: var(--muted);
}

.contact-links strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.service-area {
  font-size: 0.92rem;
}

.service-area strong {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

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

.contact-form-row > label,
.contact-form-row input,
.contact-form-row select { min-width: 0; }

@media (max-width: 700px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form label small {
  color: var(--muted);
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid #c9c9c5;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(127, 135, 141, 0.22);
}

.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.privacy-note a {
  color: #50565a;
  font-weight: 800;
  text-decoration: underline;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-status.is-success {
  color: #0f6b38;
}

.form-status.is-error {
  color: #a02626;
}

.site-footer {
  padding: 70px 0 20px;
  color: #fff;
  background: #090909;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid > div > a:not(.brand) {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid > div > a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

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

.mobile-actions {
  display: none;
}

.lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #111;
  border: 0;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-image-wrap {
  display: grid;
  min-height: 300px;
  max-height: 72vh;
  place-items: center;
  background: #080808;
}

.lightbox-image-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 20px 24px;
}

.lightbox-caption h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lightbox-caption p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

/* Legal and utility pages */
.legal-main {
  min-height: 72vh;
  padding: calc(var(--header-height) + 70px) 0 100px;
  background: #fff;
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  align-items: start;
  gap: 60px;
}

.legal-content {
  padding: clamp(25px, 5vw, 58px);
  background: #fff;
  border-top: 5px solid var(--accent);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
  margin: 0 0 35px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.legal-content h2 {
  margin: 40px 0 10px;
  font-size: 1.35rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #4e4e4b;
}

.legal-content a {
  color: #50565a;
  font-weight: 700;
  text-decoration: underline;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  padding: 28px;
  color: #fff;
  background: var(--ink);
}

.legal-aside h2 {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 1.1rem;
}

.legal-aside p {
  color: rgba(255, 255, 255, 0.68);
}

.legal-aside a {
  display: block;
  margin-top: 8px;
}

.back-home {
  display: inline-flex !important;
  margin-top: 20px !important;
  color: var(--ink) !important;
}

.not-found {
  display: grid;
  min-height: 80vh;
  padding: calc(var(--header-height) + 60px) 0 80px;
  color: #fff;
  background: var(--ink);
  place-items: center;
  text-align: center;
}

.not-found strong {
  display: block;
  color: var(--accent);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.85;
}

.not-found h1 {
  margin: 26px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.not-found p {
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .feature-grid,
  .about-grid,
  .contact-grid {
    gap: 50px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    z-index: 99;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 16px 20px 24px;
    color: #fff;
    background: rgba(17, 17, 17, 0.99);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-navigation > a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation > a::after {
    display: none;
  }

  .main-navigation .nav-phone {
    margin-top: 14px;
    padding: 14px;
    text-align: center;
  }

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

  .trust-item:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .feature-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-reverse .feature-media {
    order: 0;
  }

  .feature-media img,
  .about-media > img {
    min-height: 380px;
  }

  .about-copy {
    order: 2;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 54% top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 8, 8, 0.84), rgba(8, 8, 8, 0.5)),
      linear-gradient(0deg, rgba(8, 8, 8, 0.55), transparent 60%);
  }

  .hero-content {
    padding-block: calc(var(--header-height) + 45px) 90px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

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

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

  .scroll-link {
    display: none;
  }

  .trust-grid {
    width: 100%;
  }

  .trust-item {
    min-height: 98px;
    padding: 18px 15px;
  }

  .section {
    padding-block: 74px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

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

  .service-card {
    min-height: 0;
  }

  .feature-grid {
    gap: 50px;
  }

  .feature-media::before {
    top: -10px;
    left: -10px;
  }

  .feature-media img,
  .about-media > img {
    min-height: 280px;
  }

  .image-label {
    right: 0;
    bottom: -15px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .about-media {
    padding: 0;
  }

  .about-media::before {
    display: none;
  }

  .experience-card {
    right: 0;
  }

  .projects-heading {
    display: grid;
    gap: 0;
  }

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

  .project-card {
    aspect-ratio: 4 / 3;
  }

  .project-card-tall {
    aspect-ratio: 3 / 4;
  }

  .project-card::after {
    opacity: 1;
    transform: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }

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

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

  .footer-bottom {
    display: grid;
    gap: 8px;
    padding-bottom: 72px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 90;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 64px;
    color: #fff;
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.2);
  }

  .mobile-actions a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 750;
  }

  .mobile-actions a:last-child {
    color: var(--ink);
    background: var(--accent);
  }

  .mobile-actions img {
    width: 21px;
    height: 21px;
  }

  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 430px) {
  .trust-item strong {
    font-size: 0.84rem;
  }

  .trust-item span {
    font-size: 0.72rem;
  }

  .contact-form {
    padding: 23px 18px;
  }

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

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

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

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

/* Mobile: regular tiles 4:3, portrait tiles retain their image proportions. */
@media (max-width: 980px) {
  .project-grid { align-items: start; }
  .project-grid .project-card {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    align-self: start;
  }
  .project-grid .project-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform: none;
  }
  .project-grid .project-card-tall {
    aspect-ratio: auto;
  }
  .project-grid .project-card-tall img {
    position: static;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
