/* Clause Ten Consulting: full 3D site. Complyvane colours (navy #14263D, teal #087F8C), Figtree served from this site.
   Panels are frosted glass plates with a teal edge, standing in front of realistic photos. */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
:root { --ink: #14263D; --accent: #087F8C; --accent-soft: #9FDCE3; --text: #1b2330; --muted: #566170; --rule: rgba(20,38,61,.14);
  --font: "Figtree", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #0d1828; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: -999px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Header and menu */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(10,20,34,.7), rgba(10,20,34,0)); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.mark:hover { color: #fff; }
.mark-x { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(180deg, #e2e5e9 0 30%, var(--ink) 30% 46%, #e2e5e9 46% 62%, var(--ink) 62% 78%, var(--accent) 78%); }
.bar nav { display: flex; align-items: center; gap: 20px; }
.bar nav > ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.bar nav a, .sub-toggle { font: inherit; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.bar nav a:hover, .sub-toggle:hover { color: #fff; }
.bar nav a[aria-current="page"], .sub-toggle.on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent-soft); }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 300px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(4,10,20,.4); }
.has-sub.open .sub { display: block; }
.bar .sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.bar .sub a:hover, .bar .sub a[aria-current="page"] { background: #eef3f9; color: var(--ink); box-shadow: none; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1.5px solid #fff; border-radius: 999px; padding: 8px 16px; color: #fff; cursor: pointer; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { color: var(--accent) !important; background: transparent; }
.bar .btn.small { padding: 9px 16px; font-size: 14px; background: #fff; color: var(--ink) !important; }
.bar .btn.small:hover { background: var(--accent-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px !important; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* 3D layers */
#gl, #css3d { position: fixed; inset: 0; width: 100%; height: 100%; }
#gl { z-index: 0; }
#css3d { z-index: 10; pointer-events: none; }
#css3d .panel { pointer-events: auto; }
.scroller { position: relative; z-index: -1; }
body.is-3d main { position: absolute; width: 0; height: 0; overflow: visible; }
.rail { position: fixed; right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 11px; }
.rail button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); background: rgba(10,20,34,.25); padding: 0; cursor: pointer; transition: transform .3s, background .3s; }
.rail button[aria-current="step"] { background: #fff; transform: scale(1.35); }
.hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; margin: 0; padding: 9px 16px; border-radius: 999px; font-size: 13px; color: #fff;
  background: rgba(10,20,34,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .6s; white-space: nowrap; }
.hint.gone { opacity: 0; pointer-events: none; }

/* Panels */
.panel { display: block; width: 460px; padding: 30px; border-radius: 22px; color: var(--text); text-decoration: none; margin: 0;
  background: linear-gradient(var(--accent), var(--accent)) top 0 left 28px / calc(100% - 56px) 3px no-repeat, linear-gradient(165deg, rgba(255,255,255,.95), rgba(240,244,248,.9));
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.5), 0 60px 90px -40px rgba(4,10,20,.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .4s; }
.panel:hover { box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.75), 0 80px 110px -40px rgba(4,10,20,.85); }
.panel h1 { font-size: 54px; line-height: 1.02; letter-spacing: -.035em; font-weight: 600; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.panel h1.post-h1 { font-size: 40px; }
.panel h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.panel h3 { font-size: 21px; line-height: 1.28; letter-spacing: -.01em; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.panel p { margin: 0 0 12px; line-height: 1.58; font-size: 16px; color: var(--muted); }
.panel .lede, .panel .intro { font-size: 18px; }
.panel .big { font-size: 20px; line-height: 1.55; color: var(--ink); }
.panel .byline { font-size: 14px; font-weight: 600; color: var(--accent); }
.panel .small { font-size: 14px; }
.panel .note { font-size: 14px; }
.panel .how { font-size: 14px; color: var(--accent); font-weight: 600; }
.panel .date { font-size: 14px; font-weight: 600; color: var(--muted); }
.panel .more { margin: 12px 0 0; }
.panel .h-small { font-size: 22px; }
.hero { width: 580px; padding: 38px; }
.head { width: 600px; }
.wide { width: 760px; }
.read { width: 780px; padding: 40px 44px; }
.read.wall { width: 1080px; }
.read.frame-panel { width: 940px; padding: 18px; }
.card { width: 320px; }
.card.tall { width: 400px; }
.card p.more { margin-top: auto; }
.quote { width: 400px; }
.quote.long { width: 480px; }
.quote blockquote { margin: 0 0 14px; font-size: 20px; line-height: 1.45; color: var(--ink); }
.quote .who { font-weight: 600; margin: 0; color: var(--ink); }
.quote .who span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.pull { margin: 0; }
.pull blockquote { margin: 0 0 10px; font-size: 20px; line-height: 1.45; color: var(--ink); }
.pull figcaption { font-size: 14px; font-weight: 600; color: var(--ink); }
.pull figcaption span { display: block; font-weight: 400; color: var(--muted); }
.chip { width: 300px; padding: 20px 22px; display: grid; gap: 4px; }
.chip b { color: var(--ink); font-size: 18px; }
.chip span { color: var(--muted); font-size: 14px; }
.card.focus { box-shadow: 0 1px 0 #fff inset, 0 0 0 2px var(--accent), 0 80px 110px -40px rgba(4,10,20,.85); }
.arc-cards .card { cursor: pointer; }
.step { width: 340px; }
.step .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 14px; }
.shot { width: 440px; padding: 12px; cursor: pointer; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; }
.shot figcaption { padding: 12px 6px 2px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ink { background: radial-gradient(circle at 25% 0%, #27406a, var(--ink) 70%); color: #dfe5ee; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 60px 90px -40px rgba(4,10,20,.85); }
.ink h2, .ink h3, .ink .big { color: #fff; }
.ink p { color: #c8d2df; }
.ink a:not(.btn) { color: var(--accent-soft); }
.ink .btn { background: #fff; color: var(--ink) !important; }
.ink .btn:hover { background: var(--accent-soft); }
.ink .btn.ghost { background: transparent; color: #fff !important; }

/* Content inside panels */
.ticks { list-style: none; margin: 10px 0 16px; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.after { font-size: 15px; }
.further { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
.further span { color: var(--muted); }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; font-weight: 600; font-size: 15px; }
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.price { font-size: 36px !important; font-weight: 600; letter-spacing: -.02em; color: var(--ink) !important; line-height: 1.1 !important; margin: 6px 0 14px !important; }
.price span { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.price.sub { font-size: 28px !important; }
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 10px 0 0; font-size: 15px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.posts li { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 0 0 1px var(--rule); }
.posts h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.legal h2 { font-size: 22px; margin-top: 26px; }
.post-body { font-size: 17px; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.7; color: var(--text); }
.post-body h2 { font-size: 26px; margin-top: 32px; }
.post-body h3 { margin-top: 24px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 16px; }
.post-body blockquote { margin: 20px 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink); }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body td, .post-body th { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }
.post-body a { overflow-wrap: anywhere; }
.post-body img { max-width: 100%; height: auto; }
.foot { width: 1000px; padding: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: #fff !important; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-name { color: #fff !important; font-weight: 700; font-size: 18px !important; }
.foot-h { color: #fff !important; font-weight: 600; }
.foot-note { margin: 26px 0 0 !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px !important; }

/* Forms */
.form-panel { width: 520px; }
.read.form-panel { width: 680px; }
.enquiry { display: grid; gap: 14px; }
.enquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.enquiry label span { color: var(--accent); }
.enquiry input, .enquiry select, .enquiry textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); padding: 11px 13px; border-radius: 10px; border: 1px solid #c3cad3; background: #fbfcfd; min-height: 46px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.enquiry [aria-invalid="true"] { border-color: #b3261e; }
.enquiry .btn { justify-self: start; }
.form-msg { margin: 0 !important; font-size: 15px; }
.form-msg.err { color: #b3261e !important; }
.form-msg.ok { color: var(--ink) !important; background: #eef3f9; padding: 12px 14px; border-radius: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.enquiry label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); }
.enquiry label.check input { min-height: 0; width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.rate { border: 0; margin: 0; padding: 0; }
.rate legend { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.rate legend span { color: var(--accent); }
.rate div { display: flex; gap: 8px; }
.rate label { position: relative; }
.rate input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; min-height: 0; }
.rate label span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid #c3cad3; background: #fbfcfd; font-weight: 600; color: var(--ink); cursor: pointer; }
.rate input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rate input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.rate.bad label span { border-color: #b3261e; }

/* Scorecard */
.score-frame { display: block; width: 100%; height: 3240px; border: 0; border-radius: 14px; background: #fff; }
.frame-panel .small { text-align: center; margin: 12px 0 2px !important; }
.flipcard { padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: 300px; }
.flipcard:hover { box-shadow: none; }
.flip { position: relative; width: 100%; height: 320px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; perspective: 1200px; border-radius: 20px; display: block; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.face.front { background: linear-gradient(var(--accent), var(--accent)) top 0 left 26px / calc(100% - 52px) 3px no-repeat, linear-gradient(165deg, #fff, #eef2f6); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 60px 90px -40px rgba(4,10,20,.75); }
.face.back { background: radial-gradient(circle at 30% 10%, #27406a, var(--ink) 65%); transform: rotateY(180deg); box-shadow: 0 60px 90px -40px rgba(4,10,20,.85); }
.flip[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .back { transform: rotateY(0deg); }
.f-area { font-size: 13px; font-weight: 600; color: var(--muted); }
.back .f-area { color: var(--accent-soft); }
.f-title { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.back .f-title { color: #fff; margin-top: 8px; }
.f-clause { font-size: 15px; color: #aeb8c6; }
.f-tag { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.back .f-tag { color: var(--accent-soft); }
.ring { margin: auto 0 0; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--v, 0) * 1%), #d9dee5 0); }
.ring > span { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; font-size: 27px; font-weight: 600; color: var(--ink); }
.ring small { font-size: 13px; margin-left: 1px; }

/* Phones */
@media (max-width: 999px) {
  .menu-toggle { display: inline-block; }
  .bar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--ink); max-height: calc(100vh - 64px); overflow-y: auto; }
  .bar.open nav { display: flex; }
  .bar nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .bar nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .bar nav a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 13px 0; font-size: 17px; }
  .bar nav .btn { margin-top: 16px; text-align: center; }
  .sub { position: static; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; background: transparent; }
  .bar .sub a { color: rgba(255,255,255,.88); padding: 9px 0; }
  .bar .sub a:hover { background: transparent; color: #fff; }
}
@media (max-width: 760px) {
  .hero, .head, .wide, .read, .read.wall, .read.form-panel, .card.tall, .quote.long, .form-panel, .foot { width: 400px; }
  .read.frame-panel { width: 410px; padding: 8px; }
  .score-frame { height: 4620px; }
  .hero { padding: 28px; }
  .panel h1 { font-size: 40px; }
  .panel h1.post-h1 { font-size: 32px; }
  .panel h2 { font-size: 27px; }
  .read { padding: 28px; }
  .posts, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .step, .quote { width: 320px; }
  .shot { width: 300px; }
  .chip { width: 300px; }
  .hint { font-size: 12px; bottom: 12px; }
  .enquiry .pair { grid-template-columns: minmax(0, 1fr); }
}

/* Without 3D (no WebGL, or reduced motion): the same content as a calm normal page */
body:not(.is-3d) { background: #eef1f5; }
body:not(.is-3d) .bar { position: sticky; background: var(--ink); }
body:not(.is-3d) #gl, body:not(.is-3d) #css3d, body:not(.is-3d) .rail, body:not(.is-3d) .hint, body:not(.is-3d) .scroller { display: none; }
body:not(.is-3d) main { max-width: 1180px; margin: 0 auto; padding: 32px 18px 72px; }
body:not(.is-3d) .station { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 44px; }
body:not(.is-3d) .panel { width: auto; flex: 1 1 300px; max-width: 100%; backdrop-filter: none; }
body:not(.is-3d) .hero, body:not(.is-3d) .head, body:not(.is-3d) .wide, body:not(.is-3d) .read, body:not(.is-3d) .foot { flex-basis: 100%; }
@media (prefers-reduced-motion: reduce) { .face { transition: none; } }
