/* ==========================================================================
   Conor Chapman — personal brand site
   Layout: Flexbox only (no CSS Grid). Mobile first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --colour-ink: #0B0D12;
  --colour-white: #FFFFFF;
  --colour-orange: #FF3F24;           /* lead brand colour on this site */
  --colour-orange-deep: #D42A10;      /* orange for small text on white (4.5:1+) */
  --colour-orange-hover: #E5321A;
  --colour-orange-tint: #FFECE6;      /* second-tone headline text on orange */
  --colour-grey-light: #F3F3F5;       /* light grey sections */
  --colour-mist: #F5F5F7;             /* neutral light panels */
  --colour-green: #22C55E;            /* "available" dot only */
  --colour-grey: #8A8D96;
  --colour-ink-soft: #4A4D55;         /* secondary text on light (7:1+) */
  --colour-border-dark: rgba(11, 13, 18, 0.12);
  /* Mango Digital's blue stays reserved for Mango and is not used here: #315CFF */

  /* Type */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --font-section-title: clamp(2.2rem, 4.4vw, 4rem);
  --font-h3: clamp(1.35rem, 2vw, 1.75rem);
  --font-body-large: clamp(1.1rem, 1.5vw, 1.3rem);
  --font-small: 0.82rem;

  /* Layout */
  --container-wide: 1440px;
  --container-main: 1280px;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(5rem, 9vw, 9rem);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Shape & motion */
  --radius-md: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;

  --header-h: 76px;

  /* Section theme defaults (white) */
  --bg: var(--colour-white);
  --fg: var(--colour-ink);
  --fg-soft: var(--colour-ink-soft);
  --rule: var(--colour-border-dark);
  --accent: var(--colour-orange);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background: var(--colour-white);
  color: var(--colour-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--colour-orange); color: var(--colour-white); }

:focus-visible {
  outline: 2px solid var(--colour-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.theme-orange :focus-visible { outline-color: var(--colour-white); }
.theme-orange .enquiry :focus-visible { outline-color: var(--colour-ink); }

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

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--colour-ink);
  color: var(--colour-white);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.section { padding-block: var(--section-space); background: var(--bg); color: var(--fg); }

.theme-orange {
  --bg: var(--colour-orange);
  --fg: var(--colour-white);
  --fg-soft: var(--colour-white);
  --rule: rgba(255, 255, 255, 0.4);
  --accent: var(--colour-white);
}
.theme-grey {
  --bg: var(--colour-grey-light);
  --rule: rgba(11, 13, 18, 0.12);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lead {
  font-size: var(--font-body-large);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 38em;
  text-wrap: pretty;
}
.theme-orange .lead { font-weight: 500; }

/* ---------- Sticker pill: the tilted highlight label used across the site ---------- */
.sticker {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 0.32em 0.8em 0.36em;
  border: 1px solid var(--colour-border-dark);
  border-radius: 10px;
  background: var(--colour-white);
  color: var(--colour-orange);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  box-shadow: 0 6px 16px -12px rgba(11, 13, 18, 0.35);
}
.sticker--on-orange,
.theme-orange .sticker { border-color: transparent; color: var(--colour-orange); }

/* Inline highlight inside a headline (same pill language) */
.highlight {
  display: inline-block;
  padding: 0 0.14em 0.06em;
  margin-inline: 0.02em;
  border-radius: 0.16em;
  background: var(--colour-orange);
  color: var(--colour-white);
  line-height: 1;
  rotate: -2deg;
}

/* ---------- Section titles: same type treatment as the h1 ---------- */
.section-title {
  font-size: var(--font-section-title);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
  max-width: 15em;
}
.section-title .accent { color: var(--colour-orange); }
.theme-orange .section-title .accent { color: var(--colour-orange-tint); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head__main { display: flex; flex-direction: column; gap: var(--space-5); }
.section-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 26em; }
@media (min-width: 900px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-8); }
  .section-head--split .section-head__aside { flex: 0 0 min(340px, 34%); padding-bottom: var(--space-2); }
}

/* ---------- Links ---------- */
.text-link {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--dur) var(--ease), text-decoration-thickness var(--dur) var(--ease);
}
.text-link:hover { text-decoration-color: var(--colour-orange); text-decoration-thickness: 2.5px; }
.theme-orange .text-link:hover { text-decoration-color: var(--colour-white); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--primary { background: var(--colour-orange); color: var(--colour-white); }
.btn--primary:hover { background: var(--colour-orange-hover); }

.btn--secondary,
.btn--outline {
  background: transparent;
  border-color: rgba(11, 13, 18, 0.3);
  color: var(--colour-ink);
}
.btn--secondary:hover,
.btn--outline:hover { border-color: var(--colour-ink); background: var(--colour-white); }

.btn--light { background: var(--colour-white); color: var(--colour-ink); padding-inline: var(--space-6); }
.btn--light:hover { background: var(--colour-ink); color: var(--colour-white); }

/* Pill CTA with Conor's avatar and a green "available" dot */
.btn--pill { gap: var(--space-3); padding: 6px var(--space-5) 6px 6px; flex: none; }
.avatar { position: relative; flex: none; width: 40px; height: 40px; }
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar__dot {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--colour-green);
  border: 2px solid var(--colour-white);
}

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(11, 13, 18, 0.2);
  border-radius: 50%;
  background: var(--colour-white);
  color: var(--colour-ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--colour-ink); color: var(--colour-white); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* Status dot (strip + contact) */
.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--colour-white);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulse 2.8s var(--ease) infinite;
}
.availability .status-dot { background: var(--colour-green); color: var(--colour-green); }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   Status strip
   ========================================================================== */
.status-strip {
  background: var(--colour-grey-light);
  color: var(--colour-ink);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--colour-border-dark);
}
.status-strip .status-dot { background: var(--colour-green); color: var(--colour-green); }
.status-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  min-height: 40px;
  padding-block: var(--space-2);
  text-align: center;
}
.status-strip__text { display: inline-flex; align-items: center; gap: var(--space-3); }
.status-strip__link { color: var(--colour-ink); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--colour-orange); }
.status-strip__link:hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--colour-border-dark);
  transition: transform 0.4s var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: saturate(1.2) blur(10px); }
}
.site-header.is-hidden { transform: translateY(-100%); }

/* Scrolling up: only the CTA pill and menu button return */
.site-header.is-compact {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.site-header.is-compact .site-header__inner { justify-content: flex-end; }
.site-header.is-compact .brand,
.site-header.is-compact .primary-nav { display: none; }
.site-header.is-compact .site-header__actions { pointer-events: auto; }
.site-header.is-compact .site-header__cta,
.site-header.is-compact .menu-toggle {
  display: inline-flex;
  box-shadow: 0 0 0 2px var(--colour-white), 0 14px 30px -14px rgba(11, 13, 18, 0.5);
}
/* Menu open: logo back above the panel */
.site-header.is-menu-open { pointer-events: auto; }
.site-header.is-menu-open .site-header__inner { justify-content: space-between; }
.site-header.is-menu-open .brand { display: inline-flex; }
.site-header.is-menu-open .primary-nav,
.site-header.is-menu-open .site-header__cta { display: none !important; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  color: var(--colour-ink);
  text-decoration: none;
}
.brand__logo { display: block; width: auto; height: 26px; transition: opacity var(--dur) var(--ease); }
.brand:hover .brand__logo { opacity: 0.85; }


.primary-nav { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: var(--space-1); }
.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  font-weight: 500;
  text-decoration: none;
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--colour-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav__link:hover::after,
.primary-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav__link[aria-current="true"] { font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.site-header__cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--colour-orange);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.menu-toggle:hover { background: var(--colour-orange-hover); }
.menu-toggle__icon { display: flex; flex-direction: column; gap: 6px; width: 20px; }
.menu-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--colour-white);
  transition: transform var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu panel — full screen, content starts below the header */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  padding: calc(var(--menu-offset, var(--header-h)) + var(--space-5)) 0 var(--space-7);
  background: var(--colour-white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-menu[hidden] { display: none; }
.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}
.site-menu__inner { display: flex; flex-direction: column; gap: var(--space-7); min-height: 100%; }
.site-menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--colour-border-dark); }
.site-menu__list li { border-bottom: 1px solid var(--colour-border-dark); }
.site-menu__link {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-block: var(--space-2);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-menu__link:hover { color: var(--colour-orange); padding-left: var(--space-2); }
.site-menu__footer { display: flex; flex-direction: column; gap: var(--space-5); margin-top: auto; }
.site-menu__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  color: var(--colour-ink-soft);
}
@media (min-width: 700px) {
  .site-menu__footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: var(--space-8) var(--space-9);
  overflow: hidden;
}
/* Fine technical grid, faded at the edges (decorative) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 13, 18, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 18, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; gap: var(--space-8); }
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  container-type: inline-size;
}
/* Headline sized to its column so each line stays whole ("Turn attention" ≈ 6.6em wide) */
.hero__title {
  margin-top: var(--space-2);
  font-size: clamp(2.4rem, 12.6cqi, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero__title-line { display: block; }
.hero__title-line + .hero__title-line { margin-top: 0.06em; }
.hero__intro { max-width: 32em; }
.hero .btn-row { margin-top: var(--space-3); }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  width: 100%;
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--colour-border-dark);
  color: var(--colour-ink-soft);
  font-size: 0.94rem;
}
.hero__trust li { display: inline-flex; align-items: center; gap: var(--space-3); }
.hero__trust li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--colour-orange);
}
.hero__trust strong { color: var(--colour-ink); font-weight: 600; }

.hero__visual { display: flex; flex-direction: column; align-items: flex-end; width: 100%; max-width: 520px; }
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--colour-mist);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait__meta {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  pointer-events: none;
}
.portrait__meta--top { top: var(--space-4); }
.portrait__meta--bottom { bottom: var(--space-4); }
.portrait__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px var(--space-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--colour-ink);
  font-size: 0.7rem;
}
.portrait__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--colour-green); }

/* Attached note — in flow, pulled over the portrait edge on wider screens */
.hero__note {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 320px;
  margin-top: calc(var(--space-6) * -1);
  margin-right: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--colour-white);
  box-shadow: 0 22px 44px -18px rgba(11, 13, 18, 0.35);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hero { padding-block: var(--space-9) var(--space-10); }
  .hero__inner { flex-direction: row; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
  .hero__copy { flex: 1 1 56%; min-width: 0; }
  .hero__visual { flex: 1 1 40%; }
  .hero__note { margin-right: auto; margin-left: calc(var(--space-7) * -1); margin-top: calc(var(--space-8) * -1); }
}
@media (max-width: 899px) {
  .portrait__meta--bottom { display: none; }
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.cred { border-block: 1px solid var(--colour-border-dark); }
.cred__list { display: flex; flex-wrap: wrap; }
.cred__item {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4) var(--space-5) 0;
  border-bottom: 1px solid var(--colour-border-dark);
}
.cred__item:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--colour-border-dark); }
.cred__item:nth-last-child(-n + 2) { border-bottom: 0; }
.cred__index { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--colour-ink-soft); }
.cred__index::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--colour-orange); }
.cred__value { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

@media (max-width: 420px) {
  .cred__item { flex-basis: 100%; padding-inline: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--colour-border-dark) !important; }
  .cred__item:last-child { border-bottom: 0 !important; }
}
@media (min-width: 900px) {
  .cred__item {
    flex: 1 1 0;
    padding: var(--space-6) var(--space-5) !important;
    border-bottom: 0;
    border-left: 1px solid var(--colour-border-dark);
  }
  .cred__item:first-child { border-left: 0; padding-left: 0 !important; }
}

/* ==========================================================================
   How I can help — horizontal card track
   ========================================================================== */
.help__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.help__intro { display: flex; flex-direction: column; gap: var(--space-5); max-width: 760px; }
.help__controls { display: flex; gap: var(--space-3); }

.help__track {
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: var(--space-1) max(var(--page-gutter), calc((100% - var(--container-main)) / 2)) var(--space-5);
  scroll-padding-inline: max(var(--page-gutter), calc((100% - var(--container-main)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.help__track::-webkit-scrollbar { display: none; }
.help__track:focus-visible { outline-offset: -2px; }

.help-card {
  flex: 0 0 min(84vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--colour-mist);
  scroll-snap-align: start;
}
.help-card__title {
  margin-top: var(--space-3);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.help-card__text { flex: 1 1 auto; color: var(--colour-ink-soft); }
.help-card .btn { margin-top: var(--space-2); color: var(--colour-orange); }
.help-card .btn:hover { border-color: var(--colour-orange); background: var(--colour-orange); color: var(--colour-white); }

/* ----- Card illustrations (decorative, built in HTML/CSS) ----- */
.art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: var(--space-5);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.88rem;
}
.art--grey { background: #EAEAEE; color: var(--colour-ink); }
.art--white { background: var(--colour-white); color: var(--colour-ink); box-shadow: inset 0 0 0 1px var(--colour-border-dark); }

/* 1. Review chips */
.art-chips { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.art-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 16px;
  border: 1px solid rgba(11, 13, 18, 0.12);
  border-radius: 999px;
  background: var(--colour-white);
  font-weight: 500;
  white-space: nowrap;
}
.art-chip:nth-child(1) { rotate: -3deg; }
.art-chip:nth-child(2) { align-self: flex-end; rotate: 2deg; }
.art-chip:nth-child(3) { margin-left: 10%; rotate: -1deg; }
.art-chip:nth-child(4) { align-self: flex-end; rotate: 2.5deg; }
.art-chip--solid { background: var(--colour-orange); border-color: var(--colour-orange); color: var(--colour-white); font-weight: 600; }

/* 2. Browser */
.art-browser {
  width: 100%;
  border-radius: 12px;
  background: var(--colour-white);
  border: 1px solid var(--colour-border-dark);
  box-shadow: 0 18px 36px -24px rgba(11, 13, 18, 0.35);
  overflow: hidden;
}
.art-browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #F1F1F3; }
.art-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CFCFD4; }
.art-browser__body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.art-browser__nav { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.art-browser__nav span { width: 22px; height: 4px; border-radius: 2px; background: #D9D9DE; }
.art-browser__nav span:first-child { width: 42px; height: 6px; margin-right: auto; background: var(--colour-ink); }
.art-browser__hero { display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 8px; background: #F1F1F3; }
.art-bar { height: 6px; border-radius: 3px; background: var(--colour-ink); }
.art-bar--70 { width: 70%; }
.art-bar--45 { width: 45%; }
.art-bar--soft { opacity: 0.3; }
.art-pill { width: 52px; height: 14px; margin-top: 4px; border-radius: 999px; background: var(--colour-orange); }
.art-browser__row { display: flex; gap: 8px; }
.art-browser__row span { flex: 1; height: 34px; border-radius: 6px; background: #F1F1F3; }

/* 3. Search */
.art-search { display: flex; flex-direction: column; width: 100%; }
.art-search__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 9px 16px;
  border: 1px solid rgba(11, 13, 18, 0.12);
  border-radius: 999px;
  background: var(--colour-white);
  font-weight: 500;
}
.art-search__result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid rgba(11, 13, 18, 0.1);
  color: var(--colour-ink-soft);
  font-weight: 500;
}
.art-search__result span { width: 34px; height: 3px; border-radius: 2px; background: rgba(11, 13, 18, 0.18); }
.art-search__result--you {
  border-top: 0;
  border-radius: 10px;
  background: var(--colour-white);
  color: var(--colour-ink);
  font-weight: 700;
}
.art-search__result--you span { width: 60px; background: var(--colour-orange); }

/* 4. Video */
.art-video { display: flex; align-items: center; justify-content: center; gap: var(--space-5); height: 100%; }
.art-phone {
  height: 100%;
  aspect-ratio: 9 / 17;
  padding: 5px;
  border-radius: 18px;
  background: var(--colour-ink);
  rotate: -3deg;
}
.art-phone__screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 13px;
  background: #2A2D35;
}
.art-phone__play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--colour-white);
}
.art-phone__caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 20px;
  color: var(--colour-white);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}
.art-phone__progress { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }
.art-phone__progress i { display: block; width: 22%; height: 100%; border-radius: 2px; background: var(--colour-white); }
.art-beats { display: flex; flex-direction: column; gap: 10px; }
.art-beat {
  width: fit-content;
  padding: 7px 14px;
  border: 1px solid rgba(11, 13, 18, 0.14);
  border-radius: 999px;
  background: var(--colour-white);
  font-weight: 600;
  white-space: nowrap;
}
.art-beat small { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.85; }
.art-beat--on { border-color: var(--colour-orange); background: var(--colour-orange); color: var(--colour-white); }
.art-beat:nth-child(3) { margin-left: 14px; }

/* 5. Calendar */
.art-cal {
  position: relative;
  width: 88%;
  padding: 12px 14px 16px;
  border-radius: 12px;
  background: var(--colour-white);
  color: var(--colour-ink);
  rotate: -2deg;
  box-shadow: 0 18px 36px -18px rgba(11, 13, 18, 0.45);
}
.art-cal__title {
  margin-bottom: 6px;
  color: var(--colour-orange-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.art-cal__days { display: flex; flex-wrap: wrap; }
.art-cal__days span {
  position: relative;
  width: calc(100% / 7);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 22px;
  text-align: center;
}
.art-cal__days .art-cal__dow { color: var(--colour-grey); }
.art-cal__days .on { color: var(--colour-orange-deep); font-weight: 600; }
.art-cal__days .on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 1.5px solid rgba(255, 63, 36, 0.7);
  border-radius: 50%;
}
.art-cal__sticker {
  position: absolute;
  right: -10px;
  bottom: -14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--colour-ink);
  color: var(--colour-white);
  font-size: 0.76rem;
  font-weight: 700;
  rotate: -5deg;
}

/* 6. AI flow */
.art-flow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.art-flow__step {
  position: relative;
  padding: 7px 18px;
  border: 1px solid rgba(11, 13, 18, 0.14);
  border-radius: 999px;
  background: var(--colour-white);
  font-weight: 600;
  white-space: nowrap;
}
.art-flow__step + .art-flow__step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 1.5px;
  height: 14px;
  background: rgba(11, 13, 18, 0.3);
}
.art-flow__step--human { border-color: var(--colour-ink); background: var(--colour-ink); color: var(--colour-white); }
.art-flow__step--human::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--colour-orange); vertical-align: middle; }

/* ==========================================================================
   About
   ========================================================================== */
.about__inner { display: flex; flex-direction: column; gap: var(--space-8); }
.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.about__prose { display: flex; flex-direction: column; gap: var(--space-4); max-width: 36em; }
.about__prose p { font-size: 1.05rem; line-height: 1.65; color: var(--colour-ink-soft); }
.about__prose .about__lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--colour-ink); font-weight: 500; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-2); }

.profile { position: relative; width: min(100%, 460px); margin-inline: auto; }
.profile__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--colour-mist);
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.85rem;
  font-weight: 600;
}
.profile__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--colour-green); }
/* Info card overlapping the bottom of the photo */
.profile__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: calc(100% - var(--space-7));
  margin: calc(var(--space-9) * -1) 0 0 auto;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--colour-white);
  box-shadow: 0 24px 48px -24px rgba(11, 13, 18, 0.35);
}
.profile__name { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.profile__role { color: var(--colour-ink-soft); font-size: 0.95rem; }
.profile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.profile__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--colour-grey-light);
  font-size: 0.82rem;
  font-weight: 500;
}
.profile__tags span:first-child { background: var(--colour-orange); color: var(--colour-white); }

@media (min-width: 960px) {
  .about__inner { flex-direction: row; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
  .about__copy { flex: 1 1 52%; min-width: 0; }
  .about__visual { flex: 1 1 44%; min-width: 0; }
}
@media (max-width: 480px) {
  .profile__card { width: calc(100% - var(--space-5)); margin-top: calc(var(--space-8) * -1); }
}

/* ==========================================================================
   AI newsletter
   ========================================================================== */
.newsletter-band { --bg: var(--colour-white); }
.newsletter-band__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--colour-grey-light);
}
.newsletter-band__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.newsletter-band__copy .lead { max-width: 30em; }
.newsletter-band__free { font-weight: 600; }
.newsletter { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.newsletter__row input { flex: 1 1 240px; border-radius: 999px; padding-inline: var(--space-5); }
.newsletter__row .btn { flex: 0 0 auto; }
.newsletter__note { color: var(--colour-ink-soft); font-size: 0.88rem; }
@media (min-width: 960px) {
  .newsletter-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(2.5rem, 5vw, 5rem); }
  .newsletter-band__copy { flex: 1 1 50%; min-width: 0; }
  .newsletter { flex: 1 1 44%; max-width: 520px; }
}
@media (max-width: 599px) {
  .newsletter__row .btn { flex: 1 1 100%; }
}
/* Stacked layout: continue the grey from the About section instead of a white gap + panel */
@media (max-width: 959px) {
  .newsletter-band { --bg: var(--colour-grey-light); padding-top: var(--space-6); }
  .newsletter-band__inner { padding: 0 var(--page-gutter); border-radius: 0; background: transparent; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__list { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.testimonial {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--colour-border-dark);
  border-radius: var(--radius-lg);
}
.testimonial__mark {
  display: block;
  height: 0.5em;
  color: var(--colour-orange);
  font-size: clamp(4rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.8;
}
.testimonial blockquote p { margin-top: var(--space-5); font-size: clamp(1.15rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.45; }
.testimonial__person { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--colour-border-dark); }
.testimonial__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__who { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.testimonial__name { font-weight: 600; }
.testimonial__role { color: var(--colour-ink-soft); font-size: 0.94rem; }
.testimonial__type { margin-top: var(--space-1); color: var(--colour-orange-deep); }
@media (min-width: 760px) {
  .testimonial { flex: 1 1 calc(50% - var(--space-5)); }
}
@media (min-width: 1100px) {
  .testimonial { flex: 1 1 calc(33.333% - var(--space-5)); }
}

/* ==========================================================================
   Final CTA + enquiry form
   ========================================================================== */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.contact__inner { position: relative; display: flex; flex-direction: column; gap: var(--space-8); }
.contact__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.contact__email {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}
.availability { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 500; }

.enquiry {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--colour-white);
  color: var(--colour-ink);
  box-shadow: 0 30px 60px -30px rgba(11, 13, 18, 0.45);
}
.enquiry__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); color: var(--colour-ink-soft); }
.enquiry__row { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.enquiry__row > .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 0.94rem; font-weight: 500; }
.field__opt { color: var(--colour-ink-soft); font-weight: 400; }

.field input,
.field select,
.field textarea,
.newsletter input {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(11, 13, 18, 0.2);
  border-radius: 12px;
  background: var(--colour-white);
  color: var(--colour-ink);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--colour-ink) 50%), linear-gradient(135deg, var(--colour-ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder,
.newsletter input::placeholder { color: var(--colour-ink-soft); opacity: 0.75; }
.field input:hover,
.field select:hover,
.field textarea:hover,
.newsletter input:hover { border-color: rgba(11, 13, 18, 0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter input:focus {
  outline: none;
  border-color: var(--colour-ink);
  box-shadow: 0 0 0 3px rgba(255, 63, 36, 0.3);
}
[aria-invalid="true"] { border-color: var(--colour-orange-deep) !important; border-width: 2px !important; }
.field__error { display: flex; align-items: center; gap: var(--space-2); color: var(--colour-ink); font-size: 0.9rem; font-weight: 500; }
.field__error:empty { display: none; }
.field__error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--colour-orange);
  color: var(--colour-white);
  font-size: 0.7rem;
  font-weight: 700;
}
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.enquiry__small { max-width: 26em; color: var(--colour-ink-soft); font-size: 0.88rem; }
.form-status {
  padding: var(--space-4);
  border: 1px solid var(--colour-border-dark);
  border-radius: 12px;
  background: var(--colour-mist);
  color: var(--colour-ink);
}
.form-status:empty { display: none; }
@media (min-width: 1000px) {
  .contact__inner { flex-direction: row; align-items: flex-start; gap: clamp(3rem, 6vw, 6rem); }
  .contact__copy { flex: 1 1 48%; min-width: 0; padding-top: var(--space-4); }
  .enquiry { flex: 1 1 52%; min-width: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-bottom: var(--space-6); }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-7);
  padding-block: var(--space-8) var(--space-7);
}
.footer-brand { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.footer-brand .brand__logo { height: clamp(34px, 4vw, 46px); }
.footer-brand__desc { color: var(--colour-ink-soft); }
.footer-cols { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer-col { flex: 1 1 140px; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col h2 { margin-bottom: var(--space-1); color: var(--colour-ink-soft); }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  text-decoration-color: var(--colour-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  word-break: break-word;
}
.footer-col a:hover { text-decoration-line: underline; }
.footer-col p { color: var(--colour-ink-soft); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--colour-border-dark);
  color: var(--colour-ink-soft);
  font-size: 0.88rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer__legal a { text-underline-offset: 3px; }
.site-footer__legal a:hover { color: var(--colour-ink); text-decoration-color: var(--colour-orange); }
.site-footer__care { display: inline-flex; align-items: center; gap: var(--space-3); }
.site-footer__care::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--colour-orange); }

/* ==========================================================================
   Motion — reveal on scroll (only when JS adds .has-motion)
   ========================================================================== */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.has-motion .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;
    transition-delay: 0s !important;
  }
  .status-dot::after { display: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
  .status-strip { font-size: 0.82rem; }
  .status-strip__link { display: none; }
  .hero .btn-row > .btn { flex: 1 1 auto; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .hero__trust li::before,
  .hero__trust li + li::before { content: ""; width: 10px; height: 2px; border-radius: 0; background: var(--colour-orange); }
  .hero__note { max-width: none; margin-left: var(--space-4); margin-right: 0; }
  .help__controls { display: none; }
  .art { padding: var(--space-4); font-size: 0.8rem; }
  .art-chips { gap: var(--space-2); }
  .art-chip { padding: 5px 12px; }
}

/* Hide the "Powered by Netlify" badge that Netlify injects on the live site */
#nl-badge-frame { display: none !important; }
