/* ---------- Theme tokens ---------- */
:root {
  --bg: #fefefe;
  --bg-tint: #e7e9f0;
  --surface: #ffffff;
  --ink: #051747;
  --muted: #535f80;
  --line: #d3d8e6;
  --navy: #051747;
  --navy-2: #081f62;
  --accent: #f5b700;
  --accent-ink: #051747;
  --band: #051747;              /* dark bands and photo overlays */
  --band-rgb: 5, 23, 71;
  --shadow: 0 20px 50px rgba(5, 23, 71, 0.16);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-tint: #121214;
  --surface: #17171a;
  --ink: #f5f5f5;
  --muted: #a3a3ad;
  --line: #2a2a2f;
  --band: #121214;
  --band-rgb: 11, 11, 12;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 44px); margin-inline: auto; position: relative; }
.wrap-narrow { width: min(760px, 100% - 44px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 14px; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; }
.gold { color: var(--accent); }
.band h2 .gold, .contact h2 .gold, .article-cta .gold { color: inherit; box-shadow: inset 0 -0.14em 0 var(--accent); }

.label {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.label::before { content: ""; width: 26px; height: 3px; background: var(--accent); }
.label-dot { display: none; }

.section-copy { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 18px 0 0; }
.section-head { margin-bottom: 46px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn span { transition: transform 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(245, 183, 0, 0.35); }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color 0.25s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  background: linear-gradient(165deg, var(--accent) 8%, var(--ink) 62%);
  -webkit-mask: url("/assets/img/sceon-mark.png") center / contain no-repeat;
  mask: url("/assets/img/sceon-mark.png") center / contain no-repeat;
}
.brand-name { font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; }
.brand-name span { font-weight: 500; color: var(--muted); margin-left: 6px; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { border: 1.5px solid var(--ink); padding: 10px 20px; transition: background-color 0.25s ease, color 0.25s ease; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); }
.bar-tools { display: flex; gap: 8px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--band); color: #fefefe; min-height: min(680px, 86vh); display: flex; align-items: center; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: slow-zoom 18s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--band-rgb)) 0%, rgba(var(--band-rgb), 0.9) 38%, rgba(var(--band-rgb), 0.35) 72%, rgba(var(--band-rgb), 0.15) 100%);
}
.hero .wrap { z-index: 1; padding: 90px 0 100px; }
.hero .label { color: var(--accent); }
.hero h1 { max-width: 13.5ch; margin: 6px 0 26px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 0 0 36px; color: rgba(254, 254, 254, 0.86); }
.hero .btn:not(.btn-gold) { border-color: rgba(254, 254, 254, 0.55); }
.hero .btn:not(.btn-gold):hover { background: #fefefe; color: var(--navy); }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 46px; font-size: 13px; font-weight: 600; color: rgba(254, 254, 254, 0.8); }
.assurances li { display: inline-flex; align-items: center; gap: 10px; }
.assurances li::before { content: ""; width: 7px; height: 7px; background: var(--accent); }

.rise { opacity: 0; transform: translateY(24px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise-2 { animation-delay: 0.12s; } .rise-3 { animation-delay: 0.24s; } .rise-4 { animation-delay: 0.36s; } .rise-5 { animation-delay: 0.48s; }

/* 404 page */
.watermark { position: absolute; right: 4%; bottom: -0.2em; font-size: clamp(160px, 30vw, 420px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(254, 254, 254, 0.18); pointer-events: none; user-select: none; }

/* ---------- Sections ---------- */
.band { padding: 104px 0; position: relative; }
.band-tint { background: var(--bg-tint); }

/* Who we work with */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.audience { display: flex; flex-direction: column; text-decoration: none; }
.audience-photo { display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 22px; background: var(--bg-tint); }
.audience-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.audience:hover .audience-photo img { transform: scale(1.06); }
.audience h3 { margin-bottom: 8px; }
.audience p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.audience-link { margin-top: auto; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.audience-link span { color: var(--accent); font-size: 18px; transition: transform 0.25s ease; }
.audience:hover .audience-link span { transform: translateX(5px); }

/* What we build */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.service { position: relative; overflow: hidden; min-height: 320px; background: var(--navy); color: #fefefe; }
.service-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service:hover .service-img { transform: scale(1.07); }
.service-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(180deg, rgba(var(--band-rgb), 0) 40%, rgba(var(--band-rgb), 0.94) 90%);
  transition: background-color 0.4s ease;
}
.service.is-open .service-overlay { background-color: rgba(var(--band-rgb), 0.93); }
.service-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.service-toggle {
  display: none; flex: none; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: #fefefe;
}
.js .service-toggle { display: inline-flex; }
.service-toggle i { width: 30px; height: 30px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 20px; line-height: 1; transition: transform 0.3s ease; }
.service.is-open .service-toggle i { transform: rotate(45deg); }
.service-more { margin-bottom: 20px; }
.js .service-more { opacity: 0; visibility: hidden; transform: translateY(16px); max-height: 0; margin-bottom: 0; transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; }
.js .service.is-open .service-more { opacity: 1; visibility: visible; transform: none; max-height: none; margin-bottom: 20px; }
html:not(.js) .service-overlay { background-color: rgba(var(--band-rgb), 0.93); }
.service-more p { margin: 0 0 14px; font-size: 15px; color: rgba(254, 254, 254, 0.9); }
.service-more ul { border-top: 1px solid rgba(254, 254, 254, 0.25); padding-top: 14px; display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.service-more li { display: flex; gap: 10px; align-items: baseline; }
.service-more li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); transform: translateY(-2px); }

/* Engagement (always dark band) */
.engage { background: var(--band); color: #fefefe; }
.engage .label { color: #fefefe; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); }
.model { padding: 6px 38px 6px 0; margin-right: 38px; border-right: 1px solid rgba(254, 254, 254, 0.18); display: flex; flex-direction: column; }
.model:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.model-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.model h3 { font-size: 26px; margin-bottom: 12px; }
.model p { margin: 0; color: rgba(254, 254, 254, 0.78); font-size: 15px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; padding-top: 30px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.steps.is-in::after { transform: scaleX(1); }
.step-num { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Insights */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.post { display: flex; flex-direction: column; text-decoration: none; }
.post-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; background: var(--bg-tint); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.post:hover .post-cover img { transform: scale(1.06); }
.post-meta { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post h3 { margin-bottom: 14px; }
.post-link { margin-top: auto; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.post-link span { color: var(--accent); font-size: 18px; transition: transform 0.25s ease; }
.post:hover .post-link span { transform: translateX(5px); }

/* Contact */
.contact { background: var(--bg-tint); padding: 104px 0; }
.contact-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact h2 { max-width: 17ch; }
.contact .btn-gold { flex: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-note { color: var(--muted); font-size: 14px; }

/* ---------- Article pages ---------- */
.article-head { position: relative; overflow: hidden; padding: 96px 0 72px; background: var(--band); color: #fefefe; }
.article-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--band-rgb), 0.96) 0%, rgba(var(--band-rgb), 0.86) 50%, rgba(var(--band-rgb), 0.45) 100%); }
.article-head .wrap { z-index: 1; }
.article-head .label { color: var(--accent); }
.article-head h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; }
.article-meta { color: rgba(254, 254, 254, 0.8); font-size: 14px; font-weight: 600; margin: 22px 0 0; }
.back { display: flex; width: fit-content; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: rgba(254, 254, 254, 0.8); margin-bottom: 34px; }
.back:hover { color: #fefefe; }
.prose { padding: 56px 0 90px; font-size: 18px; }
.prose .lead { font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.prose p { color: var(--muted); margin: 0 0 22px; }
.prose h2 { font-size: 26px; letter-spacing: -0.03em; margin: 44px 0 16px; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 22px; padding-left: 24px; display: grid; gap: 12px; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 64px; }
.more-link { display: block; text-decoration: none; background: var(--surface); border-left: 3px solid var(--accent); padding: 22px 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.more-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.more-link span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-cta h2 { font-size: clamp(24px, 3vw, 34px); }

/* Insights list and article extras */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.text-link { font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.text-link span { transition: transform 0.25s ease; }
.text-link:hover span { transform: translateX(4px); }
.list-head { padding: 88px 0 76px; }
.list-head h1 { max-width: 16ch; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--bg-tint); padding: 2px 6px; }
.prose pre { background: #0b1020; color: #e7e9f0; padding: 18px 20px; overflow-x: auto; margin: 0 0 22px; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Scroll reveal (only when scripts run) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.stagger > :nth-child(2) { transition-delay: 0.08s; }
.stagger > :nth-child(3) { transition-delay: 0.16s; }
.stagger > :nth-child(4) { transition-delay: 0.06s; }
.stagger > :nth-child(5) { transition-delay: 0.14s; }
.stagger > :nth-child(6) { transition-delay: 0.22s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .band, .contact { padding: 78px 0; }
  .audiences, .posts { grid-template-columns: 1fr; gap: 44px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: 1fr; gap: 34px; }
  .model { border-right: 0; margin-right: 0; padding: 0 0 34px; border-bottom: 1px solid rgba(254, 254, 254, 0.18); }
  .model:last-child { border-bottom: 0; padding-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .more { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-grid; }
  .bar-tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: 16px; text-align: center; }
  .nav-open .nav { display: flex; }
}

@media (max-width: 640px) {
  .services, .steps { grid-template-columns: 1fr; }
  .service { min-height: 280px; }
  .btn { width: 100%; }
  .brand-name span { display: none; }
}

/* Phones and small tablets: whole photo shrunk to the screen width, behind the text */
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-photo {
    inset: auto 0 auto 0; top: calc(46% - 28.125vw); height: auto; aspect-ratio: 16 / 9; object-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
  .hero::after { background: rgba(var(--band-rgb), 0.55); }
  .hero .wrap { padding: 72px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .steps::after { transform: none; }
}
