/* ============================================================
   Sterling Consultants Australia — design system
   Identity: graphite + sterling silver + copper hallmark accent.
   Display: Instrument Sans | Editorial accent: Instrument Serif
   Body: Inter
   Architecture adapted from the QVC Solutions static system.
   ============================================================ */

:root {
  /* Brand — graphite */
  --ink-950: #0b0e12;
  --ink-900: #11161c;
  --ink-850: #161d25;
  --ink-800: #1c2530;
  --ink-700: #26313f;
  --ink-600: #354355;

  /* Brand — sterling */
  --sterling-500: #6f7a8a;
  --sterling-400: #8b95a5;
  --sterling-300: #aeb7c4;
  --sterling-200: #ced5df;
  --sterling-100: #e7ebf0;

  /* Brand — copper hallmark accent */
  --copper-700: #8c4a22;
  --copper-600: #a55b2c;
  --copper-500: #c2703a;
  --copper-400: #d98d57;

  /* Neutrals */
  --ink: #14181e;
  --ink-soft: #525d6b;
  --paper: #fbfaf8;
  --paper-warm: #f4f2ee;
  --white: #ffffff;
  --line: rgba(20, 24, 30, 0.11);
  --line-inverse: rgba(255, 255, 255, 0.13);

  /* Type */
  --font-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --h1: clamp(2.6rem, 1.7rem + 4.1vw, 5rem);
  --h2: clamp(1.95rem, 1.45rem + 2.2vw, 3.15rem);
  --h3: clamp(1.35rem, 1.18rem + 0.8vw, 1.7rem);
  --h4: 1.1875rem;

  --radius: 12px;
  --radius-lg: 20px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 4rem + 4vw, 8.5rem);
  --max-w: 1180px;

  --shadow-card: 0 2px 6px rgba(11, 14, 18, 0.05), 0 18px 44px -18px rgba(11, 14, 18, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--h1); font-weight: 700; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
h4 { font-size: var(--h4); line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }

/* Editorial emphasis — the one serif moment per heading */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-style: italic; }
.h1-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-600); }

:focus-visible {
  outline: 3px solid var(--copper-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--copper-500); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--copper-600); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout primitives ---------- */

.container { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--warm { background: var(--paper-warm); }

.section--ink {
  background:
    radial-gradient(1100px 560px at 84% -12%, rgba(194, 112, 58, 0.13), transparent 62%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
  color: rgba(255, 255, 255, 0.86);
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: var(--sterling-200); }
.section--ink a:hover { color: var(--copper-400); }

.section--deep { background: var(--ink-950); color: rgba(255, 255, 255, 0.84); }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep a { color: var(--sterling-200); }
.section--deep a:hover { color: var(--copper-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.section--ink .eyebrow, .section--deep .eyebrow { color: var(--copper-400); }

.lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
.section--ink .lede, .section--deep .lede { color: rgba(255, 255, 255, 0.7); }

.section-head { max-width: 800px; margin-bottom: clamp(2.25rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

.prose { max-width: 68ch; }
.prose h3 { margin-top: 2.4rem; }
.prose ul { padding-left: 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.005em;
  padding: 0.88rem 1.65rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--copper-600); color: #fff; box-shadow: 0 10px 24px -12px rgba(165, 91, 44, 0.7); }
.btn--primary:hover { background: var(--copper-500); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--outline { border-color: var(--ink-800); color: var(--ink-800); }
.btn--outline:hover { background: var(--ink-800); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; color: var(--copper-600);
}
.text-link .arrow { transition: transform 0.25s var(--ease-out); }
.text-link:hover { color: var(--copper-500); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-block: 1.05rem;
}
.site-header.is-scrolled {
  background: rgba(11, 14, 18, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  padding-block: 0.6rem;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(100% - 2 * var(--gutter), 1320px); }
/* Brand lockup — SVG punch mark + live-webfont wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand img { height: 42px; width: auto; transition: height 0.3s; }
.is-scrolled .brand img { height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.02em; color: #fff; transition: font-size 0.3s;
}
.is-scrolled .brand__text strong { font-size: 1.18rem; }
.brand__text small {
  font-family: var(--font-display); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--sterling-400);
  margin-top: 0.15rem;
}
@media (max-width: 420px) { .brand__text small { display: none; } }

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop > ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { position: relative; }
.nav-desktop a {
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  padding: 0.55rem 0.8rem; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-desktop .caret { transition: transform 0.25s; font-size: 0.68em; opacity: 0.7; }
.nav-desktop li:hover .caret, .nav-desktop li:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 6px;
  min-width: 290px;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 24px 64px -20px rgba(11, 14, 18, 0.5);
  padding: 0.5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease-out), translate 0.22s var(--ease-out), visibility 0.22s;
}
.nav-desktop li:hover > .dropdown, .nav-desktop li:focus-within > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0;
}
.dropdown a { display: block; width: 100%; color: var(--ink-800); padding: 0.6rem 0.8rem; border-radius: 8px; font-weight: 600; }
.dropdown a:hover { background: rgba(28, 37, 48, 0.06); color: var(--ink-800); }
.dropdown a small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; letter-spacing: 0; line-height: 1.4; margin-top: 0.1rem; }
.dropdown .is-lead { color: var(--copper-600); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; vertical-align: 2px; margin-left: 0.35rem; }

.header-cta { margin-left: 0.5rem; padding: 0.6rem 1.25rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; width: 46px; height: 46px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; width: 24px; margin: 5px auto; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(160deg, var(--ink-850), var(--ink-950));
  padding: 6.5rem var(--gutter) 3rem; overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile > ul > li { border-bottom: 1px solid var(--line-inverse); }
.nav-mobile a { display: block; padding: 1rem 0.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; text-decoration: none; }
.nav-mobile .sub a { font-size: 0.98rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); padding: 0.5rem 0.25rem 0.5rem 1.1rem; }
.nav-mobile .is-lead { color: var(--copper-400); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; vertical-align: 3px; margin-left: 0.3rem; }
.nav-mobile .btn { margin-top: 1.8rem; }

@media (max-width: 960px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(600px, 92svh, 880px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 700px at 78% 12%, rgba(194, 112, 58, 0.2), transparent 60%),
    radial-gradient(900px 620px at 8% 88%, rgba(110, 124, 143, 0.22), transparent 62%),
    linear-gradient(150deg, var(--ink-850) 0%, var(--ink-950) 70%);
}
/* Optional photographic slot — drop a file at assets/img/hero.jpg and add
   <div class="hero__media"><img src="/assets/img/hero.jpg" alt=""></div> */
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 14, 18, 0.94) 6%, rgba(17, 22, 28, 0.6) 58%, rgba(17, 22, 28, 0.4) 100%),
    linear-gradient(0deg, rgba(11, 14, 18, 0.92) 0%, transparent 40%);
}
/* Assay grid — the fine engraved rule pattern behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1000px 700px at 70% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 700px at 70% 30%, #000 10%, transparent 78%);
}
.hero .container { position: relative; z-index: 2; padding-block: 9rem 5.5rem; }
.hero__content { max-width: 760px; }
.hero__content .lede { color: rgba(255, 255, 255, 0.8); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero--sub { min-height: clamp(400px, 58svh, 540px); }
.hero--sub .container { padding-block: 8.5rem 4rem; }
.hero--sub .hero::before { opacity: 0.6; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sterling-300); margin-bottom: 1.4rem;
}
.hero__kicker::before { content: ""; width: 30px; height: 1.5px; background: var(--copper-500); }

.hero__proof {
  margin-top: 3.2rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line-inverse);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__proof div { max-width: 20ch; }
.hero__proof dt { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: #fff; margin-bottom: 0.2rem; }
.hero__proof dd { margin: 0; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; translate: -50%;
  color: rgba(255, 255, 255, 0.55); font-size: var(--text-xs);
  letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--font-display);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; z-index: 2;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: drip 2.2s infinite var(--ease-out);
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.7rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.35rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(194, 112, 58, 0.3); box-shadow: 0 4px 10px rgba(11, 14, 18, 0.06), 0 30px 60px -20px rgba(11, 14, 18, 0.3); }
.card p { color: var(--ink-soft); font-size: var(--text-sm); flex: 1; }
.card .text-link { margin-top: 0.9rem; }

.card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ink-700), var(--ink-950));
  color: var(--copper-400);
  margin-bottom: 1.05rem;
}
.card__icon svg { width: 24px; height: 24px; }

/* Cards stay light inside dark sections */
.section--ink .card:not(.card--featured) h3,
.section--ink .card:not(.card--featured) h4,
.section--deep .card:not(.card--featured) h3,
.section--deep .card:not(.card--featured) h4 { color: var(--ink-900); }
.section--ink .card:not(.card--featured) .text-link,
.section--deep .card:not(.card--featured) .text-link { color: var(--copper-600); }

.card--featured {
  background: linear-gradient(150deg, var(--ink-700), var(--ink-950));
  border-color: rgba(194, 112, 58, 0.28);
  color: rgba(255, 255, 255, 0.84);
}
.card--featured h3, .card--featured h4 { color: #fff; }
.card--featured p { color: rgba(255, 255, 255, 0.74); }
.card--featured .text-link { color: var(--copper-400); }
.card--featured .card__icon { background: var(--copper-600); color: #fff; }

.card--span2 { grid-column: span 2; }
.card--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .card--span2, .card--full { grid-column: auto; } }

.card__meta {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sterling-500);
}
.card--featured .card__meta { border-color: var(--line-inverse); color: var(--sterling-300); }

.badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--copper-600);
  padding: 0.28rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem; width: fit-content;
}
.badge--quiet { background: transparent; color: var(--sterling-400); border: 1px solid var(--line-inverse); }

/* ---------- Hallmark motif (signature) ----------
   Four assay punches: Unknown → Mapped → Owned → Governed. */

.hallmark-wrap { max-width: 940px; margin-inline: auto; }
.hallmark { display: block; width: 100%; height: auto; }
.hallmark a { outline-offset: -3px; }
.hallmark a .punch { transition: transform 0.35s var(--ease-out), opacity 0.3s; transform-origin: center; transform-box: fill-box; }
.hallmark a:hover .punch, .hallmark a:focus-visible .punch { transform: translateY(-5px); }
.hallmark .punch-label {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; fill: rgba(255, 255, 255, 0.92);
}
.hallmark .punch-sub { font-family: var(--font-body); font-size: 12.5px; fill: rgba(255, 255, 255, 0.52); }

/* ---------- Maturity ladder ---------- */

.ladder { display: grid; gap: 0; border-top: 1px solid var(--line-inverse); }
.ladder__row {
  display: grid; grid-template-columns: 4.5rem 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-inverse);
}
@media (max-width: 720px) { .ladder__row { grid-template-columns: 3rem 1fr; } .ladder__row p { grid-column: 2; } }
.ladder__num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.1em; color: var(--copper-500);
}
.ladder__row h4 { margin: 0; }
.ladder__row p { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.66); }
.ladder__row.is-current { background: rgba(194, 112, 58, 0.07); }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-inverse); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--ink-950); padding: clamp(1.5rem, 3vw, 2.4rem); }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  letter-spacing: -0.035em; line-height: 1; color: #fff;
  display: flex; align-items: baseline; gap: 0.06em;
}
.stat__num .unit { color: var(--copper-400); font-size: 0.55em; font-weight: 600; }
.stat__label { margin-top: 0.55rem; color: rgba(255, 255, 255, 0.6); font-size: var(--text-sm); }

/* ---------- Platform wall (vendor names, no logos required) ---------- */

.platform-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; }
.platform {
  border: 1px solid var(--line-inverse); border-radius: 10px;
  padding: 0.95rem 1.05rem; background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.platform:hover { border-color: rgba(194, 112, 58, 0.4); background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
.platform strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: #fff; letter-spacing: -0.01em; }
.platform span { display: block; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.5); margin-top: 0.15rem; }

/* ---------- Logo wall (when real client logos exist) ---------- */

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.8rem; }
.logo-wall figure { margin: 0; background: #fff; border-radius: 10px; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 0.9rem 1.1rem; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.logo-wall figure:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.45); }
.logo-wall img { max-width: 100%; max-height: 74%; object-fit: contain; }
.logo-wall--light figure { border: 1px solid var(--line); box-shadow: none; }

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

/* Panel — a bordered content block used where a photo would otherwise sit */
.panel {
  border: 1px solid var(--line-inverse); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.panel--light { border-color: var(--line); background: #fff; box-shadow: var(--shadow-card); }
.panel__title {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sterling-400);
  margin-bottom: 1.2rem;
}
.panel--light .panel__title { color: var(--sterling-500); }

/* Definition rows inside a panel */
.deflist { display: grid; gap: 0; margin: 0; }
.deflist > div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 0.8rem 0; border-bottom: 1px solid var(--line-inverse); }
.deflist > div:last-child { border-bottom: 0; padding-bottom: 0; }
.panel--light .deflist > div { border-color: var(--line); }
.deflist dt { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
.deflist dd { margin: 0; font-size: var(--text-sm); color: var(--sterling-400); text-align: right; }
.panel--light .deflist dd { color: var(--ink-soft); }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .tick {
  flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%;
  background: rgba(194, 112, 58, 0.13); color: var(--copper-600);
  display: grid; place-items: center; margin-top: 0.18rem;
}
.section--ink .feature-list .tick, .section--deep .feature-list .tick { background: rgba(194, 112, 58, 0.2); color: var(--copper-400); }
.feature-list .tick svg { width: 12px; height: 12px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; }
.feature-list span.desc { color: var(--ink-soft); font-size: var(--text-sm); }
.section--ink .feature-list span.desc, .section--deep .feature-list span.desc { color: rgba(255, 255, 255, 0.66); }

/* ---------- Accordion ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0.25rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em;
  color: var(--ink-800); transition: color 0.2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover, .accordion details[open] summary { color: var(--copper-600); }
.accordion summary .plus {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center;
  font-weight: 400; font-size: 1.15rem; line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.accordion details[open] summary .plus { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 3.2rem 1.5rem 0.25rem; color: var(--ink-soft); }

/* ---------- Process steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-inverse); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; color: var(--copper-500);
  display: block; line-height: 1; margin-bottom: 1rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.66); }
.step .step__when { display: block; margin-top: 0.7rem; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sterling-400); }
.section:not(.section--ink):not(.section--deep) .step { border-color: var(--line); }
.section:not(.section--ink):not(.section--deep) .step p { color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 10% 120%, rgba(194, 112, 58, 0.3), transparent 62%),
    radial-gradient(900px 420px at 90% -20%, rgba(174, 183, 196, 0.16), transparent 62%),
    linear-gradient(140deg, var(--ink-800), var(--ink-950));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4.2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-band h2 { margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.74); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.82rem 1rem; border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper-600); box-shadow: 0 0 0 4px rgba(194, 112, 58, 0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: var(--text-xs); color: var(--ink-soft); }
.form__status { font-size: var(--text-sm); color: var(--copper-700); min-height: 1.4em; }

/* ---------- Note strip ---------- */

.note-strip {
  border-left: 2px solid var(--copper-500);
  background: rgba(194, 112, 58, 0.06);
  padding: 1.05rem 1.35rem; border-radius: 0 8px 8px 0;
  font-size: var(--text-sm); color: var(--ink-soft); max-width: 74ch;
}
.section--ink .note-strip, .section--deep .note-strip { background: rgba(255, 255, 255, 0.045); color: rgba(255, 255, 255, 0.7); }

/* ---------- Pull quote ---------- */

.pullquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  line-height: 1.28; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0;
}
.pullquote--wide { max-width: 30ch; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-950); color: rgba(255, 255, 255, 0.7); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line-inverse); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer a:hover { color: var(--copper-400); }
.footer-brand .brand { margin-bottom: 1.3rem; }
.footer-brand .brand img { height: 48px; }
.footer-brand p { max-width: 36ch; color: rgba(255, 255, 255, 0.52); }
.footer-abn { margin-top: 1.2rem; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.4); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.42); }
.footer-bottom ul { display: flex; gap: 1.2rem; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-inverse); border-radius: 50%; transition: 0.25s; }
.footer-social:hover { border-color: var(--copper-500); background: rgba(194, 112, 58, 0.12); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .btn, .card, .platform, .hallmark a .punch { transition: none; }
  .hero__scroll::after { animation: none; }
}
