/* ==========================================================================
   Xfalcon Enterprises — site styles
   tokens → base → layout → components → sections
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour */
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --white: #ffffff;
  --ink: #121212;
  --ink-2: #3b3a37;
  --muted: #6f6b64;
  --faint: #a29d94;
  --line: #d9d5cc;

  --accent: #f2541b;       /* blocks, highlights */
  --accent-ink: #c73d0a;   /* accent used as text */

  --ok: #1d6b45;
  --ok-bg: #e5f2ea;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;

  /* Type */
  --font: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space & shape */
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3.5rem);
  --header-h: 76px;
  --radius: 8px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 1.1rem + 7.4vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

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

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

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

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

.lead {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--accent-ink);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  width: 158px;
  height: auto;
  aspect-ratio: 100 / 27.86;
  fill: currentColor;
}

@media (max-width: 400px) {
  .brand__logo {
    width: 132px;
  }
}

/* ---------- Header (transparent, logo centred) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header:has(.nav.is-open) {
  background: rgba(243, 241, 236, 0.82);
  border-bottom-color: rgba(18, 18, 18, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.header-left {
  justify-self: start;
}

.site-header .brand {
  justify-self: center;
}

.header-right {
  justify-self: end;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__cta {
  display: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 10px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { top: 4px; transform: rotate(-45deg); }

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

  .header-cta {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-cta__label {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    height: calc(100vh - var(--header-h));
    background: var(--paper);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
  }

  .nav__link {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--accent-ink);
  }

  .nav__cta {
    display: block;
    margin-top: 1.5rem;
  }

  .nav__cta .btn {
    width: 100%;
    min-height: 56px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 1.5rem + 6vw, 7.5rem) clamp(4rem, 2rem + 6vw, 8rem);
}

.hero h1 {
  max-width: 11em;
}

.hero h1 > span {
  display: block;
}

/* the old way — struck out one by one (drawn per line, so wrapped lines work) */
.strike {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% 0.085em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation:
    strike 1s var(--ease) var(--d) forwards,
    fade-out 0.8s var(--ease) calc(var(--d) + 0.6s) forwards;
}

@keyframes strike {
  to { background-size: 100% 0.085em; }
}

@keyframes fade-out {
  to { color: var(--faint); }
}

/* the new way — highlighted */
.mark {
  display: inline !important;
  padding: 0 0.12em;
  margin-left: -0.12em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 82%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: mark 0.9s var(--ease) forwards;
  animation-delay: var(--md, 0.35s);
}

@keyframes mark {
  to { background-size: 100% 82%; }
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

@media (max-width: 760px) {
  .hero__foot {
    grid-template-columns: 1fr;
  }
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(3rem, 1.5rem + 5vw, 7rem) clamp(3rem, 1.5rem + 4vw, 6rem);
}

.page-hero h1 {
  max-width: 12em;
  font-size: clamp(2.75rem, 1.2rem + 6vw, 7rem);
}

.page-hero .lead {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

/* ---------- Services: split panels ---------- */
.split {
  display: flex;
  min-height: clamp(560px, 82vh, 780px);
}

.panel {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 1rem + 3.5vw, 5rem) clamp(1.5rem, 0.5rem + 3.5vw, 5rem);
  overflow: hidden;
  text-decoration: none;
  transition: flex-grow 0.7s var(--ease);
}

.panel--dark {
  background: var(--ink);
  color: var(--paper);
}

.panel--accent {
  background: var(--accent);
  color: var(--ink);
}

@media (hover: hover) and (min-width: 861px) {
  .split:hover .panel {
    flex-grow: 0.75;
  }

  .split .panel:hover,
  .split .panel:focus-visible {
    flex-grow: 1.35;
  }
}

.panel__tag {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.panel__title {
  max-width: 8.5em;
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 34rem;
}

.panel__list li {
  padding: 0.55rem 1.05rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.panel--dark .panel__list li {
  border-color: rgba(243, 241, 236, 0.3);
}

.panel--accent .panel__list li {
  border-color: rgba(18, 18, 18, 0.35);
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.panel__arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.panel__arrow svg {
  width: 24px;
  height: 24px;
  transition: transform 0.45s var(--ease);
}

.panel:hover .panel__arrow svg,
.panel:focus-visible .panel__arrow svg {
  transform: rotate(-45deg);
}

.panel--dark:hover .panel__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.panel--accent:hover .panel__arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.panel:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -6px;
}

.panel--dark:focus-visible {
  outline-color: var(--accent);
}

@media (max-width: 860px) {
  .split {
    flex-direction: column;
    min-height: 0;
  }

  .panel {
    min-height: 520px;
  }
}

/* ---------- Who we work with: ticker ---------- */
.ticker {
  padding-block: var(--section-y);
  overflow: hidden;
}

.ticker__label {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding-right: 0.35em;
  font-size: clamp(3.5rem, 1.4rem + 7.5vw, 9.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.ticker__group .o {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.ticker__group svg {
  width: 0.85em;
  height: auto;
  flex: none;
  aspect-ratio: 100 / 53.62;
  fill: var(--accent);
}

.ticker__note {
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--ink-2);
  text-align: center;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- How it works: note cards ---------- */
.notes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.notes-head p {
  font-size: 1.125rem;
  color: var(--muted);
}

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

.note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(320px, 28vw, 420px);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-radius: 22px;
  box-shadow: 0 24px 50px -30px rgba(18, 18, 18, 0.45);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.note:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 34px 60px -30px rgba(18, 18, 18, 0.5);
}

.note--paper { background: var(--white); color: var(--ink); }
.note--accent { background: var(--accent); color: var(--ink); }
.note--ink { background: var(--ink); color: var(--paper); }

.note__num {
  font-size: clamp(4rem, 2rem + 5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.note h3 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.note p {
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  opacity: 0.8;
}

/* two larger cards (about page) */
.notes--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}

.notes--two .note {
  justify-content: flex-start;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  min-height: clamp(300px, 26vw, 380px);
  padding: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
}

.note__label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.75;
}

.note .note__statement {
  max-width: 17em;
  margin-top: 0;
  opacity: 1;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

@media (max-width: 860px) {
  .notes,
  .notes--two {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .note {
    min-height: 260px;
    transform: rotate(calc(var(--r, 0deg) * 0.5));
  }
}

/* ---------- Prose (privacy) ---------- */
.prose {
  max-width: 44rem;
  padding-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-top: 1px solid var(--ink);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.prose a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--accent-ink);
}

.prose .prose__updated {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 1rem + 5vw, 7rem);
  align-items: start;
}

.contact-info h1 {
  font-size: clamp(3rem, 1.2rem + 6vw, 7rem);
}

.contact-info .lead {
  margin-top: 1.5rem;
}

.contact-info dl {
  margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
}

.contact-info dl div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.contact-info dt {
  color: var(--muted);
}

.contact-info dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-info dd a:hover {
  color: var(--accent-ink);
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(18, 18, 18, 0.25);
}

.form {
  display: grid;
  gap: 1.5rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

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

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color 0.2s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

/* service choice: pill buttons (radio group) */
.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice-group legend {
  margin-bottom: 0.85rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.choice span::before {
  content: "";
  width: 0;
  height: 14px;
  overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3L12 3.5' fill='none' stroke='%23f2541b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 14px;
  margin-right: -0.5rem;
  transition: width 0.25s var(--ease), margin 0.25s var(--ease);
}

.choice:hover span {
  border-color: var(--ink);
}

.choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.choice input:checked + span::before {
  width: 14px;
  margin-right: 0;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.choice-group[aria-invalid="true"] .choice span {
  border-color: var(--danger);
}

.choice-group .field__error {
  margin-top: 0.6rem;
}

.field__error {
  font-size: 0.875rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.form__note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form__note a {
  color: var(--ink);
  font-weight: 500;
}

.form__note a:hover {
  color: var(--accent-ink);
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-status[hidden] {
  display: none;
}

.form-status strong {
  display: block;
}

.form-status--success {
  background: var(--ok-bg);
  color: var(--ok);
}

.form-status--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(243, 241, 236, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 600px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .form .btn {
    width: 100%;
  }

  .form__note {
    width: 100%;
    text-align: center;
  }

  .contact-info dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  overflow: hidden;
  background: var(--ink);
  color: #b9b5ad;
  font-size: 1rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(4rem, 3rem + 3vw, 6rem);
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer .brand__logo {
  width: 170px;
}

.site-footer__about p {
  max-width: 20rem;
  margin-top: 1.5rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 6rem;
}

.footer-cols h2 {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d7971;
}

.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--paper);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* oversized logo that fades into the bottom edge */
.footer-word {
  width: 100%;
  height: auto;
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
  aspect-ratio: 100 / 27.86;
  fill: rgba(243, 241, 236, 0.09);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.25) 100%);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials .social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  border: 1.5px solid #3a3936;
  border-radius: 50%;
  color: var(--paper);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.socials .social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials .social:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.socials--light {
  margin-top: 1.5rem;
}

.socials--light .social {
  border-color: var(--line);
  color: var(--ink);
}

.socials--light .socials .social:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: -2rem;
  padding-block: 1.5rem;
  border-top: 1px solid #2c2b29;
  font-size: 0.9rem;
  color: #8d897f;
}

.site-footer__bottom p + p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  gap: 1.75rem;
}

@media (max-width: 760px) {
  .socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials .social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  border: 1.5px solid #3a3936;
  border-radius: 50%;
  color: var(--paper);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.socials .social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials .social:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.socials--light {
  margin-top: 1.5rem;
}

.socials--light .social {
  border-color: var(--line);
  color: var(--ink);
}

.socials--light .socials .social:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.site-footer__bottom {
    margin-top: 0;
  }
}

.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  align-content: center;
}

.not-found .actions {
  margin-top: 2.5rem;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ticker__group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    font-size: clamp(2.5rem, 1rem + 5vw, 6rem);
  }

  .ticker__group + .ticker__group {
    display: none;
  }
}
