/* Ace Technology — premium editorial design system */

:root {
  --ink-1000: #05070b;
  --ink-950: #080b11;
  --ink-900: #0b1018;
  --navy-850: #0e1622;
  --navy-800: #121d2b;
  --surface: #111a27;
  --surface-elevated: #172232;

  --text-primary: #f7f8fb;
  --text-secondary: #b4bfce;
  --text-muted: #8794a6;

  --amber-300: #ffd18a;
  --amber-400: #ffad4d;
  --amber-500: #f08a27;
  --amber-600: #d86b0d;
  --amber-700: #ad4d06;

  --steel-300: #9ab5ca;
  --steel-500: #6688a3;

  --warm-surface: #f2eee6;
  --warm-surface-2: #e8e1d6;
  --warm-text: #111722;
  --warm-muted: #586270;

  --line-dark: rgba(190, 207, 229, 0.12);
  --line-light: rgba(13, 21, 32, 0.13);

  --accent-gradient: linear-gradient(
    135deg,
    #ffd18a 0%,
    #ffad4d 25%,
    #f08a27 58%,
    #c85a08 100%
  );

  /* Compatibility aliases */
  --bg: var(--ink-950);
  --bg-elevated: var(--navy-850);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --primary: var(--amber-500);
  --primary-hover: var(--amber-400);
  --border: var(--line-dark);
  --border-strong: rgba(190, 207, 229, 0.18);

  --radius: 12px;
  --radius-lg: 24px;
  --site-gutter: clamp(1.15rem, 3.5vw, 3rem);
  --site-max: 75rem;
  --header-height: 4.75rem;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(240, 138, 39, 0.4);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --prose: 40rem;
  --ambient-bg:
    radial-gradient(ellipse at 12% 8%, rgba(240, 138, 39, 0.09), transparent 32%),
    radial-gradient(ellipse at 88% 28%, rgba(102, 136, 163, 0.1), transparent 38%),
    var(--ink-950);
  --surface-premium:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--surface);
  --surface-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 20px 60px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--ambient-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--amber-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-400);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--accent-gradient);
  color: #150b02;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - (var(--site-gutter) * 2), var(--site-max));
  margin-inline: auto;
  max-width: 100%;
}

/* ——— Header / Nav ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 17, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.92);
  border-bottom-color: var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-height);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.main-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-height);
  padding: 1rem var(--site-gutter) 1.35rem;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
}

.main-nav.is-open {
  display: flex;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 0.35rem;
  font-weight: 500;
  font-size: 0.98rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.nav-link:hover {
  color: var(--text-primary);
  background: transparent;
}

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--amber-500);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.header-actions .nav-cta {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--text-primary);
}

.lang-switch__sep {
  color: var(--text-muted);
  opacity: 0.55;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 0;
    margin-left: 2rem;
    gap: 0.35rem;
    background: transparent;
    border: 0;
  }

  .nav-link {
    padding: 0.5rem 0.85rem;
  }

  .nav-link[aria-current="page"]::after {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
  }

  .header-actions .nav-cta {
    display: inline-flex;
  }

  .nav-cta--mobile {
    display: none !important;
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #150b02;
  border: 1px solid rgba(255, 209, 138, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(216, 107, 13, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  color: #150b02;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 22px rgba(216, 107, 13, 0.22),
    0 2px 5px rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(154, 181, 202, 0.35);
}

.btn-secondary:hover {
  border-color: var(--steel-300);
  background: rgba(154, 181, 202, 0.08);
  color: var(--text-primary);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-text::after {
  content: "→";
  color: var(--steel-300);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ——— Sections ——— */

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--ambient {
  background: var(--ambient-bg);
}

.section--navy {
  background: var(--navy-850);
  border-block: 1px solid var(--line-dark);
}

.section--surface {
  background: var(--navy-850);
  border-block: 1px solid var(--line-dark);
}

.section--warm {
  background: var(--warm-surface);
  color: var(--warm-text);
  border-block: 1px solid var(--line-light);
}

.section--warm .eyebrow {
  color: var(--amber-600);
}

.section--warm .section-title,
.section--warm h2,
.section--warm h3 {
  color: var(--warm-text);
}

.section--warm .section-lead,
.section--warm p,
.section--warm .benefit-item p,
.section--warm .timeline p,
.section--warm .values-list p {
  color: var(--warm-muted);
}

.section--warm .benefit-num,
.section--warm .values-list li::before,
.section--warm .timeline li::after {
  color: var(--amber-600);
}

.section--warm .benefit-item,
.section--warm .values-list li,
.section--warm .timeline li {
  border-color: var(--line-light);
}

.section--warm .timeline li::before {
  background: var(--amber-500);
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--amber-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title,
h2.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  width: 100%;
  max-width: min(100%, 26ch);
  text-wrap: balance;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
}

.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--ambient-bg);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.21rem, 4.25vw, 3.74rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  width: 100%;
  max-width: min(100%, 20ch);
  text-wrap: balance;
}

.page-hero .lead {
  margin: 0;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
  font-size: 1.15rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ——— Media treatments ——— */

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-800);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hero {
  aspect-ratio: 16 / 10;
}

.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 17, 0.22), transparent 42%);
  pointer-events: none;
}

.media-full {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
}

.media-split {
  aspect-ratio: 5 / 4;
  max-height: 520px;
}

@media (min-width: 900px) {
  .media-split {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

/* ——— Home hero ——— */

.hero-editorial {
  padding: clamp(3.25rem, 7vw, 5.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ambient-bg);
}

.hero-editorial__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-editorial__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4.25rem;
  }
}

.hero-editorial h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.72rem, 5.1vw, 4.93rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  width: 100%;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-editorial__lead {
  margin: 0 0 2rem;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.35vw, 1.175rem);
  line-height: 1.65;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  background: var(--navy-800);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 17, 0.2), transparent 40%);
  pointer-events: none;
}

/* ——— Trust strip ——— */

.trust-strip {
  padding: 1.35rem 0 2.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.trust-strip__list li {
  display: inline-flex;
  align-items: center;
}

.trust-strip__list li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95rem;
  margin: 0 1.1rem;
  background: var(--line-dark);
}

@media (max-width: 640px) {
  .trust-strip__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .trust-strip__list li:not(:last-child)::after {
    display: none;
  }
}

/* ——— Story / full-bleed editorial ——— */

.story-block {
  max-width: min(100%, 60rem);
}

.story-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  width: 100%;
  max-width: min(100%, 26ch);
  text-wrap: balance;
}

.story-block p {
  margin: 0;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.media-band {
  padding: 0 0 var(--section-y);
}

.media-band .container {
  padding: 0;
}

/* ——— Benefits ——— */

.benefit-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.benefit-item {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 1.85rem 0;
  border-top: 1px solid var(--line-dark);
}

.benefit-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 720px) {
  .benefit-item {
    grid-template-columns: 5.5rem 1fr;
    align-items: baseline;
  }
}

.benefit-num {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber-500);
}

.benefit-item h3 {
  margin: 0 0 0.4rem;
}

.benefit-item p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 40rem;
}

/* ——— Service overview ——— */

.service-overview {
  display: grid;
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 800px) {
  .service-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .service-overview__item:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid var(--line-dark);
  }

  .service-overview__item:nth-child(even) {
    padding-left: 2rem;
  }
}

.service-overview__item {
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.service-overview__item h3 {
  margin: 0 0 0.65rem;
}

.service-overview__item h3 a {
  color: inherit;
  text-decoration: none;
}

.service-overview__item h3 a:hover {
  color: var(--amber-400);
}

.service-overview__item p {
  margin: 0;
  color: var(--text-secondary);
}

/* ——— Timeline ——— */

.timeline {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

.timeline li {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 1px solid var(--line-dark);
}

@media (min-width: 900px) {
  .timeline li {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-top: 1.5rem;
  }

  .timeline li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber-500);
  }
}

.timeline li::after {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.65rem;
  color: var(--amber-500);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.timeline p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ——— Expertise / CTA ——— */

.expertise-block {
  max-width: 46rem;
}

.cta-band {
  padding: clamp(2.75rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--surface-premium);
  border: 1px solid var(--line-dark);
  box-shadow: var(--surface-shadow);
  text-align: left;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
  width: 100%;
  max-width: min(100%, 26ch);
  text-wrap: balance;
}

.cta-band p {
  margin: 0 0 1.5rem;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
}

/* ——— Intro / split ——— */

.intro-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .intro-split--reverse {
    direction: rtl;
  }

  .intro-split--reverse > * {
    direction: ltr;
  }

  .intro-split--media-wide {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .intro-split--text-wide {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.intro-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-800);
}

.intro-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Service rows ——— */

.service-row {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
  border-top: 1px solid var(--line-dark);
}

.service-row:last-of-type {
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 800px) {
  .service-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .service-row--wide .service-row__body {
    max-width: 48rem;
  }

  .service-row--offset .service-row__body {
    max-width: 40rem;
    margin-left: auto;
  }
}

.service-row__num {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber-500);
  line-height: 1;
}

.service-row h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
  width: 100%;
  text-wrap: balance;
}

.service-row__lead {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

.service-row ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.service-row li + li {
  margin-top: 0.4rem;
}

.service-feature {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line-dark);
}

.service-feature__grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .service-feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .service-feature--flip .service-feature__grid {
    direction: rtl;
  }

  .service-feature--flip .service-feature__grid > * {
    direction: ltr;
  }
}

.service-feature__copy .service-row__num {
  margin-bottom: 1rem;
}

.service-feature__copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  letter-spacing: -0.03em;
}

.service-feature__copy .service-row__lead {
  margin-bottom: 1.35rem;
}

.service-feature__copy ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.service-feature__copy li + li {
  margin-top: 0.4rem;
}

.service-feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--navy-800);
}

.service-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— About ——— */

.prose-blocks {
  display: grid;
  gap: 2.75rem;
  margin-top: 0.5rem;
  max-width: none;
  width: 100%;
}

.prose-blocks article {
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.prose-blocks article:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose-blocks article h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  width: 100%;
  max-width: none;
  white-space: normal;
  text-wrap: balance;
}

#values-title.section-title {
  width: 100%;
  max-width: none;
  white-space: normal;
  text-wrap: balance;
}

.prose-blocks article p {
  margin: 0;
  max-width: min(100%, 70ch);
  color: var(--text-secondary);
}

@media (min-width: 960px) {
  .prose-blocks article h2,
  #values-title.section-title {
    width: 100%;
    max-width: none;
    max-inline-size: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.values-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: value;
}

.values-list li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 0.5rem;
}

.values-list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 700px) {
  .values-list li {
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.values-list li::before {
  counter-increment: value;
  content: "0" counter(value);
  color: var(--amber-500);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.values-list h3 {
  margin: 0 0 0.35rem;
}

.values-list p {
  margin: 0;
  color: var(--text-secondary);
}

.highlight-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2.25rem, 4vw, 3.25rem);
  background: var(--surface-premium);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  box-shadow: var(--surface-shadow);
  max-width: none;
  width: 100%;
}

.highlight-panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  letter-spacing: -0.03em;
  width: 100%;
  max-width: none;
  white-space: normal;
  text-wrap: balance;
}

.highlight-panel p {
  margin: 0;
  max-width: min(100%, 80ch);
  color: var(--text-secondary);
}

.highlight-panel p + p {
  margin-top: 0.9rem;
}

@media (min-width: 960px) {
  .highlight-panel h2 {
    white-space: nowrap;
    text-wrap: nowrap;
    max-width: none;
    max-inline-size: none;
  }
}

/* ——— Contact ——— */

.contact-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-aside h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.contact-aside p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.contact-aside dl {
  margin: 0 0 1.75rem;
}

.contact-aside dt {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-aside dd {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
}

.section--warm .contact-aside p,
.section--warm .contact-aside dt {
  color: var(--warm-muted);
}

.section--warm .contact-aside h2,
.section--warm .contact-aside dd {
  color: var(--warm-text);
}

.section--warm .contact-aside a {
  color: var(--amber-700);
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 40px rgba(17, 23, 34, 0.08);
}

.section--warm .contact-form {
  background: #faf7f1;
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-text);
}

.form-field .optional {
  font-weight: 500;
  color: var(--warm-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: #fff;
  color: var(--warm-text);
  font: inherit;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(240, 138, 39, 0.22);
}

.checkbox-field {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.35rem 0;
}

.checkbox-field input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--amber-500);
}

.checkbox-field label {
  font-size: 0.92rem;
  color: var(--warm-muted);
  line-height: 1.45;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ——— Legal / utility ——— */

.legal-prose {
  max-width: 48rem;
}

.legal-prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-secondary);
}

.thank-you,
.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.thank-you h1,
.error-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
}

.thank-you p,
.error-page p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-secondary);
}

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  padding: 3.5rem 0 2rem;
  background: var(--ink-1000);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--text-primary);
}

.footer-text {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 0.28rem 0;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links .footer-cookie {
  display: inline-block;
  padding: 0.28rem 0;
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--steel-300);
}

.footer-cookie {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.footer-cookie:hover {
  color: var(--steel-300);
}

.oib {
  font-variant-numeric: tabular-nums;
}

/* ——— Cookie banner ——— */

.cookie-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  right: auto;
  z-index: 200;
  width: min(340px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.97);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.cookie-banner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.cookie-banner__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.cookie-banner__desc {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.cookie-banner__desc a {
  font-size: inherit;
  color: var(--steel-300);
}

.cookie-panel[hidden] {
  display: none !important;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn:hover {
  border-color: rgba(190, 207, 229, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.cookie-btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--steel-300);
  min-height: 44px;
  padding-inline: 8px;
}

.cookie-btn--text:hover {
  color: var(--text-primary);
  background: transparent;
  border-color: transparent;
}

.cookie-setting {
  margin: 0 0 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-dark);
}

.cookie-setting:first-child {
  border-top: 0;
  padding-top: 0;
}

.cookie-setting__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-setting__label {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-primary);
}

.cookie-setting__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-switch input:disabled {
  cursor: not-allowed;
}

.cookie-switch__ui {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-dark);
  transition: background 0.2s var(--ease);
}

.cookie-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2f4f7;
  transition: transform 0.2s var(--ease);
}

.cookie-switch input:checked + .cookie-switch__ui {
  background: rgba(240, 138, 39, 0.35);
  border-color: rgba(240, 138, 39, 0.55);
}

.cookie-switch input:checked + .cookie-switch__ui::after {
  transform: translateX(18px);
}

.cookie-switch input:focus-visible + .cookie-switch__ui {
  box-shadow: var(--focus);
}

.cookie-switch input:disabled + .cookie-switch__ui {
  opacity: 0.7;
}

.cookie-switch__state {
  display: block;
  margin-top: 0.35rem;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-secondary);
}

.legal-table th {
  color: var(--text-primary);
  font-weight: 650;
  background: rgba(255, 255, 255, 0.03);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.section--warm .legal-table-wrap {
  border-color: var(--line-light);
}

.section--warm .legal-table th,
.section--warm .legal-table td {
  border-color: var(--line-light);
  color: var(--warm-muted);
}

.section--warm .legal-table th {
  color: var(--warm-text);
  background: rgba(17, 23, 34, 0.04);
}

.form-privacy-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--warm-muted);
}

section[id],
article[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.faq-list {
  margin-top: 2.5rem;
  max-width: 46rem;
}

.faq-item {
  border-top: 1px solid var(--line-dark);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--amber-500);
  font-weight: 500;
  line-height: 1.2;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

.section--warm .faq-item {
  border-color: var(--line-light);
}

.section--warm .faq-item summary {
  color: var(--warm-text);
}

.section--warm .faq-item p {
  color: var(--warm-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
