/* Rekiran website. Brand kit A, "Bright intelligence". */

@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2"); }

:root {
  --cobalt: #2657D9;
  --orange: #EF6236;
  --jade: #00846B;
  --saffron: #EAB72E;
  --ink: #202B42;
  --paper: #F5F7FC;
  --mist: #E6ECFA;
  --white: #FFFFFF;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 28px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: var(--white); }

/* Header */
.header-bar.on-dark { background: var(--cobalt); }
.header-bar.on-dark .nav a { color: var(--white); }
.header-bar.on-dark .nav a:hover { border-bottom-color: var(--saffron); }
.header-bar.on-dark .nav a.btn-light, .header-bar.on-dark .nav a.btn-light:hover { color: var(--ink); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 30px; line-height: 1; letter-spacing: -0.01em; padding: 6px 0; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--cobalt); font-weight: 500; }
.nav a.btn { border-bottom: 0; padding: 11px 20px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 17px; line-height: 1.2; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; transition: transform 0.12s ease-out, background-color 0.15s ease, color 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--saffron); color: var(--ink); }
.btn-small { font-size: 16px; padding: 11px 20px; }

/* Hero */
.hero { background: var(--paper); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 260px; max-width: 440px; }
.hero.cobalt { background: var(--cobalt); color: var(--white); }
.hero.ink { background: var(--ink); color: var(--white); }
.eyebrow { font-size: 17px; font-weight: 500; color: var(--cobalt); }
.hero.cobalt .eyebrow { color: var(--white); }
.hero.ink .eyebrow { color: var(--saffron); }
h1 { font-weight: 700; font-size: clamp(42px, 6.2vw, 88px); line-height: 1.03; letter-spacing: -0.03em; }
h1 .accent { color: var(--cobalt); }
.lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* Sections */
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.section.paper { background: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 60ch; }
h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 500; font-size: 22px; line-height: 1.25; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 64ch; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.door { border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; color: var(--white); }
.door.advisory { background: var(--cobalt); }
.door.studio { background: var(--ink); }
.door .eyebrow { color: var(--white); }
.door.studio .eyebrow { color: var(--saffron); }
.door li { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.4); font-size: 17px; }
.door li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.door a.more { align-self: flex-start; color: var(--white); font-weight: 500; padding: 12px 0; }
.door.studio a.more { color: var(--saffron); }
.door a.more:hover { text-decoration-thickness: 3px; }

/* Cards and steps */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.section.paper .grid.wide { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card { border-color: transparent; }
.card .num { font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--cobalt); }
.card p { font-size: 17px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.cobalt { background: var(--cobalt); } .dot.orange { background: var(--orange); } .dot.jade { background: var(--jade); } .dot.saffron { background: var(--saffron); }
.status { align-self: flex-start; font-size: 14px; font-weight: 500; background: var(--mist); color: var(--ink); padding: 4px 12px; border-radius: 999px; }

/* Split and facts */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; align-items: start; }
.facts li { padding: 16px 0; border-top: 1px solid var(--mist); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.facts li:last-child { border-bottom: 1px solid var(--mist); }
.facts .when { flex: 0 0 130px; font-weight: 500; color: var(--cobalt); }
.facts .what { flex: 1 1 240px; }

/* Call to action band */
.band { background: var(--cobalt); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.band h2 { max-width: 20ch; }
.band .email { color: var(--white); font-size: clamp(20px, 2vw, 26px); font-weight: 500; }

/* Contact */
.contact-email { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); margin-top: clamp(24px, 4vw, 48px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 22px; padding-bottom: 28px; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { padding: 10px 0; display: inline-block; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.hero-art > * { animation: rise 0.6s ease both; transform-box: fill-box; transform-origin: center; }
.hero-art > *:nth-child(2) { animation-delay: 0.06s; } .hero-art > *:nth-child(3) { animation-delay: 0.12s; }
.hero-art > *:nth-child(4) { animation-delay: 0.18s; } .hero-art > *:nth-child(5) { animation-delay: 0.24s; }
.hero-art > *:nth-child(6) { animation-delay: 0.3s; } .hero-art > *:nth-child(7) { animation-delay: 0.36s; }
.hero-art > *:nth-child(8) { animation-delay: 0.42s; } .hero-art > *:nth-child(9) { animation-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art > *, .btn { animation: none; transition: none; }
  .btn:active { transform: none; }
  .bigtype span, .arch img { animation: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand { font-size: 26px; }
  .nav { gap: 0 20px; }
}

/* Home opening: big type with the open R in an arch */
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--white); color: var(--ink); }
.home-hero { background: var(--cobalt); color: var(--white); overflow: hidden; }
.home-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 48px; padding-top: clamp(28px, 4vw, 56px); }
.home-hero .hero-text { flex: 1 1 520px; padding-bottom: clamp(36px, 5vw, 72px); gap: 26px; }
.home-hero .eyebrow { color: var(--white); }
.bigtype { font-size: clamp(46px, 7.4vw, 116px); line-height: 1.08; letter-spacing: -0.04em; display: flex; flex-wrap: wrap; gap: 0.1em 0.22em; }
.bigtype span { display: inline-block; animation: word 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.bigtype span:nth-child(2) { animation-delay: 0.08s; } .bigtype span:nth-child(3) { animation-delay: 0.16s; } .bigtype span:nth-child(4) { animation-delay: 0.24s; }
.bigtype .w-white { background: var(--white); color: var(--cobalt); border-radius: 0.16em; padding: 0 0.14em; }
.bigtype .w-saffron { background: var(--saffron); color: var(--ink); border-radius: 0.5em; padding: 0 0.22em; }
@keyframes word { from { opacity: 0; transform: translateY(0.25em) scale(0.97); } to { opacity: 1; transform: none; } }
.arch { flex: 0 1 340px; margin: 0 auto; background: var(--white); border-radius: 200px 200px 0 0; padding: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 76px) 0; display: flex; align-items: flex-end; justify-content: center; }
.arch img { display: block; width: 100%; max-width: 190px; height: auto; animation: word 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s both; }

/* The Brief */
.brief-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.go { display: inline-block; font-weight: 500; padding: 10px 0; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 48px; margin-bottom: 14px; }
.pair h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; line-height: 1.6; letter-spacing: 0; max-width: none; }
.pair p { margin: 0; }
.tone-cobalt { --bg: var(--cobalt); --fg: var(--white); }
.tone-ink { --bg: var(--ink); --fg: var(--white); }
.tone-jade { --bg: var(--jade); --fg: var(--white); }
.tone-saffron { --bg: var(--saffron); --fg: var(--ink); }

/* Home: the latest Briefs as shapes */
.shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.sh { font: inherit; cursor: pointer; aspect-ratio: 1; border: 0; background: var(--bg); color: var(--fg); display: flex; text-align: left; font-weight: 700; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.2; letter-spacing: -0.01em; transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), border-radius 0.35s cubic-bezier(0.165, 0.84, 0.44, 1); }
.sh.circle { border-radius: 50%; align-items: center; padding: 16%; }
.sh.arch { border-radius: 50% 50% 28px 28px; align-items: flex-end; padding: 22% 14% 12%; }
.sh.leaf { border-radius: 70% 28px 28px 28px; align-items: flex-end; padding: 24% 12% 12% 16%; }
.sh.block { border-radius: 28px 28px 50% 50%; align-items: flex-start; padding: 12% 14% 22%; }
.sh:active { transform: scale(0.97); }
.sh[aria-expanded="true"] { border-radius: 28px; transform: translateY(8px); }
.answers { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.sh-ans { background: var(--bg); color: var(--fg); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.sh-ans > h3 { font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 22px; }
.sh-ans a { color: inherit; }
.js .sh-ans { display: none; }
.js .sh-ans.is-open { display: block; animation: reveal 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The Brief page: every Brief as a line */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: 16px; font-weight: 500; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease-out; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.lines { border-top: 2px solid var(--ink); }
.lines > li { border-bottom: 2px solid var(--ink); }
.lines > li[hidden] { display: none; }
.line summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding: clamp(18px, 2.4vw, 30px) 0; }
.line summary::-webkit-details-marker { display: none; }
.line .shape { flex: 0 0 auto; width: clamp(22px, 2.6vw, 36px); height: clamp(22px, 2.6vw, 36px); background: var(--c); transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); }
.s-circle { border-radius: 50%; } .s-arch { border-radius: 999px 999px 0 0; } .s-leaf { border-radius: 100% 0 0 0; } .s-pill { border-radius: 999px; }
.line .q { flex: 1; font-weight: 700; font-size: clamp(24px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); }
.line .mark { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); position: relative; transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.2s ease; }
.line .mark::before, .line .mark::after { content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; background: var(--ink); }
.line .mark::after { transform: rotate(90deg); }
.line[open] .mark { transform: rotate(45deg); background: var(--saffron); }
.line[open] .shape { transform: scale(1.5) rotate(90deg); }
.line-ans { padding: 0 0 clamp(24px, 3vw, 40px) calc(clamp(22px, 2.6vw, 36px) + clamp(14px, 2vw, 28px)); max-width: 1000px; animation: reveal 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
@media (hover: hover) and (pointer: fine) {
  .sh:hover { transform: translateY(-6px) rotate(-2deg); }
  .sh[aria-expanded="true"]:hover { transform: translateY(8px); }
  .line summary:hover .q { transform: translateX(10px); }
  .line:not([open]) summary:hover .shape { transform: scale(1.25); }
  .chip:hover { background: var(--mist); }
  .chip[aria-pressed="true"]:hover { background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .sh, .line .shape, .line .q, .line .mark, .chip { transition: none; }
  .js .sh-ans.is-open, .line-ans { animation: none; }
  .sh:hover, .sh[aria-expanded="true"] { transform: none; }
}

/* Home: Advisory and Studio as two halves of one shape */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.half { min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: var(--white); text-decoration: none; transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
.half:hover { color: var(--white); }
.half h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.half p { font-size: clamp(17px, 1.4vw, 20px); max-width: 30ch; }
.half-go { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; padding: 8px 0; }
.half.advisory { background: var(--cobalt); border-radius: 999px 0 0 999px; padding: 48px clamp(28px, 4vw, 64px) 48px clamp(72px, 11vw, 170px); }
.half.studio { background: var(--ink); border-radius: 0 999px 999px 0; padding: 48px clamp(72px, 11vw, 170px) 48px clamp(28px, 4vw, 64px); }
.half.studio .half-go { color: var(--saffron); }
@media (hover: hover) and (pointer: fine) {
  .half.advisory:hover { transform: translateX(-10px); }
  .half.studio:hover { transform: translateX(10px); }
}
@media (max-width: 820px) {
  .halves { grid-template-columns: 1fr; }
  .half { min-height: 0; }
  .half.advisory { border-radius: 240px 240px 0 0; padding: 110px 36px 44px; }
  .half.studio { border-radius: 0 0 240px 240px; padding: 44px 36px 120px; }
}

/* Plain statements, no boxes */
.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 48px; }
.plain li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 22px; }
.shape-lg { width: 40px; height: 40px; background: var(--c); margin-bottom: 6px; }
.plain p { font-size: 17px; }

/* Brief shapes on small screens */
@media (max-width: 560px) {
  .shapes { gap: 14px; }
  .sh, .sh.circle, .sh.arch, .sh.leaf, .sh.block { aspect-ratio: auto; min-height: 150px; padding: 30px 32px; align-items: center; font-size: 20px; }
  .sh.circle { border-radius: 999px; padding: 30px 44px; }
  .sh.arch { border-radius: 90px 90px 28px 28px; padding-top: 52px; }
  .sh.leaf { border-radius: 110px 28px 28px 28px; padding-left: 52px; }
  .sh.block { border-radius: 28px 28px 90px 90px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { .half { transition: none; } .half:hover { transform: none; } }

/* Page-to-page transitions. Browsers without support load pages normally. */
@view-transition { navigation: auto; }
.brand img { view-transition-name: brand; }
.mosaic { view-transition-name: mosaic; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Mosaic: brand shapes drawn afresh on each visit */
.mosaic-wrap { flex: 1 1 280px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mosaic { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; width: 100%; }
.tile { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; }
.tile .t { display: block; width: 100%; height: 100%; background: var(--c); border-radius: var(--r); transform: rotate(var(--rot)) scale(var(--s, 1)); transition: border-radius 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.25s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.tile:active .t { --s: 0.94; }
.tile.fixed { cursor: default; }
.tile.fixed .t { background: var(--white); border-radius: 24%; display: flex; align-items: center; justify-content: center; transform: none; }
.tile.fixed svg { width: 46%; height: auto; }
.shuffle { font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid currentColor; background: none; color: inherit; cursor: pointer; transition: transform 0.12s ease-out; }
.shuffle:active { transform: scale(0.97); }
html:not(.js) .mosaic-wrap { display: none; }

/* Home opening: one question drives the headline, the reply and the shapes */
.home-hero { padding-bottom: clamp(36px, 5vw, 72px); }
.pulse { font-size: clamp(42px, 8vw, 124px); line-height: 1.04; letter-spacing: -0.045em; padding-top: clamp(20px, 3vw, 44px); }
.slot { display: inline-block; vertical-align: bottom; overflow: hidden; background: var(--bg, #FFFFFF); color: var(--fg, #2657D9); border-radius: var(--r, 0.16em); padding: 0 0.16em; transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.35s cubic-bezier(0.165, 0.84, 0.44, 1); }
.word { display: inline-block; }
.word.in { animation: word-up 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
@keyframes word-up { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.home-lede { margin: 20px 0 clamp(28px, 4vw, 52px); max-width: 52ch; font-size: clamp(18px, 1.5vw, 21px); }
.ask-grid { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; justify-content: space-between; }
.ask { flex: 1 1 380px; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.ask-q { font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.ask-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-opt { font: inherit; font-weight: 500; font-size: 17px; min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.75); background: none; color: var(--white); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease-out; }
.ask-opt:active { transform: scale(0.97); }
.ask-opt[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.ask-reply { border-top: 2px solid rgba(255, 255, 255, 0.5); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 168px; }
.ask-reply h2 { font-size: clamp(24px, 2.4vw, 32px); }
.ask-reply a { color: var(--white); font-weight: 500; display: inline-block; padding: 8px 0; }
.ask-reply.swap > * { animation: reveal 0.28s cubic-bezier(0.165, 0.84, 0.44, 1) both; }

/* Ticker of Brief questions */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; position: relative; padding: 16px 0; }
.track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .track, .ticker:focus-within .track, .ticker.paused .track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; color: var(--white); text-decoration: none; font-weight: 500; font-size: clamp(17px, 1.6vw, 21px); white-space: nowrap; }
.tick:hover { color: var(--saffron); }
.tick i { width: 15px; height: 15px; background: var(--c); display: inline-block; flex: 0 0 auto; }
.tick-pause { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 14px; font-weight: 500; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--white); background: var(--ink); color: var(--white); cursor: pointer; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Closing band: a different line and colour on each page, with the time in Kuala Lumpur */
.band.ink { background: var(--ink); }
.band.jade { background: var(--jade); }
.band.saffron { background: var(--saffron); color: var(--ink); }
.band.saffron .email { color: var(--ink); }
.band .now, .now { font-size: 16px; margin-top: 14px; }
.live { font-weight: 500; }
.live::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin-right: 10px; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Steps, status and the build log */
.stepno { width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); color: var(--white); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.status-line { font-size: 15px; font-weight: 500; color: var(--cobalt); }
.log { border-top: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.log time { flex: 0 0 150px; font-weight: 700; color: var(--cobalt); }
.log span { flex: 1 1 300px; font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; }
.line-ans > p { max-width: 62ch; }

@media (hover: hover) and (pointer: fine) {
  .tile:not(.fixed):hover .t { --s: 1.06; }
  .ask-opt:hover { background: rgba(255, 255, 255, 0.18); }
  .ask-opt[aria-selected="true"]:hover { background: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  .tile .t, .slot, .shuffle, .ask-opt { transition: none; }
  .word.in, .ask-reply.swap > *, .live::before { animation: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; gap: 8px 0; padding: 0 var(--pad); }
  .track .tick[aria-hidden="true"], .tick-pause { display: none; }
}
html:not(.js) .live { display: none; }

/* Small text buttons */
.linklike { font: inherit; background: none; border: 0; padding: 10px 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 500; }
.site-footer .linklike { color: var(--cobalt); }
.mosaic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pattern-note { font-size: 15px; }

/* Citations */
.cite { position: relative; display: inline; }
.cite-term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted 2px var(--cobalt); text-underline-offset: 4px; }
.cite-card { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: min(320px, 78vw); background: var(--ink); color: var(--white); border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; animation: reveal 0.18s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.cite-card[hidden] { display: none; }
.cite-card strong { display: block; margin-bottom: 4px; }
.cite-card a { color: var(--saffron); display: inline-block; margin-top: 6px; }
.path-link { margin-top: 28px; font-weight: 500; }

/* The 30-second version */
.thirty { border: 0; padding: 0; border-radius: 28px; width: min(640px, 92vw); color: var(--ink); background: var(--white); overflow: hidden; }
.thirty::backdrop { background: rgba(32, 43, 66, 0.72); }
.thirty-bar { height: 10px; background: var(--mist); }
.thirty-bar span { display: block; height: 100%; width: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
.thirty.running .thirty-bar span { animation: fill 30s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.thirty-in { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.thirty-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.thirty-top h2 { font-size: clamp(26px, 3vw, 36px); }
.thirty-count { font-weight: 700; font-size: 32px; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.thirty dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.thirty dt { font-weight: 700; }
.thirty dd { margin: 2px 0 0; }

/* Licence pathfinder */
.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 48px; }
.path fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.path legend { font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.01em; padding: 0; margin-bottom: 14px; }
.pick { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; border: 2px solid var(--mist); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pick input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--cobalt); flex: 0 0 auto; }
.pick strong { display: block; font-weight: 500; }
.pick span { font-size: 16px; }
.pick:has(input:checked) { border-color: var(--cobalt); background: var(--paper); }
.pick:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 3px; }
.path-out { margin-top: clamp(32px, 4vw, 56px); border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.path-list { display: flex; flex-direction: column; gap: 22px; }
.path-list li { display: flex; gap: 20px; align-items: flex-start; }
.path-list .shape-lg { flex: 0 0 40px; margin-top: 4px; }
.path-list h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 700; margin-bottom: 4px; }
.path-src, .path-caveat { font-size: 16px; }
.path-caveat { font-weight: 500; }

/* Listen */
.listen { font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid currentColor; background: none; color: inherit; cursor: pointer; margin-bottom: 8px; }
.listen[aria-pressed="true"] { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }

/* Not-found page game */
.game { flex: 1 1 280px; max-width: 460px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.card { aspect-ratio: 1; border: 0; padding: 14%; border-radius: 18%; background: var(--mist); cursor: pointer; transition: background-color 0.2s ease, transform 0.12s ease-out; }
.card:active { transform: scale(0.96); }
.card .face { display: block; width: 100%; height: 100%; background: var(--c); border-radius: var(--r); transform: scale(0); transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); }
.card.up { background: var(--white); }
.card.up .face { transform: scale(1); }
.card.done { background: var(--white); cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .card, .card .face, .pick { transition: none; }
  .cite-card { animation: none; }
  .thirty.running .thirty-bar span { animation: none; }
}
button.btn { font-family: inherit; cursor: pointer; }

h2.h3 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
/* Phones: keep the contact button beside the logo so the headline starts higher */
@media (max-width: 560px) {
  .site-header { position: relative; padding-top: 14px; padding-bottom: 6px; }
  .nav a.btn { position: absolute; top: 14px; right: var(--pad); }
  .nav { gap: 0 18px; }
}

/* Brief text: paragraphs, lists, sources and the general-information line */
.pair p + p, .pair ul + p, .pair p + ul { margin-top: 12px; }
.pair ul { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
.pair ul li { padding-left: 18px; position: relative; }
.pair ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pair > div:first-child { grid-column: span 1; }
.brief-src { font-size: 15px; margin-bottom: 10px; }
.brief-src a { color: inherit; }
.general { font-size: 15px; margin-top: 24px; max-width: 70ch; }
@media (min-width: 900px) { .pair { grid-template-columns: 1.6fr 1fr; } }

/* Brief pictures. The route shows on phones. The site shows on tablet and PC, with a switch to the route. */
.line-pic { padding-bottom: clamp(20px, 3vw, 36px); animation: reveal 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.pic-bar { display: none; justify-content: flex-end; margin-bottom: 14px; }
.pic-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.pic-switch button { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 18px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.pic-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.pic-switch button:focus-visible { outline: 3px solid var(--saffron); outline-offset: -3px; }
.pic-site { display: none; }
.pic-site .iso { max-width: 1020px; margin: 0 auto; }
.pic-route { display: block; }
@media (min-width: 700px) {
  .pic-bar { display: flex; }
  .pic[data-view="auto"] .pic-site, .pic[data-view="site"] .pic-site { display: block; }
  .pic[data-view="auto"] .pic-route, .pic[data-view="site"] .pic-route { display: none; }
}
.pic-note { font-size: 15px; margin-top: 14px; }
.l-federal { --c: var(--cobalt); } .l-state { --c: var(--ink); } .l-local { --c: var(--jade); } .l-utility { --c: var(--saffron); }
.pic-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; margin-bottom: clamp(18px, 2.4vw, 30px); }
.pic-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pic-legend i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }

.iso { width: 100%; height: auto; display: block; overflow: visible; }
.iso .flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 11; animation: isoflow 1.4s linear infinite; }
.iso .f-power { stroke: var(--saffron); } .iso .f-water { stroke: var(--jade); } .iso .f-comms { stroke: var(--orange); }
@keyframes isoflow { to { stroke-dashoffset: -13; } }
.iso .mk circle { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }
.iso .mk text { font: 700 14px "Rubik", sans-serif; fill: var(--ink); }
.iso [data-part] { transition: opacity 160ms ease; }
.iso [data-part]:not([data-part="extra"]) { cursor: pointer; }
.iso.has-pick [data-part]:not(.on) { opacity: 0.2; }
.iso [data-part].on .mk circle { fill: var(--saffron); }
.ikeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 36px; margin-top: 8px; }
.ikey { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; width: 100%; padding: 9px 0; cursor: pointer; font-size: 16px; line-height: 1.45; border-bottom: 2px solid var(--mist); }
.ikey .n { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ikey b { display: block; font-size: 18px; font-weight: 700; }
.ikey[aria-pressed="true"] { border-bottom-color: var(--ink); } .ikey[aria-pressed="true"] .n { background: var(--saffron); }
.ikey:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.route { --d: clamp(72px, 7.6vw, 100px); --bh: clamp(60px, 7vw, 92px); --lx: 24%; --gap: 22px; max-width: 1160px; }
.rt { display: grid; grid-template-columns: 1fr 1fr; }
.rt.at-l > .rstop { grid-column: 1; } .rt.at-r > .rstop { grid-column: 2; }
.rt > .rbend { grid-column: 1 / -1; }
.rstop { display: grid; grid-template-columns: calc(var(--lx) + var(--d) / 2) 1fr; column-gap: var(--gap); align-items: center; }
.rdot { justify-self: end; width: var(--d); height: var(--d); background: var(--c); position: relative; z-index: 1; }
.rdot.d-circle { border-radius: 50%; } .rdot.d-arch { border-radius: 999px 999px 16px 16px; } .rdot.d-leaf { border-radius: 0 62% 0 62%; } .rdot.d-dee { border-radius: 16px 999px 999px 16px; }
.rsay p { font-size: 17px; max-width: 36ch; }
.rsay .rt-t { font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; max-width: none; }
.rbend { position: relative; height: var(--bh); }
.rbend svg { position: absolute; left: 0; top: 0; width: 100%; height: var(--bh); max-width: none; }
.rbend path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.rbend .bed { stroke: var(--mist); stroke-width: 18; } .rbend .run { stroke: var(--ink); stroke-width: 4; }
.rwipe { position: absolute; inset: 0; }
.js .rwipe { clip-path: inset(0 0 100% 0); }
.js .rt.seen .rwipe { clip-path: inset(0); transition: clip-path 700ms cubic-bezier(0.215, 0.61, 0.355, 1); }
.trk { position: relative; display: grid; align-content: start; row-gap: calc(var(--bh) * 0.5); padding: 2px 0 calc(var(--bh) * 0.45); }
.trk::before, .trk::after { content: ""; position: absolute; top: 0; bottom: 0; }
.trk::before { left: calc(var(--lx) - 9px); width: 18px; background: var(--mist); }
.trk::after { left: calc(var(--lx) - 2px); width: 4px; background: var(--ink); }
.trk-h, .either { margin-left: calc(var(--lx) + var(--d) / 2 + var(--gap)); }
.trk-h { font-weight: 500; font-size: 17px; }
.either { font-size: 16px; max-width: 34ch; }
@media (max-width: 699px) {
  .route { --d: 60px; --bh: 40px; --lx: 30px; --gap: 16px; }
  .rt { grid-template-columns: 1fr; } .rt.at-r > .rstop { grid-column: 1; }
  .rstop { align-items: start; }
  .rbend svg, .rwipe { display: none; }
  .rbend::before { content: ""; position: absolute; left: calc(var(--lx) - 2px); top: 0; bottom: 0; width: 4px; background: var(--ink); box-shadow: 0 0 0 7px var(--mist); }
  .rt.par > .trk + .trk { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .iso .flow { animation: none; } .iso [data-part] { transition: none; }
  .js .rwipe { clip-path: none; } .js .rt.seen .rwipe { transition: none; } .line-pic { animation: none; }
}
