/* ==========================================================================
   DaGoatedScale — main stylesheet
   --------------------------------------------------------------------------
   1. Fonts            9.  Services          17. Footer
   2. Design tokens    10. Benefits          18. Inner pages (legal, 404…)
   3. Base / reset     11. Industries        19. Scroll reveal
   4. Utilities        12. Process           20. Reduced motion & print
   5. Typography       13. Solutions         21. No-JavaScript fallback
   6. Buttons & tags   14. About
   7. Header & nav     15. FAQ
   8. Hero             16. Contact & form
   ========================================================================== */

/* 1. Fonts (self-hosted, Open Font License — see assets/fonts) ------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* 2. Design tokens ---------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg: #09090a;
  --bg-raised: #0e0e10;
  --charcoal: #131315;
  --surface: #17171a;
  --surface-2: #1d1d21;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #f4f4f3;
  --text-muted: #a9a9ae;
  --text-subtle: #8d8d94;

  /* Accents */
  --silver: #c9cdd3;
  --silver-bright: #eef0f2;
  --silver-deep: #8f959d;
  --silver-gradient: linear-gradient(100deg, #f6f6f5 0%, #c3c8cf 52%, #9399a2 100%);
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.4);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --header-h: 76px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.3s;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

/* :where() keeps this reset at zero specificity, so component styles win. */
:where(ul[class], ol[class]) {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(201, 205, 211, 0.28);
  color: #fff;
}

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

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 5. Typography ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--silver);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 169, 106, 0));
}

.display,
.section-title,
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 1.55rem + 5.4vw, 5.6rem);
  line-height: 1;
}

.section-title {
  font-size: clamp(2.35rem, 1.5rem + 3.2vw, 4rem);
  line-height: 1.04;
}

.page-title {
  font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.5rem);
  line-height: 1.02;
}

.display em,
.section-title em,
.page-title em,
.cta-title em {
  font-style: italic;
  color: transparent;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline-end: 0.06em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.7;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  transition: text-decoration-color var(--dur) var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--silver);
}

/* 6. Buttons & tags --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(180deg, #fbfbfa 0%, #dcdfe3 100%);
  color: #0a0a0b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px -12px rgba(220, 224, 230, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8eaed 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 36px -12px rgba(220, 224, 230, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-gold {
  border-color: var(--gold-soft);
  color: var(--gold);
}

.tag-gold::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* 7. Header & navigation ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}

/* The blurred background lives on a pseudo-element so it does not trap the
   fixed-position mobile menu inside the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

/* Official logo: the goat emblem and the DaGoatedScale lettering side by side.
   Both images keep their original proportions (height is set, width follows). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  border-radius: 8px;
  text-decoration: none;
}

.logo picture,
.footer-logo picture,
.about-logo picture {
  display: block;
}

.logo img {
  display: block;
  width: auto;
}

.logo-emblem {
  height: 40px;
}

.logo-wordmark {
  height: 17px;
}

@media (min-width: 640px) {
  .logo {
    gap: 0.7rem;
  }

  .logo-emblem {
    height: 48px;
  }

  .logo-wordmark {
    height: 22px;
  }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  order: 3;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle-bars {
  position: relative;
  background: transparent;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  transform: translateY(-4px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.nav-open .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.header-cta {
  display: none;
  order: 2;
}

/* Mobile menu: full-screen panel */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  overflow-y: auto;
  background:
    radial-gradient(70% 40% at 80% 0%, rgba(201, 205, 211, 0.08), transparent 70%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease), visibility 0s;
}

.nav-open .header-cta {
  visibility: hidden;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--text-subtle);
  border-right: 1px solid var(--text-subtle);
  transform: rotate(45deg);
}

/* Current page in the mobile menu */
.nav-list a[aria-current="page"] {
  color: var(--gold);
}

.nav-list a[aria-current="page"]::after {
  border-color: var(--gold);
}

.nav-panel-footer {
  display: grid;
  gap: 1rem;
  margin-top: auto;
}

.nav-panel-footer .btn {
  width: 100%;
}

.nav-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-contact a {
  text-decoration: none;
}

.nav-contact a:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1080px) {
  .nav-toggle,
  .nav-panel-footer {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    order: 1;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav-list a {
    position: relative;
    padding: 0.5rem 0.85rem;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 450;
    transition: color var(--dur) var(--ease);
  }

  .nav-list a::after {
    position: absolute;
    left: 50%;
    bottom: 0.1rem;
    width: 4px;
    height: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--text);
  }

  /* Current page: white text with a small gold dot beneath */
  .nav-list a[aria-current="page"]::after {
    border: 0;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .header-cta {
    margin-left: 1rem;
  }
}

/* 8. Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 9vw, 7rem)) 0 clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 55% at 78% 8%, rgba(214, 218, 224, 0.11), transparent 70%),
    radial-gradient(35% 40% at 5% 95%, rgba(200, 169, 106, 0.05), transparent 70%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 25%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 25%, #000 15%, transparent 72%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.hero-grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 5rem);
  align-items: center;
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

.hero .display {
  max-width: 15ch;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-points .icon {
  color: var(--silver);
  width: 1rem;
  height: 1rem;
}

@media (max-width: 479.98px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* Workflow illustration card */
.hero-visual {
  animation: rise 1s var(--ease) 0.3s both;
}

.flow-card {
  position: relative;
  max-width: 470px;
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #151518 0%, #0e0e10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(238, 240, 242, 0.35), rgba(238, 240, 242, 0) 35%, rgba(200, 169, 106, 0) 70%, rgba(200, 169, 106, 0.25));
  filter: blur(18px);
  opacity: 0.35;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.flow-dots {
  display: inline-flex;
  gap: 6px;
}

.flow-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.flow-title {
  margin-right: auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.flow-steps {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem;
}

/* Vertical connector + travelling light */
.flow-steps::before,
.flow-steps::after {
  content: "";
  position: absolute;
  left: calc(1.25rem + 1rem + 18px);
  width: 1px;
}

.flow-steps::before {
  top: 2.6rem;
  bottom: 2.6rem;
  background: linear-gradient(180deg, var(--line-3), var(--line));
}

.flow-steps::after {
  top: 2.6rem;
  height: 56px;
  margin-left: -1px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--silver-bright), transparent);
  box-shadow: 0 0 12px rgba(238, 240, 242, 0.6);
  animation: travel 4.8s var(--ease) infinite;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(23, 23, 26, 0.85);
  animation: step-glow 4.8s linear infinite;
}

.flow-step:nth-child(2) { animation-delay: 1.1s; }
.flow-step:nth-child(3) { animation-delay: 2.2s; }
.flow-step:nth-child(4) { animation-delay: 3.3s; }

.flow-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #121214;
  color: var(--silver);
}

.flow-icon .icon {
  width: 18px;
  height: 18px;
}

.flow-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.flow-text strong {
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.35;
}

.flow-text span {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
}

.flow-status {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201, 205, 211, 0.1);
  color: var(--silver-bright);
}

.flow-status .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.flow-foot {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 0.8rem;
  line-height: 1.5;
}

.flow-foot .icon {
  margin-top: 0.1rem;
  color: var(--gold);
  width: 1rem;
  height: 1rem;
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(100svh, 980px);
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .flow-card {
    margin-inline: auto 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The light travels down the connector line between the workflow steps. */
@keyframes travel {
  0% {
    top: 2.6rem;
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 2.6rem - 56px);
    opacity: 0;
  }
}

/* Each step glows briefly as the light passes it. */
@keyframes step-glow {
  0%,
  30%,
  100% {
    border-color: var(--line);
    background-color: rgba(23, 23, 26, 0.85);
  }
  8%,
  18% {
    border-color: var(--line-3);
    background-color: rgba(34, 34, 38, 0.95);
  }
}

/* Generic sections ---------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

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

.section-alt {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(201, 205, 211, 0.04), transparent 70%),
    var(--charcoal);
}

.section-head {
  display: grid;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-head .section-title {
  max-width: 16ch;
}

.section-intro {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
  }

  .section-intro {
    padding-bottom: 0.5rem;
  }
}

/* 9. Services --------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--charcoal);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.4s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.service-num {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(160deg, #1e1e22, #111113);
  color: var(--silver-bright);
}

.service-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.25;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.service-card > p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.service-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.service-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.service-list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 1px;
  background: var(--silver-deep);
  transform: translateY(-0.3em);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  align-self: flex-start;
}

.service-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease);
}

.service-link:hover .icon {
  transform: translateX(4px);
}

.service-link span:not(.visually-hidden) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.service-link:hover span:not(.visually-hidden) {
  background-size: 100% 1px;
}

@media (min-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 10. Benefits -------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  gap: 3.5rem;
}

.benefits-intro .section-title {
  max-width: 12ch;
}

.benefits-intro .section-intro {
  margin-top: 1.5rem;
}

.benefits-intro .btn {
  margin-top: 2.25rem;
}

.benefits-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--silver-bright);
}

.benefit-icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.35;
}

.benefit h3 {
  font-size: 1.25rem;
  margin-top: 0.6rem;
}

.benefit p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.benefits-note {
  margin-top: 2rem;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

@media (min-width: 1000px) {
  .benefits-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 6rem;
    align-items: start;
  }

  .benefits-intro {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
}

/* 11. Industries ------------------------------------------------------------ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.industry {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.75rem);
  background: var(--bg);
  transition: background-color 0.4s var(--ease);
}

.industry:hover {
  background: var(--bg-raised);
}

.industry-icon {
  color: var(--silver);
  margin-bottom: 0.75rem;
}

.industry-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
}

.industry h3 {
  font-size: 1.08rem;
}

.industry p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.industries-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.industries-note p {
  max-width: 44rem;
  color: var(--text-muted);
}

.industries-note strong {
  color: var(--text);
  font-weight: 550;
}

/* 12. Process --------------------------------------------------------------- */
.process-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.process-num {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.process-num::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.process-step h3 {
  margin-top: 2.25rem;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.05;
}

.process-step > p:not(.process-output) {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.process-output {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--text);
  font-size: 0.875rem;
}

.process-output span {
  display: block;
  margin-bottom: 0.3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 13. Solutions (illustrative portfolio) ----------------------------------- */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: rgba(200, 169, 106, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.notice .icon {
  margin-top: 0.15rem;
  color: var(--gold);
}

.notice strong {
  color: var(--text);
  font-weight: 600;
}

.solutions-grid {
  display: grid;
  gap: 1.5rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--charcoal);
}

.solution-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 0%, rgba(201, 205, 211, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    #0d0d0f;
}

.solution-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.solution-body .tag {
  align-self: flex-start;
}

.solution-body h3 {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.4rem + 0.9vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
}

.solution-scenario {
  margin-top: 1rem;
  color: var(--text-muted);
}

.solution-body h4 {
  margin-top: 1.75rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.solution-steps {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  counter-reset: sol;
  font-size: 0.93rem;
}

.solution-steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  counter-increment: sol;
}

.solution-steps li::before {
  content: counter(sol, decimal-leading-zero);
  color: var(--silver-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.95;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.solution-tags li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Call-to-action band (end of pages, and inline after the solutions) */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(201, 205, 211, 0.08), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(200, 169, 106, 0.05), transparent 70%),
    var(--bg-raised);
}

.cta-band > div:first-child {
  max-width: 40rem;
}

.cta-band .eyebrow {
  margin-bottom: 1rem;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.05;
  text-wrap: balance;
}

.cta-text {
  margin-top: 1rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-band-inline {
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-color: var(--line);
}

.cta-band-inline p {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.15;
  max-width: 32ch;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Equal-height illustrations so the text in each row lines up. */
  .solution-visual {
    height: 380px;
  }
}

/* Mock interfaces inside solution cards (decorative only) */
.mock {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #141417;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  font-size: 0.75rem;
  line-height: 1.4;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.mock-bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}

.mock-bar > b {
  margin-left: 0.5rem;
  font-weight: 400;
}

.mock-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
}

.mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #18181b;
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--silver);
}

.mock-avatar .icon {
  width: 14px;
  height: 14px;
}

.mock-lines {
  display: grid;
  min-width: 0;
}

.mock-lines > span:first-child {
  color: var(--text);
  font-weight: 550;
}

.mock-lines > span:last-child {
  overflow: hidden;
  color: var(--text-subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.chip-gold {
  border-color: var(--gold-soft);
  color: var(--gold);
}

/* Chat mock */
.mock-chat .mock-body {
  gap: 0.6rem;
  padding: 1rem 0.9rem;
}

.bubble {
  max-width: 84%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.bubble-in {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #e9ebee;
  color: #111;
}

.bubble-out {
  justify-self: start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: #1c1c20;
  color: var(--text);
}

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-subtle);
  font-size: 0.65rem;
}

.bubble-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver);
}

.handoff {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px dashed var(--line-3);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.68rem;
}

.handoff .icon {
  width: 12px;
  height: 12px;
}

/* Pipeline mock */
.mock-pipeline .mock-body {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.pipe-col {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.pipe-col > span:first-child {
  padding-bottom: 0.3rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipe-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #18181b;
}

.pipe-card i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
}

.pipe-card i:last-child {
  width: 60%;
  background: var(--line);
}

.pipe-card-hot {
  border-color: var(--gold-soft);
}

.pipe-card-hot .chip {
  justify-self: start;
  font-size: 0.58rem;
}

/* Website mock */
.mock-site .mock-bar b {
  flex: 1;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  background: #1b1b1f;
  text-align: center;
}

.site-hero {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1rem 1rem;
}

.site-nav-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.site-nav-mock i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
}

.site-nav-mock i:first-child {
  width: 46px;
  background: var(--silver-deep);
}

.site-nav-mock span {
  display: flex;
  gap: 6px;
}

.site-nav-mock span i {
  width: 22px;
}

.site-line {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e4e6e9, #9ea3ab);
}

.site-line-2 {
  width: 70%;
}

.site-line-3 {
  width: 85%;
  height: 5px;
  margin-top: 0.35rem;
  background: var(--line-2);
}

.site-btns {
  display: flex;
  gap: 6px;
  margin-top: 0.5rem;
}

.site-btns i {
  display: block;
  width: 58px;
  height: 18px;
  border-radius: 999px;
  background: #e9ebee;
}

.site-btns i + i {
  background: transparent;
  border: 1px solid var(--line-3);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 1rem 1rem;
}

.site-cards i {
  display: block;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #18181b;
}

/* 14. About ----------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 3.5rem;
}

.about-lead .section-title {
  max-width: 13ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.facts div {
  padding: 1.25rem 1.35rem;
  background: var(--bg);
}

.facts dt {
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.98rem;
}

.about-body > p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-body > p + p {
  margin-top: 1.25rem;
}

.principles {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.principle {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charcoal);
}

.principle h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.principle h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver);
}

.principle p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 6rem;
  }
}

/* 15. FAQ ------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  gap: 3rem;
}

.faq-intro .section-intro {
  margin-top: 1.5rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--silver-bright);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), transform 0.4s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  border-color: var(--line-3);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-width: 44rem;
  padding: 0 3.5rem 1.75rem 0;
  color: var(--text-muted);
}

.faq-answer p + p {
  margin-top: 0.9rem;
}

.faq-item[open] .faq-answer {
  animation: fade-down 0.4s var(--ease);
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 6rem;
    align-items: start;
  }

  .faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
}

/* 16. Contact & form -------------------------------------------------------- */
.contact {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(201, 205, 211, 0.06), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(200, 169, 106, 0.04), transparent 70%),
    var(--charcoal);
}

.contact-grid {
  display: grid;
  gap: 3.5rem;
}

.contact-info .section-title {
  max-width: 12ch;
}

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

.contact-methods {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.contact-method {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(9, 9, 10, 0.5);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.contact-method:hover {
  border-color: var(--line-3);
  background: rgba(9, 9, 10, 0.85);
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--silver-bright);
}

.contact-method-label {
  display: block;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-method-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-method > .icon {
  color: var(--text-subtle);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-method:hover > .icon {
  color: var(--text);
  transform: translate(2px, -2px);
}

.next-steps {
  margin-top: 2.75rem;
}

.next-steps h3 {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-steps ol {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
  counter-reset: nxt;
}

.next-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  color: var(--text-muted);
  counter-increment: nxt;
}

.next-steps li::before {
  content: counter(nxt);
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  color: var(--silver);
  font-size: 0.7rem;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    var(--bg);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.form-card-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
}

.form-card-sub {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.enquiry-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

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

.field label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.field .req {
  color: var(--gold);
}

.field .optional {
  color: var(--text-subtle);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

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

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23c9cdd3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field ::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--silver);
  background-color: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(201, 205, 211, 0.18);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #e08b8b;
}

.hp {
  display: none;
}

.form-note {
  color: var(--text-subtle);
  font-size: 0.82rem;
  line-height: 1.55;
}

.form-note a {
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
    align-items: start;
  }
}

/* 17. Footer ---------------------------------------------------------------- */
.site-footer {
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  display: inline-block;
  border-radius: 8px;
}

.footer-logo img {
  display: block;
  width: 200px;
  height: auto;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

/* On narrow screens give the contact column (with the long email) a full row. */
@media (max-width: 599.98px) {
  .footer-nav > div:last-child {
    grid-column: 1 / -1;
  }
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.to-top .icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 4rem;
  }
}

/* 18. Inner pages (legal, thank-you, 404) ----------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

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

.legal {
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--section-y);
}

.legal-layout {
  max-width: 50rem;
}

.draft-notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: rgba(200, 169, 106, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.draft-notice .icon {
  margin-top: 0.15rem;
  color: var(--gold);
}

.draft-notice strong {
  color: var(--text);
}

.legal-meta {
  margin-top: 1.25rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  margin: 3rem 0 1rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}

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

.prose h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1rem;
}

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

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

.prose li::marker {
  color: var(--silver-deep);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--text);
}

.confirm {
  padding: 0.05rem 0.4rem;
  border: 1px dashed var(--gold-soft);
  border-radius: 6px;
  background: rgba(200, 169, 106, 0.08);
  color: var(--gold);
  font-size: 0.92em;
  white-space: normal;
}

.toc {
  margin-bottom: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charcoal);
}

.toc h2 {
  margin-bottom: 0.9rem;
  color: var(--text-subtle);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  columns: 2 14rem;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Centred status pages (thank-you, 404) */
.status-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  text-align: center;
}

.status-page .hero-bg {
  position: fixed;
}

.status-inner {
  display: grid;
  justify-items: center;
  max-width: 40rem;
  margin-inline: auto;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 2rem;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: linear-gradient(160deg, #1e1e22, #0e0e10);
  color: var(--silver-bright);
}

.status-icon .icon {
  width: 30px;
  height: 30px;
}

.status-code {
  margin-bottom: 1rem;
  color: transparent;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 4rem + 10vw, 11rem);
  font-style: italic;
  line-height: 0.9;
}

.status-inner .lead {
  margin-top: 1.25rem;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.status-note {
  margin-top: 2.5rem;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

/* 18b. Multi-page components ---------------------------------------------- */

/* Section header with intro text and a link to the full page */
.section-aside {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 0.2rem;
  transition: border-color var(--dur) var(--ease);
}

.link-arrow:hover {
  border-color: var(--silver);
}

.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease);
}

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

/* Home: compact service cards and process steps */
.service-card-compact .service-top {
  margin-bottom: 2rem;
}

.service-card-compact h3 {
  font-size: clamp(1.6rem, 1.35rem + 0.7vw, 1.9rem);
}

.service-card-compact > p {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

@media (min-width: 1100px) {
  .services-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services-grid-compact .service-card {
    padding: 2rem 1.75rem;
  }
}

.process-steps-compact .process-step h3 {
  margin-top: 1.75rem;
}

/* Services: jump links in the page header */
.jump-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.jump-links a {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.jump-links a:hover {
  border-color: var(--line-3);
  color: var(--text);
}

/* Our Process: detailed steps */
.process-detail {
  display: grid;
  gap: 1.25rem;
}

.process-row {
  display: grid;
  gap: 1.5rem 4rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--charcoal);
}

.process-row-title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.process-row-lead {
  color: var(--text);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.process-row-body h3 {
  margin-top: 1.75rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--silver);
}

.process-row .process-output {
  margin-top: 1.75rem;
  padding-top: 0;
}

@media (min-width: 900px) {
  .process-row {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

/* About: large official logo */
.about-logo {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(214, 218, 224, 0.1), transparent 70%),
    var(--bg-raised);
}

.about-logo img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.about-body > .eyebrow {
  margin-bottom: 1.25rem;
}

.about-body > .section-title {
  margin-bottom: 1.75rem;
}

.about-body .facts {
  margin-top: 2.5rem;
}

@media (min-width: 1000px) {
  .about-lead {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

@media (min-width: 1000px) {
  .principles-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.principles-wide {
  margin-top: 0;
}

/* Contact page */
.contact-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.contact-info .contact-subtitle + .section-intro {
  margin-top: 0.75rem;
}

.contact-faq {
  margin-top: 2.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* "Keep exploring" links between related pages */
.section-tight {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.related-title {
  margin-bottom: 1.5rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-links {
  display: grid;
  gap: 1.25rem;
}

.page-link {
  position: relative;
  display: grid;
  gap: 0.4rem;
  height: 100%;
  padding: 1.75rem 4rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--charcoal);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-link:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.page-link-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-link-title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.1;
}

.page-link-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-link > .icon {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--text-subtle);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-link:hover > .icon {
  color: var(--text);
  transform: translateX(3px);
}

@media (min-width: 760px) {
  .page-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Current page in the footer */
.footer-nav a[aria-current="page"],
.footer-bottom a[aria-current="page"] {
  color: var(--text);
}

/* 19. Scroll reveal (applied by main.js to below-the-fold content only) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease) var(--reveal-delay, 0s),
    transform 0.8s var(--ease) var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 20. Reduced motion & print ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .flow-steps::after {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .display em,
  .section-title em,
  .page-title em,
  .cta-title em,
  .status-code {
    color: CanvasText;
    background: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-bg,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 21. No-JavaScript fallback: show the menu as a simple list ---------------- */
@media (scripting: none) and (max-width: 1079.98px) {
  .site-header {
    position: absolute;
    height: auto;
  }

  .site-header::before {
    opacity: 1;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 1rem;
  }

  .nav-toggle,
  .nav-panel-footer {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    order: 4;
    width: 100%;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .nav-list a {
    padding: 0.25rem 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
  }

  .nav-list a::after {
    display: none;
  }

  .hero,
  .page-hero,
  .status-page {
    padding-top: calc(var(--header-h) + 6rem);
  }
}
