/* ==========================================================================
   Fonts - self-hosted (no third-party request, no IP shared with Google).
   Variable weight ranges, so one file per subset covers every weight used.
   unicode-range means en-GB visitors only ever fetch the two 'latin' files.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-400-700-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-400-700-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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500-700-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500-700-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;
}

/* ==========================================================================
   LDG Labs - design tokens
   ========================================================================== */
:root {
  --ink: #111214;
  --paper: #FAFAF8;
  --signal-blue: #2F6FED;
  --signal-blue-dark: #1E54C4;
  --circuit-cyan: #0BB4D6;
  --slate: #6B7280;
  --white: #FFFFFF;
  --line: rgba(17, 18, 20, 0.1);

  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-card: 0 4px 20px rgba(17, 18, 20, 0.06);
  --shadow-lift: 0 12px 32px rgba(17, 18, 20, 0.12);

  --container: 1180px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: 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;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

p { color: var(--slate); }

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

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
}

section { padding: 4.5rem 0; }

@media (min-width: 1024px) {
  section { padding: 6.5rem 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head p { margin-top: 0.85rem; font-size: 1.05rem; }

.section-head.center { margin-inline: auto; text-align: center; }

/* Focus states - visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--signal-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--signal-blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.3);
}
.btn-primary:hover { background: var(--signal-blue-dark); box-shadow: 0 8px 22px rgba(47, 111, 237, 0.4); }

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

.btn-block { width: 100%; white-space: normal; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(250, 250, 248, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--paper);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 480px) {
  .nav-actions { gap: 0.75rem; }
}

@media (min-width: 720px) {
  .nav-actions { gap: 1.1rem; }
}

.nav-email-btn,
.nav-cta {
  padding: 0 0.75rem;
  font-size: 0.75rem;
  height: 34px;
  min-height: 0;
}
@media (min-width: 480px) {
  .nav-email-btn,
  .nav-cta { padding: 0 1.25rem; font-size: 0.88rem; height: 42px; }
}

.nav-email-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(250, 250, 248, 0.28);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nav-email-btn:hover { border-color: var(--circuit-cyan); background: rgba(11, 180, 214, 0.1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 5.5rem;
  min-height: calc(100vh - 73px);
  /* svh, not dvh: dvh re-resolves on every frame of the mobile URL-bar
     show/hide, reflowing the whole document mid-scroll. svh is static. */
  min-height: calc(100svh - 73px);
  background: radial-gradient(60% 55% at 50% 30%, rgba(17, 18, 20, 0.06), transparent 70%);
}

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.9rem + 4.8vw, 5.5rem);
  margin-bottom: 1.25rem;
}

.hero .subhead {
  font-size: 1.2rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hero-scroll-bounce 2.2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hero-scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation-play-state: paused;
}
.hero-scroll-cue svg { width: 18px; height: 18px; }
.hero-scroll-cue:hover { color: var(--ink); }

@media (max-height: 760px) {
  .hero { padding: 1.5rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); margin-bottom: 0.75rem; }
  .hero .subhead { font-size: 1.05rem; margin-bottom: 1.25rem; }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(47, 111, 237, 0.1);
  color: var(--signal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.98rem; }

/* ==========================================================================
   Process / circuit trace
   ========================================================================== */
.process { background: var(--white); }

.process-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 860px) {
  .process-track {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .process-step { flex: 1; max-width: 230px; margin-inline: 0; }
}

.process-step .step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--line);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: border-color 0.4s ease, color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.process-step.is-lit .step-num {
  border-color: var(--signal-blue);
  color: var(--signal-blue);
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(47, 111, 237, 0.12);
}

.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { font-size: 0.95rem; }

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
  flex-shrink: 0;
  transition: color 0.4s ease;
}
.process-arrow svg {
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}
.process-arrow.is-lit { color: var(--signal-blue); }

@media (min-width: 860px) {
  .process-arrow { margin-top: 27px; padding: 0 0.25rem; }
  .process-arrow svg { transform: rotate(0deg); }
}

/* ==========================================================================
   Work / portfolio
   ========================================================================== */
.work-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 860px) {
  .work-card { grid-template-columns: 1fr 1fr; padding: 3rem; align-items: center; }
}

.work-card h3 { color: var(--paper); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.85rem; }
.work-card p { color: rgba(250, 250, 248, 0.75); font-size: 1.02rem; margin-bottom: 1.5rem; }

.work-visual {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.25), rgba(11, 180, 214, 0.2));
  aspect-ratio: 16/11;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 250, 248, 0.12);
}
.work-preview {
  aspect-ratio: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--white);
}

/* On phones the card padding leaves the preview cramped - let it bleed out
   toward the card edge so the screenshot reads bigger. The card's own
   overflow:hidden keeps this from touching page width. */
@media (max-width: 859px) {
  .work-preview { margin-inline: -1.5rem; }
}

/* Chrome-style browser frame around the site preview */
.browser-frame {
  flex-shrink: 0;
  background: #dee1e6;
  -webkit-user-select: none;
  user-select: none;
}

.browser-tabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 25px;
  padding: 0 0 0 7px;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  /* Content-sized, not flex:1 - so the title is never clipped when there's room */
  flex: 0 1 auto;
  min-width: 0;
  max-width: 210px;
  height: 20px;
  padding: 0 9px;
  border-radius: 7px 7px 0 0;
  background: var(--white);
  color: #3c4043;
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1;
}
.browser-tab > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-favicon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  object-fit: contain;
}
.browser-newtab {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-bottom: 5px;
  color: #5f6368;
}

/* Windows-style caption buttons, flush to the top-right corner */
.window-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  align-self: stretch;
  flex-shrink: 0;
  color: #3c4043;
}
.window-controls svg {
  width: 8px;
  height: 8px;
  padding: 0 7px;
  box-sizing: content-box;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 9px;
  background: var(--white);
}

.browser-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #5f6368;
}
.browser-nav svg { width: 11px; height: 11px; }
.browser-nav svg.is-dim { opacity: 0.4; }

.browser-omnibox {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 0.6rem;
}
.browser-omnibox svg { width: 9px; height: 9px; flex-shrink: 0; color: #5f6368; }
.browser-omnibox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-menu { width: 11px; height: 11px; flex-shrink: 0; color: #5f6368; }

@media (max-width: 859px) {
  .browser-tabs { height: 22px; padding: 0 0 0 6px; gap: 4px; }
  .browser-tab { height: 18px; font-size: 0.54rem; padding: 0 7px; gap: 4px; max-width: 180px; }
  .tab-favicon { width: 9px; height: 9px; }
  .browser-newtab { width: 9px; height: 9px; margin-bottom: 4px; }
  .window-controls svg { width: 7px; height: 7px; padding: 0 5px; }
  .browser-toolbar { height: 24px; gap: 7px; padding: 0 8px; }
  .browser-nav { gap: 7px; }
  .browser-nav svg { width: 10px; height: 10px; }
  .browser-omnibox { height: 16px; font-size: 0.54rem; padding: 0 8px; gap: 5px; }
  .browser-omnibox svg { width: 8px; height: 8px; }
  .browser-menu { width: 10px; height: 10px; }
}

/* Scoped to the screenshot only - must not capture the favicon <img> in the tab */
.work-preview > picture { display: block; min-width: 0; }
.work-preview > picture > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 800;
  display: block;
}

.work-card .btn-primary { background: var(--circuit-cyan); box-shadow: 0 6px 18px rgba(11, 180, 214, 0.3); }
.work-card .btn-primary:hover { background: #0999b8; }

.work-quote {
  border-left: 3px solid var(--circuit-cyan);
  padding-left: 1rem;
  margin: 0 0 1.5rem;
}
.work-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--paper);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.work-quote cite {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(250, 250, 248, 0.6);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.85rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.faq-question .icon svg { width: 14px; height: 14px; }

.faq-item[open] .faq-question .icon {
  background: var(--signal-blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer { padding: 0 1.4rem 1.25rem; font-size: 0.98rem; }

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

/* ==========================================================================
   Contact / quote form
   ========================================================================== */
.contact { background: var(--white); }

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

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
}

.contact-info h2 { margin-bottom: 0.9rem; }
.contact-info p { margin-bottom: 1.5rem; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--signal-blue);
  padding: 0.9rem 1.25rem;
  background: rgba(47, 111, 237, 0.08);
  border-radius: var(--radius-sm);
}
.contact-email svg { width: 20px; height: 20px; flex-shrink: 0; }

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.14);
}

.form-legal {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.9rem;
}
.form-legal a { color: var(--signal-blue); text-decoration: underline; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.form-status.success { display: block; background: rgba(47, 111, 237, 0.14); color: var(--signal-blue-dark); }
.form-status.error { display: block; background: rgba(220, 38, 38, 0.1); color: #b91c1c; }

/* --------------------------------------------------------------------------
   Form success state - replaces the form once an enquiry is sent
   -------------------------------------------------------------------------- */
.form-panel { position: relative; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(47, 111, 237, 0.07), transparent 70%),
    var(--white);
  box-shadow: var(--shadow-card);
  animation: form-success-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }

.form-success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--signal-blue);
  box-shadow: 0 0 0 8px rgba(47, 111, 237, 0.12), 0 10px 24px rgba(47, 111, 237, 0.28);
  animation: form-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}
.form-success-icon svg {
  width: 30px;
  height: 30px;
  /* Draw the tick on rather than having it just appear */
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: form-success-tick 0.4s ease-out 0.36s forwards;
}

.form-success h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
  margin-bottom: 0.6rem;
}
.form-success-lead {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.form-success-again {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-success-again:hover { border-color: var(--ink); background: rgba(17, 18, 20, 0.04); }

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes form-success-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes form-success-tick {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .form-success,
  .form-success-icon { animation: none; }
  .form-success-icon svg { stroke-dashoffset: 0; animation: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #000000;
  color: rgba(250, 250, 248, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 250, 248, 0.12);
  margin-bottom: 1.75rem;
}

@media (min-width: 700px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-logo img { height: 76px; width: auto; }

.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; font-size: 0.95rem; }
.footer-contact a:hover { color: var(--circuit-cyan); }

@media (min-width: 700px) {
  .footer-contact { align-items: flex-end; }
}

.footer-socials { display: flex; align-items: center; gap: 1rem; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.08);
  color: rgba(250, 250, 248, 0.8);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.footer-socials a:hover { background: var(--circuit-cyan); color: var(--ink); }
.footer-socials svg { width: 21px; height: 21px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }

/* Statutory trading disclosures - two lines, so give them room to breathe */
.footer-legal { line-height: 1.65; }

/* ==========================================================================
   404
   ========================================================================== */
.error-main {
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  text-align: center;
}
.error-main .container { max-width: 640px; }

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--signal-blue), var(--circuit-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.error-main h1 { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 0.9rem; }
.error-lead { color: var(--slate); font-size: 1.05rem; margin-bottom: 2rem; }

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.error-meta { font-size: 0.9rem; color: var(--slate); }
.error-meta a { color: var(--signal-blue); text-decoration: underline; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-main { padding: 3.5rem 0 5rem; }
.legal-main .container { max-width: 760px; }
.legal-main h1 { margin-bottom: 0.5rem; }
.legal-updated { color: var(--slate); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-main h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.legal-main p, .legal-main li { color: var(--slate); margin-bottom: 0.9rem; }
.legal-main ul { padding-left: 1.25rem; list-style: disc; }
.legal-main a { color: var(--signal-blue); text-decoration: underline; }
.legal-main strong { color: var(--ink); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
