/*
  Doppietta Digital - clean one-page presentation website.
  Static HTML/CSS with minimal JavaScript for mobile navigation only.
*/

:root {
  --bg: #edf3f8;
  --bg-soft: #f6f9fc;
  --surface: #ffffff;
  --surface-blue: #e7eef5;
  --text: #071a36;
  --text-strong: #081f40;
  --text-muted: #53677c;
  --blue: #0a72ff;
  --blue-deep: #0751d8;
  --cyan: #10c5e9;
  --border: #d5e0ea;
  --border-strong: #b9c8d6;
  --shadow: 0 14px 34px rgba(7, 26, 54, 0.07);

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.45rem, 4.6vw, 3.5rem);
  --h2: clamp(1.85rem, 3vw, 2.5rem);
  --h3: clamp(1.3rem, 1.8vw, 1.625rem);
  --body: clamp(1rem, 1.3vw, 1.075rem);
  --small: 0.92rem;

  --site-width: 75rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3.75rem, 7vw, 5.75rem);
  --radius: 8px;
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--blue-deep);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.site-shell {
  width: min(100% - (2 * var(--gutter)), var(--site-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.12;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: var(--h1);
  font-weight: 800;
}

h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--h2);
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: var(--h3);
  font-weight: 800;
}

section {
  scroll-margin-top: 6rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.8rem);
}

.section-heading--centred {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:last-child {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.button,
.header-cta {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--small);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.button--primary,
.header-cta {
  background: var(--blue-deep);
  color: #ffffff;
}

.button--primary:hover,
.header-cta:hover {
  background: var(--text);
}

.button--secondary {
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--text);
}

.button--secondary:hover {
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

/* NAVIGATION */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(213, 224, 234, 0.85);
  background: rgba(237, 243, 248, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 4.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  min-width: max-content;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.site-brand__icon {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
}

.site-brand__wordmark {
  position: relative;
  display: block;
  width: 6.8rem;
  height: 1.08rem;
  overflow: hidden;
}

.site-brand__wordmark img {
  position: absolute;
  top: -5.72rem;
  left: -1.22rem;
  width: 9.12rem;
  max-width: none;
  height: auto;
}

.primary-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--text);
  font-size: var(--small);
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.menu-toggle span:first-child {
  transform: translateY(-0.24rem);
}

.menu-toggle span:last-child {
  transform: translateY(0.24rem);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* HERO */
.hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
}

.hero__lead {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.7;
}

.hero__lead--support {
  margin-top: 0.75rem;
  font-size: var(--body);
}

.hero__actions {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero__panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-visual {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.product-visual__frame {
  fill: var(--bg-soft);
  stroke: var(--border);
  stroke-width: 1.5;
}

.product-visual__grid {
  fill: none;
  stroke: rgba(7, 26, 54, 0.08);
  stroke-width: 1;
}

.product-visual__browser,
.product-visual__mobile {
  fill: #ffffff;
  stroke: var(--text);
  stroke-opacity: 0.16;
  stroke-width: 1.5;
}

.product-visual__dot {
  fill: var(--cyan);
}

.product-visual__dot--blue,
.product-visual__panel--blue,
.product-visual__node {
  fill: var(--blue-deep);
}

.product-visual__bar,
.product-visual__panel,
.product-visual__mobile-screen {
  fill: var(--bg);
}

.product-visual__panel--light {
  fill: #ffffff;
  stroke: var(--border);
  stroke-width: 1;
}

.product-visual__mobile-dot {
  fill: var(--cyan);
}

.product-visual__connect {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-visual__node--cyan {
  fill: var(--cyan);
}

.brand-diagram {
  display: grid;
  min-height: 15rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 26, 54, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 26, 54, 0.06) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 32px 32px;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-diagram span {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.brand-diagram span:nth-child(1) {
  background: var(--blue-deep);
}

.brand-diagram span:nth-child(2) {
  border-color: var(--cyan);
}

.brand-diagram span:nth-child(3) {
  grid-column: span 2;
}

.hero__facts {
  display: grid;
  margin: 1rem 0 0;
  gap: 0.65rem;
}

.hero__facts div {
  display: flex;
  padding-top: 0.65rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.hero__facts dt,
.project-card__type {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__facts dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

/* SERVICES OVERVIEW */
.services-overview,
.capabilities,
.selected-work {
  padding-block: var(--section-space);
  background: var(--surface);
}

.service-cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.capability-group,
.project-card,
.tech-groups article,
.why-list article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card {
  display: flex;
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.55rem);
  flex-direction: column;
  gap: 1rem;
}

.service-card p,
.capability-group li,
.project-card p,
.project-card li,
.tech-groups p,
.why-list p {
  color: var(--text-muted);
}

.service-card p {
  margin: 0;
}

.service-card ul,
.capability-group ul,
.project-card ul {
  display: grid;
  margin: auto 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  gap: 0.55rem;
  list-style: none;
}

.service-card li,
.capability-group li,
.project-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
}

.service-card li::before,
.capability-group li::before,
.project-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

/* ABOUT */
.about,
.technologies {
  padding-block: var(--section-space);
  background: var(--bg);
}

.about__grid,
.technologies__grid,
.why-doppietta__grid,
.contact__grid {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
}

.about__copy {
  max-width: 45rem;
}

.about-visual {
  display: block;
  width: min(100%, 35rem);
  height: auto;
  margin-bottom: 1.2rem;
}

.about-visual path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
}

.about-visual circle {
  fill: var(--blue-deep);
}

.about-visual rect {
  fill: rgba(255, 255, 255, 0.72);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.about-visual rect + path {
  stroke: var(--blue-deep);
  stroke-width: 2;
}

.about__copy p {
  margin: 0;
  color: var(--text-muted);
}

.about__copy p + p {
  margin-top: 1rem;
}

.about__statement {
  color: var(--text) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.22;
}

/* CAPABILITIES */
.capability-groups {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-group {
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.capability-group ul {
  margin-top: 1.1rem;
}

/* PROCESS */
.process,
.why-doppietta {
  padding-block: var(--section-space);
  background: var(--surface-blue);
}

.process__steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.process__steps li {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.process__steps span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.process__steps p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* TECHNOLOGIES */
.technologies__grid > div:first-child p:last-child {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.tech-groups {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-groups article {
  padding: 1rem;
}

.tech-groups h3 {
  font-size: 1rem;
}

.tech-groups p {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.tech-groups article:last-child {
  grid-column: 1 / -1;
}

/* SELECTED WORK */
.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
}

.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition);
}

a.project-card__media:hover img {
  transform: scale(1.015);
}

div.project-card__media {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(10, 114, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 114, 255, 0.08) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 28px 28px;
}

div.project-card__media::after {
  width: min(72%, 20rem);
  height: min(58%, 9rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  content: "";
}

.project-card__body {
  padding: clamp(1.2rem, 3vw, 1.75rem);
}

.project-card__type {
  margin: 0 0 0.6rem;
}

.project-card p:not(.project-card__type) {
  margin: 0.8rem 0 0;
}

/* WHY */
.why-list {
  display: grid;
  gap: 0.8rem;
}

.why-list article {
  padding: 1.05rem 1.2rem;
}

.why-list h3 {
  font-size: 1.05rem;
}

.why-list p {
  margin: 0.45rem 0 0;
}

/* CONTACT */
.contact {
  padding: var(--section-space) 0 1.5rem;
  background: var(--text);
  color: #ffffff;
}

.contact h2,
.contact .eyebrow {
  color: #ffffff;
}

.contact__intro > p:not(.eyebrow) {
  max-width: 38rem;
  color: #cfdae5;
}

.contact-details {
  display: grid;
  margin-top: 2rem;
  gap: 0.55rem;
  color: #ffffff;
  font-style: normal;
  font-weight: 700;
}

.contact-details a {
  color: #ffffff;
}

.contact-form {
  display: grid;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  min-height: 3.25rem;
  cursor: pointer;
}

.form-privacy-note {
  margin: -0.25rem 0 0;
  color: #cfdae5;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-privacy-note a {
  color: #ffffff;
  font-weight: 800;
  text-underline-offset: 0.16em;
}

.contact__content {
  display: flex;
  align-self: stretch;
  min-height: 100%;
  flex-direction: column;
}

.contact__company-details {
  margin-top: auto;
  padding-top: 2.25rem;
  color: #cfdae5;
  font-size: 0.78rem;
  line-height: 1.45;
}

.contact__company-logo {
  display: inline-block;
  margin-bottom: 0.45rem;
  text-decoration: none;
}

.contact__company-logo span {
  display: inline-block;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  background: #edf3f8;
}

.contact__company-logo img {
  display: block;
  width: clamp(6.25rem, 8vw, 7.5rem);
  height: auto;
}

.contact__company-details p {
  margin: 0;
}

.contact__company-details p + p {
  margin-top: 0.2rem;
}

.contact__company-details p:first-of-type {
  color: #ffffff;
  font-weight: 800;
}

.contact__legal-bar {
  display: grid;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-block: 0.8rem;
  align-items: center;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfdae5;
  font-size: 0.74rem;
  line-height: 1.4;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.contact__legal-bar p {
  margin: 0;
}

.contact__legal-bar nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem 0.8rem;
  flex-wrap: wrap;
}

.contact__legal-bar a {
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

/* SHARED LEGAL-PAGE FOOTER UTILITIES */
.site-footer__inner {
  display: grid;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
}

.site-footer__brand-block p,
.site-footer__bottom p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer__brand-block p:first-of-type {
  margin-top: 0.35rem;
  color: #ffffff;
  font-weight: 800;
}

.site-footer__brand-block p + p {
  margin-top: 0.22rem;
}

.site-footer__links {
  display: grid;
  justify-items: end;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer__links a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 0.18em;
}

.site-footer__links nav {
  display: flex;
  gap: 0.25rem 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__bottom {
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* LEGAL AND SUPPORT PAGES */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
}

.legal-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header__brand {
  display: inline-block;
  width: 10rem;
}

.legal-header__back {
  font-weight: 800;
  text-underline-offset: 0.18em;
}

.legal-content {
  width: min(100% - (2 * var(--gutter)), 52rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.legal-content h1 {
  max-width: none;
}

.legal-content h2 {
  max-width: none;
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content ul {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--blue-deep);
  font-weight: 700;
}

.legal-meta {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--text);
  color: #cfdae5;
}

.legal-footer .site-footer__inner {
  padding-block: 1.5rem;
}

.legal-footer .site-footer__bottom {
  padding-bottom: 1rem;
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.success-message {
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.success-message img {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
}

.success-message h1 {
  max-width: 14ch;
}

.success-message p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1rem 0 1.5rem;
  color: var(--text-muted);
}

/* TABLET */
@media (max-width: 64rem) {
  .site-header__inner {
    gap: 0.85rem;
  }

  .header-cta {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .technologies__grid,
  .why-doppietta__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__panel {
    max-width: 42rem;
  }

  .service-cards,
  .capability-groups {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* MOBILE NAVIGATION AND LAYOUT */
@media (max-width: 48rem) {
  :root {
    --gutter: clamp(1rem, 5vw, 1.4rem);
  }

  .site-header__inner {
    min-height: 4.5rem;
    flex-wrap: wrap;
  }

  .site-brand__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .site-brand__wordmark {
    width: 6rem;
    height: 0.95rem;
  }

  .site-brand__wordmark img {
    top: -5.04rem;
    left: -1.07rem;
    width: 8rem;
  }

  .site-header.has-menu-toggle .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-header.has-menu-toggle .primary-nav {
    display: none;
    width: 100%;
  }

  .site-header.has-menu-toggle.is-menu-open .primary-nav {
    display: block;
  }

  .primary-nav__list {
    display: grid;
    padding: 0.45rem 0 0.9rem;
    border-top: 1px solid var(--border);
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav a {
    min-height: 2.9rem;
  }

  .hero {
    padding-block: 3.5rem 4.75rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts div {
    display: grid;
  }

  .hero__facts dd {
    text-align: left;
  }

  .brand-diagram {
    min-height: 12rem;
  }

  .process__steps,
  .tech-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .tech-groups article:last-child {
    grid-column: auto;
  }

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

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

  .site-footer__inner {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__links {
    justify-items: start;
  }

  .site-footer__links nav {
    justify-content: flex-start;
  }

  .contact__content {
    display: contents;
  }

  .contact__intro {
    order: 1;
  }

  .contact__form-wrap {
    order: 2;
  }

  .contact__company-details {
    order: 3;
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .contact__legal-bar {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__legal-bar nav {
    justify-content: flex-start;
  }
}

/* NARROW MOBILE */
@media (max-width: 23rem) {
  .site-brand__wordmark {
    display: none;
  }

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

  .hero__panel {
    padding: 1rem;
  }
}

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

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