/* ==========================================================================
   CENTURION GROUP — styles
   ========================================================================== */

:root {
  --wall: #e8dccb;
  --wall-light: #f4eee4;
  --ink: #2a2119;
  --ink-soft: #5c4d3e;
  --gold: #d1ae76;
  --gold-deep: #8f6a3a;
  --gold-line: rgba(143, 106, 58, 0.35);
  --paper: #f8f3eb;
  --error: #9b2f1f;

  --display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --text: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

/* ---------- Language switcher ---------- */
.lang { display: flex; gap: 4px; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; }
.lang a {
  text-decoration: none;
  padding: 6px 8px 5px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); border-bottom-color: var(--gold-deep); }
.page-home .lang {
  position: absolute;
  z-index: 3;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: clamp(14px, 2.4vw, 36px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246, 239, 228, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.5);
}

/* ==========================================================================
   HOMEPAGE — reproduces the brand board 1:1.
   The hero photo is 1536×496 px; every measurement below is taken from it.
   The box is always at least as tall as the photo's ratio, so the photo
   scales by height and `cqh` units stay locked to it.
   ========================================================================== */
.hero {
  position: relative;
  height: max(32.29vw, min(300px, 78vw));
  container-type: size;
  overflow: hidden;
  background: #e6d9c6;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.hero__title {
  position: absolute;
  left: 50%;
  top: 68.6cqh;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.hero__name {
  display: block;
  font-size: 15.2cqh;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-right: -0.13em;
  color: #1a120c;
  text-shadow:
    0 1px 0 rgba(255, 250, 240, 0.55),
    0.3cqh 0.5cqh 0.5cqh rgba(40, 25, 10, 0.42),
    0.6cqh 1cqh 1.6cqh rgba(58, 38, 18, 0.25);
}
.hero__group {
  display: block;
  margin-top: 1.2cqh;
  font-size: 7cqh;
  font-weight: 600;
  letter-spacing: 0.56em;
  margin-right: -0.56em;
  color: #2e2219;
  text-shadow:
    0 1px 0 rgba(255, 250, 240, 0.5),
    0.2cqh 0.35cqh 0.4cqh rgba(40, 25, 10, 0.38);
}
.hero__rule {
  position: absolute;
  left: 50%;
  top: 94.2cqh;
  width: 20.8cqh;
  height: max(1px, 0.32cqh);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7c5a34, #b68a53 50%, #7c5a34);
  box-shadow: 0 1px 1px rgba(255, 250, 240, 0.5);
}

/* ---------- Floor + cards ----------
   On wide screens the floor is the original photo band, locked to the same
   scale as the hero so everything lines up exactly like the brand board. */
.stage {
  position: relative;
  background:
    linear-gradient(118deg,
      transparent 6%, rgba(255, 245, 228, 0.18) 12%, transparent 19%,
      transparent 36%, rgba(255, 245, 228, 0.15) 44%, transparent 52%,
      transparent 64%, rgba(255, 245, 228, 0.14) 72%, transparent 80%),
    linear-gradient(180deg, #e2d5c1 0%, #d9c9b2 48%, #cdbba1 49%, #e4d9c9 64%, #eee6da 100%);
}
@media (min-width: 1100px) {
  /* The whole board (wall 32.29% + floor 34.375% of its width) is scaled down
     until it fits the screen height, so the cards are visible without scrolling.
     Nothing moves: only the size of the board changes. */
  .page-home main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    /* One shadow around the whole board: the wall and the floor are two
       elements, and drop-shadow follows their combined shape. */
    filter: drop-shadow(0 42px 80px rgba(40, 27, 12, 0.55)) drop-shadow(0 8px 20px rgba(40, 27, 12, 0.34));
  }
  .page-home .hero,
  .page-home .stage {
    width: var(--board-w);
    margin-inline: auto;
  }
  .page-home .hero { height: calc(var(--board-w) * 0.3229); }
  .stage {
    height: calc(var(--board-w) * 0.34375);   /* 528 px of the 1536 px board */
    padding-top: calc(var(--board-w) * 0.0033);
    background: url("/assets/img/stage.jpg") center top / 100% 100% no-repeat, #d8c9b3;
  }
  .page-home .cards {
    --card-w: calc(var(--board-w) * 0.178);
    --gap: calc(var(--board-w) * 0.01156);
  }
  .page-home .site-footer__line { width: calc(var(--board-w) * 0.0945); }
  .page-home .site-footer__url { font-size: clamp(11px, calc(var(--board-w) * 0.0102), 24px); }
}

.cards {
  --card-w: 17.8vw;
  --gap: 1.156vw;
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--gap);
}

/* A card: photo + real text on top, sized with container units */
.card {
  width: var(--card-w);
  flex: none;
  container-type: inline-size;
}
.card__link {
  position: relative;
  display: block;
  aspect-ratio: 274 / 388;
  border-radius: 4.6cqw;
  overflow: hidden;
  text-decoration: none;
  color: #f7f0e4;
  box-shadow:
    0 0 0 1px rgba(255, 244, 222, 0.45),
    0 1.2cqw 2.4cqw rgba(60, 40, 20, 0.28),
    0 8cqw 10cqw -6cqw rgba(60, 40, 20, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__name,
.card__sub {
  position: absolute;
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0.3cqw 0.8cqw rgba(20, 12, 5, 0.45);
}
.card__name {
  top: 51.1%;
  font-size: 9cqw;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.card__sub {
  top: 58.5%;
  width: 66%;
  font-size: 4.5cqw;
  line-height: 1.38;
  letter-spacing: 0.3em;
  color: #f4eee4;
}
.card__btn {
  position: absolute;
  left: 50%;
  top: 85.4%;
  width: 18.4cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: max(1px, 0.5cqw) solid rgba(234, 208, 160, 0.95);
  border-radius: 50%;
  color: #f3ead8;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.card__btn svg { width: 46%; height: 46%; }
.card--consulting .card__link { color: #fdfaf4; }
.card--consulting .card__sub { color: #f4ece0; }
.card--consulting .card__name,
.card--consulting .card__sub { text-shadow: 0 0.3cqw 0.6cqw rgba(70, 50, 30, 0.55), 0 0 2.4cqw rgba(90, 65, 40, 0.45); }
.card--consulting .card__btn { border-color: #7d5a2c; border-width: max(1px, 0.6cqw); color: #6e4f25; }

.card__link:hover,
.card__link:focus-visible {
  transform: translateY(-1.6cqw);
  box-shadow:
    0 0 0 1px rgba(226, 190, 128, 0.95),
    0 1.6cqw 3cqw rgba(60, 40, 20, 0.3),
    0 11cqw 12cqw -6cqw rgba(60, 40, 20, 0.5);
}
.card__link:hover .card__btn,
.card__link:focus-visible .card__btn { background: rgba(221, 186, 128, 0.92); color: #20170f; }
.card__link:focus-visible { outline: 2px solid #b8894c; outline-offset: 4px; }

/* ---------- Footer with the web address ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 3.6vw;
  padding: 4.25vw 20px calc(3.35vw + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1100px) {
  .page-home .site-footer { position: absolute; left: 0; right: 0; top: 89.2%; transform: translateY(-50%); padding: 0; }
}
.site-footer__line { width: 9.45vw; height: 1px; background: #6f573c; opacity: 0.75; }
.site-footer__url {
  font-family: var(--display);
  font-size: clamp(11px, 1.02vw, 24px);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-decoration: none;
  text-transform: uppercase;
  color: #3a2d22;
}
.site-footer__url:hover { color: var(--gold-deep); }

/* ---------- Homepage: tablet ---------- */
@media (max-width: 1099px) {
  .cards { --card-w: 27vw; --gap: 2.6vw; flex-wrap: wrap; row-gap: 3.2vw; padding: 2.4vw 4vw 0; }
  .site-footer { padding-top: 7vw; padding-bottom: 6vw; }
  .site-footer__line { width: 12vw; }
  .site-footer__url { font-size: 13px; }
}

/* ---------- Homepage: phone — cards become a swipeable row ---------- */
@media (max-width: 699px) {
  .cards {
    --card-w: 60vw;
    --gap: 4vw;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6vw 20vw 8vw;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
  .site-footer { padding-top: 4vw; padding-bottom: calc(10vw + env(safe-area-inset-bottom, 0px)); }
  .site-footer__line { width: 10vw; }
  .site-footer__url { font-size: 11px; letter-spacing: 0.22em; }
}

/* ==========================================================================
   COMPANY PAGES
   ========================================================================== */
.page-home {
  /* Warm, slightly darker surround so the board reads as a lit panel on a wall. */
  background:
    radial-gradient(120% 95% at 50% 42%, #e8ddcb 0%, #d5c5ab 52%, #bead90 100%);
  /* 1.5 × the height, because the board is 1536 × 1024 px (0.6667 of its width). */
  --board-w: min(100vw, 150dvh);
}
.page-service {
  background: linear-gradient(180deg, #efe7da 0%, var(--wall) 100%);
  min-height: 100vh;
  /* Text that sits on the cream background needs its own, darker colours:
     the theme colours are made for the dark hero and contact blocks. */
  --on-paper: #463a2d;
  --on-paper-gold: #7a5a30;
}

[data-theme="facilities"]          { --th-bg: #1e2821; --th-bg2: #28362c; --th-ink: #f2ece1; --th-mute: #c9c4b6; --th-gold: #d4b27c; }
[data-theme="construct"]           { --th-bg: #5d5042; --th-bg2: #6d5f4f; --th-ink: #f6f0e6; --th-mute: #e0d5c4; --th-gold: #e2c38e; }
[data-theme="project-management"]  { --th-bg: #17223a; --th-bg2: #22304f; --th-ink: #f1ece3; --th-mute: #c3c8d3; --th-gold: #d4b27c; }
[data-theme="capital"]             { --th-bg: #241c16; --th-bg2: #33281f; --th-ink: #f3eadc; --th-mute: #cbbca6; --th-gold: #d4b27c; }
[data-theme="consulting"]          { --th-bg: #e2d9cb; --th-bg2: #f1ebe1; --th-ink: #2a2119; --th-mute: #574a3c; --th-gold: #8f6a3a; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) clamp(18px, 5vw, 64px) 12px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.topbar__brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}

/* Hero */
.svc-hero {
  background:
    linear-gradient(118deg, transparent 30%, rgba(255, 245, 225, 0.07) 42%, transparent 55%),
    radial-gradient(120% 90% at 85% 10%, var(--th-bg2), var(--th-bg) 70%);
  color: var(--th-ink);
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 64px);
}
.svc-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.svc-hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.05em;
}
.svc-hero__name span {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.4em;
  letter-spacing: 0.34em;
  color: var(--th-gold);
}
.svc-hero__title {
  margin-top: 26px;
  font-style: italic;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.3;
  max-width: 30ch;
}
.svc-hero__intro { margin-top: 20px; max-width: 58ch; color: var(--th-mute); }
.svc-hero__visual img {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  aspect-ratio: 268 / 382;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(226, 196, 144, 0.5), 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--th-ink);
}
.btn-circle__ring {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--th-gold);
  border-radius: 50%;
  color: var(--th-gold);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-circle__ring svg { width: 22px; height: 22px; transform: rotate(90deg); }
.btn-circle:hover .btn-circle__ring { background: var(--th-gold); color: var(--th-bg); }

/* Sections */
.svc-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px) 0;
}
.svc-h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: 0.07em;
  line-height: 1.25;
}
.svc-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 18px;
  background: currentColor;
  opacity: 0.45;
}
/* Chapters of the story: heading, running text and lists */
.svc-hero__eyebrow {
  margin-bottom: 0.9em;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--th-gold);
}
.svc-block + .svc-block { margin-top: clamp(40px, 5vw, 66px); }
.svc-block p {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--on-paper);
  font-size: 1.12rem;
  line-height: 1.75;
}
.svc-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 44px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.svc-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
  color: var(--ink);
  font-size: 1.05rem;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--on-paper-gold);
}

/* Coming soon */
.coming-soon {
  border: 1px solid var(--on-paper-gold);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  background: color-mix(in srgb, var(--on-paper-gold) 8%, transparent);
}
.coming-soon__label {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.4em;
  margin-right: -0.4em;
  text-transform: uppercase;
  color: var(--on-paper-gold);
}
.coming-soon p { margin-top: 20px; max-width: 60ch; margin-inline: auto; color: var(--on-paper); line-height: 1.7; }
.coming-soon__lines {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-style: italic;
  color: var(--ink);
}

/* Closing claim */
.svc-section--claim { text-align: center; }
.svc-claim {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  line-height: 1.5;
  color: var(--on-paper-gold);
}
.svc-claim__text {
  margin: 22px auto 0;
  max-width: 56ch;
  font-style: italic;
  color: var(--on-paper);
  line-height: 1.7;
}

.offerings,
.process {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 40px 48px;
}
.offerings { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.process { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.offering { border-top: 1px solid var(--gold-line); padding-top: 20px; }
.offering h3,
.step h3 { font-family: var(--text); font-weight: 600; font-size: 1.28rem; line-height: 1.3; }
.offering p,
.step p { margin-top: 8px; color: var(--ink-soft); max-width: 42ch; }
.step__num {
  display: block;
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.svc-note { margin-top: 44px; font-style: italic; font-size: 1rem; color: var(--ink-soft); max-width: 70ch; }

/* Contact */
.svc-contact {
  margin-top: clamp(64px, 9vw, 128px);
  background: radial-gradient(100% 120% at 0% 0%, var(--th-bg2), var(--th-bg) 65%);
  color: var(--th-ink);
  padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 64px);
}
.svc-contact__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.svc-contact__intro p { margin-top: 22px; color: var(--th-mute); max-width: 40ch; }

.form,
.form-done {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 44px);
  box-shadow: 0 0 0 1px rgba(226, 196, 144, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; position: relative; }
.form[hidden], .form-done[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 1.02rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.08rem;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid #cbbba2;
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(176, 138, 82, 0.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 0.98rem; color: var(--error); }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--gold-deep); }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.btn-solid {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #f4ead9;
  background: #2a2119;
  border: 1px solid #a8824b;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-solid:hover { background: #3f3126; }
.btn-solid:disabled { opacity: 0.65; cursor: progress; }
.form__status { color: var(--error); }
.form__status:empty { display: none; }

.form-done { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: clamp(40px, 6vw, 72px); }
.form-done:focus { outline: none; }
.form-done__ring {
  width: 60px; height: 60px; display: grid; place-items: center;
  border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold-deep);
}
.form-done__ring svg { width: 26px; height: 26px; }
.form-done p { font-size: 1.3rem; max-width: 34ch; }
.btn-link {
  font: inherit; color: var(--gold-deep); background: none; border: 0; padding: 4px;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

/* Other companies */
.svc-others { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) 0; }
.cards--mini { --card-w: clamp(150px, 19vw, 210px); --gap: 22px; flex-wrap: wrap; justify-content: flex-start; margin-top: 40px; padding: 0; overflow: visible; }

.notfound { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) 0; }
.notfound h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.notfound p { margin-top: 14px; color: var(--ink-soft); }

.site-footer--service { padding: clamp(64px, 8vw, 110px) 20px calc(40px + env(safe-area-inset-bottom, 0px)); gap: 0 32px; }
.site-footer--service .site-footer__line { width: 90px; }
.site-footer--service .site-footer__url { font-size: 12px; }
.site-footer__legal { flex-basis: 100%; text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .svc-hero__inner,
  .svc-contact__inner { grid-template-columns: 1fr; }
  .svc-hero__visual { order: -1; }
  .svc-hero__visual img { max-width: 130px; margin: 0; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .cards--mini { --card-w: calc(50% - 11px); padding: 0; overflow: visible; flex-wrap: wrap; }
  .topbar__brand span { font-size: 0.8rem; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   LEGAL PAGES + LINKS
   ========================================================================== */
.legal-links {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 8px;
  font-size: 0.95rem;
}
.legal-links a { color: var(--ink-soft); text-underline-offset: 3px; }
.legal-links a:hover,
.legal-links a[aria-current] { color: var(--ink); }
.site-footer__credit { flex-basis: 100%; text-align: center; margin: 12px 0 0; font-size: 0.65rem; letter-spacing: 0.04em; color: var(--ink-soft); opacity: 0.6; }
.site-footer__credit a { color: inherit; text-decoration: none; }
.site-footer__credit a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Homepage: small links on the floor, under the web address */
.legal-links--home { position: relative; z-index: 1; margin: 0; padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; }
.legal-links--home a { color: #6a5744; text-decoration: none; }
.legal-links--home a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 1100px) {
  .legal-links--home { position: absolute; left: 0; right: 0; top: 96.2%; transform: translateY(-50%); padding: 0; font-size: clamp(11px, 0.72vw, 15px); }
}
@media (max-width: 1099px) {
  .page-home .site-footer { padding-bottom: 2.5vw; }
}

.field--check label a { color: var(--gold-deep); text-underline-offset: 3px; }

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 40px) 0;
}
.legal-doc h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.legal-doc h1::after { content: ""; display: block; width: 56px; height: 1px; margin-top: 20px; background: var(--gold-deep); opacity: 0.6; }
.legal-doc__date { margin-top: 18px; color: var(--ink-soft); font-style: italic; }
.legal-doc section { margin-top: clamp(36px, 5vw, 52px); }
.legal-doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.legal-doc p { margin-top: 12px; max-width: 68ch; }
.legal-doc h2 + p { margin-top: 0; }
.legal-doc ul { margin: 12px 0 0; padding-left: 1.25em; max-width: 68ch; }
.legal-doc li { margin-top: 6px; padding-left: 0.3em; }
.legal-doc li::marker { color: var(--gold-deep); }
.legal-doc a { color: var(--gold-deep); text-underline-offset: 3px; }
.legal-doc__back { margin-top: 56px !important; }
mark.todo { background: #f6dd8f; color: var(--ink); padding: 0 3px; border-radius: 3px; }
