/* ==========================================================================
   GBTax — General Books & Tax Pty Ltd
   Stylesheet: tokens, base, components, sections, responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour */
  /* iiNet-style orange and neutral grey on pure white. */
  --base: #ffffff;
  --surface: #f5f5f5;
  --field: #ffffff;
  --ink: #2a2c30;           /* headings and dark text */
  --ink-deep: #2e3136;      /* behind the hero photograph */
  --panel: #36393e;         /* charcoal: dark bands, page headers, CTA, footer */
  --text: #333333;
  --muted: #58595b;
  /* Two oranges on purpose. The brand orange is only 2.49:1 as text on white,
     so orange text on light backgrounds uses the deeper tone instead. */
  --accent: #ff8200;        /* fills, marks, the header rule, anything on dark */
  --accent-deep: #ad5700;   /* orange text on white and on the grey band */
  --accent-light: #ffa040;  /* hover and emphasis on dark */
  --on-ink: #ffffff;
  --on-ink-muted: #a8a8a8;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.22);
  --line-on-ink: rgba(255, 255, 255, 0.14);
  --line-on-ink-strong: rgba(255, 255, 255, 0.3);
  --shadow-menu: 0 22px 44px -22px rgba(0, 0, 0, 0.3);

  /* Type */
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 76px;
  --section-y: clamp(68px, 8vw, 108px);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.55rem + 2.1vw, 3.05rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.25vw, 2.2rem);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

img {
  height: auto;
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
}

.visually-hidden-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--panel);
  color: var(--on-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   5. Eyebrow & centred section heads
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow--on-ink {
  color: var(--accent);
}

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(44px, 5vw, 62px);
  text-align: center;
}

.section-head p {
  margin-top: 18px;
  margin-inline: auto;
  max-width: 54ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.section-head .btn-row {
  margin-top: 32px;
}

.section-head:last-child {
  margin-bottom: 0;
}

/* A label-only section head, where the content that follows needs no intro. */
.section-head--label {
  margin-bottom: 28px;
}

.section-head--label .eyebrow {
  margin: 0;
}

.section-foot {
  margin-top: clamp(36px, 4vw, 52px);
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  /* Dark text, not white: white on this orange is only 3.15:1. */
  background: var(--accent);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn:hover {
  background: var(--panel);
  color: var(--on-ink);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

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

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

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

.btn--ghost-on-ink {
  background: transparent;
  color: var(--on-ink);
  border-color: var(--line-on-ink-strong);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row--centred {
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(173, 87, 0, 0.35);
  transition: border-color 0.18s var(--ease);
}

.text-link:hover {
  border-bottom-color: var(--accent-deep);
}

.text-link .arrow {
  transition: transform 0.2s var(--ease);
}

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

.arrow {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  border-bottom: 2px solid var(--accent);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--accent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: var(--header-h);
}

/* Home page only: the bar floats over the hero photograph until the reader
   scrolls, then becomes the standard light bar. */
.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) {
  background: transparent;
  border-bottom-color: transparent;
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .wordmark {
  color: var(--on-ink);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .wordmark span {
  color: var(--accent);
}

/* Full strength rather than a tint: this type sits over a photograph, where
   the background luminance is not ours to control. */
.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-link {
  color: var(--on-ink);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-link:hover,
.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-link[aria-current="page"],
.has-hero .site-header:not(.is-stuck):not(.nav-open) .has-dropdown.is-open > .nav-link {
  color: #ffffff;
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-link[aria-current="page"]::after {
  background: var(--accent);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .header-phone {
  color: var(--on-ink);
  border-color: var(--line-on-ink-strong);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .header-phone:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* Orange stays orange over the photograph; the default charcoal hover would
   vanish against it. */
.has-hero .site-header:not(.is-stuck):not(.nav-open) .header-cta:hover {
  background: var(--accent-light);
  color: var(--ink);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-toggle {
  border-color: var(--line-on-ink-strong);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-toggle span,
.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-toggle span::before,
.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-toggle span::after {
  background: var(--on-ink);
}

.has-hero .site-header:not(.is-stuck):not(.nav-open) :focus-visible {
  outline-color: var(--accent-light);
}

/* The services panel stays light even while the bar is transparent. */
.has-hero .site-header:not(.is-stuck):not(.nav-open) .nav-dropdown :focus-visible {
  outline-color: var(--accent-deep);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex: none;
  /* Matches the header background fade so the two never disagree mid-transition. */
  transition: color 0.2s var(--ease);
}

.wordmark span {
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.wordmark--on-ink {
  color: var(--on-ink);
}

.wordmark--on-ink span {
  color: var(--accent);
}

.header-drawer {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 40px;
}

.primary-nav {
  margin-inline: auto;
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 24px;
}

/* Phone as a clickable icon. The number shows as a tooltip on desktop, is the
   accessible name for screen readers, and appears as text in the mobile menu. */
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-phone:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.header-phone-text {
  display: none;
}

/* Scoped to the top level: the services menu has its own list and links. */
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.has-dropdown.is-current > .nav-link,
.has-dropdown.is-open > .nav-link {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after,
.has-dropdown.is-current > .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-link .chevron {
  width: 10px;
  height: 10px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  transition: transform 0.2s var(--ease);
}

.has-dropdown.is-open > .nav-link .chevron {
  transform: rotate(180deg);
}

/* Services menu */

@media (min-width: 901px) {
  .header-inner {
    position: relative;
  }
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 10;
  width: min(840px, calc(100% - 2 * var(--gutter)));
  padding: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0s linear 0.18s;
}

/* Invisible bridge across the gap, so the pointer can reach the panel. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}

/* Without JavaScript it still opens on hover and keyboard focus. */
html:not(.js) .has-dropdown:hover > .nav-dropdown,
html:not(.js) .has-dropdown:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.nav-dropdown-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}

.nav-dropdown-grid a:hover,
.nav-dropdown-grid a:focus-visible {
  background: var(--surface);
}

.dd-title {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}

.nav-dropdown-grid a:hover .dd-title {
  color: var(--accent-deep);
}

.dd-desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.nav-dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 2px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-dropdown-all .arrow {
  transition: transform 0.2s var(--ease);
}

.nav-dropdown-all:hover .arrow {
  transform: translateX(3px);
}

.header-cta {
  flex: none;
  padding: 11px 22px;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--panel);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--panel);
  transition: transform 0.22s var(--ease);
}

.nav-toggle span::before {
  top: -5.5px;
}

.nav-toggle span::after {
  top: 5.5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    gap: 16px;
  }

  .header-drawer {
    display: none;
  }

  .site-header.nav-open {
    border-bottom-color: var(--accent);
  }

  .site-header.nav-open .header-drawer {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    /* With the services accordion open the drawer outgrows short phones, and
       the header is fixed on the home page, so it has to scroll itself. */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 26px;
    background: var(--base);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-menu);
  }

  .site-header.nav-open .primary-nav {
    margin: 0;
  }

  .site-header.nav-open .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.nav-open .primary-nav > ul > li + li {
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.0625rem;
  }

  .site-header.nav-open .nav-link::after {
    display: none;
  }

  /* On small screens the services menu is an accordion inside the drawer. */
  .nav-dropdown {
    position: static;
    display: none;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .has-dropdown.is-open > .nav-dropdown,
  html:not(.js) .has-dropdown:focus-within > .nav-dropdown {
    display: block;
    transform: none;
  }

  .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav-dropdown-grid a {
    padding: 10px 0 10px 14px;
    border-left: 2px solid var(--line);
    border-radius: 0;
  }

  .nav-dropdown-grid a:hover,
  .nav-dropdown-grid a:focus-visible {
    background: none;
    border-left-color: var(--accent);
  }

  .dd-title {
    font-weight: 500;
  }

  .dd-desc {
    display: none;
  }

  .nav-dropdown-all {
    margin: 4px 0 0;
    padding: 10px 0 0 14px;
    border-top: 0;
  }

  .site-header.nav-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }

  .site-header.nav-open .header-phone {
    order: 2;
    width: auto;
    height: auto;
    padding: 8px 0;
    border: 0;
  }

  .site-header.nav-open .header-phone-text {
    display: inline;
  }

  .site-header.nav-open .header-cta {
    order: 1;
    padding: 15px 22px;
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   Sticky call bar, small screens only
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--panel);
    border-top: 1px solid var(--line-on-ink);
    transform: translateY(100%);
    transition: transform 0.25s var(--ease);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta a {
    padding: 16px 12px;
    color: var(--on-ink);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
  }

  .mobile-cta a + a {
    border-left: 1px solid var(--line-on-ink);
  }

  .mobile-cta a:first-child {
    background: var(--accent);
    color: var(--ink);
    font-weight: 600;
  }

  body:has(.mobile-cta) {
    padding-bottom: 56px;
  }
}

/* --------------------------------------------------------------------------
   8. Hero — full bleed, centred
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
  height: min(94vh, 880px);
  padding-top: var(--header-h);
  background: var(--ink-deep);
  color: var(--on-ink);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(46, 49, 54, 0.72);
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 760px;
  text-align: center;
  padding-block: 40px;
}

.hero-content h1 {
  color: var(--on-ink);
  font-size: clamp(2.35rem, 1.6rem + 2.9vw, 3.75rem);
  margin-bottom: 24px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 50ch;
  margin: 0 auto 36px;
}

@media (max-width: 560px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-block: calc(var(--header-h) + 72px) 80px;
  }

  .hero-content .btn-row .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */

.trust {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust li {
  padding: 28px 20px;
  text-align: center;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  border-left: 1px solid var(--line);
}

.trust li:first-child {
  border-left: 0;
}

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

  .trust li {
    padding: 22px 16px;
  }

  .trust li:nth-child(odd) {
    border-left: 0;
  }

  .trust li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 440px) {
  .trust ul {
    grid-template-columns: 1fr;
  }

  .trust li {
    border-left: 0;
  }

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

/* --------------------------------------------------------------------------
   10. Editorial block — centred head, wide figure, paired prose
   -------------------------------------------------------------------------- */

.wide-figure {
  margin: 0;
  position: relative;
}

.wide-figure img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.wide-figure--tall img {
  aspect-ratio: 16 / 9;
}

.wide-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  pointer-events: none;
}

@media (max-width: 760px) {
  .wide-figure img {
    aspect-ratio: 3 / 2;
  }
}

/* --------------------------------------------------------------------------
   11. Service grid: three columns of three, hairline separated, not cards
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

/* Rules sit between columns only, drawn on the left of every cell that is not
   first in its row. Using the left edge keeps an incomplete last row clean. */
.service-entry {
  display: block;
  padding: 32px 30px 34px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.service-entry:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.service-entry:nth-child(3n) {
  padding-right: 0;
}

.service-entry h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  transition: color 0.18s var(--ease);
}

.service-entry .arrow {
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.service-entry:hover h3 {
  color: var(--accent-deep);
}

.service-entry:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-deep);
}

.service-entry > p {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-entry:nth-child(3n + 1) {
    padding-left: 30px;
    border-left: 1px solid var(--line);
  }

  .service-entry:nth-child(3n) {
    padding-right: 30px;
  }

  .service-entry:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .service-entry:nth-child(2n) {
    padding-right: 0;
  }
}

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

  .service-entry,
  .service-entry:nth-child(n) {
    padding: 26px 0 28px;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   13. Feature grid — rules, not cards
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid > div {
  padding: 38px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.feature-grid > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.feature-grid h3 {
  margin-bottom: 12px;
}

.feature-grid p {
  margin-inline: auto;
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

  .feature-grid > div,
  .feature-grid > div:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   14. Process
   -------------------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process > li {
  padding: 40px 34px 8px;
  text-align: center;
}

.process > li + li {
  border-left: 1px solid var(--line);
}

.process .num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.process h3 {
  margin-bottom: 10px;
}

.process p {
  margin-inline: auto;
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

  .process > li {
    padding: 30px 0;
  }

  .process > li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process p {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--panel);
  color: var(--on-ink);
  text-align: center;
  /* Keeps the closing CTA and the footer from reading as one dark slab. */
  border-bottom: 1px solid var(--line-on-ink);
}

.cta-inner {
  padding-block: clamp(64px, 7.5vw, 100px);
}

.cta-inner h2 {
  color: var(--on-ink);
  margin-bottom: 18px;
}

.cta-inner p {
  max-width: 50ch;
  margin: 0 auto 36px;
  color: var(--on-ink-muted);
  font-size: 1.0625rem;
}

.cta-note {
  margin: 28px auto 0;
  color: var(--on-ink-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.cta-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 130, 0, 0.45);
  transition: border-color 0.16s var(--ease);
}

.cta-note a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 560px) {
  .cta-inner .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   16. Page header (inner pages) — dark, centred
   -------------------------------------------------------------------------- */

.page-header {
  background: var(--panel);
  color: var(--on-ink);
  text-align: center;
  padding-block: clamp(64px, 7.5vw, 104px);
  border-bottom: 1px solid var(--line-on-ink);
}

.page-header h1 {
  color: var(--on-ink);
  max-width: 20ch;
  margin-inline: auto;
}

.page-header .lead {
  max-width: 56ch;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   17. Service detail blocks
   -------------------------------------------------------------------------- */

.service-detail {
  display: grid;
  grid-template-columns: 62px minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px 44px;
  padding-block: clamp(42px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.service-detail:first-of-type {
  border-top: 1px solid var(--line);
}

.service-detail .num {
  color: var(--accent-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-top: 7px;
}

.service-detail h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
}

.service-detail .service-body p {
  margin-top: 16px;
  font-size: 1rem;
  max-width: 52ch;
}

.covers {
  padding-top: 6px;
}

.covers h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.covers li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.covers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px 16px;
  }

  .covers {
    grid-column: 2;
    padding-top: 8px;
  }
}

@media (max-width: 560px) {
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail .num {
    padding-top: 0;
  }

  .covers {
    grid-column: 1;
  }
}

/* --------------------------------------------------------------------------
   17b. Service pages: breadcrumb, intro, standalone covers list
   -------------------------------------------------------------------------- */

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.service-intro {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
}

.service-intro p + p {
  margin-top: 18px;
}

.covers--page {
  max-width: 680px;
  margin: clamp(38px, 4vw, 54px) auto 0;
  padding-top: 0;
}

.covers--page h3 {
  text-align: center;
}

.contact-services {
  max-width: 62ch;
  margin: clamp(32px, 4vw, 44px) auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.needs--page {
  margin-top: clamp(30px, 3vw, 40px);
}

.service-more {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   18. Team
   -------------------------------------------------------------------------- */

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

.team-member {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.team-photo {
  position: relative;
  margin: 0;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  pointer-events: none;
}

.team-body .role {
  display: block;
  margin-top: 9px;
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-lead {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

/* A short spec sheet rather than a block of prose. */
.team-facts {
  margin-top: 22px;
  max-width: 540px;
  border-top: 1px solid var(--line);
}

.team-facts > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.team-facts dt {
  padding-top: 3px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.team-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .team-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 720px) {
  .team-member {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .team-photo {
    max-width: 190px;
  }
}

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.16s var(--ease);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2358595b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 38px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

.field .error {
  color: #9a2f28;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #9a2f28;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 4px;
}


.form-status {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-status:not(:empty) {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.form-status.is-error:not(:empty) {
  border-left-color: #9a2f28;
}

.contact-aside {
  border-top: 1px solid var(--line);
}

.contact-aside dl {
  margin: 0;
}

.contact-aside .row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-aside dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-aside dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.contact-aside dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.contact-aside dd a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.contact-aside dd .sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.placeholder-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

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

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

  .form-foot .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   20. Legal pages
   -------------------------------------------------------------------------- */

.legal {
  max-width: 720px;
  margin-inline: auto;
}

.legal h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal ul {
  font-size: 1rem;
  line-height: 1.7;
}

.legal p + p {
  margin-top: 1em;
}

.legal ul {
  margin-top: 14px;
}

.legal li {
  position: relative;
  padding: 0 0 10px 20px;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.legal .updated {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   21. Error page
   -------------------------------------------------------------------------- */

.error-page {
  padding-block: clamp(84px, 12vw, 150px);
  text-align: center;
}

.error-page p {
  margin: 20px auto 32px;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--panel);
  color: var(--on-ink-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(48px, 5vw, 64px) 46px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-brand .wordmark {
  font-size: 1.1875rem;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: var(--on-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-top li + li {
  margin-top: 11px;
}

.site-footer a {
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.footer-contact li {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  line-height: 1.5;
}

.footer-bottom a {
  font-size: 0.8125rem;
}

.footer-legal-note {
  padding-bottom: 34px;
  color: var(--on-ink-muted);
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 86ch;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   23. Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .cta-band,
  .nav-toggle,
  .hero-media,
  .hero-veil {
    display: none;
  }

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