/* Think & Do HUB. Concept: the four-colour bulb is the light source for the whole site. */
:root {
  --midnight: #0c1b2e;
  --panel: #12253c;
  --line: #1e3350;
  --text: #eaf0f7;
  --muted: #93a4b8;
  --dim: #2b405c;
  /* Division lights, taken from the bulb */
  --people: #5b97ff;
  --digital: #52c472;
  --document: #ffa24a;
  --tech: #42cde4;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
[data-d="people"], [data-accent="people"]     { --light: var(--people); }
[data-d="digital"], [data-accent="digital"]   { --light: var(--digital); }
[data-d="document"], [data-accent="document"] { --light: var(--document); }
[data-d="tech"], [data-accent="tech"]         { --light: var(--tech); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--midnight); color: var(--text); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
/* Film grain: keeps large dark areas from looking flat */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Smooth cross-fade between pages (Chrome, Edge, Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7.4vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } body { font-size: 17px; } }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 34em; line-height: 1.55; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--midnight); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--midnight); position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 85%) 50%, transparent 65%); translate: -110% 0; transition: translate .7s var(--ease); }
.btn-primary:hover::after { translate: 110% 0; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgb(234 240 247 / 10%); }
.btn-ghost { border-color: #5f7899; color: var(--text); background: rgb(255 255 255 / 3%); } /* 3.8:1 on midnight */
.btn-ghost:hover { border-color: var(--muted); background: rgb(255 255 255 / 6%); }
.btn-light { background: var(--light); color: var(--midnight); }
.btn-light:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--light) 22%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
/* Header spans the full width so the logo sits in the real top-left corner */
.site-header > .wrap { max-width: none; padding-inline: clamp(20px, 3vw, 48px); }
.site-header.scrolled { background: rgb(12 27 46 / 78%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 16px; }
@media (max-width: 560px) { .site-header .brand .logo { height: 54px; } .header-row { min-height: 74px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Logo: ChatGPT vector redraw (design/chatgpt-logo), bulb + wordmark in one SVG */
.brand .logo { display: block; height: 70px; width: auto; }
.site-footer .brand .logo { height: 60px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a { display: block; padding: 10px 14px; font-size: 16px; text-decoration: none; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / 6%); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: -8px; width: 330px; background: rgb(18 37 60 / 96%); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgb(0 0 0 / 40%); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; }
.sub a:hover { background: rgb(255 255 255 / 5%); }
.sub .tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--light); background: color-mix(in srgb, var(--light) 14%, transparent); }
.sub strong { display: block; font-weight: 600; }
.sub small { color: var(--muted); font-size: 14px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 15px var(--body); }
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 20px 24px; flex-direction: column; align-items: stretch; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-header:has(.site-nav.open) { background: var(--panel); }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0; }
}

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding-top: 0; }
.section-intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* Hero: the bulb lights up */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 10%, transparent 75%); opacity: .45; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: auto; padding-top: 110px; } }
/* Headline reveal: each word rises out of a hidden line and brightens from dim to white */
.reveal { text-wrap: wrap; } /* balance would split each line once words are separate boxes */
.reveal .line { display: block; }
.reveal .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal .hw > span { display: inline-block; }
.hero .lead { margin: 28px 0 36px; }
.value { font: 600 clamp(1.05rem, 1.4vw, 1.2rem)/1.4 var(--body); color: var(--text); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.value::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--people), var(--document), var(--digital), var(--tech)); }

.bulb { position: relative; width: min(100%, 400px); aspect-ratio: 287 / 381; margin: 0 auto; translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 14px); transition: translate .6s var(--ease); }
.bulb .logo-bulb { position: relative; width: 100%; height: 100%; overflow: visible; }
.logo-bulb .q { transform-box: fill-box; transform-origin: center; }
.glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(48px); opacity: .55; }
.glow.g1 { background: var(--people);   top: 0;   left: 0; }
.glow.g2 { background: var(--document); top: 0;   right: 0; }
.glow.g3 { background: var(--digital);  top: 28%; left: 0; }
.glow.g4 { background: #f5a913;     top: 34%; right: 4%; }
/* white seams, icons and the screw base arrive after the four segments have landed */
.js .bulb .seams, .js .bulb .details, .js .bulb .base { opacity: 0; animation: svg-in .6s var(--ease) 1.85s forwards; }
@keyframes svg-in { to { opacity: 1; } }
.bulb-labels { list-style: none; padding: 0; margin: 0; }
.bulb-labels a { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(12 27 46 / 72%); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s; }
.bulb-labels a:hover { border-color: var(--light); }
.bulb-labels a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px var(--light); }
.bulb-labels li:nth-child(1) a { top: 8%;  left: -6%; }
.bulb-labels li:nth-child(2) a { top: 8%;  right: -6%; }
.bulb-labels li:nth-child(3) a { top: 52%; left: -10%; }
.bulb-labels li:nth-child(4) a { top: 52%; right: -10%; }
@media (max-width: 600px) { .bulb { width: min(100%, 250px); } .hero { padding-bottom: 28px; } .hero .lead { margin: 20px 0 28px; } }
@media (max-width: 520px) { .bulb-labels a { font-size: 12px; padding: 6px 10px; } .bulb-labels li:nth-child(n) a { left: auto; right: auto; } .bulb-labels li:nth-child(odd) a { left: 0; } .bulb-labels li:nth-child(even) a { right: 0; } }

/* Ignition sequence: runs once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .bulb .q { opacity: 0; animation: q-in 1s var(--ease) forwards; }
  .js .bulb .q1 { --tx: -40px; --ty: -40px; animation-delay: .95s; }
  .js .bulb .q2 { --tx: 40px;  --ty: -40px; animation-delay: 1.05s; }
  .js .bulb .q3 { --tx: -40px; --ty: 40px;  animation-delay: 1.15s; }
  .js .bulb .q4 { --tx: 40px;  --ty: 40px;  animation-delay: 1.25s; }
  .js .glow { opacity: 0; scale: .6; animation: glow-on 1.6s ease-out 1.6s forwards, breathe 6s ease-in-out 3.4s infinite alternate; }
  .js .bulb .logo-bulb { animation: filament 1.2s linear 2.2s; }
  .js .bulb-labels a { opacity: 0; animation: fade-in .6s var(--ease) forwards; animation-delay: calc(2.1s + var(--i) * .1s); }
  .js .reveal .hw > span { transform: translateY(110%); opacity: 0; animation: word-up .95s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .085s); }
  .js .hero .value { opacity: 0; animation: fade-in .5s var(--ease) 0s forwards; }
  .js .hero .lead, .js .hero .btn-row { opacity: 0; animation: fade-in .6s var(--ease) .75s forwards; }
}
/* Scroll reveal (site.js adds .sr / .sr-words, then .in when the element enters the viewport) */
.sr-words .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sr-words .hw > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .sr { opacity: 0; translate: 0 48px; scale: .97; filter: blur(8px); }
  /* transition only on the way in, so hiding is instant and nothing on screen fades out first */
  .js .sr.in { opacity: 1; translate: none; scale: none; filter: none; transition: opacity .9s var(--ease), translate 1s var(--ease), scale 1s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
  .js .sr-words .hw > span { transform: translateY(110%); opacity: 0; }
  .js .sr-words.in .hw > span { animation: word-up .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + var(--i) * 60ms); }
}
@keyframes q-in { from { opacity: 0; transform: translate(var(--tx), var(--ty)); } to { opacity: 1; transform: none; } }
/* The bulb warms up with a short flicker before it settles, like a real filament */
@keyframes glow-on {
  0% { opacity: 0; scale: .6; }
  14% { opacity: .5; } 20% { opacity: .08; } 30% { opacity: .45; } 36% { opacity: .15; }
  100% { opacity: .55; scale: 1; }
}
@keyframes filament { 0%, 100% { filter: brightness(1); } 10% { filter: brightness(.45); } 18% { filter: brightness(1.15); } 24% { filter: brightness(.6); } 34% { filter: brightness(1.05); } }
@keyframes breathe { to { opacity: .38; scale: 1.08; } }
@keyframes word-up { 0% { transform: translateY(110%) rotate(4deg); opacity: 0; color: var(--dim); filter: blur(6px); } 55% { opacity: 1; filter: blur(0); } 100% { transform: none; opacity: 1; color: var(--text); filter: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Proof strip: real clients, right under the hero */
.proof { border-block: 1px solid var(--line); }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding-block: 22px; }
.proof-row span { color: var(--muted); font-size: 15px; }
.proof-row a { display: inline-flex; align-items: center; min-height: 44px; font: 600 clamp(1.05rem, 1.5vw, 1.25rem)/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--text); opacity: .85; transition: opacity .2s; }
.proof-row a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Solutions: four panels, each with its own light */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .panels { grid-template-columns: 1fr; } }
.panel { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 3.5vw, 44px); background: linear-gradient(160deg, color-mix(in srgb, var(--light) 9%, var(--panel)), var(--panel) 55%); display: flex; flex-direction: column; transition: border-color .3s; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--x, 80%) var(--y, 0%), color-mix(in srgb, var(--light) 26%, transparent), transparent 60%); opacity: .5; transition: opacity .3s; }
.panel:hover { border-color: color-mix(in srgb, var(--light) 45%, var(--line)); }
.panel:hover::before { opacity: 1; }
.panel .tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--light); background: color-mix(in srgb, var(--light) 14%, transparent); margin-bottom: 28px; }
.panel .tile .ico { width: 26px; height: 26px; }
.panel h3 { margin-top: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.panel p { color: var(--muted); max-width: 28em; }
.panel ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel li { font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; }
.panel li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--light); }
.panel .btn { align-self: flex-start; margin-top: auto; }
.panel .btn-light { background: transparent; color: var(--light); padding: 0; min-height: 44px; border-radius: 0; font-size: 17px; }
.panel .btn-light::after { content: "\2192"; transition: translate .25s var(--ease); }
.panel .btn-light:hover { box-shadow: none; text-decoration: underline; text-underline-offset: 6px; }
.panel .btn-light:hover::after { translate: 4px 0; }

/* Think / Do: lights up as you scroll */
.thinkdo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 820px) { .thinkdo { grid-template-columns: 1fr; } }
.word { font: 700 clamp(5rem, 15vw, 13rem)/.85 var(--display); letter-spacing: -0.06em; margin: 0 0 24px; background: linear-gradient(100deg, var(--text) 0 45%, var(--dim) 55% 100%); background-size: 240% 100%; background-position: calc(100% - var(--p, 1) * 100%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.thinkdo ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.thinkdo li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.thinkdo li::before { content: counter(s); font: 600 15px/28px var(--display); color: var(--muted); }
.thinkdo li strong { font-weight: 600; font-size: 1.1rem; }
.thinkdo li span { grid-column: 2; color: var(--muted); }
.thinkdo .do-steps { counter-reset: s 2; }

/* Why us and who we help: quiet lists */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.why li { list-style: none; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.why strong { display: block; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.why span { color: var(--muted); font-size: 16px; }
.why { padding: 0; margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }
.who { font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.35 var(--display); letter-spacing: -0.02em; color: var(--muted); max-width: 22em; }
.who b { color: var(--text); font-weight: 500; }

.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas { gap: 14px 32px; }
.areas li { display: inline-flex; align-items: center; gap: 10px; font: 500 1.15rem var(--display); }
.areas li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--light, var(--text)); box-shadow: 0 0 10px var(--light, transparent); }

/* Selected work (Technology) */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }
.work-card { border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(160deg, color-mix(in srgb, var(--tech) 7%, var(--panel)), var(--panel) 60%); }
.work-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tech); background: color-mix(in srgb, var(--tech) 12%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tech); box-shadow: 0 0 10px var(--tech); }
.work-card h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 10px; }
.work-card > p:not(.work-meta) { color: var(--muted); }
.work-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.work-card li { font-size: 15px; color: var(--muted); }
.work-card li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .status::before { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
.quote { margin: clamp(48px, 6vw, 80px) 0 0; max-width: 900px; }
.quote blockquote { margin: 0 0 20px; font: 500 clamp(1.6rem, 3.2vw, 2.6rem)/1.25 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.quote figcaption { color: var(--muted); }
.quote figcaption strong { color: var(--text); font-weight: 600; margin-right: 10px; }

/* Templates */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shelf { grid-template-columns: 1fr; } }
.product { border: 1px solid var(--line); border-radius: 22px; padding: 12px; background: var(--panel); }
.cover { height: 170px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--digital) 35%, transparent), transparent 70%), #0f2134; }
.book { width: 70px; height: 98px; border-radius: 3px 8px 8px 3px; background: linear-gradient(135deg, #2f7d4a, #1d5634); box-shadow: inset 7px 0 0 rgb(0 0 0 / 25%), 0 18px 30px -10px rgb(82 196 114 / 45%); position: relative; transition: transform .4s var(--ease); }
.product:hover .book { transform: translateY(-6px) rotate(-3deg); }
.book::after { content: ""; position: absolute; left: 16px; right: 12px; top: 16px; height: 2px; background: rgb(255 255 255 / 55%); box-shadow: 0 7px 0 rgb(255 255 255 / 30%); }
.book.b2 { background: linear-gradient(135deg, #e9eef3, #c5d1dc); }
.book.b2::after { background: rgb(29 86 52 / 55%); box-shadow: 0 7px 0 rgb(29 86 52 / 30%); }
.book.b3 { background: linear-gradient(135deg, #52c472, #2f9152); }
.product .meta { padding: 16px 8px 8px; }
.product h3 { font-size: 1.3rem; margin-bottom: 10px; }
.soon { display: inline-block; font-size: 14px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* Closing call to action */
.finale { position: relative; text-align: center; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.finale::before { content: ""; position: absolute; left: 50%; top: 60%; width: min(900px, 120vw); aspect-ratio: 2; translate: -50% -50%; background: conic-gradient(from 200deg, var(--people), var(--document), var(--digital), var(--tech), var(--people)); filter: blur(110px); opacity: .28; border-radius: 50%; }
.finale > * { position: relative; }
.finale h2 { font-size: clamp(3rem, 8vw, 7rem); }
.finale .btn-row { justify-content: center; }
.finale .lead { margin: 0 auto 36px; }

/* Division pages */
.masthead { position: relative; overflow: hidden; padding: 150px 0 clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.masthead::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: var(--light, var(--people)); filter: blur(140px); opacity: .22; }
.masthead > .wrap { position: relative; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 36px; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; } .crumbs a:hover { color: var(--text); }
.crumbs { align-items: center; margin-bottom: 20px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--light, var(--text)); font-weight: 600; margin: 0 0 18px; }
.kicker .ico { width: 20px; height: 20px; }
.masthead .lead { margin-bottom: 36px; }
.masthead-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
@media (max-width: 860px) { .masthead-grid { grid-template-columns: 1fr; } .masthead .logo-bulb { display: none; } }
/* Division bulb: the real logo with only this page's segment lit (the rest stays dark) */
.masthead .logo-bulb { width: 100%; overflow: visible; }
.masthead .logo-bulb .q, .masthead .logo-bulb .details { opacity: .16; transition: opacity .6s, filter .6s; }
.masthead .logo-bulb .seams { opacity: .1; }
.masthead .logo-bulb .base { opacity: .35; }
[data-accent="people"] .masthead [data-seg="people"],
[data-accent="digital"] .masthead [data-seg="digital"],
[data-accent="document"] .masthead [data-seg="document"],
[data-accent="tech"] .masthead [data-seg="tech"] { opacity: 1; filter: drop-shadow(0 0 26px var(--light)); }
[data-accent="tech"] .masthead [data-seg="tech"] { fill: var(--tech); } /* the logo's amber segment, in the tech division's cyan */
@media (prefers-reduced-motion: no-preference) { .js .masthead .logo-bulb { animation: filament 1.2s linear .3s; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services > div { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.services .ico { color: var(--light); width: 26px; height: 26px; margin-bottom: 18px; }
.services h3 { font-size: 1.35rem; margin-bottom: 8px; }
.services p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .services > div { padding-right: 0; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--panel); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 40px; font: 600 16px var(--display); color: var(--midnight); background: var(--light, var(--text)); box-shadow: 0 0 24px color-mix(in srgb, var(--light, #fff) 50%, transparent); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 72px; font: 600 1.15rem/1.3 var(--display); letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--light, var(--text)); border-bottom: 2px solid var(--light, var(--text)); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { color: var(--muted); margin: 0 0 24px; max-width: 36em; }

/* About and contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; } .contact-list a:hover { text-decoration: underline; }
.prose ul { padding-left: 1.2em; color: var(--muted); }

/* Booking form */
.form { display: grid; gap: 20px; align-content: start; }
.form h2 { margin-bottom: 4px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 600; font-size: 16px; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input:not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid #5f7899; background: var(--panel); color: var(--text); font: inherit; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #7f95b1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgb(234 240 247 / 14%); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.err { margin: 0; color: #ff8a80; font-size: 15px; }
.err:empty { display: none; }
.lang { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.lang legend { width: 100%; margin-bottom: 8px; }
.lang label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.lang input { width: 20px; height: 20px; accent-color: var(--text); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form-status { margin: 0; color: var(--muted); }
.form-status:empty { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 16px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--muted); }
.site-footer li a:hover { color: var(--text); }
.site-footer .muted { margin-top: 16px; max-width: 280px; }
.foot-h { font: 600 15px var(--body); letter-spacing: 0; margin: 0 0 8px; }
.signature { font: 700 clamp(3rem, 10.5vw, 9.5rem)/.8 var(--display); letter-spacing: -0.065em; margin: 48px 0 0; white-space: nowrap; text-align: center; background: linear-gradient(90deg, var(--people), var(--document) 35%, var(--digital) 65%, var(--tech)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16; user-select: none; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .word { background-position: 0 0; }
}

/* Spanish note and store teaser */
.es-note { margin: 20px 0 0; color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.es-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--document); box-shadow: 0 0 10px var(--document); flex: none; }
.teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(120deg, color-mix(in srgb, var(--digital) 8%, var(--panel)), var(--panel) 60%); }
.teaser h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; }
.teaser p { margin: 0; max-width: 40em; }
.teaser-books { display: flex; align-items: flex-end; }
.teaser-books .book { width: 48px; height: 68px; }
.teaser-books .book + .book { margin-left: -14px; }
.teaser-books .b2 { transform: rotate(-6deg) translateY(-4px); }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; gap: 20px; } }

/* Notary profile (photo goes in .avatar's place) */
.notary-card { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 40px); background: linear-gradient(120deg, color-mix(in srgb, var(--document) 9%, var(--panel)), var(--panel) 60%); }
.notary-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.notary-card p.muted { margin: 0; max-width: 38em; }
.notary-card .kicker { margin-bottom: 8px; }
.avatar, .notary-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px color-mix(in srgb, var(--document) 60%, transparent), 0 0 40px color-mix(in srgb, var(--document) 35%, transparent); }
.avatar { display: grid; place-items: center; font: 700 2.4rem var(--display); letter-spacing: -0.03em; color: var(--midnight); background: linear-gradient(135deg, #ffc27a, var(--document)); }
@media (max-width: 820px) { .notary-card { grid-template-columns: 1fr; gap: 20px; } .avatar, .notary-card img { width: 96px; height: 96px; font-size: 2rem; } }
.legal { margin-top: 32px; font-size: 15px; }

/* Intro (home, once per visit): logo fades in on black, fades out, then the page opens through a
   band that splits from the centre (top half up, bottom half down). Headline words start as it opens. */
.intro-veil { display: none; }
.intro .intro-veil, .intro-opening .intro-veil { display: block; position: fixed; inset: 0; z-index: 90; }
.veil-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--midnight); will-change: transform; }
.veil-top { top: 0; }
.veil-bottom { bottom: 0; }
/* a hairline of the four division lights along each opening edge */
.veil-top::after, .veil-bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--people), var(--document), var(--digital), var(--tech), transparent); opacity: 0; transition: opacity .3s; }
.veil-top::after { bottom: 0; } .veil-bottom::after { top: 0; }
.intro-opening .veil-half::after { opacity: .9; }
.veil-logo { position: absolute; left: 50%; top: 50%; width: min(360px, 66vw); height: auto; translate: -50% -50%; opacity: 0; }
.veil-logo { animation: filament 1s linear .55s; }
html.intro body { overflow: hidden; }
.intro .hero, .intro .hero * { animation-play-state: paused !important; }

.who-inline { margin: clamp(40px, 5vw, 64px) 0 0; }

/* Phones: the bulb's labels become a row of chips under it instead of floating over the logo */
@media (max-width: 600px) {
  .bulb { aspect-ratio: auto; translate: none; }
  .bulb .logo-bulb { height: auto; }
  .bulb-labels { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
  .bulb-labels li:nth-child(n) a { position: static; min-height: 44px; font-size: 14px; padding: 0 14px; }
}

/* Technology: public-sector commitments and a four-step delivery process */
.public-sector { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 56px); background: linear-gradient(140deg, color-mix(in srgb, var(--tech) 8%, var(--panel)), var(--panel) 55%); }
.public-sector h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.commitments { list-style: none; padding: 0; margin: 0; }
.commitments li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.commitments li:first-child { border-top: 0; padding-top: 0; }
.commitments strong { font: 600 1.15rem/1.3 var(--display); letter-spacing: -0.01em; }
.commitments span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .public-sector { grid-template-columns: 1fr; } }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
