/*
 * Michele Orefice — Brand System
 * ------------------------------------------------------------
 * Global visual tokens and visual foundations.
 * Loaded after base.css, which now provides only the small structural
 * reset and primitives shared by the portfolio and editorial pages.
 */

:root {
  /* Brand palette */
  --brand-ink: #10354d;
  --brand-navy: #124a61;
  --brand-blue: #0b6b88;
  --brand-cyan: #44b9d1;
  --brand-cyan-soft: #aee4ee;
  --brand-coral: #f1785b;
  --brand-paper: #f5f4ef;
  --brand-surface: #ffffff;
  --brand-surface-soft: #edf2f3;
  --brand-text: #20313d;
  --brand-muted: #697782;
  --brand-line: #d9e1e4;

  /* Semantic aliases */
  --brand-accent: var(--brand-cyan);
  --brand-highlight: var(--brand-coral);
  --brand-dark: var(--brand-ink);
  --brand-bg: var(--brand-paper);

  /* Typography */
  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2.15rem, 4vw, 3.6rem);
  --text-display: clamp(3.35rem, 8vw, 7.25rem);

  /* Layout */
  --container-wide: 78rem;
  --container-reading: 60rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);

  /* Shape */
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.2rem;
  --radius-pill: 999px;

  /* Depth */
  --shadow-sm: 0 0.6rem 1.8rem rgba(16, 53, 77, 0.07);
  --shadow-md: 0 1.3rem 3.4rem rgba(16, 53, 77, 0.11);

  /* Motion */
  --ease-brand: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition-fast: 180ms var(--ease-brand);
  --transition-base: 280ms var(--ease-brand);
}

/* ------------------------------------------------------------
   Global typography
   ------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-sans);
}

body {
  color: var(--brand-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
}

p,
li {
  color: var(--brand-text);
}

strong,
b {
  color: inherit;
  font-weight: 700;
}

::selection {
  background: rgba(68, 185, 209, 0.24);
  color: var(--brand-ink);
}

/* ------------------------------------------------------------
   Reusable brand primitives
   These classes will be used as each section is rebuilt.
   ------------------------------------------------------------ */
.brand-container {
  width: min(var(--container-wide), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.brand-reading {
  width: min(var(--container-reading), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.brand-section {
  padding-block: var(--section-space);
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--brand-blue);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--brand-coral);
}

.brand-display {
  margin: 0;
  color: var(--brand-ink);
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-transform: none;
}

.brand-lead {
  max-width: 44rem;
  color: var(--brand-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.brand-card {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.brand-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(11, 107, 136, 0.34);
  box-shadow: var(--shadow-md);
}

.brand-metric {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand-label {
  color: var(--brand-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Button foundation
   Keeps legacy .button markup working while establishing the
   new shape and interaction language.
   ------------------------------------------------------------ */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.045em;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  transform: translateY(-2px);
}

.button.brand-primary {
  border-color: var(--brand-cyan) !important;
  background: var(--brand-cyan);
  color: var(--brand-ink) !important;
  box-shadow: none;
}

.button.brand-primary:hover {
  border-color: #65c4d8 !important;
  background: #65c4d8;
}

.button.brand-secondary {
  border-color: rgba(16, 53, 77, 0.25) !important;
  background: transparent;
  color: var(--brand-ink) !important;
}

.button.brand-secondary:hover {
  border-color: var(--brand-ink) !important;
}

/* ------------------------------------------------------------
   Accessibility / focus
   ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(68, 185, 209, 0.55);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Responsive foundations
   ------------------------------------------------------------ */
@media screen and (max-width: 736px) {
  :root {
    --gutter: 1.15rem;
    --section-space: 4rem;
  }

  .brand-display {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}

@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;
  }
}

/* ============================================================
   STEP 02 — Site header & primary navigation
   Fixed editorial navigation for the Michele Orefice visual system.
   ============================================================ */

:root {
  --site-header-height: 4.75rem;
  --site-header-bg: rgba(9, 31, 45, 0.9);
  --site-header-line: rgba(174, 228, 238, 0.16);
}

/* Persistent personal-brand rail. */
#header.brand-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  height: var(--site-header-height);
  margin: 0;
  padding: 0 max(1.4rem, calc((100vw - var(--container-wide)) / 2));
  background: var(--site-header-bg);
  color: #fff;
  border-bottom: 1px solid var(--site-header-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 0.8rem 2.5rem rgba(4, 20, 31, 0.08);
  pointer-events: none;
  text-align: left;
}

#header.brand-site-header .brand-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: auto;
  min-width: 9.75rem;
  margin: 0;
  padding: 0;
  border: 0 !important;
  color: #fff !important;
  font-family: var(--font-sans);
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  pointer-events: auto;
}

#header.brand-site-header .brand-signature:hover {
  border: 0 !important;
  color: #fff !important;
}

.brand-signature__monogram {
  display: inline-block;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.brand-signature__dot {
  color: var(--brand-coral);
}

.brand-signature__name {
  position: relative;
  top: 0.02rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Primary navigation sits over the brand rail; only its controls
   accept pointer events, so the signature below remains clickable. */
#nav.brand-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: var(--site-header-height);
  margin: 0;
  padding: 0 max(1.4rem, calc((100vw - var(--container-wide)) / 2));
  overflow: visible;
  background: transparent;
  color: #fff;
  line-height: normal;
  pointer-events: none;
  transition: transform 1s ease, opacity 1s ease;
}

#nav.brand-nav .brand-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.25vw, 2.35rem);
  flex: 1 1 auto;
  justify-content: center;
  margin: 0 10rem 0 10rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  pointer-events: auto;
}

#nav.brand-nav .brand-nav__links li,
#nav.brand-nav .brand-nav__links li.active {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

#nav.brand-nav .brand-nav__links li a,
#nav.brand-nav .brand-nav__links li.active a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--site-header-height);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  line-height: 1;
  white-space: nowrap;
}

#nav.brand-nav .brand-nav__links li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1.04rem;
  height: 2px;
  background: var(--brand-cyan);
  transition: right var(--transition-fast);
}

#nav.brand-nav .brand-nav__links li a:hover,
#nav.brand-nav .brand-nav__links li.active a,
#nav.brand-nav .brand-nav__links li.active a:hover {
  background: transparent;
  color: #fff !important;
}

#nav.brand-nav .brand-nav__links li a:hover::after,
#nav.brand-nav .brand-nav__links li.active a::after {
  right: 0;
}

.brand-nav__tools {
  position: absolute;
  right: max(1.4rem, calc((100vw - var(--container-wide)) / 2));
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: var(--site-header-height);
  pointer-events: auto;
}

/* Compact language picker */
.brand-language {
  position: relative;
  margin: 0;
}

.brand-language > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.brand-language > summary::-webkit-details-marker {
  display: none;
}

.brand-language > summary:hover,
.brand-language[open] > summary {
  border-color: rgba(68, 185, 209, 0.6);
  background: rgba(68, 185, 209, 0.08);
  color: #fff;
}

.brand-language__chevron {
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.18rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.brand-language[open] .brand-language__chevron {
  margin-top: 0.18rem;
  transform: rotate(225deg);
}

.brand-language__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  min-width: 5.25rem;
  padding: 0.4rem;
  border: 1px solid rgba(174, 228, 238, 0.16);
  border-radius: 0.7rem;
  background: #0b283a;
  box-shadow: 0 1rem 2.4rem rgba(4, 20, 31, 0.24);
}

.brand-language__menu a {
  display: block;
  padding: 0.58rem 0.7rem;
  border: 0 !important;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-language__menu a:hover,
.brand-language__menu a[aria-current="page"] {
  background: rgba(68, 185, 209, 0.1);
  color: #fff !important;
}

/* Social controls become quiet utility icons rather than a second menu. */
#nav.brand-nav .brand-nav__social {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
}

#nav.brand-nav .brand-nav__social li {
  display: inline-block;
  padding: 0;
}

#nav.brand-nav .brand-nav__social a.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0 !important;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66) !important;
  transition: color var(--transition-fast), background var(--transition-fast);
}

#nav.brand-nav .brand-nav__social a.icon:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--brand-cyan) !important;
}

/* Inner editorial pages do not have a fullscreen intro behind the fixed nav. */
body.brand-inner-page #main {
  margin-top: calc(var(--site-header-height) + 2rem);
}

/* ------------------------------------------------------------
   Mobile navigation panel
   Compact slide-out navigation with project-owned structure and styling.
   ------------------------------------------------------------ */
@media screen and (max-width: 980px) {
  :root {
    --site-header-height: 4.4rem;
  }

  #header.brand-site-header {
    height: var(--site-header-height);
    padding-inline: 1.15rem;
  }

  #header.brand-site-header .brand-signature {
    min-width: auto;
  }

  .brand-signature__name {
    display: none;
  }

  .brand-signature__monogram {
    font-size: 1.3rem;
  }

  /* Main.css hides #nav at this breakpoint; its children are moved
     into #navPanel by the existing JS. */
  #navPanelToggle {
    top: 0.82rem;
    right: 1rem;
    z-index: 1002;
    width: auto;
    height: 2.5rem;
    margin: 0;
    padding: 0 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    background: rgba(9, 31, 45, 0.58);
    box-shadow: none;
    color: #fff !important;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 2.35rem;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  #navPanelToggle:before {
    display: none;
  }

  #navPanel {
    width: min(22rem, 88vw);
    padding: 5rem 1.5rem 1.5rem;
    background: #0b283a;
    color: #fff;
  }

  #navPanel .close {
    top: 1.15rem;
    right: 1.15rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    line-height: 1;
    text-align: center;
  }

  #navPanel .brand-nav__links {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
    list-style: none;
    text-transform: uppercase;
  }

  #navPanel .brand-nav__links li,
  #navPanel .brand-nav__links li.active {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
  }

  #navPanel .brand-nav__links li a,
  #navPanel .brand-nav__links li.active a {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.72) !important;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
  }

  #navPanel .brand-nav__links li.active a,
  #navPanel .brand-nav__links li a:hover {
    color: #fff !important;
  }

  #navPanel .brand-nav__links li.active a::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: var(--brand-cyan);
  }

  #navPanel .brand-nav__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
  }

  #navPanel .brand-language > summary {
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  #navPanel .brand-language__menu {
    right: auto;
    left: 0;
  }

  #navPanel .brand-nav__social {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #navPanel .brand-nav__social li {
    margin: 0;
    padding: 0;
    border: 0;
  }

  #navPanel .brand-nav__social a.icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.74) !important;
  }

  body.brand-inner-page #main {
    margin-top: calc(var(--site-header-height) + 1rem);
  }
}

@media screen and (min-width: 981px) and (max-width: 1180px) {
  #nav.brand-nav .brand-nav__links {
    gap: 1.15rem;
    margin-left: 8.5rem;
    margin-right: 8.5rem;
  }

  .brand-signature__name {
    display: none;
  }
}

/* ============================================================
   STEP 03 — Homepage hero
   Product-led football-data composition built from real Match Explorer output.
   ============================================================ */

/* The portfolio background now lives directly on the wrapper; no JS-injected
   parallax layer is needed. */
#wrapper {
  background-color: #071f2d;
  background-image:
    radial-gradient(circle at 78% 11%, rgba(68, 185, 209, 0.12), transparent 31rem),
    radial-gradient(circle at 10% 38%, rgba(241, 120, 91, 0.06), transparent 24rem),
    linear-gradient(180deg, #071f2d 0%, #092737 32rem, #10354d 68rem, #10354d 100%);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep the intro/header relationship neutral under the fixed navigation. */
#intro + #header.brand-site-header,
#intro.hidden + #header.brand-site-header {
  margin-top: 0;
}

#intro + #header.brand-site-header .brand-signature,
#intro.hidden + #header.brand-site-header .brand-signature {
  transform: none;
  opacity: 1;
  visibility: visible;
}

body.is-preload #intro:not(.hidden) + #header.brand-site-header + #nav.brand-nav {
  transform: none;
  opacity: 1;
}

/* The new hero is intentionally dark and product-led. */
#intro.brand-hero {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 100svh;
  padding: calc(var(--site-header-height) + clamp(3.5rem, 7vh, 6.4rem)) 0 clamp(4.2rem, 7vh, 6.8rem);
  overflow: hidden;
  color: #fff;
  cursor: default;
  text-align: left;
  isolation: isolate;
}

#intro.brand-hero strong,
#intro.brand-hero b {
  color: #fff;
}

#intro.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(174, 228, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.03) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 68%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 68%);
}

#intro.brand-hero::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -10rem;
  z-index: -1;
  width: min(54vw, 52rem);
  aspect-ratio: 1;
  border: 1px solid rgba(174, 228, 238, 0.055);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgba(68, 185, 209, 0.018),
    0 0 0 12rem rgba(68, 185, 209, 0.012);
}

.brand-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(34rem, 1.09fr);
  align-items: center;
  gap: clamp(3.5rem, 6vw, 7rem);
  min-height: calc(100svh - var(--site-header-height) - clamp(7.7rem, 14vh, 13.2rem));
}

.brand-hero__copy {
  position: relative;
  z-index: 6;
  max-width: 43rem;
}

#intro .brand-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin: 0 0 1.35rem;
  color: var(--brand-cyan-soft);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

#intro .brand-hero__eyebrow span:nth-child(2) {
  color: var(--brand-coral);
  font-size: 0.9rem;
}

#intro.brand-hero h1 {
  max-width: 48rem;
  margin: 0;
  color: #fff;
  font-size: clamp(3.55rem, 5.65vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.061em;
  line-height: 0.89;
  text-align: left;
  text-transform: none;
}

#intro.brand-hero h1 span {
  color: var(--brand-cyan-soft);
}

#intro .brand-hero__lead {
  max-width: 39rem;
  margin: 1.55rem 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.brand-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-top: 1.8rem;
}

#intro .brand-hero__actions .button.brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border: 0 !important;
  background: var(--brand-cyan);
  box-shadow: none;
  color: #062536 !important;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

#intro .brand-hero__actions .button.brand-primary:hover {
  background: #69c8da;
  box-shadow: none;
  color: #062536 !important;
}

#intro .brand-hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.55rem 0;
  border: 0;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

#intro .brand-hero__text-link:hover {
  color: #fff !important;
}

#intro .brand-hero__text-link span {
  color: var(--brand-coral);
  font-size: 1rem;
}

#intro .brand-hero__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

#intro .brand-hero__domains li {
  margin: 0;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(174, 228, 238, 0.13);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Hero analysis stage
   ------------------------------------------------------------ */
.brand-hero__visual {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.04 / 1;
  transform: translateX(1.2rem);
}

.brand-hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% 3% 5% 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 185, 209, 0.12), rgba(68, 185, 209, 0.03) 43%, transparent 70%);
  filter: blur(0.5rem);
}

.brand-hero__pitch {
  position: absolute;
  inset: 10% 3% 8% 8%;
  z-index: 0;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 238, 0.12);
  border-radius: 1.3rem;
  opacity: 0.72;
  transform: rotate(-3deg);
}

.brand-hero__pitch::before,
.brand-hero__pitch::after {
  content: "";
  position: absolute;
}

.brand-hero__pitch::before {
  inset: 0 49.9% 0 auto;
  width: 1px;
  background: rgba(174, 228, 238, 0.1);
}

.brand-hero__pitch::after {
  top: 50%;
  left: 50%;
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid rgba(174, 228, 238, 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.brand-hero__pitch-half {
  position: absolute;
  top: 50%;
  left: -1px;
  width: 15%;
  height: 42%;
  border: 1px solid rgba(174, 228, 238, 0.1);
  border-left: 0;
  transform: translateY(-50%);
}

.brand-hero__pitch-half::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 32%;
  height: 45%;
  border: 1px solid rgba(174, 228, 238, 0.1);
  border-right: 0;
  transform: translateY(-50%);
}

.brand-hero__pitch-circle {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 15%;
  height: 42%;
  border: 1px solid rgba(174, 228, 238, 0.1);
  border-right: 0;
  transform: translateY(-50%);
}

.brand-hero__data-label {
  position: absolute;
  top: 2.4%;
  left: 13%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-hero__data-label span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0.28rem rgba(68, 185, 209, 0.1);
}

.brand-hero__app {
  position: absolute;
  top: 14%;
  left: 2%;
  z-index: 2;
  width: 84%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 238, 0.16);
  border-radius: 1rem;
  background: #eaf2f4;
  box-shadow:
    0 2.5rem 6rem rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: rotate(-2.2deg);
}

.brand-hero__app-bar {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.55rem;
  padding: 0 0.9rem;
  background: #0d3043;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-hero__app-bar strong {
  color: var(--brand-cyan-soft);
  font-weight: 700;
}

.brand-hero__app-dots {
  display: flex;
  gap: 0.3rem;
}

.brand-hero__app-dots i {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.19);
}

.brand-hero__app-dots i:first-child {
  background: var(--brand-coral);
}

.brand-hero__app img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.brand-hero__metric {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 9.4rem;
  padding: 1rem 1.05rem 0.95rem;
  border: 1px solid rgba(174, 228, 238, 0.16);
  border-radius: 0.85rem;
  background: rgba(7, 31, 45, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.2);
}

.brand-hero__metric-kicker {
  margin-bottom: 0.38rem;
  color: var(--brand-cyan);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-hero__metric strong {
  color: #fff;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-hero__metric strong em {
  color: var(--brand-cyan-soft);
  font-size: 0.58em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-hero__metric strong span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.56em;
  letter-spacing: -0.02em;
}

.brand-hero__metric small {
  margin-top: 0.42rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-hero__metric--ppda {
  top: 5%;
  right: 0;
  border-top-color: rgba(241, 120, 91, 0.7);
  transform: rotate(2.2deg);
}

.brand-hero__metric--ppda::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--brand-coral);
}

.brand-hero__metric--distance {
  right: 2.5%;
  bottom: 12%;
  min-width: 10.4rem;
  border-top-color: rgba(68, 185, 209, 0.72);
  transform: rotate(-1.4deg);
}

.brand-hero__metric--passes {
  bottom: 4%;
  left: 5%;
  min-width: 8.8rem;
  padding-block: 0.9rem 0.82rem;
  border-color: rgba(174, 228, 238, 0.13);
  background: rgba(9, 40, 58, 0.91);
  transform: rotate(1.4deg);
}

.brand-hero__metric--passes strong {
  font-size: 1.8rem;
}

/* Keep the existing preload fade, but make it much quicker than the
   template's original cinematic reveal. */
body.is-preload #intro.brand-hero {
  transform: translateY(0.6rem);
  opacity: 0;
}

#intro.brand-hero {
  transition: opacity 480ms ease, transform 480ms ease;
}

#intro.brand-hero.hidden {
  pointer-events: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------------------------
   Hero responsiveness
   ------------------------------------------------------------ */
@media screen and (max-width: 1180px) {
  .brand-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    gap: 2.8rem;
  }

  #intro.brand-hero h1 {
    font-size: clamp(3.45rem, 6vw, 5.75rem);
  }

  .brand-hero__visual {
    transform: translateX(0.5rem);
  }
}

@media screen and (max-width: 980px) {
  #intro.brand-hero {
    min-height: auto;
    padding: calc(var(--site-header-height) + 4.8rem) 0 5.2rem;
  }

  .brand-hero__inner {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    min-height: auto;
  }

  .brand-hero__copy {
    max-width: 47rem;
  }

  #intro.brand-hero h1 {
    max-width: 44rem;
    font-size: clamp(4rem, 10vw, 6.35rem);
  }

  #intro .brand-hero__lead {
    max-width: 42rem;
  }

  .brand-hero__visual {
    width: min(48rem, 94%);
    margin: 0 auto;
    transform: none;
  }
}

@media screen and (max-width: 736px) {
  #intro.brand-hero {
    padding: calc(var(--site-header-height) + 3.25rem) 0 4rem;
  }

  #intro.brand-hero::before {
    background-size: 3.25rem 3.25rem;
  }

  #intro.brand-hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.75rem);
    line-height: 0.92;
  }

  #intro .brand-hero__eyebrow {
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
    font-size: 0.65rem;
  }

  #intro .brand-hero__lead {
    margin-top: 1.55rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .brand-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.8rem;
  }

  #intro .brand-hero__actions .button.brand-primary {
    width: auto;
    min-height: 3rem;
  }

  #intro .brand-hero__domains {
    gap: 0.4rem;
    margin-top: 1.8rem;
  }

  #intro .brand-hero__domains li {
    padding: 0.42rem 0.62rem;
    font-size: 0.59rem;
  }

  .brand-hero__inner {
    gap: 3.1rem;
  }

  .brand-hero__visual {
    width: 100%;
    aspect-ratio: 0.88 / 1;
  }

  .brand-hero__app {
    top: 14%;
    left: -1%;
    width: 92%;
    border-radius: 0.75rem;
    transform: rotate(-1.4deg);
  }

  .brand-hero__app-bar {
    grid-template-columns: 2.5rem 1fr auto;
    min-height: 2.15rem;
    padding-inline: 0.65rem;
    font-size: 0.48rem;
  }

  .brand-hero__app-dots i {
    width: 0.3rem;
    height: 0.3rem;
  }

  .brand-hero__metric {
    min-width: 7.5rem;
    padding: 0.8rem 0.8rem 0.72rem;
    border-radius: 0.7rem;
  }

  .brand-hero__metric strong {
    font-size: 1.55rem;
  }

  .brand-hero__metric small,
  .brand-hero__metric-kicker {
    font-size: 0.49rem;
  }

  .brand-hero__metric--ppda {
    top: 4%;
    right: -1%;
  }

  .brand-hero__metric--distance {
    right: 0;
    bottom: 8%;
    min-width: 8rem;
  }

  .brand-hero__metric--passes {
    left: 2%;
    bottom: 2%;
    min-width: 7rem;
  }

  .brand-hero__data-label {
    top: 2%;
    left: 4%;
    font-size: 0.51rem;
  }
}

@media screen and (max-width: 420px) {
  #intro.brand-hero h1 {
    font-size: clamp(2.85rem, 14.3vw, 3.75rem);
  }

  .brand-hero__visual {
    margin-top: 0.5rem;
  }

  .brand-hero__metric--ppda {
    right: -0.3rem;
  }

  .brand-hero__metric--distance {
    right: -0.25rem;
  }
}


/* ============================================================
   STEP 04 — Selected Work / Match Explorer
   A full-bleed featured product story that connects the hero to
   the portfolio content and moves biography below proof of work.
   ============================================================ */

#main > .brand-selected-work {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw;
  padding: clamp(4.4rem, 7vw, 6.6rem) var(--gutter) clamp(5rem, 8vw, 7.4rem);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(68, 185, 209, 0.035), transparent 22rem),
    var(--brand-paper);
  overflow: hidden;
}

#main > .brand-selected-work::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 32rem;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 107, 136, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(11, 107, 136, 0.018), 0 0 0 10rem rgba(11, 107, 136, 0.012);
  pointer-events: none;
}

.brand-selected-work__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container-wide), 100%);
  margin-inline: auto;
}

.brand-selected-work__header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.7fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title intro";
  align-items: end;
  gap: 1.15rem clamp(2.5rem, 7vw, 7rem);
  margin-bottom: clamp(2.35rem, 4.2vw, 3.9rem);
}

.brand-selected-work__eyebrow {
  grid-area: eyebrow;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-selected-work__eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--brand-coral);
}

.brand-selected-work__eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 1.9rem;
  height: 1.9rem;
  margin-left: 0.1rem;
  border: 1px solid rgba(11, 107, 136, 0.18);
  border-radius: 50%;
  color: var(--brand-ink);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.brand-selected-work__header h2 {
  grid-area: title;
  max-width: 49rem;
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2.7rem, 5vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.057em;
  line-height: 0.96;
  text-transform: none;
}

.brand-selected-work__header > p:last-child {
  grid-area: intro;
  max-width: 31rem;
  margin: 0 0 0.35rem;
  color: var(--brand-muted);
  font-style: normal;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}

.brand-featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(23rem, 0.8fr);
  min-height: 39rem;
  margin: 0;
  border: 1px solid rgba(16, 53, 77, 0.12);
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 2.4rem 5.5rem rgba(16, 53, 77, 0.11);
  overflow: hidden;
}

.brand-featured-project__visual {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 39rem;
  padding: clamp(2.2rem, 4.5vw, 4.2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(68, 185, 209, 0.19), transparent 18rem),
    linear-gradient(rgba(174, 228, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.045) 1px, transparent 1px),
    #0a2b3d;
  background-size: auto, 3.6rem 3.6rem, 3.6rem 3.6rem, auto;
}

.brand-featured-project__visual::after {
  content: "01";
  position: absolute;
  right: -0.8rem;
  bottom: -2.6rem;
  color: rgba(174, 228, 238, 0.05);
  font-size: clamp(9rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
}

.brand-featured-project__window {
  position: relative;
  z-index: 2;
  width: 96%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 238, 0.18);
  border-radius: 1rem;
  background: #eaf2f4;
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.28);
  transform: rotate(-1.35deg);
}

.brand-featured-project__bar {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.95rem;
  background: #0d3043;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-featured-project__bar strong {
  color: var(--brand-cyan-soft);
  font-weight: 700;
}

.brand-featured-project__dots {
  display: flex;
  gap: 0.32rem;
}

.brand-featured-project__dots i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.brand-featured-project__dots i:first-child {
  background: var(--brand-coral);
}

.brand-featured-project__window img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.brand-featured-project__visual-label {
  position: absolute;
  top: 1.55rem;
  left: clamp(2rem, 4vw, 3.8rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-featured-project__visual-label span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0.28rem rgba(68, 185, 209, 0.1);
}

.brand-featured-project__metric {
  position: absolute;
  z-index: 4;
  min-width: 8.8rem;
  padding: 0.82rem 0.92rem 0.78rem;
  border: 1px solid rgba(174, 228, 238, 0.16);
  border-radius: 0.75rem;
  background: rgba(7, 31, 45, 0.91);
  box-shadow: 0 1.1rem 2.5rem rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-featured-project__metric strong,
.brand-featured-project__metric span {
  display: block;
}

.brand-featured-project__metric strong {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-featured-project__metric span {
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-featured-project__metric--passes {
  left: clamp(1rem, 2.6vw, 2.4rem);
  bottom: 1.8rem;
  border-top-color: rgba(241, 120, 91, 0.75);
  transform: rotate(1.2deg);
}

.brand-featured-project__metric--distance {
  right: clamp(1rem, 2.5vw, 2.25rem);
  bottom: 2.25rem;
  border-top-color: rgba(68, 185, 209, 0.8);
  transform: rotate(-1deg);
}

.brand-featured-project__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5rem) clamp(2.4rem, 4.5vw, 4.3rem);
  background: #fff;
}

.brand-featured-project__kicker {
  margin: 0 0 1.25rem;
  color: var(--brand-blue);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-featured-project__content h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-transform: none;
}

.brand-featured-project__body {
  margin: 1.45rem 0 0;
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.brand-featured-project__features {
  margin: 1.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--brand-line);
  list-style: none;
}

.brand-featured-project__features li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.7rem;
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand-text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.brand-featured-project__features li span {
  padding-top: 0.05rem;
  color: var(--brand-coral);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.brand-featured-project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1.5rem;
}

.brand-featured-project__stack span {
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(16, 53, 77, 0.12);
  border-radius: var(--radius-pill);
  background: var(--brand-surface-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1;
}

#main .brand-featured-project__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  margin-top: 1.8rem;
  padding-inline: 1.15rem;
  border: 0 !important;
  background: var(--brand-ink);
  box-shadow: none;
  color: #fff !important;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
}

#main .brand-featured-project__cta:hover {
  background: var(--brand-blue);
  color: #fff !important;
}

/* The next legacy block remains deliberately untouched in this step,
   but gets breathing room from the new featured story. */
#main > .brand-selected-work + .posts {
  border-top: 0;
}

/* About is no longer the first thing a visitor sees after the hero. */
#main > #about {
  scroll-margin-top: var(--site-header-height);
}

@media screen and (max-width: 1080px) {
  .brand-featured-project {
    grid-template-columns: 1fr;
  }

  .brand-featured-project__visual {
    min-height: 34rem;
  }

  .brand-featured-project__content {
    padding: 3.4rem clamp(2rem, 6vw, 4rem) 4rem;
  }
}

@media screen and (max-width: 736px) {
  #main > .brand-selected-work {
    padding: 4.3rem var(--gutter) 4.8rem;
  }

  .brand-selected-work__header {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "intro";
    gap: 1rem;
    margin-bottom: 2.8rem;
  }

  .brand-selected-work__header h2 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }

  .brand-selected-work__header > p:last-child {
    margin-top: 0.45rem;
  }

  .brand-featured-project {
    min-height: 0;
    border-radius: 1.15rem;
  }

  .brand-featured-project__visual {
    min-height: 25rem;
    padding: 3rem 1.2rem 4.2rem;
  }

  .brand-featured-project__window {
    width: 100%;
    border-radius: 0.75rem;
    transform: rotate(-0.8deg);
  }

  .brand-featured-project__bar {
    grid-template-columns: 2.5rem 1fr;
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    font-size: 0.48rem;
  }

  .brand-featured-project__bar > span:last-child {
    display: none;
  }

  .brand-featured-project__dots i {
    width: 0.32rem;
    height: 0.32rem;
  }

  .brand-featured-project__visual-label {
    top: 1.2rem;
    left: 1.3rem;
    font-size: 0.52rem;
  }

  .brand-featured-project__metric {
    min-width: 7.1rem;
    padding: 0.7rem 0.72rem;
  }

  .brand-featured-project__metric strong {
    font-size: 1.35rem;
  }

  .brand-featured-project__metric span {
    font-size: 0.47rem;
  }

  .brand-featured-project__metric--passes {
    left: 0.8rem;
    bottom: 1rem;
  }

  .brand-featured-project__metric--distance {
    right: 0.8rem;
    bottom: 1.15rem;
  }

  .brand-featured-project__content {
    padding: 2.7rem 1.45rem 3rem;
  }

  .brand-featured-project__content h3 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

@media screen and (max-width: 420px) {
  .brand-featured-project__visual {
    min-height: 22rem;
  }

  .brand-featured-project__metric--distance {
    display: none;
  }
}

/* ============================================================
   STEP 05 — Latest Intelligence / Il Lab dell'8
   Editorial football-analysis layer placed directly after the
   featured data product, so the top of the homepage now tells
   one continuous story: product -> analysis -> proof of work.
   ============================================================ */

#main > .brand-lab-home {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw;
  padding: clamp(5rem, 8vw, 7.8rem) var(--gutter) clamp(5.5rem, 8.5vw, 8rem);
  border-top: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(68, 185, 209, 0.13), transparent 29rem),
    radial-gradient(circle at 12% 88%, rgba(241, 120, 91, 0.055), transparent 24rem),
    linear-gradient(180deg, #092737 0%, #071f2d 100%);
  color: #fff;
  overflow: hidden;
}

#main > .brand-lab-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(174, 228, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.028) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 78%, transparent);
  pointer-events: none;
}

.brand-lab-home__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container-wide), 100%);
  margin-inline: auto;
}

.brand-lab-home__header {
  display: grid;
  grid-template-columns: minmax(15rem, 0.58fr) minmax(0, 1.42fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.8rem, 5vw, 4.6rem);
}

.brand-lab-home__lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-lab-home__lockup img {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 0.95rem;
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.2);
}

.brand-lab-home__lockup div {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-lab-home__lockup span {
  color: var(--brand-cyan);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lab-home__lockup strong {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-lab-home__heading {
  max-width: 53rem;
}

.brand-lab-home__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: rgba(174, 228, 238, 0.72);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lab-home__eyebrow::before {
  content: "";
  width: 2.15rem;
  height: 2px;
  background: var(--brand-coral);
}

.brand-lab-home__eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(174, 228, 238, 0.17);
  border-radius: 50%;
  color: #fff;
  font-size: 0.61rem;
  letter-spacing: 0;
}

.brand-lab-home__heading h2 {
  max-width: 52rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.057em;
  line-height: 0.98;
  text-transform: none;
}

.brand-lab-story {
  display: grid;
  grid-template-columns: minmax(21rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 34rem;
  margin: 0;
  padding: clamp(2rem, 3.6vw, 3.4rem);
  border: 1px solid rgba(174, 228, 238, 0.13);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  overflow: hidden;
}

.brand-lab-story__content {
  position: relative;
  z-index: 4;
  padding: clamp(0.5rem, 1vw, 1rem);
}

.brand-lab-story__kicker {
  margin: 0 0 1.15rem;
  color: var(--brand-coral);
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-lab-story__content h3 {
  max-width: 33rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 3.65vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-transform: none;
}

.brand-lab-story__body {
  max-width: 32rem;
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.68;
}

.brand-lab-story__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  margin-top: 2rem;
}

#main .brand-lab-story__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0 1.15rem;
  border: 0 !important;
  background: var(--brand-coral);
  box-shadow: none;
  color: #092737 !important;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
}

#main .brand-lab-story__primary:hover {
  background: #ff8c70;
  color: #071f2d !important;
}

#main .brand-lab-story__secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#main .brand-lab-story__secondary:hover {
  color: var(--brand-cyan-soft) !important;
}

.brand-lab-story__language {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.4;
}

.brand-lab-story__visual {
  position: relative;
  min-width: 0;
  min-height: 29rem;
  padding: 3.1rem 0.3rem 3.8rem 1rem;
}

.brand-lab-story__visual::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 185, 209, 0.15), transparent 67%);
  filter: blur(0.5rem);
}

.brand-lab-story__visual-label {
  position: absolute;
  top: 0.3rem;
  left: 1.2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.brand-lab-story__visual-label span {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0.28rem rgba(68, 185, 209, 0.1);
}

.brand-lab-story__frame {
  position: relative;
  z-index: 2;
  width: 96%;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 238, 0.18);
  border-radius: 1rem;
  background: #eef5f6;
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.28);
  transform: rotate(1.35deg);
}

.brand-lab-story__frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.brand-lab-story__metric {
  position: absolute;
  z-index: 5;
  min-width: 8.4rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(174, 228, 238, 0.15);
  border-radius: 0.78rem;
  background: rgba(7, 31, 45, 0.94);
  box-shadow: 0 1.15rem 2.6rem rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-lab-story__metric strong,
.brand-lab-story__metric span {
  display: block;
}

.brand-lab-story__metric strong {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-lab-story__metric span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-lab-story__metric strong + span,
.brand-lab-story__metric span + strong {
  margin-top: 0.28rem;
}

.brand-lab-story__metric--ppda {
  top: 0.7rem;
  right: 1.2rem;
  border-top-color: rgba(241, 120, 91, 0.8);
  transform: rotate(-1.5deg);
}

.brand-lab-story__metric--long {
  left: 0;
  bottom: 0.4rem;
  border-top-color: rgba(68, 185, 209, 0.82);
  transform: rotate(1.1deg);
}

.brand-lab-story__metric--transition {
  right: 0.8rem;
  bottom: -0.2rem;
  border-top-color: rgba(241, 120, 91, 0.8);
  transform: rotate(-0.7deg);
}

#main > .brand-lab-home + .posts {
  border-top: 0;
}

@media screen and (max-width: 1080px) {
  .brand-lab-home__header {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .brand-lab-story {
    grid-template-columns: 1fr;
  }

  .brand-lab-story__content {
    max-width: 44rem;
  }

  .brand-lab-story__visual {
    min-height: 32rem;
  }
}

@media screen and (max-width: 736px) {
  #main > .brand-lab-home {
    padding: 4.3rem var(--gutter) 4.8rem;
  }

  .brand-lab-home__header {
    margin-bottom: 2.5rem;
  }

  .brand-lab-home__lockup img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.8rem;
  }

  .brand-lab-home__heading h2 {
    font-size: clamp(2.5rem, 11vw, 3.65rem);
  }

  .brand-lab-story {
    gap: 1.5rem;
    padding: 1.35rem;
    border-radius: 1.15rem;
  }

  .brand-lab-story__content {
    padding: 0.4rem;
  }

  .brand-lab-story__content h3 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .brand-lab-story__visual {
    min-height: 23rem;
    padding: 2.7rem 0 4.8rem;
  }

  .brand-lab-story__frame {
    width: 100%;
    transform: rotate(0.5deg);
  }

  .brand-lab-story__metric {
    min-width: 7rem;
    padding: 0.67rem 0.72rem;
  }

  .brand-lab-story__metric strong {
    font-size: 1.25rem;
  }

  .brand-lab-story__metric span {
    font-size: 0.46rem;
  }

  .brand-lab-story__metric--ppda {
    right: 0.1rem;
  }

  .brand-lab-story__metric--long {
    left: 0;
    bottom: 0.25rem;
  }

  .brand-lab-story__metric--transition {
    right: 0;
    bottom: -0.25rem;
  }
}

/* =========================================================
   STEP 06 — MORE WORK / SECONDARY PROJECTS
   ========================================================= */

#main > .brand-more-work {
  margin: 0;
  padding: clamp(5.2rem, 8vw, 8.3rem) var(--gutter);
  border: 0;
  background:
    radial-gradient(circle at 92% 3%, rgba(68, 185, 209, 0.09), transparent 24rem),
    var(--brand-paper);
}

.brand-more-work__inner {
  width: min(100%, var(--container-wide));
  margin: 0 auto;
}

.brand-more-work__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title intro";
  align-items: end;
  gap: 1.3rem clamp(2rem, 7vw, 7.2rem);
  margin-bottom: clamp(2.8rem, 5vw, 4.6rem);
}

.brand-more-work__eyebrow {
  grid-area: eyebrow;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--brand-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-more-work__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand-coral);
}

.brand-more-work__eyebrow span {
  color: var(--brand-coral);
}

.brand-more-work__header h2 {
  grid-area: title;
  max-width: 47rem;
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2.55rem, 4.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.brand-more-work__header > p:last-child {
  grid-area: intro;
  max-width: 31rem;
  margin: 0 0 0.25rem;
  color: var(--brand-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.brand-more-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.brand-mini-project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 53, 77, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1rem 2.8rem rgba(16, 53, 77, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand-mini-project:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(11, 107, 136, 0.24);
  box-shadow: 0 1.4rem 3.4rem rgba(16, 53, 77, 0.09);
}

.brand-mini-project__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  background: #dfe9ec;
}

.brand-mini-project__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 37, 53, 0.18));
  pointer-events: none;
}

.brand-mini-project__image img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}

.brand-mini-project:hover .brand-mini-project__image img {
  transform: scale(1.025);
}

.brand-mini-project__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.45rem, 2.3vw, 2rem);
}

.brand-mini-project__kicker {
  margin: 0 0 0.85rem;
  color: var(--brand-blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-mini-project h3 {
  margin: 0 0 0.85rem;
  color: var(--brand-ink);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-transform: none;
}

.brand-mini-project__content > p:not(.brand-mini-project__kicker) {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.brand-mini-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.brand-mini-project__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid rgba(16, 53, 77, 0.12);
  border-radius: 999px;
  background: rgba(238, 244, 245, 0.78);
  color: var(--brand-ink);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
}

.brand-mini-project__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.65rem;
  border: 0;
  color: var(--brand-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mini-project__link span {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--brand-coral);
  transition: transform 160ms ease;
}

.brand-mini-project__link:hover {
  color: var(--brand-blue) !important;
}

.brand-mini-project__link:hover span {
  transform: translate(0.15rem, -0.15rem);
}

/* The legacy .posts grid is no longer part of the home hierarchy. */
#main > .brand-lab-home + .brand-more-work {
  border-top: 0;
}

@media screen and (max-width: 980px) {
  .brand-more-work__header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "intro";
    gap: 1rem;
  }

  .brand-more-work__grid {
    grid-template-columns: 1fr;
  }

  .brand-mini-project {
    display: grid;
    grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.1fr);
  }

  .brand-mini-project__image {
    height: 100%;
    min-height: 18rem;
    aspect-ratio: auto;
  }
}

@media screen and (max-width: 736px) {
  #main > .brand-more-work {
    padding: 4.2rem var(--gutter) 4.7rem;
  }

  .brand-more-work__header {
    margin-bottom: 2.25rem;
  }

  .brand-more-work__header h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }

  .brand-mini-project {
    display: flex;
  }

  .brand-mini-project__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   STEP 07 — ABOUT
   Human, concise and editorial: biography, credentials and portrait.
   ============================================================ */

#main > .brand-about {
  position: relative;
  margin: 0;
  padding: clamp(5.4rem, 8vw, 8.4rem) var(--gutter);
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(68, 185, 209, 0.13), transparent 26rem),
    linear-gradient(135deg, #082b3d 0%, var(--brand-ink) 56%, #0d3c50 100%);
  color: #fff;
  scroll-margin-top: var(--site-header-height);
  text-align: left;
}

#main > .brand-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(174, 228, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.045) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

#main > .brand-about::after {
  content: "";
  position: absolute;
  width: 36rem;
  aspect-ratio: 1;
  right: -18rem;
  top: 8%;
  border: 1px solid rgba(174, 228, 238, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgba(174, 228, 238, 0.025),
    0 0 0 12rem rgba(174, 228, 238, 0.018);
  pointer-events: none;
}

.brand-about__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container-wide));
  margin: 0 auto;
}

.brand-about__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(2.4rem, 4vw, 4rem);
  color: var(--brand-cyan-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-about__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand-coral);
}

.brand-about__eyebrow span {
  color: var(--brand-coral);
}

.brand-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(3.5rem, 8vw, 8rem);
}

.brand-about__copy,
.brand-about__copy p,
.brand-about__credentials,
.brand-about__credentials div,
.brand-about__portrait,
.brand-about__portrait figcaption {
  text-align: left !important;
}

.brand-about__copy h2 {
  max-width: 54rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.9rem, 5.1vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.brand-about__copy h2 span {
  color: var(--brand-cyan-soft);
}

.brand-about__lead {
  max-width: 48rem;
  margin: clamp(2rem, 3.5vw, 2.8rem) 0 0;
  color: rgba(245, 244, 239, 0.88);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.brand-about__body {
  max-width: 45rem;
  margin: 1.15rem 0 0;
  color: rgba(174, 228, 238, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.brand-about__credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 48rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid rgba(174, 228, 238, 0.16);
  border-bottom: 1px solid rgba(174, 228, 238, 0.16);
}

.brand-about__credentials > div {
  min-width: 0;
  padding: 1.05rem 1.2rem 1.15rem 0;
}

.brand-about__credentials > div:nth-child(odd) {
  border-right: 1px solid rgba(174, 228, 238, 0.16);
}

.brand-about__credentials > div:nth-child(even) {
  padding-left: 1.25rem;
}

.brand-about__credentials > div:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(174, 228, 238, 0.16);
}

.brand-about__credentials span,
.brand-about__credentials strong {
  display: block;
}

.brand-about__credentials span {
  margin-bottom: 0.42rem;
  color: var(--brand-cyan);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-about__credentials strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.brand-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.55rem;
  margin-top: 2rem;
}

#main .brand-about__primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding-inline: 1.15rem;
  border: 1px solid rgba(174, 228, 238, 0.26) !important;
  background: var(--brand-cyan);
  box-shadow: none;
  color: var(--brand-ink) !important;
  font-size: 0.68rem;
  letter-spacing: 0.065em;
}

#main .brand-about__primary:hover {
  border-color: var(--brand-cyan-soft) !important;
  background: var(--brand-cyan-soft);
  color: var(--brand-ink) !important;
}

#main .brand-about__text-link {
  border: 0;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#main .brand-about__text-link span {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--brand-coral);
  transition: transform 160ms ease;
}

#main .brand-about__text-link:hover span {
  transform: translateX(0.2rem);
}

.brand-about__portrait {
  position: relative;
  width: min(100%, 29rem);
  margin: 0 0 0 auto;
}

.brand-about__portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 238, 0.22);
  border-radius: 1.35rem;
  background: var(--brand-paper);
  box-shadow: 0 2.2rem 5rem rgba(1, 21, 31, 0.32);
}

.brand-about__portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.brand-about__portrait img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.88) contrast(1.02);
}

.brand-about__portrait figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-inline: 0.15rem;
}

.brand-about__portrait figcaption span {
  color: var(--brand-cyan-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-about__portrait figcaption strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 500;
}

.brand-about__number {
  position: absolute;
  right: -1.4rem;
  bottom: 2.4rem;
  z-index: -1;
  color: rgba(174, 228, 238, 0.07);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.7;
  user-select: none;
}

@media screen and (max-width: 1080px) {
  .brand-about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .brand-about__copy h2 {
    font-size: clamp(2.65rem, 5.2vw, 4.2rem);
  }
}

@media screen and (max-width: 820px) {
  .brand-about__grid {
    grid-template-columns: 1fr;
  }

  .brand-about__portrait {
    width: min(100%, 28rem);
    margin: 0;
  }
}

@media screen and (max-width: 736px) {
  #main > .brand-about {
    padding: 4.5rem var(--gutter) 5rem;
  }

  #main > .brand-about::before {
    background-size: 3.75rem 3.75rem;
  }

  .brand-about__eyebrow {
    margin-bottom: 2rem;
  }

  .brand-about__copy h2 {
    font-size: clamp(2.5rem, 12vw, 3.65rem);
  }

  .brand-about__lead {
    margin-top: 1.65rem;
    font-size: 1rem;
  }

  .brand-about__credentials {
    grid-template-columns: 1fr;
  }

  .brand-about__credentials > div,
  .brand-about__credentials > div:nth-child(even) {
    padding: 0.9rem 0 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(174, 228, 238, 0.16);
  }

  .brand-about__credentials > div:last-child {
    border-bottom: 0;
  }

  .brand-about__portrait figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .brand-about__number {
    right: -0.4rem;
    bottom: 1.8rem;
  }
}

/* =========================
   Step 08 — Capabilities
   ========================= */
#main > .brand-capabilities {
  position: relative;
  margin: 0;
  padding: clamp(5rem, 8vw, 7rem) 0 clamp(5rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--brand-paper) 0%, #ffffff 100%);
  border-top: 1px solid rgba(16, 53, 77, 0.08);
}

#main > .brand-about + .brand-capabilities {
  margin-top: 0;
}

.brand-capabilities__inner {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.brand-capabilities__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.brand-capabilities__eyebrow {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
  color: var(--brand-blue);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-capabilities__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: rgba(241, 120, 91, 0.9);
}

.brand-capabilities__eyebrow span {
  color: var(--brand-coral);
}

.brand-capabilities__header h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2.4rem, 5.2vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  max-width: 11ch;
}

.brand-capabilities__header > p:last-child {
  margin: 0;
  color: rgba(16, 53, 77, 0.62);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-style: italic;
  line-height: 1.68;
}

.brand-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.brand-capability {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-height: 100%;
  padding: clamp(1.4rem, 2vw, 1.7rem);
  border: 1px solid rgba(16, 53, 77, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.4rem rgba(16, 53, 77, 0.06);
}

.brand-capability__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(68, 185, 209, 0.12);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-capability h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.brand-capability > p:not(.brand-capability__index) {
  margin: 0;
  color: rgba(16, 53, 77, 0.74);
  font-size: 1rem;
  line-height: 1.68;
}

.brand-capability__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.brand-capability__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(16, 53, 77, 0.12);
  border-radius: 999px;
  background: rgba(174, 228, 238, 0.18);
  color: rgba(16, 53, 77, 0.78);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media screen and (max-width: 1100px) {
  .brand-capabilities__header {
    grid-template-columns: 1fr;
  }

  .brand-capabilities__header h2 {
    max-width: 12ch;
  }

  .brand-capabilities__header > p:last-child {
    max-width: 52rem;
    font-style: normal;
  }

  .brand-capabilities__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 736px) {
  #main > .brand-capabilities {
    padding: 4rem 0 4rem;
  }

  .brand-capabilities__inner {
    width: min(100%, calc(100% - 1.5rem));
  }

  .brand-capabilities__header {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .brand-capabilities__eyebrow {
    font-size: 0.78rem;
  }

  .brand-capabilities__header h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand-capabilities__header > p:last-child {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .brand-capability {
    padding: 1.25rem;
    border-radius: 1.15rem;
  }

  .brand-capability h3 {
    font-size: 1.45rem;
  }

  .brand-capability__tags {
    gap: 0.55rem;
  }

  .brand-capability__tags span {
    font-size: 0.7rem;
  }
}

/* =========================
   Step 09 — Contact + Footer
   ========================= */

/* Final polish from Step 08 */
.brand-more-work__header > p:last-child,
.brand-capabilities__header > p:last-child,
.brand-capability > p:not(.brand-capability__index) {
  text-align: left;
}

.brand-more-work__header > p:last-child,
.brand-capabilities__header > p:last-child {
  font-style: normal;
}

.brand-capabilities__header h2 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  line-height: 0.98;
}

#main > .brand-contact {
  position: relative;
  margin: 0;
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem);
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(68, 185, 209, 0.13), transparent 28rem),
    radial-gradient(circle at 5% 90%, rgba(241, 120, 91, 0.08), transparent 25rem),
    linear-gradient(145deg, #061f2d 0%, var(--brand-ink) 58%, #0b3448 100%);
  color: #fff;
  scroll-margin-top: var(--site-header-height);
  text-align: left;
}

#main > .brand-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(174, 228, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.12) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.brand-contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 0.8fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: start;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.brand-contact__intro,
.brand-contact__intro p,
.brand-contact__meta,
.brand-contact__meta div,
.brand-contact__direct,
.brand-contact__form {
  text-align: left;
}

.brand-contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-contact__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brand-coral);
}

.brand-contact__eyebrow span {
  color: var(--brand-coral);
}

.brand-contact__intro h2 {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5.6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.brand-contact__intro h2 span {
  color: var(--brand-cyan-soft);
}

.brand-contact__lead {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.75;
}

.brand-contact__direct {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.brand-contact__direct > span,
.brand-contact__meta span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#main .brand-contact__direct a {
  width: fit-content;
  border: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  text-decoration: none;
}

#main .brand-contact__direct a span {
  display: inline-block;
  margin-left: 0.2rem;
  color: var(--brand-cyan);
  transition: transform 160ms ease;
}

#main .brand-contact__direct a:hover span {
  transform: translate(0.2rem, -0.15rem);
}

.brand-contact__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 36rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(174, 228, 238, 0.14);
}

.brand-contact__meta div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-contact__meta strong,
.brand-contact__meta strong a {
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
}

.brand-contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(174, 228, 238, 0.14);
  border-radius: 1.5rem;
  background: rgba(247, 248, 246, 0.98);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18);
}

.brand-contact__field {
  grid-column: 1 / -1;
  margin: 0;
}

.brand-contact__field--half {
  grid-column: span 1;
}

#main .brand-contact__field label {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--brand-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#main .brand-contact__field input,
#main .brand-contact__field textarea {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(16, 53, 77, 0.14);
  border-radius: 0.8rem;
  outline: 0;
  background: #fff;
  box-shadow: none;
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#main .brand-contact__field input {
  height: 3.3rem;
}

#main .brand-contact__field textarea {
  min-height: 10.5rem;
  resize: vertical;
}

#main .brand-contact__field input::placeholder,
#main .brand-contact__field textarea::placeholder {
  color: rgba(16, 53, 77, 0.38);
}

#main .brand-contact__field input:focus,
#main .brand-contact__field textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(68, 185, 209, 0.12);
}

#main .brand-contact__submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  min-width: 11.5rem;
  height: auto;
  margin: 0.35rem 0 0;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--brand-ink);
  border-radius: 999px;
  background: var(--brand-ink);
  box-shadow: none;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

#main .brand-contact__submit:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  transform: translateY(-2px);
}

#main .brand-contact__submit span {
  font-size: 1rem;
  line-height: 1;
}

.brand-footer {
  margin: 0;
  padding: 0;
  border: 0;
  background: #041722;
  color: rgba(255, 255, 255, 0.62);
}

.brand-footer__inner,
.brand-footer__legal {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.brand-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0 1.7rem;
}

.brand-footer__signature {
  border: 0;
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-footer__signature span {
  color: var(--brand-coral);
}

.brand-footer__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.brand-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.brand-footer__links a {
  border: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-footer__links a:hover {
  color: var(--brand-cyan-soft) !important;
}

.brand-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(174, 228, 238, 0.09);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 980px) {
  .brand-contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .brand-contact__intro h2 {
    max-width: 12ch;
  }
}

@media screen and (max-width: 736px) {
  .brand-capabilities__header h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  #main > .brand-contact {
    padding: 4.2rem 0 3.8rem;
  }

  #main > .brand-contact::before {
    background-size: 4rem 4rem;
  }

  .brand-contact__inner,
  .brand-footer__inner,
  .brand-footer__legal {
    width: min(100%, calc(100% - 1.5rem));
  }

  .brand-contact__eyebrow {
    margin-bottom: 1.6rem;
    font-size: 0.78rem;
  }

  .brand-contact__intro h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .brand-contact__lead {
    margin-top: 1.5rem;
  }

  .brand-contact__meta {
    grid-template-columns: 1fr;
  }

  .brand-contact__form {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    border-radius: 1.15rem;
  }

  .brand-contact__field--half {
    grid-column: 1 / -1;
  }

  #main .brand-contact__submit {
    width: 100%;
  }

  .brand-footer__inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.6rem 0 1.3rem;
  }

  .brand-footer__links {
    gap: 1rem;
  }

  .brand-footer__legal {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.brand-footer__legal a {
  border: 0;
  color: inherit !important;
  text-decoration: none;
}

.brand-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ============================================================
   STEP 10 — Responsive & global polish
   Final homepage pass: hierarchy, spacing, typography and small-screen
   behaviour. MO. is treated as a compact monogram, not a standalone brand.
   ============================================================ */

/* Keep the page from exposing horizontal overflow from full-bleed sections. */
html,
body {
  overflow-x: clip;
}

/* Headings read better as editorial units instead of accidental line breaks. */
.brand-hero__copy h1,
.brand-selected-work__header h2,
.brand-lab-home__heading h2,
.brand-more-work__header h2,
.brand-about__copy h2,
.brand-capabilities__header h2,
.brand-contact__intro h2 {
  text-wrap: balance;
}

/* Explicitly neutralise generic text-justification on branded content. */
.brand-selected-work__header > p,
.brand-featured-project__body,
.brand-featured-project__features li,
.brand-lab-story__body,
.brand-more-work__header > p,
.brand-mini-project__content > p,
.brand-about__lead,
.brand-about__body,
.brand-capabilities__header > p,
.brand-capability > p,
.brand-contact__lead {
  text-align: left !important;
  word-spacing: normal !important;
}

/* ------------------------------------------------------------
   Header identity: Michele Orefice is the brand; MO. is shorthand.
   ------------------------------------------------------------ */
#header.brand-site-header .brand-signature {
  gap: 0.58rem;
  min-width: 10.75rem;
}

.brand-signature__monogram {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.brand-signature__dot {
  color: var(--brand-coral);
}

.brand-signature__name {
  top: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

/* ------------------------------------------------------------
   Global vertical rhythm / desktop scale.
   ------------------------------------------------------------ */
#intro.brand-hero {
  min-height: min(100svh, 58rem);
  padding-top: calc(var(--site-header-height) + clamp(3rem, 5.7vh, 5rem));
  padding-bottom: clamp(3.5rem, 5.5vh, 5rem);
}

.brand-hero__copy h1 {
  font-size: clamp(3.45rem, 5.25vw, 5.75rem);
  line-height: 0.95;
}

#main > .brand-selected-work {
  padding-top: clamp(4rem, 6vw, 5.7rem);
  padding-bottom: clamp(4.5rem, 6.5vw, 6.2rem);
}

.brand-selected-work__header h2 {
  font-size: clamp(2.65rem, 4.55vw, 4.35rem);
}

.brand-selected-work__header {
  margin-bottom: clamp(2rem, 3.4vw, 3rem);
}

.brand-featured-project,
.brand-featured-project__visual {
  min-height: 36rem;
}

#main > .brand-more-work {
  padding-top: clamp(4.4rem, 6.5vw, 6rem);
  padding-bottom: clamp(4.4rem, 6.5vw, 6rem);
}

.brand-more-work__header h2 {
  font-size: clamp(2.55rem, 4.45vw, 4.25rem);
  line-height: 0.97;
}

#main > .brand-about {
  padding-top: clamp(4.8rem, 7vw, 7rem);
  padding-bottom: clamp(4.8rem, 7vw, 7rem);
}

.brand-about__copy h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.7rem);
  line-height: 0.98;
}

#main > .brand-capabilities {
  padding-top: clamp(4.4rem, 6.5vw, 6rem);
  padding-bottom: clamp(4.4rem, 6.5vw, 6rem);
}

.brand-capabilities__header {
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.brand-capabilities__header h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 4.1vw, 3.85rem);
  line-height: 0.99;
}

/* Contact should convert, not consume a full viewport before its supporting copy. */
#main > .brand-contact {
  padding-top: clamp(4.2rem, 6vw, 6rem);
  padding-bottom: clamp(3.6rem, 5.5vw, 5.25rem);
}

.brand-contact__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(23rem, 0.82fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.brand-contact__eyebrow {
  margin-bottom: 1.6rem;
}

.brand-contact__intro h2 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 4.7vw, 4.45rem);
  line-height: 0.95;
}

.brand-contact__lead {
  margin-top: 1.5rem;
  line-height: 1.68;
}

.brand-contact__direct {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.brand-contact__meta {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
}

.brand-contact__form {
  gap: 0.85rem;
  padding: clamp(1.35rem, 2.4vw, 2rem);
}

#main .brand-contact__field input {
  height: 3.05rem;
}

#main .brand-contact__field textarea {
  min-height: 8.25rem;
}

#main .brand-contact__submit {
  margin-top: 0.2rem;
  padding-block: 0.82rem;
}

/* Footer: full name replaces the monogram, making the identity explicit. */
.brand-footer__inner {
  grid-template-columns: auto 1fr auto;
  padding: 1.55rem 0 1.3rem;
}

.brand-footer__signature {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand-footer__inner p {
  color: rgba(255, 255, 255, 0.5);
}

.brand-footer__legal {
  padding: 0.85rem 0 1rem;
  color: rgba(255, 255, 255, 0.44);
}

/* ------------------------------------------------------------
   Laptop / tablet: avoid squeezed two-column compositions.
   ------------------------------------------------------------ */
@media screen and (max-width: 1180px) {
  #header.brand-site-header .brand-signature {
    min-width: 8.5rem;
  }

  .brand-signature__name {
    display: inline-block;
    font-size: 0.7rem;
  }

  #nav.brand-nav .brand-nav__links {
    margin-left: 9rem;
    margin-right: 9rem;
  }

  .brand-selected-work__header,
  .brand-more-work__header,
  .brand-capabilities__header {
    gap: 1.5rem 3rem;
  }
}

@media screen and (max-width: 1080px) {
  .brand-featured-project,
  .brand-featured-project__visual {
    min-height: 0;
  }

  .brand-featured-project__visual {
    min-height: 31rem;
  }

  .brand-contact__inner {
    align-items: start;
  }
}

/* ------------------------------------------------------------
   Mobile: compact, readable, no oversized decorative content.
   ------------------------------------------------------------ */
@media screen and (max-width: 980px) {
  /* On mobile the initials become the deliberate compact version of the name. */
  .brand-signature__name {
    display: none;
  }

  .brand-signature__monogram {
    color: #fff;
    font-size: 1.22rem;
  }

  #intro.brand-hero {
    min-height: auto;
  }

  .brand-contact__inner {
    gap: 2.4rem;
  }
}

@media screen and (max-width: 736px) {
  .brand-hero__copy h1 {
    font-size: clamp(2.85rem, 13vw, 3.55rem);
  }

  #main > .brand-selected-work,
  #main > .brand-more-work,
  #main > .brand-about,
  #main > .brand-capabilities,
  #main > .brand-contact {
    padding-top: 3.7rem;
    padding-bottom: 3.9rem;
  }

  .brand-selected-work__header h2,
  .brand-more-work__header h2,
  .brand-about__copy h2,
  .brand-capabilities__header h2,
  .brand-contact__intro h2 {
    max-width: 100%;
  }

  .brand-selected-work__header h2 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .brand-more-work__header h2,
  .brand-about__copy h2 {
    font-size: clamp(2.3rem, 10.5vw, 3.15rem);
  }

  .brand-capabilities__header h2 {
    font-size: clamp(2.05rem, 9.5vw, 2.85rem);
  }

  .brand-contact__intro h2 {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }

  .brand-featured-project__visual {
    min-height: 22rem;
    padding-top: 2.8rem;
  }

  .brand-featured-project__metric {
    min-width: 6.5rem;
  }

  .brand-featured-project__metric strong {
    font-size: 1.15rem;
  }

  .brand-featured-project__metric span {
    max-width: 8rem;
    font-size: 0.43rem;
  }

  .brand-contact__form {
    padding: 1.1rem;
  }

  #main .brand-contact__field textarea {
    min-height: 7.5rem;
  }

  .brand-footer__inner {
    padding: 1.35rem 0 1.05rem;
  }

  .brand-footer__signature {
    font-size: 0.85rem;
  }

  .brand-footer__legal {
    padding-bottom: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .brand-hero__domains {
    gap: 0.45rem;
  }

  .brand-featured-project__metric--distance {
    display: none;
  }

  .brand-capability__tags span,
  .brand-mini-project__tags span,
  .brand-featured-project__stack span {
    max-width: 100%;
  }

  .brand-contact__meta {
    grid-template-columns: 1fr;
  }

  .brand-contact__direct a {
    overflow-wrap: anywhere;
  }

  .brand-footer__links {
    gap: 0.8rem;
  }
}

/* ============================================================
   PHASE 2B.3 / 2B.4a — Header vertical breathing room
   The rail is slightly taller and every visible control is shifted
   together. The intro-coupled selectors are repeated intentionally
   so earlier homepage selectors cannot reset the personal signature.
   ============================================================ */
#header.brand-site-header .brand-signature,
#intro + #header.brand-site-header .brand-signature,
#intro.hidden + #header.brand-site-header .brand-signature,
#nav.brand-nav .brand-nav__links,
#nav.brand-nav .brand-nav__tools {
  transform: translateY(0.28rem);
}

@media screen and (max-width: 980px) {
  #header.brand-site-header .brand-signature,
  #intro + #header.brand-site-header .brand-signature,
  #intro.hidden + #header.brand-site-header .brand-signature {
    transform: translateY(0.18rem);
  }
}

/* ============================================================
   PHASE 2B.4 — UTILITY PAGES
   Branded, no-index confirmation screen for contact submissions.
   ============================================================ */

body.brand-thankyou-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(68, 185, 209, 0.14), transparent 26rem),
    linear-gradient(145deg, #071f2d 0%, var(--brand-ink) 52%, #0d4055 100%);
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
}

.brand-thankyou {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: min(100%, 90rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
}

.brand-thankyou::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(174, 228, 238, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 228, 238, 0.14) 1px, transparent 1px);
  background-size: 6rem 6rem;
}

.brand-thankyou__signature {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 50rem);
  justify-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-thankyou__mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.55rem;
  border: 1px solid rgba(174, 228, 238, 0.18);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.075em;
}

.brand-thankyou__mark span {
  color: var(--brand-coral);
}

.brand-thankyou__card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 50rem);
  justify-self: center;
  margin: clamp(3rem, 8vh, 6rem) auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(174, 228, 238, 0.15);
  border-radius: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(7, 31, 45, 0.78);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-thankyou__status {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--brand-cyan);
  color: var(--brand-ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-thankyou__eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-cyan-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand-thankyou__card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.brand-thankyou__copy {
  max-width: 34rem;
  margin: 1.6rem 0 2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.brand-thankyou__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: fit-content;
  min-height: 3.2rem;
  margin: 0;
  padding: 0.82rem 1.35rem !important;
  border: 1px solid var(--brand-cyan) !important;
  border-radius: 999px !important;
  background: var(--brand-cyan) !important;
  color: var(--brand-ink) !important;
  box-shadow: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.brand-thankyou__button:hover {
  border-color: #65c4d8 !important;
  background: #65c4d8 !important;
  color: var(--brand-ink) !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

.brand-thankyou__footer {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: min(100%, 50rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media screen and (max-width: 736px) {
  .brand-thankyou {
    padding: 1.25rem;
  }

  .brand-thankyou__signature {
    font-size: 0.7rem;
  }

  .brand-thankyou__card {
    margin: 2.5rem 0;
    padding: 1.5rem;
  }

  .brand-thankyou__status {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
  }

  .brand-thankyou__card h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .brand-thankyou__copy {
    margin: 1.25rem 0 1.6rem;
  }
}

/* ============================================================
   PHASE 2B.4b — GLOBAL LAYOUT CONSISTENCY
   Final compacting/alignment pass for the fixed header and utility page.
   ============================================================ */

/* A little more air above the personal signature while keeping the
   entire navigation rail optically aligned. */
#header.brand-site-header .brand-signature,
#intro + #header.brand-site-header .brand-signature,
#intro.hidden + #header.brand-site-header .brand-signature,
#nav.brand-nav .brand-nav__links,
#nav.brand-nav .brand-nav__tools {
  transform: translateY(0.42rem);
}

/* The utility mark is text, not two independent grid items. Keeping MO.
   on one baseline prevents the coral full stop from dropping to the edge. */
.brand-thankyou__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.brand-thankyou__mark > span {
  display: inline;
  position: static;
  margin-left: 0.015em;
  line-height: 1;
}

/* A confirmation page should fit comfortably in a normal desktop viewport. */
.brand-thankyou {
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: clamp(1rem, 2.2vh, 1.6rem);
  padding-bottom: clamp(1rem, 2.2vh, 1.6rem);
}

.brand-thankyou__card {
  margin: clamp(1.25rem, 3vh, 2.25rem) auto;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
}

.brand-thankyou__status {
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 1.35rem;
  font-size: 1.25rem;
}

.brand-thankyou__eyebrow {
  margin-bottom: 0.75rem;
}

.brand-thankyou__card h1 {
  font-size: clamp(3rem, 6.2vw, 5.25rem);
}

.brand-thankyou__copy {
  margin: 1.25rem 0 1.55rem;
}

@media screen and (max-width: 980px) {
  #header.brand-site-header .brand-signature,
  #intro + #header.brand-site-header .brand-signature,
  #intro.hidden + #header.brand-site-header .brand-signature {
    transform: translateY(0.28rem);
  }
}

@media screen and (max-width: 736px) {
  .brand-thankyou {
    min-height: 100svh;
    padding: 1rem;
  }

  .brand-thankyou__card {
    margin: 1.5rem 0;
    padding: 1.4rem;
  }
}


/* ============================================================
   PHASE 2B.6 — LIGHTWEIGHT RUNTIME
   Vanilla mobile navigation + inline social SVGs replace the legacy
   jQuery/Scrollex/Font Awesome loading chain.
   ============================================================ */
.brand-social-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

#nav.brand-nav .brand-nav__social a.brand-social-link,
#navPanel .brand-nav__social a.brand-social-link {
  line-height: 1;
}

@media screen and (max-width: 980px) {
  #nav.brand-nav {
    display: none;
  }

  body.is-navPanel-visible {
    overflow: hidden;
  }

  #navPanel .brand-nav__tools {
    position: static;
    top: auto;
    right: auto;
    height: auto;
    pointer-events: auto;
  }

  #navPanel .close::before {
    display: none;
    content: none;
  }

  #navPanel .brand-nav-close-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    overflow: visible;
    pointer-events: none;
  }
}

/* ============================================================
   PHASE 2B.6a — MOBILE REGRESSION FIX
   Restore the single-column contact composition after the late desktop
   contact refinements in Step 10 overrode the earlier tablet breakpoint.
   ============================================================ */
@media screen and (max-width: 980px) {
  .brand-contact__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .brand-contact__intro,
  .brand-contact__form {
    min-width: 0;
    width: 100%;
  }
}

@media screen and (max-width: 736px) {
  .brand-contact__inner {
    width: min(100%, calc(100% - 2rem));
    gap: 2rem;
  }

  .brand-contact__intro h2 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 11vw, 3.05rem);
    line-height: 0.96;
  }

  .brand-contact__lead {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .brand-contact__form {
    padding: 1.15rem;
    border-radius: 1.1rem;
  }
}

/* ============================================================
   PHASE 2B.6b — MOBILE FOOTER POLISH
   Reassert the stacked mobile footer after the later desktop footer
   refinement in Step 10 restored the three-column grid at small widths.
   ============================================================ */
@media screen and (max-width: 736px) {
  .brand-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    gap: 0.9rem;
    width: min(100%, calc(100% - 2.5rem));
    padding: 1.5rem 0 1.25rem;
  }

  .brand-footer__signature,
  .brand-footer__inner p,
  .brand-footer__links {
    min-width: 0;
    width: 100%;
  }

  .brand-footer__signature {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .brand-footer__inner p {
    max-width: none;
    font-size: 0.76rem;
    line-height: 1.55;
    white-space: normal;
  }

  .brand-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem 1.05rem;
  }

  .brand-footer__links a {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .brand-footer__legal {
    width: min(100%, calc(100% - 2.5rem));
    padding: 0.85rem 0 1rem;
    font-size: 0.64rem;
    line-height: 1.45;
  }
}

@media screen and (max-width: 420px) {
  .brand-footer__inner,
  .brand-footer__legal {
    width: min(100%, calc(100% - 2rem));
  }

  .brand-footer__links {
    gap: 0.5rem 0.85rem;
  }
}


/* ============================================================
   PHASE 2B.7b — EXACT ANCHOR ALIGNMENT
   site.js now uses the rendered header height for homepage section
   navigation. These margins remain as the no-JS/native fallback.
   ============================================================ */
#main > #projects,
#main > #about,
#main > #contact {
  scroll-margin-top: var(--site-header-height);
}
