/* Nakedoracle: the one stylesheet for the whole site.
   Brand rules live in docs/brand/brandbook.md. No inline styles anywhere:
   the Content-Security-Policy blocks them. */

@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Mono';
  src: url('../fonts/roboto-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0E0E12;
  --violet: #7B2FFF;
  --lime: #C6FF3D;
  --chrome: #C0C7D1;
  --line: rgba(14, 14, 18, .16);
}
html { -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font-family: 'Inter Tight', system-ui, sans-serif; font-size: 18px; line-height: 1.5; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.mono { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.d { font-weight: 900; letter-spacing: -0.045em; line-height: .98; }
/* Display headings: the tight tracking eats word spaces, so give them back. */
.d, .man p, .svc h3, .edits .y, .rules3 h3, .founder-name, .prose h1, .prose h2, .page-simple h1 { word-spacing: .08em; }
.d:not(#h1), .man p, .promise h2, .facts-grid > div { text-wrap: balance; }
.sec p, .founder-text p, .contact-copy p, .promise p { text-wrap: pretty; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 5vw; }

/* Section label: one component, one gap, on white, black and violet. */
.dim { opacity: .65; margin-bottom: 18px; display: block; }
.dim-on-colour { color: #fff; margin-bottom: 18px; display: block; }

/* Visually hidden, still read by screen readers. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A line of grey text with a violet line-through (the hero .old look). */
.struck { font-weight: 500; font-size: 20px; color: #66666e; }
.struck s { text-decoration-color: var(--violet); text-decoration-thickness: 2.5px; }

/* A violet text link. */
.text-link { color: var(--violet); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }

/* ---- focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--violet);
  outline-offset: 3px;
}
.promise a:focus-visible, .promise button:focus-visible { outline-color: #fff; }

/* ---- skip link ---- */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 300; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.skip-link:focus { top: 12px; }

/* ---- logo: the typed name with a violet cursor ---- */
.w { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--ink); text-decoration: none; }
.caret { display: inline-block; width: .075em; height: .84em; background: var(--violet); margin: 0 .035em; animation: blink 1s steps(1) 6; flex: none; vertical-align: -.08em; }
.busy .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- header ---- */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--line); }
header.site .wrap { height: 66px; display: flex; align-items: center; justify-content: space-between; }
header.site .w { font-size: 25px; }
header.site nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; align-items: center; }
header.site nav a { color: var(--ink); text-decoration: none; }
header.site nav a:hover { color: var(--violet); }
header.site nav a.pill { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* ---- big letters: the glyph comes from data-g, never from the HTML text ---- */
.big { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; container-type: size; }
.big span { position: absolute; font-weight: 900; line-height: .72; mix-blend-mode: multiply; transition: opacity .7s ease, translate .9s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1); }
.big span::before { content: attr(data-g); }
.big .g1 { color: var(--violet); font-size: 66cqh; right: 17cqw; top: -4cqh; animation: f1 26s ease-in-out 2 alternate; }
.big .g2 { color: var(--lime); font-size: 84cqh; right: 4cqw; top: -20cqh; animation: f2 26s ease-in-out 2 alternate; }
.big .g3 { color: var(--chrome); font-size: 60cqh; right: -6cqw; top: 30cqh; animation: f3 26s ease-in-out 2 alternate; }
.big.out span { opacity: 0; }
.big.out .g1 { translate: -6cqw 0; scale: .94; }
.big.out .g2 { translate: 0 -8cqh; scale: 1.05; }
.big.out .g3 { translate: 6cqw 6cqh; scale: .94; }
@keyframes f1 { to { transform: translate(3cqw, 3cqh) rotate(2deg); } }
@keyframes f2 { to { transform: translate(-3cqw, 5cqh) rotate(-3deg); } }
@keyframes f3 { to { transform: translate(-5cqw, -6cqh) rotate(4deg); } }

/* ---- buttons ---- */
.btn { display: inline-block; justify-self: start; font: inherit; font-weight: 500; font-size: 18px; line-height: 1.3; border: 0; border-radius: 10px; padding: 16px 24px; background: var(--violet); color: #fff; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #6a22e6; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--violet); color: var(--violet); }

/* ---- hero ---- */
.hero { position: relative; min-height: min(760px, 92vh); display: grid; align-items: center; isolation: isolate; border-bottom: 1.5px solid var(--line); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; display: grid; gap: 24px; }
.old { font-weight: 500; font-size: clamp(17px, 1.7vw, 24px); opacity: .6; min-height: 1.4em; }
.old s { text-decoration-color: var(--violet); text-decoration-thickness: 2.5px; }
.hero h1 { font-size: clamp(40px, 6vw, 96px); max-width: 11ch; min-height: 3.95em; }
.hero p.sub { font-size: clamp(18px, 1.5vw, 22px); max-width: 47ch; }
.cta-note { margin-top: -10px; font-size: 15px; color: rgba(14, 14, 18, .72); }

/* ---- facts strip ---- */
.facts { position: relative; z-index: 2; border-bottom: 1.5px solid var(--line); background: #fff; }
.facts .wrap { padding-top: 22px; }
.facts-label { margin-bottom: 4px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 10px 22px 22px 0; font-weight: 500; }
.facts-grid > div + div { padding-left: 22px; border-left: 1.5px solid var(--line); }
.facts-grid span { display: block; opacity: .65; margin-bottom: 4px; }

/* ---- sections ---- */
.sec { padding: 96px 0; border-bottom: 1.5px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.sec h2 { font-size: clamp(32px, 4.6vw, 64px); max-width: 16ch; }
.sec .lede { margin-top: 16px; max-width: 54ch; font-size: 20px; }
section[id] { scroll-margin-top: 66px; }

/* ---- services, and the same column grid for the automation rules and data ---- */
.svc, .rules3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc { margin-top: 44px; border-top: 1.5px solid var(--ink); }
.rules3 { margin-top: 34px; }
.svc > div, .rules3 > div { padding: 26px 26px 30px 0; }
.rules3 > div { padding-top: 0; padding-bottom: 0; }
.svc > div + div, .rules3 > div + div { padding-left: 26px; border-left: 1.5px solid var(--line); }
.svc h3 { font-weight: 900; letter-spacing: -0.04em; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; margin: 10px 0 12px; }
.svc p { font-size: 17px; }
.svc .mono { opacity: .65; }
.svc a { display: inline-block; margin-top: 14px; color: var(--violet); font-weight: 500; text-decoration: none; }
.svc a:hover { text-decoration: underline; }

/* ---- belief, on black ---- */
.man { position: relative; background: var(--ink); color: #fff; padding: 110px 0; overflow: hidden; isolation: isolate; }
.man .big span { mix-blend-mode: screen; }
.man .big .g1 { right: auto; left: 61cqw; }
.man .big .g2 { right: auto; left: 73cqw; }
.man .big .g3 { right: auto; left: 89cqw; }
.man .wrap { position: relative; z-index: 2; }
.man p { font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(28px, 4vw, 58px); max-width: 17ch; margin-bottom: .55em; }
.man p.q { opacity: .5; }
.man p.q s { text-decoration-color: var(--lime); text-decoration-thickness: .06em; }
.man .dim-on-colour { opacity: .75; }

/* ---- edits ---- */
.edits { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.edits > div { padding: 18px 0; border-bottom: 1.5px solid var(--line); font-size: clamp(19px, 1.9vw, 27px); font-weight: 500; letter-spacing: -0.02em; }
.edits .x { opacity: .6; padding-right: 24px; }
.edits .x s { text-decoration-color: var(--violet); text-decoration-thickness: 2.5px; }
.edits .y { font-weight: 900; letter-spacing: -0.035em; }
.edits .hd { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; opacity: .65; padding: 12px 0; }

/* ---- automations ---- */
.flows { margin-top: 44px; display: grid; gap: 14px; }
.flow { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.flow > div { padding: 20px 22px 22px; }
.flow .mono { opacity: .65; display: block; margin-bottom: 6px; }
.flow b { font-weight: 500; font-size: 19px; line-height: 1.3; display: block; }
.flow .mid { background: var(--ink); color: #fff; }
.flow .mid .mono { color: var(--lime); opacity: 1; }
/* The arrow is drawn in CSS: the arrow glyph is not in the font subset. */
.flow > .arr { position: relative; width: 40px; padding: 0; }
.flow > .arr::before { content: ''; position: absolute; left: 8px; right: 9px; top: 50%; height: 2px; margin-top: -1px; background: var(--violet); }
.flow > .arr::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid var(--violet); border-right: 2px solid var(--violet); transform: rotate(45deg); }
.build-steps { margin-top: 34px; font-size: 18px; max-width: 70ch; }
.build-steps b { font-weight: 700; }
.rules3 h3 { font-weight: 900; letter-spacing: -0.03em; font-size: 21px; margin-bottom: 6px; line-height: 1.2; }
.rules3 p { font-size: 16px; }
#data .rules3 { margin-top: 44px; }

/* ---- promise, the one violet section ---- */
.promise { background: var(--violet); color: #fff; padding: 100px 0; position: relative; overflow: hidden; isolation: isolate; }
.promise .wrap { position: relative; z-index: 2; }
.promise h2 { font-size: clamp(34px, 5vw, 76px); max-width: 15ch; }
.promise p { margin-top: 22px; font-size: 22px; max-width: 46ch; }
.promise .text-link { display: inline-block; margin-top: 26px; font-size: 20px; color: #fff; }
.promise .text-link:hover { color: var(--lime); }
.promise .caret { background: var(--lime); }
.promise .big span { mix-blend-mode: normal; color: rgba(255, 255, 255, .1); }
.promise .big .g2 { color: rgba(198, 255, 61, .9); mix-blend-mode: normal; font-size: 120cqh; right: -6cqw; top: -30cqh; }
.promise .big .g1, .promise .big .g3 { display: none; }

/* ---- founder ---- */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.founder-name { margin-top: 28px; font-weight: 900; letter-spacing: -0.035em; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; }
.founder-role { margin-top: 8px; opacity: .65; }
.founder-text p { font-size: 20px; max-width: 54ch; }
.founder-text p + p { margin-top: 1em; }
.founder-text .text-link { display: inline-block; margin-top: 22px; }

/* ---- contact ---- */
.end { padding: 110px 0 120px; position: relative; overflow: hidden; isolation: isolate; }
.end .wrap { position: relative; z-index: 2; display: grid; gap: 24px; }
.end h2 { font-size: clamp(40px, 6vw, 92px); }
.end p { font-size: 21px; max-width: 46ch; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-copy h2 + p { margin-top: 24px; }
.form { background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; padding: 26px; display: grid; gap: 16px; position: relative; z-index: 2; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-weight: 500; font-size: 15px; }
.form label span { font-weight: 400; opacity: .65; }
.form input, .form textarea { flex: 0 0 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid rgba(14, 14, 18, .45); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2.5px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.form textarea { min-height: 120px; resize: vertical; }
.form small { font-size: 14px; opacity: .75; line-height: 1.4; }
.form small a { color: var(--ink); }
.form small a:hover { color: var(--violet); }
.end .alt { margin-top: 18px; font-size: 17px; }
.alt a { color: var(--violet); font-weight: 500; }

/* ---- footer ---- */
footer.site { padding: 56px 0 40px; border-top: 1.5px solid var(--line); }
footer.site .wrap { display: grid; gap: 18px; justify-items: start; }
footer.site .w { font-size: 25px; }
footer.site .foot-line { max-width: 62ch; font-size: 16px; opacity: .75; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; font-size: 15px; }
footer.site nav a { color: var(--ink); text-decoration: none; }
footer.site nav a:hover { color: var(--violet); }
footer.site .copy { font-size: 14px; opacity: .6; }

/* ---- cookie banner (ids used by consent.js) ---- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 16px 0; background: #fff; border-top: 1.5px solid var(--ink); }
.cookie-inner { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.cookie-text { flex: 1; max-width: 72ch; font-size: 15px; line-height: 1.45; }
.cookie-text a { color: var(--violet); font-weight: 500; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 12px; flex: none; }
.cookie-actions .btn { font-size: 15px; padding: 10px 22px; min-height: 42px; }
@media (min-width: 768px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}

/* ---- simple text pages (privacy) ---- */
.page { padding: 72px 0 96px; }
.prose { max-width: 1280px; }
.prose > * { max-width: 68ch; }
.prose h1 { font-weight: 900; letter-spacing: -0.045em; line-height: 1; font-size: clamp(36px, 5vw, 60px); margin-bottom: 28px; }
.prose h2 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; font-size: clamp(24px, 2.6vw, 32px); margin: 2.2em 0 .6em; }
.prose h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; font-size: 20px; margin: 1.8em 0 .5em; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose .mono { font-size: 12px; opacity: .65; margin-bottom: 14px; display: block; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--line); }
.prose th { font-weight: 500; }

/* ---- thank-you and 404 pages ---- */
.page-simple { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding: 72px 5vw; }
.page-simple h1 { font-weight: 900; letter-spacing: -0.045em; line-height: 1; font-size: clamp(40px, 7vw, 88px); }
.page-simple p { font-size: 21px; max-width: 40ch; }
.page-simple p.mono { font-size: 12px; opacity: .65; }
.page-simple p.struck { font-size: 20px; }
.page-simple .btn { justify-self: center; }
.page-simple a:not(.btn) { color: var(--violet); font-weight: 500; }

/* ---- under 900px: the big letters get their own band above the text ---- */
@media (max-width: 900px) {
  header.site nav a:not(.pill):not([href$="#contact"]) { display: none; }
  header.site nav { gap: 16px; }
  header.site nav a { display: inline-flex; align-items: center; min-height: 44px; }
  header.site nav a.pill { padding: 4px 14px; min-width: 44px; justify-content: center; }
  footer.site nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .svc, .rules3, .contact, .founder-grid { grid-template-columns: 1fr; }
  .founder-grid { gap: 28px; }
  .svc > div + div { padding-left: 0; border-left: 0; border-top: 1.5px solid var(--line); }
  .rules3 > div { padding: 18px 0; }
  .rules3 > div:first-child { padding-top: 0; }
  .rules3 > div:last-child { padding-bottom: 0; }
  .rules3 > div + div { padding-left: 0; border-left: 0; border-top: 1.5px solid var(--line); }
  .svc p, .rules3 p { max-width: 60ch; }
  .flow { grid-template-columns: 1fr; }
  .flow > .arr { display: none; }

  .big { position: relative; inset: auto; height: clamp(150px, 36vw, 280px); }
  .big .g1 { font-size: 118cqh; right: 31cqw; top: -4cqh; }
  .big .g2 { font-size: 150cqh; right: 8cqw; top: -22cqh; }
  .big .g3 { font-size: 104cqh; right: -10cqw; top: 8cqh; }
  .man .big .g1 { left: 20cqw; right: auto; }
  .man .big .g2 { left: 46cqw; right: auto; }
  .man .big .g3 { left: 70cqw; right: auto; }
  .hero { display: block; min-height: 0; }
  .hero .wrap { padding-top: 28px; padding-bottom: 48px; }
  .hero h1 { min-height: 4.1em; }
  .man { padding: 0 0 72px; }
  .man .wrap { padding-top: 36px; }
  .promise { padding: 0 0 72px; }
  .promise .wrap { padding-top: 36px; }
  .promise .big .g2 { font-size: 210cqh; right: -4cqw; top: -62cqh; }
  .end { padding: 0 0 80px; }
  .end .wrap { padding-top: 36px; }
  .sec { padding: 64px 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 16px 12px 16px 0; }
  .facts-grid > div + div { padding-left: 14px; }
  .facts-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1.5px solid var(--line); }
  .edits { grid-template-columns: 1fr; }
  .edits .hd { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .edits .x { border-bottom: 0; padding: 16px 0 2px; }
  .edits .y { padding: 0 0 16px; }
}

@media (max-width: 600px) {
  .hero .btn, .form .btn { display: block; width: 100%; text-wrap: balance; }
  .hero .wrap { gap: 12px; padding-top: 14px; padding-bottom: 36px; }
  .hero h1 { font-size: 38px; max-width: none; min-height: 3.1em; }
  .hero p.sub { font-size: 17px; line-height: 1.4; }
  .cta-note { margin-top: -4px; }
  .cookie-banner { padding: 12px 0; }
  .cookie-inner { gap: 10px; }
  .cookie-text { font-size: 14px; line-height: 1.4; }
}

@media (max-width: 340px) {
  .hero h1 { min-height: 4.1em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
