/* AxleField.com — Axle Field Management
   Hand-authored stylesheet. No runtime CSS compiler, no CDN dependency.
   Palette: black/charcoal base, warm white text, Axle orange for important actions.
   All text colours below meet WCAG 4.5:1 on their actual background. */

:root {
  --axle:        #FF5F15;
  --axle-600:    #E6500C;
  --axle-400:    #FF7A3D;

  --bg:          #000000;
  --bg-raised:   #0A0A0B;
  --bg-panel:    #101012;
  --bg-inset:    #08080A;

  --text:        #F5F5F4;   /* warm white — 19.6:1 on black */
  --text-muted:  #A1A1AA;   /* 8.19:1 on black — replaces the audited #71717a (4.35:1) */
  --text-faint:  #A1A1AA;   /* footer/legal never drops below this — replaces #52525b (2.72:1) */

  --line:        rgba(255,255,255,.09);
  --line-warm:   rgba(255,95,21,.22);
  --line-strong: rgba(255,95,21,.55);

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --font: 'Montserrat', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Author `display` rules beat the UA stylesheet's [hidden] rule, so .form-grid's
   `display: grid` kept the enquiry form visible after a successful submit.
   This must stay above any component that sets display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--axle); color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2A2A2E; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--axle); }

/* ---------- focus: always visible, never removed ---------- */
:focus-visible {
  outline: 3px solid var(--axle-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--axle); color: #000; font-weight: 800;
  padding: .8rem 1.4rem; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--panel { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section--inset { background: var(--bg-inset); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--axle-400); margin-bottom: 1.1rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--text-muted); margin-top: 1.15rem; font-size: 1.075rem; }

h1 { font-size: clamp(2.35rem, 1.2rem + 5.4vw, 4.75rem); font-weight: 900; }
.h1-break { display: none; }                       /* natural wrapping on phones */
@media (min-width: 700px) { .h1-break { display: inline; } }
h2 { font-size: clamp(1.85rem, 1.1rem + 3.2vw, 3.1rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); font-weight: 750; letter-spacing: -.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.65rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: .96rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--axle); color: #000; }   /* 6.9:1 */
.btn--primary:hover { background: var(--axle-600); }
.btn--ghost { border-color: var(--line-warm); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255,95,21,.07); }
.btn--quiet { padding: .55rem 1.1rem; min-height: 44px; font-weight: 700; font-size: .9rem;
              border-color: var(--line); color: var(--text-muted); }
.btn--quiet:hover { color: var(--text); border-color: var(--line-strong); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

.textlink {
  color: var(--axle-400); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--line-warm); padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: var(--axle-400); }

/* ---------- header / navigation ----------
   The full menu is used only where it genuinely fits (>=1080px).
   Below that the collapsed menu is used, and it carries every desktop destination. */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }   /* the mark is a black cloud on black — only
                                                the white wordmark reads, so it needs real height */
.brand__name { font-weight: 800; font-size: .95rem; letter-spacing: -.02em; white-space: nowrap; }
/* Below 560px the logo mark alone carries the brand — the lockup plus the menu
   control did not fit at 390px and pushed the control past the viewport edge. */
@media (max-width: 559px) { .brand__name { display: none; } }
.brand__name span { color: var(--text-muted); font-weight: 600; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop ul { display: flex; align-items: center; gap: 1.9rem; }
.nav-desktop a { text-decoration: none; font-weight: 650; font-size: .93rem; color: var(--text-muted); white-space: nowrap; }
.nav-desktop a:hover { color: var(--text); }
.nav-actions { display: none; align-items: center; gap: .8rem; flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: .5rem 1rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .9rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }

/* collapsed panel — same destinations as desktop */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.97);
  max-height: calc(100dvh - 68px); overflow-y: auto;
}
.nav-panel[data-open='true'] { display: block; }
.nav-panel__inner { max-width: var(--maxw); margin-inline: auto; padding: 1.1rem var(--gutter) 1.9rem; }
.nav-panel ul { display: grid; gap: .2rem; margin-bottom: 1.2rem; }
.nav-panel a.nav-panel__link {
  display: block; padding: .95rem .25rem; text-decoration: none;
  font-weight: 700; font-size: 1.08rem; border-bottom: 1px solid var(--line);
}
.nav-panel a.nav-panel__link:hover { color: var(--axle-400); }
.nav-panel__actions { display: grid; gap: .7rem; }
.nav-panel__actions .btn { width: 100%; }

@media (min-width: 1340px) {
  .nav-desktop, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(8.5rem, 14vw, 12rem); padding-bottom: var(--section-y); overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(62% 58% at 50% -6%, rgba(255,95,21,.20) 0%, rgba(255,95,21,.05) 42%, transparent 74%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 0%, #000 0%, transparent 82%);
          mask-image: radial-gradient(78% 62% at 50% 0%, #000 0%, transparent 82%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__lede {
  margin-top: 1.6rem; max-width: 40rem;
  font-size: clamp(1.075rem, 1rem + .55vw, 1.3rem); color: var(--text-muted); line-height: 1.62;
}
.hero__support {
  margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .55rem 1.5rem;
  font-size: .875rem; font-weight: 650; color: var(--text-muted);
}
.hero__support span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__support span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--axle); flex: none;
}

/* ---------- work examples ---------- */
.work-list { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.work-item {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.75rem);
}
.work-item__body h3 { margin-bottom: .9rem; }
.work-item__body p { color: var(--text-muted); }
.work-item__tag {
  display: inline-block; margin-bottom: 1rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--axle-400);
}
.work-item__figure { margin: 0; }
.work-item__figure figcaption {
  margin-top: .9rem; font-size: .8rem; color: var(--text-muted); line-height: 1.5;
}
.work-shot {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-inset); overflow: hidden;
}
.work-shot svg { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
  .work-item { grid-template-columns: 1fr 1.15fr; }
  .work-item:nth-child(even) .work-item__body { order: 2; }
}

/* ---------- capability + process ---------- */
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.65rem;
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: .65rem; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card__icon { color: var(--axle); margin-bottom: 1.15rem; }
.card__icon svg { width: 26px; height: 26px; }

.steps { display: grid; gap: 1.25rem; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  border-top: 2px solid var(--line-warm); padding-top: 1.4rem;
}
.step__n {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  color: var(--axle-400); margin-bottom: .8rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* ---------- connected job diagram ---------- */
.flow { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
        background: var(--bg-panel); padding: clamp(1.4rem, 3vw, 2.5rem); }
.flow__label {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.flow__svg { width: 100%; overflow-x: auto; }
.flow__svg svg { min-width: 640px; }
.flow__caption { margin-top: 1.5rem; color: var(--text-muted); font-size: .95rem; max-width: 46rem; }

/* ---------- tools ---------- */
.tools { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px)  { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool {
  display: flex; flex-direction: column;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.tool h3 { margin-bottom: .7rem; }
.tool p { color: var(--text-muted); font-size: .95rem; }
.tool__note { margin-top: .85rem; font-size: .85rem; color: var(--text-muted); }
.tool__action { margin-top: auto; padding-top: 1.5rem; }
.tool--feature { border-color: var(--line-warm); background:
  linear-gradient(160deg, rgba(255,95,21,.07) 0%, rgba(255,95,21,0) 55%), var(--bg-panel); }
@media (min-width: 760px) { .tool--feature { grid-column: 1 / -1; } }
.tool--feature .tool__inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .tool--feature .tool__inner { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* ---------- intelligence ---------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }

/* ---------- enquiry form ---------- */
.contact-shell {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 3rem);
}
.form-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field--wide { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: .5rem;
  font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);            /* 8.19:1 */
}
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.05rem;
  background: var(--bg-inset); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, background-color .2s ease;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A93; }  /* 5.1:1 */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-warm); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--axle); outline-offset: 1px; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: #FF6B6B; }
.field__error { display: none; margin-top: .45rem; font-size: .85rem; font-weight: 650; color: #FF8C8C; } /* 7.1:1 */
.field[data-invalid='true'] .field__error { display: block; }
.field__help { margin-top: .5rem; font-size: .82rem; color: var(--text-muted); }

.honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { grid-column: 1 / -1; font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

.form-status { grid-column: 1 / -1; }
.status-box { border-radius: 12px; padding: 1.1rem 1.25rem; font-size: .95rem; line-height: 1.6; }
.status-box--error { background: rgba(255,107,107,.10); border: 1px solid rgba(255,107,107,.42); color: #FFB4B4; }
.status-box--ok    { background: rgba(255,95,21,.10);  border: 1px solid var(--line-strong); color: var(--text); }
.status-box h3 { margin-bottom: .5rem; }

.contact-details { display: grid; gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .contact-details { grid-template-columns: repeat(3, 1fr); } }
.contact-details dt {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .5rem;
}
.contact-details dd { margin: 0; font-weight: 700; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--axle-400); }

/* ---------- brand line ---------- */
.brandline { text-align: center; max-width: 40rem; margin-inline: auto; }
.brandline h2 { font-size: clamp(1.7rem, 1rem + 3vw, 2.85rem); }
.brandline p { color: var(--text-muted); margin-top: 1.2rem; font-size: 1.075rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-inset); padding-block: 3.25rem 2.5rem; }
.site-footer__top { display: grid; gap: 2rem; }
@media (min-width: 820px) { .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
                  color: var(--text-muted); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; color: var(--text-muted); font-size: .93rem; font-weight: 600; }
.site-footer a:hover { color: var(--text); }
.site-footer__legal {
  margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: var(--text-faint);       /* 8.19:1 — was 2.72:1 */
}

/* ---------- progressive reveal ----------
   Content is visible by default. Only once site.js confirms it can drive the
   animation does it hide sections, and a watchdog re-shows them if anything fails. */
.reveal { opacity: 1; transform: none; }
html[data-reveal='on'] .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
html[data-reveal='on'] .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html[data-reveal='on'] .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- preview-only notice (never present in production output) ---------- */
.preview-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  background: #1C1206; border-top: 1px solid var(--line-strong);
  color: #FFCBA8; font-size: .84rem; font-weight: 700; text-align: center;
  padding: .7rem 1rem;
}
