/* HEX Creative Works, v1.1. Dark is the default (the brand look). Light is the white version, opt-in via the toggle. Built on the shared HEX kit. Tokens first, then layout, components, pages. Light default, dark on request. No inline styles (CSP). */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  /* The HEX Creative Works palette, carried over from the original site: ink black on paper white, the brush-stroke Hex mark.
     Monochrome on purpose. The color lives in the work (the concept posts), never in the chrome. */
  --bg: #F6F6F6; --surface: #FFFFFF; --soft: #EBEBEB; --ink: #181818; --muted: #555555; --line: #D9D9D9;
  --accent: #181818; --accent-strong: #000000; --on-accent: #FFFFFF; --glow: rgba(24,24,24,.07);
  --inkbg: #181818; --inkbg-2: #252525; --on-inkbg: #F6F6F6; --inkbg-muted: #ADADAD; --bright: #FFFFFF; --bright-ink: #181818;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -24px rgba(0,0,0,.4);
  --display: "Bricolage", "Geist", system-ui, sans-serif; --body: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* A rough brush swash painted behind highlighted words, echoing the logo. Ink on light, paper on dark. */
  --swash-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M6 12C60 4 150 2 296 8l-4 12 6 10-5 12 3 12C200 58 90 60 4 54l3-12-5-10 4-11z' fill='%23181818'/%3E%3Cpath d='M20 6c80-3 170-2 270 2M14 55c90 3 180 2 270-2' stroke='%23181818' stroke-width='2' fill='none' opacity='.6'/%3E%3C/svg%3E");
  --swash-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M6 12C60 4 150 2 296 8l-4 12 6 10-5 12 3 12C200 58 90 60 4 54l3-12-5-10 4-11z' fill='%23F6F6F6'/%3E%3Cpath d='M20 6c80-3 170-2 270 2M14 55c90 3 180 2 270-2' stroke='%23F6F6F6' stroke-width='2' fill='none' opacity='.6'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
.hl { color: var(--accent); }
.eyebrow { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 58ch; }
.fine { font-size: .88rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 650 1rem/1 var(--body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font: 800 1.08rem/1 var(--display); letter-spacing: .02em; }
.brand-name span { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:not(.btn):hover { background: var(--soft); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.header-tools { display: flex; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.i-moon { display: none; } [data-mode="light"] .i-moon { display: block; } [data-mode="light"] .i-sun { display: none; }
.menu-btn { display: none; }

/* Hero + live stage */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 780px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; margin-bottom: 20px; }
.proof-line { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.proof-line .ico { color: var(--accent); }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.stage-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.stage-tabs, .stage-devices { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tab { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: 600 .85rem var(--body); cursor: pointer; }
.stage-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stage-note { margin: 10px 4px 2px; font-size: .85rem; color: var(--muted); }

/* Stat strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.stat:first-child { border-left: 0; }
.stat-num { font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-soft { background: var(--soft); }
.section-ink { background: var(--inkbg); color: var(--on-inkbg); }
.section-ink .eyebrow { color: var(--bright); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-sub { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--glow); color: var(--accent); }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; }
.card-dark { background: var(--inkbg-2); border-color: rgba(255,255,255,.08); color: var(--on-inkbg); }
.card-dark p { color: var(--inkbg-muted); }
.card-dark .card-icon { background: rgba(255,255,255,.10); color: var(--bright); }
.card-dark:hover { border-color: var(--bright); }

/* Concepts */
.concepts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.concepts-lg { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
.concept-card h3, .concept-card h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.concept-card > p { color: var(--muted); }
.concept-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease; }
.concept-shot:hover { transform: translateY(-4px); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.concept-meta { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.tag { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--accent-strong); border: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 .92rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.concept-card.is-hidden { display: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step h3, .step h2 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1rem var(--display); }
.steps-vertical { grid-template-columns: 1fr; }
.steps-vertical .step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.steps-vertical .step h2 { margin-top: 4px; }
.note-box { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; }
.note-box h2 { font-size: 1.35rem; margin-bottom: 14px; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-about { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
.founder-photo img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.founder-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.founder-text p { color: var(--muted); font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts strong { color: var(--ink); margin-right: 6px; }

/* CTA band */
.cta-band { padding: clamp(56px, 7vw, 90px) 0; background: var(--inkbg); color: var(--on-inkbg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% 30% -40% -10%; background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent); }
.cta-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta-inner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-inner p { color: var(--inkbg-muted); max-width: 52ch; margin: 0 0 10px; }
.cta-band .btn-primary { background: var(--bright); color: var(--bright-ink); }

/* Page hero */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; margin-bottom: 18px; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.service-head h2 { font-size: 1.4rem; }
.service-short { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--accent); margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font: 650 1.1rem var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-wrap h2 { font-size: 1.5rem; margin-bottom: 16px; }
.form { display: grid; gap: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0 0 12px; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.rating { border: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating legend { width: 100%; margin-bottom: 6px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: #E8A93B; }
.rating input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.form-aside h2 { font-size: 1.3rem; margin-bottom: 12px; }
.mini-steps { padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.notice { padding: 16px 18px; border-radius: 12px; font-weight: 550; margin-bottom: 18px; }
.notice-ok { background: var(--glow); color: var(--ink); border-left: 4px solid var(--accent); }
.notice-err { background: rgba(220,60,60,.1); border-left: 4px solid #D9534F; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stars { color: #E8A93B; letter-spacing: 2px; margin: 0 0 8px; }
.review blockquote { margin: 0 0 12px; font-size: 1.08rem; }
.who { color: var(--muted); font-weight: 600; margin: 0; }
.prose h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--inkbg); color: var(--on-inkbg); padding: 64px 0 28px; }
.site-footer .brand { color: var(--on-inkbg); }
.site-footer .brand-name span { color: var(--inkbg-muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--inkbg-muted); max-width: 42ch; margin: 16px 0 0; }
.footer-brand a:not(.brand), .footer-base a { color: var(--on-inkbg); }
.family { font-size: .92rem; }
.footer-nav h2 { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: var(--on-inkbg); text-decoration: none; }
.footer-nav a:hover { color: var(--bright); }
.footer-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: var(--inkbg-muted); font-size: .9rem; }
.footer-base p { margin: 0; display: flex; gap: 16px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cards-3, .concepts { grid-template-columns: repeat(2, 1fr); }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .founder, .founder-about, .form-layout, .service-list { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
  .concepts-lg, .reviews { grid-template-columns: 1fr; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 22px 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta-li { margin-top: 10px; } .nav-cta-li .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards-3, .cards-4, .concepts, .steps { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .stage-tab { font-size: .8rem; padding: 6px 10px; }
      .brand-name { font-size: 1rem; }
}

/* v1 polish */
.founder-text .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.15rem); }

/* ── The edge: grain, brush strokes, angled cuts. Professional first, never noisy. ── */
.hl { color: var(--bg); background: var(--swash-ink) center / 100% 100% no-repeat; padding: 0 .16em .04em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .hl, .page-hero .hl, .section-ink .hl, .cta-band .hl { color: var(--inkbg); background-image: var(--swash-paper); }
.hero { background: var(--inkbg); color: var(--on-inkbg); isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); padding-bottom: clamp(90px, 9vw, 130px); }
.hero::before { inset: -20% -10% auto 35%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); }
.hero::after, .section-ink::after, .cta-band::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; mix-blend-mode: overlay; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--bright); }
.hero .lead, .hero .proof-line { color: var(--inkbg-muted); }
.hero .proof-line .ico { color: var(--bright); }
.hero .btn-primary { background: var(--bright); color: var(--bright-ink); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.hero .btn-primary:hover { background: #DADADA; }
.hero .btn-ghost { background: transparent; color: var(--on-inkbg); border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: var(--bright); }
.hero .stage { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero .stage-tab, .hero .hero .stage-tab[aria-selected="true"] { background: var(--bright); color: var(--bright-ink); border-color: var(--bright); }
.hero .hero .stage-note { color: var(--inkbg-muted); } .hero .stage-note a { color: var(--bright); }
.site-header { background: color-mix(in srgb, var(--inkbg) 92%, transparent); }
.site-header .brand, .site-header .nav a:not(.btn) { color: var(--on-inkbg); }
.site-header .brand-name span { color: var(--inkbg-muted); }
.site-header .nav a:not(.btn):hover { background: rgba(255,255,255,.08); }
.site-header .nav a[aria-current="page"]:not(.btn) { color: var(--bright); }
.site-header .btn-primary { background: var(--bright); color: var(--bright-ink); box-shadow: none; }
.site-header .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--on-inkbg); }
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.08); }
.page-hero { background: var(--inkbg); color: var(--on-inkbg); position: relative; isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); padding-bottom: clamp(70px, 8vw, 110px); }
.page-hero .lead { color: var(--inkbg-muted); }
.section-ink { position: relative; isolation: isolate; clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%); padding-block: clamp(96px, 10vw, 140px); }
.cta-band { isolation: isolate; }
.strip { position: relative; margin-top: -48px; background: transparent; border: 0; }
.strip-grid { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; transform: skewX(-20deg); }
.card { border-radius: 12px; }
.card:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.step-num { border-radius: 10px; transform: rotate(-4deg); }
.concept-card h3, .concept-card h2 { letter-spacing: -.01em; }
@media (max-width: 900px) {
  .nav { background: var(--inkbg); border-bottom-color: rgba(255,255,255,.08); }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .section-ink { clip-path: polygon(0 24px, 100% 0, 100% calc(100% - 24px), 0 100%); }
}
@media (max-width: 640px) { .strip { margin-top: -32px; } }

/* ── v1.1 selling sections ── */
.cta-row { align-items: flex-start; }
.cta-stack { display: grid; gap: 8px; }
.micro { font-size: .82rem; color: var(--muted); max-width: 30ch; }
.hero .micro, .micro.on-dark { color: var(--inkbg-muted); }
.center { text-align: center; margin-top: 30px; }
.section-sub.on-dark { color: var(--inkbg-muted); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }

/* Leak path */
.leak-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; counter-reset: l; }
.leak-path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 25px; height: 3px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); border-radius: 3px; }
.leak { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; display: grid; gap: 10px; align-content: start; }
.leak-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--inkbg); color: var(--bright); margin-top: -40px; border: 3px solid var(--bg); }
.leak-step { font: 700 1.02rem var(--display); display: flex; gap: 8px; align-items: baseline; }
.leak-num { font: 600 .75rem var(--mono); color: var(--accent); }
.leak-bad, .leak-fix { margin: 0; font-size: .93rem; display: flex; gap: 8px; align-items: flex-start; }
.leak-bad { color: var(--muted); }
.leak-drip { color: #D9534F; flex: none; margin-top: 3px; }
.leak-fix { color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
.leak-fix .ico { color: var(--accent); flex: none; margin-top: 3px; }
.leak-close { text-align: center; font: 600 1.3rem var(--display); margin: 34px 0 0; }
.leak-close strong { color: var(--accent); }

/* Why not a builder + comparison */
.split-text { max-width: 820px; }
.split-text .big { font: 600 1.35rem/1.45 var(--display); color: var(--ink); }
.split-text p { color: var(--muted); font-size: 1.05rem; }
.split-text .kicker { font: 700 1.25rem var(--display); color: var(--ink); border-left: 4px solid var(--accent); padding-left: 16px; }
.compare-wrap { margin-top: 34px; overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .95rem; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.compare tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); }
.compare .hex-col { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--ink); font-weight: 600; }
.compare thead .hex-col { background: var(--inkbg); color: var(--bright); }
.compare td.hex-col .ico { display: inline; vertical-align: -3px; color: var(--accent); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Under the hood */
.hood-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hood { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: h; }
.hood li { position: relative; padding: 14px 18px 14px 58px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; transform: skewX(-6deg); display: grid; gap: 2px; }
.hood li > * { transform: skewX(6deg); }
.hood li::before { counter-increment: h; content: counter(h); position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 700 .8rem var(--mono); color: var(--bright); transform: skewX(6deg); }
.hood li:first-child { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.hood li:last-child { border-color: var(--bright); background: rgba(255,255,255,.10); }
.hood strong { color: var(--on-inkbg); font: 700 1.05rem var(--display); }
.hood span { color: var(--inkbg-muted); font-size: .92rem; }

/* Split */
.split-2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.split-2 .section-head { margin-bottom: 0; }

/* Promises */
.promises { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--muted); }
.promises li .ico { color: var(--accent); flex: none; margin-top: 2px; }
.promises strong { color: var(--ink); }

/* Services + leak check */
.service-who { color: var(--ink); font-size: .98rem; }
.service-label { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 14px 0 8px; }
.check-list { padding-left: 20px; display: grid; gap: 12px; color: var(--muted); }
.check-list strong { color: var(--ink); display: block; }

@media (max-width: 1100px) { .leak-path { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } .leak-path::before { display: none; } }
@media (max-width: 900px) { .hood-grid, .split-2 { grid-template-columns: 1fr; } .promises { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .leak-path { grid-template-columns: 1fr; row-gap: 30px; } .hood li { transform: none; } .hood li > *, .hood li::before { transform: none; } }
.svc-strip { margin-top: 34px; text-align: center; }
.svc-strip ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.svc-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.svc-strip a:hover { border-color: var(--accent); color: var(--accent); }
.svc-strip .ico { color: var(--accent); }
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; border: 0; background: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { background: var(--soft); border-bottom: 1px solid var(--line); }
  .compare td { display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--ink); text-align: left; flex: none; max-width: 45%; }
  .compare td.hex-col::before { color: var(--accent); }
}
.post-body .lede { font: 600 1.2rem/1.5 var(--display); color: var(--ink); background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--soft); }
.post-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.based-on { margin-top: 26px; }

/* ── HEX Creative Works components ── */
.eyebrow { color: var(--ink); }
.section-ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .site-footer .footer-nav h2 { color: var(--inkbg-muted); }
.leak-icon { color: #FFFFFF; background: #181818; }
.leak-path::before { background: linear-gradient(90deg, var(--line), var(--ink), var(--line)); }
.hood li { border-color: rgba(255,255,255,.18); }
.hood li:last-child { border-color: #FFFFFF; background: rgba(255,255,255,.1); }
.compare .hex-col { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.compare thead .hex-col { background: var(--inkbg); color: #FFFFFF; }
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .site-header .btn-primary:hover { background: #DADADA; }

/* Feed stage */
.stage-tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .stage-tab[aria-pressed="true"] { background: #FFFFFF; color: #181818; border-color: #FFFFFF; }
.stage-formats { display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.fmt { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--body); cursor: pointer; }
.fmt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hero .stage-formats { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hero .fmt { color: var(--inkbg-muted); } .hero .fmt[aria-pressed="true"] { background: #FFFFFF; color: #181818; }
.stage-phones { display: grid; place-items: center; padding: 10px 0 4px; }
.hero .stage { padding: 14px; }

/* Concept pages */
.concept-stage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.concept-stage-row .stage { max-width: 440px; margin: 0 auto; }
.concept-stage-copy h2, .brief h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.concept-stage-copy p { color: var(--muted); font-size: 1.05rem; }
.brief .tag { display: inline-block; margin-bottom: 16px; }
.brief .big { font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.25 var(--display); }
.brief-facts { margin: 22px 0 0; display: grid; gap: 14px; }
.brief-facts div { border-left: 3px solid var(--ink); padding-left: 14px; }
.brief-facts dt { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brief-facts dd { margin: 4px 0 0; font-size: 1.05rem; }
.note-inline { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: .95rem; }
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.week li { display: grid; grid-template-columns: 56px 100px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.week-day { font: 800 1.1rem var(--display); }
.week-fmt { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); justify-self: start; }
.week-what { color: var(--muted); }
.concept-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.card .step-num { margin-bottom: 4px; }
input[type=date] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.notice-ok { border-left-color: var(--ink); }

@media (max-width: 900px) { .concept-stage-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .week li { grid-template-columns: 44px 1fr; } .week-what { grid-column: 1 / -1; }
  .phone { width: min(290px, 100%); }
  .stage-bar { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .frame, .story-bars b { transition: none !important; } }
.stage-tab { background: var(--bg); color: var(--ink); }
.hero .stage-tab { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--on-inkbg); }
.hero .stage-tab[aria-pressed="true"] { background: #FFFFFF; color: #181818; border-color: #FFFFFF; }

/* ── Light mode: the white version. Same layout, same brush strokes, ink on white. ── */
:root[data-mode="light"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F4F4F4; --ink: #181818; --muted: #555555; --line: #E2E2E2;
  --accent: #181818; --accent-strong: #000000; --on-accent: #FFFFFF; --glow: rgba(24,24,24,.06);
  --inkbg: #F4F4F4; --inkbg-2: #EBEBEB; --on-inkbg: #181818; --inkbg-muted: #555555; --bright: #181818; --bright-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -26px rgba(0,0,0,.28);
}
[data-mode="light"] .hero .hl, [data-mode="light"] .page-hero .hl, [data-mode="light"] .section-ink .hl, [data-mode="light"] .cta-band .hl { color: #FFFFFF; background-image: var(--swash-ink); }
[data-mode="light"] .hero::before { background: radial-gradient(closest-side, rgba(0,0,0,.05), transparent); }
[data-mode="light"] .cta-band::before { background: radial-gradient(closest-side, rgba(0,0,0,.04), transparent); }
[data-mode="light"] .hero::after, [data-mode="light"] .section-ink::after, [data-mode="light"] .cta-band::after, [data-mode="light"] .page-hero::after { opacity: 0; }
[data-mode="light"] .section-ink, [data-mode="light"] .cta-band { background: #EBEBEB; }
[data-mode="light"] .hero .btn-primary, [data-mode="light"] .cta-band .btn-primary, [data-mode="light"] .site-header .btn-primary { box-shadow: 0 12px 26px -14px rgba(0,0,0,.55); }
[data-mode="light"] .hero .btn-primary:hover, [data-mode="light"] .cta-band .btn-primary:hover, [data-mode="light"] .site-header .btn-primary:hover { background: #000000; }
[data-mode="light"] .hero .btn-ghost { background: #FFFFFF; border-color: rgba(0,0,0,.18); }
[data-mode="light"] .hero .stage { background: #FFFFFF; border-color: var(--line); box-shadow: 0 30px 60px -34px rgba(0,0,0,.35); }
[data-mode="light"] .hero .stage-tab, [data-mode="light"] .hero .stage-formats { background: #FFFFFF; border-color: var(--line); color: var(--ink); }
[data-mode="light"] .hero .stage-tab[aria-pressed="true"], [data-mode="light"] .hero .fmt[aria-pressed="true"] { background: #181818; color: #FFFFFF; border-color: #181818; }
[data-mode="light"] .hero .fmt { color: var(--muted); }
[data-mode="light"] .phone { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 34px 60px -30px rgba(0,0,0,.45); }
[data-mode="light"] .site-header { background: rgba(255,255,255,.92); }
[data-mode="light"] .site-header.scrolled { border-bottom-color: var(--line); }
[data-mode="light"] .site-header .nav a:not(.btn):hover { background: #F1F1F1; }
[data-mode="light"] .site-header .icon-btn { background: #FFFFFF; border-color: var(--line); }
[data-mode="light"] .hood li { background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.14); }
[data-mode="light"] .hood li:first-child { background: #FFFFFF; border-color: rgba(0,0,0,.4); }
[data-mode="light"] .hood li:last-child { background: #FFFFFF; border-color: #181818; }
[data-mode="light"] .compare thead .hex-col { background: #181818; color: #FFFFFF; }
[data-mode="light"] .site-footer { border-top: 1px solid var(--line); }
[data-mode="light"] .footer-base { border-top-color: var(--line); }
@media (max-width: 900px) { [data-mode="light"] .nav { background: #FFFFFF; border-bottom-color: var(--line); } }
/* Concept themes: each fictional brand keeps the palette of its concept website at HEX Web Design */
.theme-rr { --c-dark: #0F2742; --c-ac: #FF7A1A; --c-ac-ink: #1A0C00; --c-paper: #F5F1EA; --c-ink: #13202E; --c-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.theme-nd { --c-dark: #0B5555; --c-ac: #A8DDD1; --c-ac-ink: #0B2E2E; --c-paper: #FBF8F3; --c-ink: #1D2B2B; --c-font: "Avenir Next", "Segoe UI", Roboto, Helvetica, sans-serif; }
.theme-eo { --c-dark: #2A1D16; --c-ac: #E8A55B; --c-ac-ink: #2A1D16; --c-paper: #F7EFE3; --c-ink: #2A1D16; --c-font: Georgia, "Iowan Old Style", "Times New Roman", serif; }


/* ── The phone: an app-true profile, story and sponsored post ── */
.phone {
  margin: 0; width: min(318px, 100%); aspect-ratio: 9 / 18.2; border-radius: 42px; padding: 9px; background: #0A0A0A;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 70px -30px rgba(0,0,0,.7); position: relative; }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: #0A0A0A; z-index: 5; }
.phone[hidden] { display: none; }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #FFFFFF; color: #0A0A0A;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr[hidden] { display: none; }
.scr-feed { overflow-y: auto; scrollbar-width: none; padding-top: 40px; overscroll-behavior: contain; }
.scr-feed::-webkit-scrollbar { display: none; }
.scr-feed:focus-visible { outline: 3px solid #0095F6; outline-offset: -3px; }
.avatar { display: inline-block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.avatar img, .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-top { display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px; font-size: .95rem; }
.ig-concept { font: 700 .56rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: #EFEFEF; color: #444; }
.ig-profile { display: flex; align-items: center; gap: 16px; padding: 0 14px; }
.avatar-lg { width: 70px; height: 70px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-ac); }
.ig-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.ig-stats span { display: grid; font-size: .66rem; color: #333; line-height: 1.25; }
.ig-stats b { font-size: .86rem; color: #0A0A0A; }
.ig-bio { display: grid; gap: 1px; padding: 10px 14px 0; margin: 0; font-size: .7rem; line-height: 1.35; }
.ig-bio strong { font-size: .74rem; }
.ig-cat { color: #737373; }
.ig-link { color: #00376B; font-weight: 600; }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding: 10px 14px 0; }
.ig-btns span { text-align: center; font-size: .66rem; font-weight: 600; padding: 7px 2px; border-radius: 8px; background: #EFEFEF; color: #0A0A0A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-btns .ig-follow { background: #0095F6; color: #FFFFFF; }
.ig-highlights { list-style: none; margin: 0; padding: 12px 14px 4px; display: flex; gap: 14px; }
.ig-highlights li { display: grid; justify-items: center; gap: 4px; width: 58px; font-size: .58rem; text-align: center; line-height: 1.15; color: #0A0A0A; }
.ig-hl-ring { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #DBDBDB; border: 2px solid #fff; }
.ig-hl-ring img { width: 100%; height: 100%; object-fit: cover; }
.ig-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; border-top: 1px solid #EFEFEF; }
.ig-tabs span { display: grid; place-items: center; padding: 8px 0; color: #A0A0A0; }
.ig-tabs .on { color: #0A0A0A; box-shadow: inset 0 -1.5px 0 #0A0A0A; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.ig-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #EEE; container-type: inline-size; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-kind { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); display: inline-flex; align-items: center; gap: 4px; }
.ig-kind .ico { fill: #fff; }
.ig-note { font-size: .6rem; color: #737373; text-align: center; padding: 10px 12px 16px; margin: 0; }

/* Brand text overlays, drawn in HTML so they stay crisp. Each fictional brand has its own style. */
.ov { position: absolute; left: 7%; right: 7%; bottom: 7%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.ov > span { font-family: var(--c-font); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.ov-sm > span { font-size: 12.5cqw; }
.ov-lg { left: 6%; right: 6%; bottom: 6%; }
.ov-lg > span { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.ov .ov-kick { font: 700 .62rem/1 var(--body) !important; letter-spacing: .1em; text-transform: uppercase; }
.theme-rr .ov > span { text-transform: uppercase; background: var(--c-dark); color: #fff; padding: .12em .3em .08em; box-shadow: .18em .18em 0 var(--c-ac); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.theme-rr .ov .ov-kick { background: var(--c-ac); color: var(--c-ac-ink); box-shadow: none; }
.theme-nd .ov > span { background: rgba(255,255,255,.92); color: var(--c-dark); padding: .3em .45em; border-radius: .45em; font-weight: 700; }
.theme-nd .ov .ov-kick { background: var(--c-dark); color: #fff; }
.theme-eo .ov { left: 0; right: 0; bottom: 0; padding: 30% 7% 7%; background: linear-gradient(transparent, rgba(20,12,8,.82)); }
.theme-eo .ov > span { color: #F7EFE3; font-weight: 700; font-style: italic; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.theme-eo .ov .ov-kick { color: var(--c-ac); font-style: normal; }

/* Story */
.scr-story { background: #000; color: #fff; }
.story-frames { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.frame[data-on] { opacity: 1; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 130px; background: linear-gradient(rgba(0,0,0,.5), transparent); z-index: 1; }
.st-text { position: absolute; left: 16px; right: 16px; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; z-index: 1; font-family: var(--c-font); }
.st-title { font-weight: 800; font-size: 1.45rem; line-height: 1.05; padding: .15em .35em; border-radius: .25em; }
.st-sub { font-size: .82rem; font-weight: 600; padding: .3em .6em; border-radius: .4em; background: rgba(0,0,0,.55); }
.theme-rr .st-title { background: var(--c-dark); text-transform: uppercase; box-shadow: .15em .15em 0 var(--c-ac); }
.theme-nd .st-title { background: #fff; color: var(--c-dark); }
.theme-eo .st-title { background: var(--c-ac); color: var(--c-ac-ink); font-style: italic; }
.stk { position: absolute; left: 50%; translate: -50% 0; bottom: 20%; z-index: 1; color: #0A0A0A; font-size: .78rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.stk-poll { display: grid; grid-template-columns: 1fr 1fr; width: 70%; background: #fff; border-radius: 12px; overflow: hidden; }
.stk-poll span { padding: 12px 6px; text-align: center; } .stk-poll span + span { border-left: 1px solid #EEE; }
.stk-poll span:first-child { color: #0095F6; } .stk-poll span:last-child { color: #D6249F; }
.stk-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: #fff; color: #0056B3; white-space: nowrap; }
.stk-q, .stk-count { width: 72%; border-radius: 14px; background: #fff; overflow: hidden; text-align: center; }
.stk-q-top { display: block; padding: 10px 10px 6px; background: var(--c-dark); color: #fff; font-size: .74rem; }
.stk-q-in { display: block; margin: 8px; padding: 8px; border-radius: 8px; background: #F1F1F1; color: #8E8E8E; font-weight: 500; font-size: .7rem; }
.stk-nums { display: flex; justify-content: center; gap: 6px; padding: 8px; }
.stk-nums b { background: #F1F1F1; border-radius: 6px; padding: 6px 7px; font-size: 1rem; }
.story-bars { position: absolute; top: 40px; left: 10px; right: 10px; display: flex; gap: 3px; z-index: 3; }
.story-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: #FFFFFF; }
.story-bars i.done b { width: 100%; }
.story-bars i.run b { width: 100%; transition: width var(--dur, 3.2s) linear; }
.story-bars i.run.start b { width: 0; transition: none; }
.story-head { position: absolute; top: 50px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; font-size: .74rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.story-head .avatar { width: 28px; height: 28px; }
.story-head span:last-child { opacity: .8; }
.story-reply { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 12px; z-index: 3; }
.story-reply span { flex: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 9px 14px; font-size: .74rem; }
.story-tap { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; border: 0; background: transparent; color: transparent; }
.story-tap:focus-visible { opacity: 1; outline: 3px solid #FFFFFF; outline-offset: -6px; border-radius: 34px; }

/* Sponsored post (in the phone) and full post cards (on concept pages) */
.scr-ad { padding-top: 40px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.app-id { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.app-id strong { font-size: .76rem; }
.app-id span { font-size: .64rem; color: #737373; }
.dots { font-weight: 800; letter-spacing: 1px; }
.post-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #EEE; }
.post-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-cta { margin: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #EFEFEF; color: #0A0A0A; font-size: .74rem; font-weight: 700; border-bottom: 1px solid #E6E6E6; }
.post-actions { display: flex; gap: 14px; padding: 10px 12px 4px; margin: 0; color: #0A0A0A; }
.post-actions span { flex: 1; }
.post-cap { font-size: .72rem; line-height: 1.4; margin: 0; padding: 4px 12px 0; color: #0A0A0A; }
.post-cap .tags { color: #00376B; }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #FFFFFF; color: #0A0A0A; border: 1px solid #DBDBDB; border-radius: 10px; overflow: hidden; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; padding-bottom: 12px; }
.post-card .avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c-ac); }
.post-card .app-id strong { font-size: .88rem; } .post-card .app-id span { font-size: .74rem; }
.post-card .post-cap { font-size: .88rem; padding: 4px 14px 0; }
.post-card .post-actions { padding: 10px 14px 4px; }
.ig-kind-lg { top: 10px; right: 10px; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 999px; font: 700 .72rem var(--body); filter: none; }
.car-dots { display: flex; justify-content: center; gap: 4px; margin: 8px 0 0; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: #DBDBDB; } .car-dots i.on { background: #0095F6; }
.post-ai { display: flex; align-items: center; gap: 6px; margin: 8px 14px 0; font-size: .74rem; color: #595959; }

/* Concept cards on index/home */
.concept-shot { padding: 12px; background: #fff; }
.mini-head { display: flex; align-items: center; gap: 8px; font: 600 .85rem -apple-system, "Segoe UI", Roboto, sans-serif; color: #0A0A0A; margin-bottom: 10px; }
.mini-head .avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c-ac); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 6px; overflow: hidden; }

@media (max-width: 1020px) { .post-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-gallery { grid-template-columns: 1fr; } .phone { width: min(300px, 100%); } }
@media (prefers-reduced-motion: reduce) { .frame, .story-bars b { transition: none !important; } }

/* ── Insights (ported from the HEX Web Design kit) ── */
.page-hero .eyebrow a { color: inherit; } .post-meta { color: var(--inkbg-muted); } .post-meta a { color: var(--on-inkbg); }
.post-body { font-size: 1.08rem; } .post-body h2 { font-size: 1.5rem; margin: 34px 0 10px; color: var(--ink); } .post-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.post-body p, .post-body li { color: var(--ink); } .post-body ul, .post-body ol { padding-left: 22px; } .post-body li { margin-bottom: 6px; }
.post-body code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; margin: 40px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; }
.author-name { font: 700 1.1rem var(--display); margin: 0 0 4px; }
.author-box .fine { margin: 0; }
.post-body .lede { font: 600 1.2rem/1.5 var(--display); color: var(--ink); background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--soft); }
.post-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.based-on { margin-top: 26px; }

/* Insights: editorial layout in the site's own language (navy hero, Bricolage, 12px cards, blue brush) */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-chips a { font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--on-inkbg); padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); transition: border-color .15s ease, background .15s ease; }
.topic-chips a:hover { border-color: var(--bright); background: rgba(255,255,255,.1); }
.kicker { display: block; font: 700 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.byline { font: 500 .86rem/1.5 var(--body); color: var(--muted); margin: 8px 0 0; }
.dek { font-size: 1.05rem; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.ins-img, .ins-thumb, .feature-img { display: block; overflow: hidden; }
.ins-img img, .ins-thumb img, .feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-img-missing { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--soft), var(--line)); }
.ins-front { position: relative; margin-top: -64px; padding-bottom: clamp(48px, 6vw, 80px); }
.front { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lead-story { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); padding-bottom: 26px; }
.lead-story > :not(.lead-media) { margin-left: 26px; margin-right: 26px; }
.lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 20px; }
.lead-media .ins-img { height: 100%; }
.lead-h { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.lead-h a, .story-h a, .latest-h { color: var(--ink); text-decoration: none; }
.lead-h a:hover, .story-h a:hover, .latest-item:hover .latest-h { color: var(--accent); }
.latest { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.rail-title, .sec-title { font: 700 .8rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.rail-title::after, .sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.latest-list li + li { border-top: 1px solid var(--line); padding-top: 14px; }
.latest-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; text-decoration: none; align-items: start; }
.ins-thumb { aspect-ratio: 1; border-radius: 10px; }
.latest-h { display: block; font: 700 1rem/1.25 var(--display); letter-spacing: -.01em; }
.latest-item .kicker { font-size: .66rem; margin-bottom: 4px; }
.band-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.datadesk { background: var(--inkbg); color: var(--on-inkbg); padding: 26px; border-radius: 12px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.datadesk::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .06; pointer-events: none; mix-blend-mode: overlay; }
.dd-kicker { font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); margin: 0 0 6px; }
.dd-title { font-size: 1.5rem; line-height: 1.15; margin-bottom: 14px; color: var(--on-inkbg); }
.dd-chart { width: 100%; height: auto; }
.dd-l { font: 600 12.5px var(--body); fill: var(--on-inkbg); }
.dd-v { font: 700 12.5px var(--mono); fill: var(--bright); }
.dd-track { fill: rgba(255,255,255,.1); } .dd-bar { fill: var(--bright); }
.dd-src { font-size: .78rem; color: var(--inkbg-muted); margin: 8px 0 14px; }
.dd-src a, .dd-stat a { color: var(--on-inkbg); }
.dd-stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0 0; margin-top: 12px; font-size: .9rem; color: var(--inkbg-muted); }
.dd-num { font: 800 1.9rem var(--display); color: var(--bright); }
.editor-note { display: grid; gap: 14px; justify-items: start; }
.editor-note > * { margin: 0; }
.ed-quote { font: 650 clamp(1.3rem, 2.3vw, 1.75rem)/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); }
.topic-sec + .topic-sec { margin-top: clamp(48px, 6vw, 72px); }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.story:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.story-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.story-media .ins-img { height: 100%; }
.story-media img { transition: transform .5s ease; }
.story:hover .story-media img { transform: scale(1.04); }
.story-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-body > p { margin: 0; }
.story-body .byline { margin-top: auto; padding-top: 6px; }
.story-h { font-size: 1.18rem; line-height: 1.2; letter-spacing: -.01em; }
.story-dek { color: var(--muted); font-size: .94rem; }
.feature-hero .eyebrow a { color: inherit; text-decoration: none; }
.feature-hero h1.feature-h { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.feature-hero .lead { max-width: 62ch; }
.feature-hero { padding-bottom: clamp(110px, 12vw, 170px); }
.feature-media { position: relative; margin: clamp(-120px, -9vw, -70px) auto 40px; }
.feature-img { aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: var(--shadow); }
.feature-media figcaption { font: 500 .7rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; text-align: right; }
.related { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 20px; }
.infographic { margin: 30px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.infographic .ig { width: 100%; height: auto; display: block; }
.infographic figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.ig-surface { fill: var(--surface); } .ig-soft { fill: var(--soft); } .ig-ink { fill: var(--ink); } .ig-muted { fill: var(--muted); }
.ig-accent { fill: var(--accent); } .ig-accent-stroke { stroke: var(--accent); fill: none; } .ig-line { stroke: var(--line); }
.ig-bright { fill: var(--bright); } .ig-danger { fill: #D9534F; } .ig-ok { fill: #1E9E63; }
.ig-t { font-family: var(--body); font-weight: 500; } .ig-h { font-family: var(--display); font-weight: 750; }
.home-desk .desk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.home-desk .latest { box-shadow: none; }
.home-desk .lead-story { box-shadow: none; }
.home-desk .lead-h { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.desk-more { margin: 16px 0 0; }
@media (max-width: 1080px) { .home-desk .desk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .home-desk .desk-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .front, .band-2 { grid-template-columns: minmax(0, 1fr); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-front { margin-top: -40px; }
}
@media (max-width: 700px) {
  .home-desk .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .infographic { overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
  .infographic .ig { min-width: 620px; }
  .infographic figcaption { position: sticky; left: 0; max-width: calc(100vw - 72px); }
  .infographic figcaption::before { content: "Swipe to see the whole graphic. "; font-weight: 600; color: var(--accent); }
}
@media (max-width: 600px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-story > :not(.lead-media) { margin-left: 18px; margin-right: 18px; }
  .feature-media { margin-top: -56px; }
}
.topic-chips a:hover { border-color: var(--bright); background: rgba(255,255,255,.1); }
[data-mode="light"] .topic-chips a { border-color: rgba(0,0,0,.16); background: #FFFFFF; }
[data-mode="light"] .topic-chips a:hover { border-color: #181818; background: #FFFFFF; }
[data-mode="light"] .dd-track { fill: rgba(0,0,0,.1); }
[data-mode="light"] .dd-stat { border-top-color: rgba(0,0,0,.1); }
[data-mode="light"] .datadesk { background: #EBEBEB; }
.post-body .lede { font-family: var(--body); font-weight: 600; }
