/* ==========================================================
   Foxberry Consulting: shared stylesheet
   ----------------------------------------------------------
   To change the brand colours, edit the variables in :root
   below (--navy, --blue, --cerulean). Everything else follows.
   ========================================================== */
:root {
    --bg: #FFFFFF;
    --ice: #EAF3FB;
    --surface: #FFFFFF;
    --ink: #0A2540;
    --muted: #4B6178;
    --line: #D3E1EE;
    --blue: #0B5CAD;
    --cerulean: #139BE0;
    --link: #0B5CAD;
    --navy: #0A2540;
    --navy-2: #0E3560;
    --on-navy: #EEF5FB;
    --on-navy-muted: #A9C2DA;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #08121F; --ice: #0C1B2D; --surface: #11253B; --ink: #E8F0F8; --muted: #9DB5CB;
      --line: #223F5C; --blue: #4B9BE8; --link: #6DB2F2; --cerulean: #3DB4F0; --navy: #061220; --navy-2: #0B2540;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #08121F; --ice: #0C1B2D; --surface: #11253B; --ink: #E8F0F8; --muted: #9DB5CB;
    --line: #223F5C; --blue: #4B9BE8; --link: #6DB2F2; --cerulean: #3DB4F0; --navy: #061220; --navy-2: #0B2540;
    color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: border-box; }
  :root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--navy); z-index: 60; }
  img, svg { max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--cerulean); outline-offset: 3px; border-radius: 2px; }
  h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
  p { margin: 0; }
  .wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
  section { padding: 104px 0; }

  .btn { display: inline-flex; align-items: center; gap: 10px; background: var(--cerulean); color: #04223D; padding: 14px 26px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--sans); border: 0; cursor: pointer; transition: transform .15s, background .15s; }
  .btn:hover { background: #3DB4F0; }
  .btn.line { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1.5px rgba(238,245,251,.55); }
  .btn.line:hover { background: rgba(255,255,255,.08); }
  .btn.dark { background: var(--navy); color: #fff; }
  .btn.dark:hover { background: var(--navy-2); }
  .arrow { width: 16px; height: 16px; }

  /* Header */
  .util { background: var(--navy); color: var(--on-navy-muted); font-size: 13px; }
  .util .wrap { display: flex; justify-content: flex-end; gap: 24px; height: 36px; align-items: center; }
  .util a { text-decoration: none; }
  .util a:hover { color: #fff; }
  header.site { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px var(--serif); letter-spacing: -0.01em; }
  .brand svg { width: 30px; height: 30px; }
  nav.primary { display: flex; align-items: center; gap: 6px; height: 100%; }
  nav.primary > a, nav.primary > .dd > button { background: none; border: 0; color: var(--ink); font: 500 15px var(--sans); padding: 0 14px; height: 72px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; }
  nav.primary > a:hover, nav.primary > .dd > button:hover, nav.primary > .dd.open > button { border-bottom-color: var(--cerulean); }
  .dd { position: static; height: 100%; }
  .mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(6,30,60,.35); padding: 36px 0 40px; }
  .dd.open .mega { display: block; }
  .mega .wrap { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; }
  .mega h4 { font-size: 24px; margin-bottom: 8px; }
  .mega .intro p { color: var(--muted); font-size: 15px; }
  .mega h5 { margin: 0 0 12px; font: 600 14px var(--sans); color: var(--blue); }
  .mega ul { list-style: none; padding: 0; margin: 0; }
  .mega li a { display: block; padding: 6px 0; text-decoration: none; font-size: 16px; }
  .mega li a:hover { color: var(--link); text-decoration: underline; }
  .menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); font: 500 14px var(--sans); cursor: pointer; }

  /* Hero */
  .hero { background: radial-gradient(1100px 600px at 80% 20%, #124B86 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0A2F57 100%); color: var(--on-navy); padding: 84px 0 96px; overflow: hidden; position: relative; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
  .hero .welcome { font-size: 17px; color: var(--cerulean); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(42px, 6vw, 82px); line-height: 1.02; font-weight: 300; }
  .hero h1 em { font-style: italic; color: #8FD3F7; }
  .hero .lede { margin-top: 28px; max-width: 52ch; font-size: 19px; color: var(--on-navy-muted); }
  .hero .cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-art { width: 100%; height: auto; display: block; }
  @media (prefers-reduced-motion: no-preference) {
    .bar-g { transform-box: fill-box; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both; }
    .bar-g:nth-child(2){animation-delay:.08s}.bar-g:nth-child(3){animation-delay:.16s}.bar-g:nth-child(4){animation-delay:.24s}.bar-g:nth-child(5){animation-delay:.32s}.bar-g:nth-child(6){animation-delay:.4s}.bar-g:nth-child(7){animation-delay:.48s}
    @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .trend { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s .5s cubic-bezier(.3,.6,.2,1) forwards; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-in-out infinite; }
    @keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
    .ring-spin { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
  }

  /* Intro */
  .intro-sec { padding: 96px 0; }
  .split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
  .split h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; font-weight: 300; }
  .split .body p { font-size: 20px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; max-width: 62ch; }
  .split .body p:first-child { color: var(--ink); }
  .textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cerulean); padding-bottom: 2px; }

  /* Services */
  .services { background: var(--ice); }
  .sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
  .sec-head h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; font-weight: 300; max-width: 16ch; }
  .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
  .tab { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; font: 500 15px var(--sans); cursor: pointer; }
  .tab:hover { border-color: var(--blue); }
  .tab[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
  .card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cerulean)); }
  .card:hover { box-shadow: 0 18px 34px -22px rgba(10,37,64,.45); border-color: var(--blue); }
  .card[hidden] { display: none; }
  .ico { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--navy-2), var(--blue)); display: grid; place-items: center; margin-bottom: 22px; color: #fff; }
  .ico svg { width: 30px; height: 30px; }
  .card .practice { font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
  .card h3 { font-size: 28px; line-height: 1.12; margin-bottom: 12px; }
  .card > p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
  .card ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); }
  .card li { padding: 4px 0 4px 22px; position: relative; font-size: 15px; }
  .card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--cerulean); }
  .card.cta-card { background: linear-gradient(155deg, var(--navy), var(--navy-2)); color: var(--on-navy); border: 0; justify-content: center; }
  .card.cta-card::before { display: none; }
  .card.cta-card h3 { font-size: 32px; margin-bottom: 14px; }
  .card.cta-card > p { color: var(--on-navy-muted); }
  .card.cta-card .btn { align-self: flex-start; margin-top: 6px; }

  /* Stats */
  .stats { background: linear-gradient(120deg, var(--blue), #0A3F7C 70%); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
  .stats::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 60px solid rgba(255,255,255,.07); border-radius: 50%; }
  .stats h2 { font-size: 40px; font-weight: 300; margin-bottom: 44px; position: relative; z-index: 1; }
  .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
  .stat { border-top: 2px solid rgba(255,255,255,.45); padding-top: 18px; }
  .stat .num { font: 300 76px/1 var(--serif); letter-spacing: -0.03em; }
  .stat .lbl { margin-top: 10px; color: #CFE3F6; font-size: 16px; max-width: 22ch; }

  /* Insights */
  .insight-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
  .insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
  .insight .art { aspect-ratio: 16/9; background: var(--navy); display: block; width: 100%; }
  .insight .txt { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
  .insight .tag { font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
  .insight h3 { font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
  .insight.lead h3 { font-size: 34px; }
  .insight p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
  .insight .textlink { margin-top: auto; align-self: flex-start; font-size: 15px; }

  /* Industries */
  .industries { background: var(--ice); }
  .ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ind { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; min-height: 150px; justify-content: space-between; }
  .ind svg { width: 34px; height: 34px; color: var(--blue); }
  .ind span { font: 400 22px/1.15 var(--serif); }

  /* Approach */
  .approach { background: var(--navy); color: var(--on-navy); }
  .approach h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 300; line-height: 1.06; max-width: 18ch; margin-bottom: 64px; }
  .path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .path::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--cerulean), rgba(19,155,224,.25)); }
  .stage { position: relative; padding-top: 72px; }
  .stage .dot { position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); border: 2px solid var(--cerulean); display: grid; place-items: center; font: 400 22px var(--serif); color: var(--cerulean); }
  .stage h3 { font-size: 30px; margin-bottom: 10px; }
  .stage p { color: var(--on-navy-muted); font-size: 16px; max-width: 30ch; }

  /* People */
  .people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .person .portrait { aspect-ratio: 1/1.1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--blue)); margin-bottom: 16px; }
  .person .portrait svg { width: 100%; height: 100%; display: block; }
  .person h3 { font-size: 24px; }
  .person .role { color: var(--blue); font-weight: 600; font-size: 15px; margin: 2px 0 8px; }
  .person p { color: var(--muted); font-size: 15px; }

  /* Careers */
  .careers { padding: 0; }
  .career-band { background: linear-gradient(110deg, #0B5CAD, #139BE0); color: #fff; border-radius: 0; position: relative; overflow: hidden; padding: 88px 0; }
  .career-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
  .career-band h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 300; line-height: 1.06; margin-bottom: 18px; }
  .career-band p { font-size: 19px; max-width: 52ch; color: #EAF5FD; margin-bottom: 30px; }
  .career-band svg.bgart { position: absolute; right: 0; top: 0; height: 100%; width: 55%; opacity: .5; }
  .career-band .btn { background: #fff; color: var(--navy); }
  .career-band .btn:hover { background: #EAF3FB; }

  /* Contact */
  .contact { background: var(--ice); }
  .contact .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; }
  .contact h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 300; margin-bottom: 20px; }
  .contact .side p { color: var(--muted); max-width: 42ch; margin-bottom: 28px; font-size: 18px; }
  .office { border-top: 1px solid var(--line); padding-top: 20px; font-size: 16px; color: var(--muted); }
  .office strong { display: block; color: var(--ink); font: 400 22px var(--serif); margin-bottom: 4px; }
  .office a { color: var(--link); font-weight: 600; }
  form.enquiry { display: grid; gap: 18px; background: var(--surface); padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--cerulean); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
  input, select, textarea { font: 400 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
  textarea { min-height: 120px; resize: vertical; }
  input:focus, select:focus, textarea:focus { outline: 3px solid var(--cerulean); outline-offset: 1px; border-color: var(--blue); }
  .note { font-size: 14px; color: var(--muted); }
  #form-status { min-height: 1.4em; font-size: 15px; color: var(--blue); font-weight: 500; }

  footer { background: var(--navy); color: var(--on-navy-muted); padding: 72px 0 40px; font-size: 15px; }
  .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
  footer .brand { color: #fff; margin-bottom: 14px; }
  footer h5 { margin: 0 0 14px; color: #fff; font: 600 15px var(--sans); }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer li { margin-bottom: 8px; }
  footer a { text-decoration: none; }
  footer a:hover { color: #fff; text-decoration: underline; }
  .fbase { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

  /* AI practice */
  .ai { background: radial-gradient(900px 500px at 15% 0%, #0F3F73 0%, transparent 60%), linear-gradient(180deg, #08203B, #0A2540); color: var(--on-navy); position: relative; overflow: hidden; }
  .ai-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
  .ai-head h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; font-weight: 300; }
  .ai-head p { color: var(--on-navy-muted); font-size: 19px; max-width: 54ch; }
  .ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  #wheel { width: 100%; height: auto; max-width: 600px; margin: 0 auto; display: block; overflow: visible; }
  .node { cursor: pointer; color: #8FD3F7; }
  .node .bg { fill: #0E3560; stroke: #4FC3F7; stroke-opacity: .5; stroke-width: 1.5; transition: fill .2s, stroke-opacity .2s; }
  .node:hover .bg, .node:focus-visible .bg { stroke-opacity: 1; }
  .node:focus { outline: none; }
  .node:focus-visible .bg { stroke: #fff; stroke-width: 3; }
  .node text { fill: #CFE3F6; font: 500 14px "Instrument Sans", Arial, sans-serif; }
  .node[aria-pressed="true"] { color: #04223D; }
  .node[aria-pressed="true"] .bg { fill: #139BE0; stroke: #fff; stroke-opacity: 1; }
  .node[aria-pressed="true"] text { fill: #fff; font-weight: 600; }
  .ai-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(143,211,247,.3); border-radius: var(--radius); padding: 38px; min-height: 420px; display: flex; flex-direction: column; }
  .ai-panel .kicker { color: #4FC3F7; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
  .ai-panel h3 { font-size: 36px; line-height: 1.1; margin-bottom: 14px; }
  .ai-panel > p { color: var(--on-navy-muted); font-size: 18px; margin-bottom: 22px; }
  .ai-panel h4 { font: 600 14px var(--sans); color: #fff; margin-bottom: 10px; letter-spacing: 0; }
  .ai-panel ul { list-style: none; padding: 0; margin: 0 0 28px; }
  .ai-panel li { padding: 7px 0 7px 24px; position: relative; border-top: 1px solid rgba(255,255,255,.12); font-size: 16px; }
  .ai-panel li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: #4FC3F7; }
  .ai-panel .btn { align-self: flex-start; margin-top: auto; }
  .studio { margin-top: 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; background: linear-gradient(120deg, #0B5CAD, #139BE0); border-radius: var(--radius); padding: 48px; align-items: center; }
  .studio h3 { font-size: 40px; font-weight: 300; margin-bottom: 14px; }
  .studio p { font-size: 18px; color: #EAF5FD; margin-bottom: 26px; max-width: 48ch; }
  .studio .btn { background: #fff; color: var(--navy); }
  .studio .btn:hover { background: #EAF3FB; }
  .studio ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .studio li { background: rgba(6,32,59,.35); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 16px 20px; font-size: 16px; color: #EAF5FD; }
  .studio li b { display: block; font: 400 24px var(--serif); color: #fff; margin-bottom: 2px; }

  .ai-check { background: var(--ice); }
  .ai-check .sec-head p { max-width: 46ch; color: var(--muted); }
  .check { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
  .qs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 32px; }
  .q { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; }
  .q:last-child { border-bottom: 0; }
  .q legend { padding: 0; font: 400 21px/1.3 var(--serif); margin-bottom: 14px; }
  .segs { display: flex; gap: 8px; flex-wrap: wrap; }
  .seg { position: relative; display: block; }
  .seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .seg span { display: block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font: 500 15px var(--sans); background: var(--bg); }
  .seg input:hover + span { border-color: var(--blue); }
  .seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
  .seg input:focus-visible + span { outline: 3px solid var(--cerulean); outline-offset: 2px; }
  .result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cerulean); border-radius: var(--radius); padding: 32px; text-align: center; }
  .gauge { width: 100%; max-width: 280px; }
  .gauge text { fill: var(--ink); }
  .gauge .small { fill: var(--muted); font: 400 12px var(--sans); }
  .result h3 { font-size: 30px; margin: 6px 0 8px; }
  .result .desc { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
  .recs { text-align: left; margin-bottom: 22px; }
  .recs h4 { font: 600 14px var(--sans); margin-bottom: 8px; color: var(--blue); }
  .recs a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
  .recs a:hover { color: var(--link); }
  .faq { margin-top: 88px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
  .faq h3 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; line-height: 1.1; }
  details.q-a { border-top: 1px solid var(--line); }
  details.q-a:last-child { border-bottom: 1px solid var(--line); }
  details.q-a summary { list-style: none; cursor: pointer; padding: 20px 0; font: 400 22px/1.3 var(--serif); display: flex; justify-content: space-between; gap: 20px; }
  details.q-a summary::-webkit-details-marker { display: none; }
  details.q-a summary::after { content: "+"; font: 300 28px/1 var(--sans); color: var(--blue); flex: none; transition: transform .2s; }
  details.q-a[open] summary::after { transform: rotate(45deg); }
  details.q-a p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
  @media (max-width: 1040px) {
    .ai-head, .ai-grid, .studio, .check, .faq { grid-template-columns: 1fr; gap: 32px; }
    .result { position: static; }
  }
  @media (max-width: 680px) {
    .ai-panel { padding: 26px 22px; min-height: 0; }
    .ai-panel h3 { font-size: 30px; }
    .studio { padding: 30px 22px; }
    .qs { padding: 4px 20px; }
    .node text { font-size: 15px; }
  }

  /* Real estate */
  .re { background: var(--ice); }
  .re-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 32px; }
  .re-head h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; font-weight: 300; }
  .re-head p { color: var(--muted); font-size: 19px; max-width: 54ch; }
  .who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
  .who span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }
  .re-asset { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .re-art { background: linear-gradient(170deg, #08203B, #0E3F73); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 420px; }
  .re-art svg { width: 100%; height: auto; flex: none; margin-block: auto; }
  .re-toggle { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; align-self: flex-start; }
  .re-toggle button { background: transparent; border: 0; color: #CFE3F6; font: 500 15px var(--sans); padding: 10px 22px; border-radius: 999px; cursor: pointer; }
  .re-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy); }
  .re-body { padding: 38px 40px; }
  .re-body h3 { font-size: 38px; margin-bottom: 10px; }
  .re-body > p { color: var(--muted); font-size: 18px; margin-bottom: 20px; max-width: 54ch; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
  .chips span { background: var(--ice); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
  .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 26px; }
  .cols2 h4 { font: 600 14px var(--sans); color: var(--blue); margin-bottom: 10px; letter-spacing: 0; }
  .cols2 ul { list-style: none; padding: 0; margin: 0; }
  .cols2 li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
  .cols2 li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--cerulean); }

  .re-sub { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; margin: 80px 0 28px; }
  .chev { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .chev .ch { background: linear-gradient(90deg, var(--navy-2), var(--blue)); color: #fff; font: 400 20px var(--serif); padding: 16px 12px 16px 28px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); min-height: 64px; display: flex; align-items: center; }
  .chev li:first-child .ch { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 16px; }
  .chev p { padding: 14px 10px 0 4px; color: var(--muted); font-size: 15px; }

  .spectrum { margin-top: 80px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
  .spectrum h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; margin-bottom: 14px; }
  .spectrum .lead { color: var(--muted); font-size: 18px; max-width: 40ch; }
  .sp-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
  .sp-bar button { border: 0; color: #fff; font: 500 16px var(--sans); padding: 22px 12px; cursor: pointer; text-align: center; position: relative; }
  .sp-bar button:nth-child(1) { background: #5BA9E6; color: #05233F; }
  .sp-bar button:nth-child(2) { background: #2F86D2; }
  .sp-bar button:nth-child(3) { background: #0B5CAD; }
  .sp-bar button:nth-child(4) { background: #0A3F7C; }
  .sp-bar button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border: 9px solid transparent; border-bottom-color: var(--surface); }
  .sp-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 8px 2px 14px; }
  .sp-debt { display: block; width: 100%; background: var(--surface); border: 1.5px dashed var(--blue); color: var(--ink); border-radius: var(--radius); padding: 12px; font: 500 15px var(--sans); cursor: pointer; margin-bottom: 14px; }
  .sp-debt[aria-pressed="true"] { background: var(--navy); color: #fff; border-style: solid; border-color: var(--navy); }
  .sp-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
  .sp-detail h4 { font: 400 28px var(--serif); margin-bottom: 8px; letter-spacing: -0.01em; }
  .sp-detail > p { color: var(--muted); margin-bottom: 16px; }
  .sp-detail h5 { margin: 0 0 8px; font: 600 14px var(--sans); color: var(--blue); }
  .sp-detail ul { list-style: none; padding: 0; margin: 0; }
  .sp-detail li { padding: 7px 0 7px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
  .sp-detail li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--cerulean); }

  .re-svc { margin-top: 80px; }
  .re-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .re-svc-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
  .re-svc-item .ico { width: 48px; height: 48px; margin: 0; border-radius: 12px; }
  .re-svc-item .ico svg { width: 26px; height: 26px; }
  .re-svc-item h4 { font: 400 24px/1.2 var(--serif); margin-bottom: 4px; letter-spacing: -0.01em; }
  .re-svc-item p { color: var(--muted); font-size: 16px; }

  .calc { margin-top: 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
  .calc-in { background: var(--surface); padding: 36px; display: grid; gap: 16px; align-content: start; }
  .calc-in h3 { font-size: 32px; }
  .calc-in .muted { color: var(--muted); font-size: 16px; margin-top: -6px; }
  .calc-out { background: linear-gradient(160deg, #08203B, #0E3F73); color: #fff; padding: 36px; display: grid; gap: 20px; align-content: center; }
  .meter .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; color: #CFE3F6; }
  .meter .top b { font: 400 34px var(--serif); color: #fff; }
  .track { height: 10px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
  .fill { height: 100%; background: linear-gradient(90deg, #4FC3F7, #139BE0); border-radius: 999px; width: 0; transition: width .5s cubic-bezier(.3,.6,.2,1); }
  .calc-out .fine { font-size: 13px; color: #A9C2DA; }
  @media (max-width: 1040px) {
    .re-head, .spectrum, .calc, .re-asset { grid-template-columns: 1fr; gap: 28px; }
    .re-asset { gap: 0; }
    .re-art { min-height: 0; }
    .re-art svg { max-height: 260px; }
    .chev { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .re-svc-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 680px) {
    .re-body { padding: 26px 22px; }
    .cols2 { grid-template-columns: 1fr; gap: 20px; }
    .chev { grid-template-columns: 1fr; row-gap: 20px; }
    .chev .ch, .chev li:first-child .ch { clip-path: none; padding: 14px 18px; border-radius: var(--radius); min-height: 0; }
    .chev p { padding: 10px 0 0; }
    .sp-bar { grid-template-columns: 1fr 1fr; }
    .sp-bar button[aria-pressed="true"]::after { display: none; }
    .calc-in, .calc-out { padding: 26px 20px; }
  }

  /* Responsive */
  @media (max-width: 1040px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .insight-grid { grid-template-columns: 1fr 1fr; }
    .insight.lead { grid-column: 1 / -1; }
    .ind-grid, .people-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { max-width: 520px; margin: 0 auto; }
    .split, .contact .wrap, .career-band .wrap { grid-template-columns: 1fr; gap: 32px; }
    .fgrid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 820px) {
    .menu-toggle { display: inline-block; }
    nav.primary { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; height: auto; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); gap: 0; max-height: calc(100vh - 120px); overflow: auto; }
    nav.primary.open { display: flex; }
    nav.primary > a, nav.primary > .dd > button { height: 52px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
    .dd { height: auto; }
    .mega { position: static; box-shadow: none; border: 0; padding: 12px 0 8px; }
    .mega .wrap { grid-template-columns: 1fr; gap: 18px; width: 100%; }
    .mega .intro { display: none; }
    .util { display: none; }
  }
  @media (max-width: 680px) {
    body { font-size: 16px; }
    section { padding: 72px 0; }
    .hero { padding: 56px 0 64px; }
    .cards, .insight-grid, .ind-grid, .people-grid, .path, .fgrid { grid-template-columns: 1fr; }
    .ind-grid, .people-grid { grid-template-columns: 1fr 1fr; }
    .path::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .stage { padding: 0 0 0 80px; min-height: 56px; }
    .row { grid-template-columns: 1fr; }
    form.enquiry { padding: 24px 20px; }
    .stat .num { font-size: 56px; }
    .career-band svg.bgart { display: none; }
  }

/* ---------- Added for the multi-page site ---------- */
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wheel { width: 100%; height: auto; max-width: 600px; margin: 0 auto; display: block; overflow: visible; }
nav.primary > a[aria-current="page"], nav.primary > .dd.on > button { border-bottom-color: var(--cerulean); }

/* Page hero (inner pages) */
.page-hero { background: radial-gradient(900px 500px at 85% 0%, #124B86 0%, transparent 60%), linear-gradient(160deg, var(--navy), #0A2F57); color: var(--on-navy); padding: 52px 0 76px; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.crumbs { font-size: 14px; color: var(--on-navy-muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.02; font-weight: 300; }
.page-hero .lede { margin-top: 24px; max-width: 54ch; font-size: 19px; color: var(--on-navy-muted); }
.page-hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.ph-art { width: 100%; height: auto; display: block; max-width: 520px; margin-left: auto; }

/* Sticky in-page navigation */
.subnav { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 15px 14px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--cerulean); }
:root:has(.subnav) { scroll-padding-top: 24px; }

.alt { background: var(--ice); }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.outcome { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cerulean); border-radius: var(--radius); padding: 28px; }
.outcome h3 { font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.outcome p { color: var(--muted); font-size: 16px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.who span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }

/* Vertical tabs (JS-built panels) */
.vtabs { display: grid; grid-template-columns: .8fr 1.5fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vtabs .list { display: flex; flex-direction: column; background: var(--ice); border-right: 1px solid var(--line); }
.vtabs .list button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; padding: 18px 22px; font: 500 16px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.vtabs .list button:last-child { border-bottom: 0; }
.vtabs .list button:hover { background: rgba(255,255,255,.5); }
.vtabs .list button[aria-selected="true"] { background: var(--surface); border-left-color: var(--cerulean); font-weight: 600; }
.vtabs .pane { padding: 36px 40px; }
.vtabs .pane h3 { font-size: 34px; margin-bottom: 10px; }
.vtabs .pane > p { color: var(--muted); font-size: 18px; margin-bottom: 24px; max-width: 56ch; }
.vtabs .pane .note { margin-top: 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.faqs { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faqs h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; line-height: 1.1; }

.cta-band { background: linear-gradient(110deg, #0B5CAD, #139BE0); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 300; line-height: 1.08; max-width: 22ch; }
.cta-band p { color: #EAF5FD; margin-top: 12px; max-width: 52ch; font-size: 18px; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: #EAF3FB; }

/* Home: practice tiles */
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ptile { display: flex; flex-direction: column; background: linear-gradient(165deg, #0A2540, #0E3F73); color: #fff; border-radius: var(--radius); padding: 30px 28px 28px; text-decoration: none; min-height: 360px; position: relative; overflow: hidden; transition: transform .2s; }
.ptile:hover { transform: translateY(-4px); }
.ptile::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border: 34px solid rgba(143,211,247,.1); border-radius: 50%; }
.ptile .ico { background: rgba(255,255,255,.12); width: 64px; height: 64px; border-radius: 16px; }
.ptile .ico svg { width: 34px; height: 34px; }
.ptile h3 { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.ptile p { color: var(--on-navy-muted); font-size: 16px; margin-bottom: 18px; }
.ptile ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 15px; color: #CFE3F6; }
.ptile li { padding: 3px 0 3px 18px; position: relative; }
.ptile li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: #4FC3F7; }
.ptile .go { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; color: #8FD3F7; }

/* Five-stage chevrons */
.chev.five { grid-template-columns: repeat(5, 1fr); }

/* Digital page: before/after, ladder */
.arch { background: linear-gradient(170deg, #08203B, #0E3F73); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.arch svg { width: 100%; height: auto; display: block; }
.arch .re-toggle { align-self: flex-start; }
.mod-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps-list { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cerulean); display: grid; place-items: center; font: 400 17px var(--serif); color: var(--blue); }
.steps-list b { display: block; font: 400 22px var(--serif); margin-bottom: 2px; }
.steps-list span { color: var(--muted); font-size: 16px; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; margin-bottom: 24px; }
.ladder button { border: 0; color: #fff; font: 500 16px/1.25 var(--sans); text-align: left; padding: 16px; cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #3C93DC, #0B5CAD); }
.ladder button span { font: 400 13px var(--sans); opacity: .85; margin-bottom: 4px; }
.ladder button:nth-child(1) { height: 110px; } .ladder button:nth-child(2) { height: 150px; } .ladder button:nth-child(3) { height: 190px; } .ladder button:nth-child(4) { height: 230px; } .ladder button:nth-child(5) { height: 270px; }
.ladder button[aria-pressed="true"] { background: linear-gradient(180deg, #139BE0, #0A3F7C); box-shadow: inset 0 4px 0 #8FD3F7; }
.lad-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.lad-detail h3 { font-size: 30px; margin-bottom: 8px; }
.lad-detail > p { color: var(--muted); margin-bottom: 18px; max-width: 64ch; }

/* Risk page: heat map, three lines */
.hm-wrap { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 10px 12px; max-width: 520px; width: 100%; }
.hm-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.hm-x { grid-column: 2; text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.hm { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.hm i { display: block; border: 1px solid rgba(255,255,255,.6); }
.hm .bub { position: absolute; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: #08203B; font: 600 15px var(--sans); display: grid; place-items: center; transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.3,.6,.2,1), top .8s cubic-bezier(.3,.6,.2,1); box-shadow: 0 2px 8px rgba(0,0,0,.4); border: 2px solid #08203B; cursor: default; }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.legend { list-style: none; padding: 0; margin: 20px 0 0; }
.legend li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.legend b { width: 28px; height: 28px; border-radius: 50%; background: #08203B; color: #fff; display: grid; place-items: center; font: 600 13px var(--sans); }
.legend em { font-style: normal; font-size: 14px; color: var(--muted); }
.scale { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.scale span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.lines-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.lines-grid svg { width: 100%; height: auto; }
.lines-list { display: grid; gap: 14px; }
.lines-list div { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cerulean); border-radius: var(--radius); padding: 18px 22px; }
.lines-list h4 { font: 400 24px var(--serif); margin-bottom: 4px; letter-spacing: -0.01em; }
.lines-list p { color: var(--muted); font-size: 16px; }

.outcomes.four { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.outcomes.four .outcome h3 { font-size: 24px; }
@media (max-width: 1040px) { .outcomes.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .outcomes.four { grid-template-columns: 1fr; } }

.steps-list.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; grid-auto-flow: column; grid-template-rows: repeat(2, auto); }
@media (max-width: 760px) { .steps-list.two { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } }

.brand img { display: block; height: 60px; width: auto; }
footer .brand img { height: 64px; }
footer .brand { margin-bottom: 18px; }
@media (max-width: 560px) { .brand img { height: 46px; } }

header.site .bar > .btn { white-space: nowrap; }
@media (max-width: 560px) { header.site .bar > .btn { padding: 10px 14px !important; font-size: 14px; } .bar { gap: 12px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header.site .bar > .btn { background: var(--cerulean); color: #04223D; } }

/* Edit mode */
.fox-editbar { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 200; background: #08203B; color: #fff; border-radius: 999px; padding: 10px 12px 10px 22px; display: flex; gap: 14px; align-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); font-size: 15px; max-width: calc(100vw - 24px); }
.fox-editbar .btn { padding: 10px 18px; font-size: 14px; }
.fox-editbar button.ghost { background: transparent; color: #CFE3F6; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 16px; font: 500 14px var(--sans); cursor: pointer; }
body.edit-mode [contenteditable="true"] { cursor: text; }
body.edit-mode [contenteditable="true"]:hover { outline: 2px dashed var(--cerulean); outline-offset: 3px; }
body.edit-mode [contenteditable="true"]:focus { outline: 2px solid var(--cerulean); outline-offset: 3px; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-block; }
  nav.primary { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; height: auto; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); gap: 0; max-height: calc(100vh - 120px); overflow: auto; }
  nav.primary.open { display: flex; }
  nav.primary > a, nav.primary > .dd > button { height: 52px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .dd { height: auto; }
  .mega { position: static; box-shadow: none; border: 0; padding: 12px 0 8px; }
  .mega .wrap { grid-template-columns: 1fr; gap: 18px; width: 100%; }
  .mega .intro { display: none; }
}
@media (max-width: 1040px) {
  .page-hero .wrap, .mod-grid, .hm-grid, .lines-grid, .faqs, .vtabs { grid-template-columns: 1fr; gap: 32px; }
  .vtabs { gap: 0; }
  .vtabs .list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .vtabs .list button { flex: none; border-bottom: 0; border-left: 0; border-bottom: 3px solid transparent; }
  .vtabs .list button[aria-selected="true"] { border-left-color: transparent; border-bottom-color: var(--cerulean); }
  .ph-art { margin: 0 auto; max-width: 420px; }
  .ptiles { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: 1fr; }
  .chev.five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .ptiles { grid-template-columns: 1fr; }
  .ptile { min-height: 0; }
  .vtabs .pane { padding: 26px 22px; }
  .vtabs .pane h3 { font-size: 28px; }
  .chev.five { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .ladder button, .ladder button:nth-child(n) { height: auto; min-height: 64px; border-radius: var(--radius); }
  .page-hero { padding: 40px 0 56px; }
  .fox-editbar { flex-wrap: wrap; border-radius: 18px; justify-content: center; }
}
@media print { header.site, .util, .subnav, .fox-editbar, .cta-band { display: none !important; } }
