/* ==========================================================================
   Noera site styles
   --------------------------------------------------------------------------
   One file, no build step. Tokens first, then base, layout, components.
   Navy and teal are the house palette shared with Pharos.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Manrope covers Latin and Greek at the same weight. Each subset loads only
   when a page uses characters from it. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --navy-900: #0a1f36;
  --navy-800: #103152;
  --teal-700: #05605d;
  --teal-500: #08827e;
  --teal-300: #0db3ac;

  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-raised: #ffffff;
  --text: #10233a;
  --text-soft: #3d5064;
  --text-muted: #5b6e82;
  --heading: var(--navy-800);
  --line: #dfe6ee;
  --accent: var(--teal-500);
  --accent-text: var(--teal-700);
  --accent-wash: #d6eae9;
  --btn-bg: var(--teal-700);
  --btn-bg-hover: #044f4c;
  --btn-text: #ffffff;
  --btn-quiet-bg: var(--navy-800);
  --btn-quiet-bg-hover: var(--navy-900);
  --btn-quiet-text: #ffffff;
  --panel: var(--navy-800);
  --panel-ink: #ffffff;
  --panel-accent: var(--teal-300);
  --logo-ink: var(--navy-800);
  --logo-accent: var(--teal-500);
  --focus: var(--teal-500);
  --error: #a3261d;
  --error-wash: #fdecea;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23103152' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");

  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --step-h1: clamp(2.6rem, 1.7rem + 4.2vw, 4.75rem);
  --step-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --step-h3: 1.25rem;
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --container: 75rem;
  --measure: 34rem;

  /* Two radii only: controls and panels. */
  --r-control: 10px;
  --r-panel: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  accent-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-900);
    --bg-soft: #0e2a48;
    --bg-raised: #123657;
    --text: #e4ecf4;
    --text-soft: #b7c7d8;
    --text-muted: #93a7bc;
    --heading: #ffffff;
    --line: #234668;
    --accent: var(--teal-300);
    --accent-text: #4fd3cd;
    --accent-wash: #12405a;
    --btn-bg: var(--teal-300);
    --btn-bg-hover: #3cc7c1;
    --btn-text: #06203a;
    --btn-quiet-bg: #ffffff;
    --btn-quiet-bg-hover: #dfe6ee;
    --btn-quiet-text: var(--navy-800);
    --panel: #123657;
    --logo-ink: #ffffff;
    --logo-accent: var(--teal-300);
    --focus: #4fd3cd;
    --error: #ffb4a9;
    --error-wash: #4a1f1b;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  font-size-adjust: from-font;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h1);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: var(--step-h2);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h3 {
  font-size: var(--step-h3);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:not(.btn, .skip-link):hover {
  color: var(--heading);
}

::selection {
  background: var(--teal-300);
  color: var(--navy-900);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: var(--r-control);
  background: var(--btn-quiet-bg);
  color: var(--btn-quiet-text);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Page-to-page cross-fade where the browser supports it. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.stack--lg {
  gap: 2.5rem;
}

.lead {
  max-width: var(--measure);
  color: var(--text-soft);
  font-size: var(--step-lead);
  line-height: 1.5;
}

.prose {
  max-width: 44rem;
  color: var(--text-soft);
}

.prose > * + * {
  margin-top: 1.125rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

/* --- Logo ---------------------------------------------------------------- */
.logo-ink {
  fill: var(--logo-ink);
}

.logo-accent {
  fill: var(--logo-accent);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--r-control);
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--lg {
  min-height: 3.375rem;
  padding-inline: 1.75rem;
}

.btn--quiet {
  background-color: var(--btn-quiet-bg);
  color: var(--btn-quiet-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background-color: var(--btn-bg-hover);
  }

  .btn--quiet:hover {
    background-color: var(--btn-quiet-bg-hover);
  }
}

.link-strong {
  display: inline-block;
  padding-block: 0.75rem;
  font-weight: 700;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.25rem;
  text-decoration: none;
}

.brand__symbol {
  width: 2.3rem;
  height: 2.7rem;
}

.brand__word {
  width: 7.5rem;
  height: 1.5rem;
}

.site-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
}

.nav__link {
  padding-block: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }
}

.nav__link[aria-current="page"] {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  padding: 0.75rem 0.375rem;
  font-size: var(--step-small);
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 70rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .nav__link {
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .header__actions {
    justify-content: space-between;
    padding-top: 0.75rem;
  }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.25rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.625rem;
}

.hero__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  padding: 2.5rem;
  border-radius: var(--r-panel);
  background: var(--panel);
}

@media (max-width: 52rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .hero__panel {
    min-height: 17rem;
  }
}

/* The one authored moment: the mark assembles in the order its story reads.
   A point, then the path through connected ideas, then solid form.
   Everything is visible by default; the animation only plays from hidden. */
.mark {
  position: relative;
  width: min(64%, 17.5rem);
  aspect-ratio: 409 / 481;
}

.mark__layer {
  position: absolute;
  inset: 0;
}

.mark__layer svg {
  width: 100%;
  height: 100%;
}

.mark__form {
  fill: var(--panel-ink);
}

.mark__idea {
  fill: var(--panel-accent);
}

@keyframes mark-point {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes mark-path {
  from {
    clip-path: inset(100% 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes mark-form {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mark__layer--point {
    transform-origin: 8% 87%;
    animation: mark-point 500ms var(--ease-out) 200ms both;
  }

  .mark__layer--path {
    animation: mark-path 1100ms var(--ease-out) 500ms both;
  }

  .mark__layer--form-a {
    animation: mark-form 600ms var(--ease-out) 1150ms both;
  }

  .mark__layer--form-b {
    animation: mark-form 600ms var(--ease-out) 1220ms both;
  }
}

/* --- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);
  line-height: 1.05;
}

.page-hero .lead {
  margin-top: 1.5rem;
  max-width: 40rem;
}

/* --- The word (dictionary entry) ----------------------------------------- */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 2.5rem 4.5rem;
  align-items: center;
}

.entry__word svg {
  width: 100%;
  height: auto;
}

.entry__pron {
  margin-top: 1.375rem;
  color: var(--text-soft);
  font-weight: 500;
}

.entry__pron strong {
  color: var(--accent-text);
  font-weight: 700;
}

.entry__body {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.entry__body p {
  max-width: var(--measure);
  color: var(--text-soft);
  font-size: 1.1875rem;
}

.entry__body .entry__spell {
  color: var(--heading);
  font-size: var(--step-body);
  font-weight: 600;
}

@media (max-width: 52rem) {
  .entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry__word {
    max-width: 20rem;
  }
}

/* --- Before and after (Skafos demonstration) ----------------------------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.demo__side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--r-panel);
}

.demo__side--raw {
  background: var(--bg-soft);
}

.section--soft .demo__side--raw {
  background: var(--bg);
}

.demo__side--record {
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.demo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.demo__note {
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.demo__raw {
  overflow-x: auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 3.4vw, 0.9375rem);
  line-height: 2;
  white-space: pre;
}

.demo__raw mark {
  padding: 0.2rem 0;
  background: var(--accent-wash);
  color: var(--text);
  font-weight: 700;
}

.demo__arrow {
  align-self: center;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.records {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.5rem;
}

.record {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 0.625rem;
}

.record dt {
  color: var(--text-soft);
}

.record dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.record + .record {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.record__ok {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-text);
}

.record__ok svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

@media (max-width: 52rem) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo__arrow {
    transform: rotate(90deg);
  }
}

/* --- Product tiles ------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-panel);
  background: var(--bg-raised);
}

.product__name {
  color: var(--heading);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.product__name span {
  color: var(--accent);
}

.product__logo {
  width: 13.75rem;
  height: auto;
}

.product__spell {
  color: var(--accent-text);
  font-weight: 600;
}

.product p:not(.product__spell) {
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 1.125rem;
}

@media (max-width: 52rem) {
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Pillars (Experience, Renovation, AI) -------------------------------- */
.pillars {
  margin-top: 1rem;
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  align-items: baseline;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.pillar + .pillar {
  border-top: 1px solid var(--line);
}

.pillar__name {
  color: var(--heading);
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pillar__name b {
  color: var(--accent);
  font-weight: inherit;
}

.pillar__latin {
  display: block;
  margin-top: 0.625rem;
  color: var(--text-soft);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.pillar p {
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 1.1875rem;
}

.pillar p a {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .pillar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Rows (service lines, principles, people) ---------------------------- */
.rows {
  display: grid;
  gap: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 0.5rem 3rem;
  padding-top: 1.625rem;
  padding-bottom: 1.625rem;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row p {
  max-width: 40rem;
  color: var(--text-soft);
}

.row__role {
  margin-top: 0.25rem;
  color: var(--accent-text);
  font-size: var(--step-small);
  font-weight: 700;
}

@media (max-width: 52rem) {
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Steps (a real sequence, so it is numbered) -------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  align-content: start;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--accent-text);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.steps p {
  color: var(--text-soft);
}

@media (max-width: 52rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Closing band -------------------------------------------------------- */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}

.closing__copy {
  flex: 1 1 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Form ---------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.contact__address a {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

@media (min-width: 52.001rem) {
  .contact.has-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

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

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

.field--wide {
  grid-column: 1 / -1;
}

@media (max-width: 36rem) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field label {
  color: var(--heading);
  font-weight: 700;
}

.field__optional {
  color: var(--text-muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--text-muted);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease;
}

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--focus);
}

.field__error {
  display: none;
  align-items: center;
  gap: 0.375rem;
  color: var(--error);
  font-size: var(--step-small);
  font-weight: 600;
}

.field__error svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* Errors appear only after the visitor has touched the field or tried to send. */
.field :is(input, select, textarea):user-invalid {
  border-color: var(--error);
  background: var(--error-wash);
}

.field :is(input, select, textarea):user-invalid ~ .field__error {
  display: flex;
}

.hp-field {
  position: absolute;
  left: -100vw;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.form-privacy {
  flex: 1 1 16rem;
  color: var(--text-soft);
  font-size: var(--step-small);
}

.form-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bg-raised);
  color: var(--text);
}

.form-note--error {
  border-color: var(--error);
  background: var(--error-wash);
  color: var(--error);
  font-weight: 600;
}

.form-note--error a {
  color: inherit;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: var(--step-small);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding-block: 2.5rem 3rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__brand svg {
  width: 8.25rem;
  height: auto;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-footer__legal strong {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
}

.site-footer__links a {
  padding-block: 0.375rem;
}
