/* Maji Marketing — site styles */
:root {
  --ink: #0e0f12;
  --muted: #4a5560;
  --blue: #257cc0;
  --blue-deep: #1b639c;
  --blue-text: #1f6ba6;
  --sky: #eaf3fa;
  --mist: #f5f8fa;
  --line: #dce4ea;
  --white: #ffffff;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --skew: -22deg;
  --radius: 22px;
  --btn-radius: 999px;
  --on-accent: #ffffff;
  --em: var(--blue);
  --hero-bg: var(--blue);
  --hero-fg: #ffffff;
  --hero-muted: #ffffff;
  --hero-accent: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(46px, 6.6vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.96; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; }
h3 { font-size: 28px; font-weight: 700; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--em); }
.lead { font-size: 20px; color: var(--muted); max-width: 560px; }

.slash { display: inline-block; width: 7px; height: 16px; background: var(--blue); transform: skewX(var(--skew)); flex: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--blue-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: var(--btn-radius); border: 2px solid transparent; font: 600 17px var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d33; }
.btn-small { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, rgba(255, 255, 255, 0.92)); color: var(--header-fg, inherit); backdrop-filter: blur(10px); border-bottom: 1px solid var(--header-line, var(--line)); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { width: 86px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-color: var(--blue); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; height: 560px; border-radius: 36px; background: var(--sky); overflow: hidden; }
#growth-field { width: 100%; height: 100%; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 14px 34px -14px rgba(16, 52, 84, 0.45); animation: float 6s ease-in-out infinite; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.chip-1 { left: 7%; top: 12%; }
.chip-2 { right: 8%; top: 40%; animation-delay: -2s; }
.chip-3 { left: 14%; bottom: 13%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: slide 36s linear infinite; font: 700 30px var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.marquee-track i { width: 9px; height: 26px; background: #fff; opacity: 0.55; transform: skewX(var(--skew)); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: 52px; }
.section-head h2 { max-width: 720px; }
.section-head p { color: var(--muted); max-width: 400px; }

/* Planner */
.planner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.planner-controls { display: flex; flex-direction: column; gap: 34px; padding: 36px; border-radius: var(--radius); background: var(--sky); }
legend { font: 700 22px var(--display); letter-spacing: -0.02em; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; border: 1.5px solid #c9d8e4; font-size: 16px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.plan-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 26px; background: #fff; box-shadow: 0 30px 60px -44px rgba(16, 52, 84, 0.5); }
.plan-card h3 { font-size: 32px; }
.plan-steps { display: flex; flex-direction: column; }
.plan-steps li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.plan-steps b { font: 700 16px var(--display); color: var(--blue-text); display: flex; gap: 10px; align-items: baseline; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-foot p { font-size: 16px; color: var(--muted); max-width: 380px; }
.plan-foot strong { color: var(--ink); }

/* Practices */
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.practice { background: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s; }
.practice:hover { transform: translateY(-6px); }
.practice > p { color: var(--muted); font-size: 17px; }
.practice li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.practice li::before { content: ""; width: 6px; height: 13px; background: var(--blue); transform: skewX(var(--skew)); flex: none; }
.practice-feature { background: var(--blue); color: #fff; }
.practice-feature > p { color: #fff; }
.practice-feature li { border-color: rgba(255, 255, 255, 0.3); }
.practice-feature li::before { background: #fff; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.work { grid-column: span 2; border-radius: var(--radius); overflow: hidden; background: var(--mist); display: flex; flex-direction: column; }
.work-wide { grid-column: span 3; }
.work-tile { background: var(--tile); height: 230px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; }
.work-wide .work-tile { height: 270px; }
.work-tile img { max-height: 130px; width: auto; }
.stockpin-word { font: 700 44px var(--body); letter-spacing: -1.5px; color: #fff; }
.stockpin-word b { color: #7fd1c3; font-weight: 700; }
.work-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.work-body p { font-size: 16px; color: var(--muted); }
.work-body .tag { font-size: 14px; font-weight: 600; color: var(--blue-text); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.about-number { display: flex; align-items: flex-end; gap: 18px; }
.about-number span { font: 700 clamp(150px, 20vw, 290px)/0.8 var(--display); letter-spacing: -0.07em; color: var(--blue); }
.about-number i { width: 38px; height: 180px; background: var(--ink); transform: skewX(var(--skew)); margin-bottom: 8px; }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 19px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; counter-reset: s; }
.steps li { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--blue); }
.steps b { font: 700 20px var(--display); }
.steps span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Contact */
.contact { position: relative; overflow: hidden; border-radius: 36px; background: var(--blue); color: #fff; padding: 72px 64px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.contact::before { content: ""; position: absolute; left: 30%; top: -20%; width: 190px; height: 140%; background: #fff; opacity: 0.12; transform: skewX(var(--skew)); }
.contact-copy { position: relative; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 em { color: #fff; }
.contact-copy p { font-size: 19px; }
.contact-form { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full, .form-note, .contact-form .btn { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 16px var(--body); color: var(--ink); padding: 13px 14px; border: 1.5px solid #c3ced8; border-radius: 12px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-note { font-size: 15px; color: var(--blue-text); min-height: 0; }
.form-note.error { color: #b42318; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; color: var(--muted); }
.footer-row img { width: 92px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-row nav a { text-decoration: none; color: var(--ink); }
.footer-row nav a:hover { color: var(--blue-text); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .planner, .about-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 420px; }
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .work, .work-wide { grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { padding: 48px 32px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 44px 0 60px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-solid, #fff); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; }
  .hero-visual { height: 340px; border-radius: 24px; }
  .chip { font-size: 13px; padding: 9px 14px; }
  .marquee-track { font-size: 22px; gap: 24px; }
  .planner-controls, .plan-card, .practice { padding: 24px; }
  .plan-steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .work, .work-wide { grid-column: 1 / -1; }
  .about-number i { height: 110px; width: 26px; }
  .contact { padding: 36px 18px; border-radius: 24px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .marquee-track { animation: none; }
  .btn, .practice { transition: none; }
}
.ventures-word { font: 700 34px var(--display); letter-spacing: -0.03em; color: #0f1b22; }
.ventures-word small { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: #4a5961; }

/* ------------------------------------------------------------------ */
/* Brand pages: each page sets a theme class on <body>                  */
/* ------------------------------------------------------------------ */
.theme-majiplot { --ink: #0f172a; --muted: #4b5563; --blue: #d4af7c; --blue-deep: #c49f6c; --blue-text: #866b3c; --em: #866b3c; --on-accent: #0f172a; --sky: #f8fafc; --mist: #f8fafc; --line: #e2e8f0; --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif; --radius: 8px; --skew: 0deg; --hero-bg: #0f172a; --hero-fg: #ffffff; --hero-muted: #94a3b8; --hero-accent: #d4af7c; }
.theme-stockpin { --ink: #1a1f24; --muted: #4a5560; --blue: #0f5f5c; --blue-deep: #0a4543; --blue-text: #0f5f5c; --sky: #eef5f4; --mist: #f6f8f8; --line: #dde3e3; --display: "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --radius: 10px; --btn-radius: 10px; --skew: 0deg; --hero-bg: #0f5f5c; --hero-fg: #ffffff; --hero-muted: #cfe6e2; --hero-accent: #7fd1c3; }
.theme-on { --ink: #111111; --muted: #444444; --blue: #d52b1e; --blue-deep: #b02217; --blue-text: #b3241a; --sky: #f4f4f2; --mist: #f4f4f2; --line: #dededa; --display: "Archivo", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --radius: 0px; --btn-radius: 0px; --skew: 0deg; --hero-bg: #f4f4f2; --hero-fg: #111111; --hero-muted: #444444; --hero-accent: #b3241a; }
.theme-on h1, .theme-on h2, .theme-on h3 { font-weight: 800; letter-spacing: -0.02em; }
.theme-stockpin h1, .theme-stockpin h2, .theme-stockpin h3 { letter-spacing: -0.03em; }
.theme-majiplot h1, .theme-majiplot h2, .theme-majiplot h3 { letter-spacing: -0.02em; line-height: 1.08; }
.theme-majiplot h1 em, .theme-majiplot h2 em, .theme-on h1 em, .theme-stockpin h1 em { font-style: normal; font-weight: inherit; }

.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 26px var(--body); letter-spacing: -0.5px; }
.brand-logo img { height: 40px; width: auto; }
.brand-logo b { color: var(--blue); font-weight: 700; }
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.crumb img { height: 26px; width: auto; }
.header-left { display: flex; align-items: center; gap: 22px; }
.header-left .divider { width: 1px; height: 34px; background: var(--line); }

.brand-hero { background: var(--hero-bg); color: var(--hero-fg); padding: 96px 0 104px; }
.brand-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: end; }
.brand-hero h1 { font-size: clamp(40px, 5.4vw, 76px); }
.brand-hero h1 em { color: var(--hero-accent); }
.brand-hero .hero-copy { gap: 24px; }
.brand-hero .kicker { font: 700 13px var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hero-accent); }
.brand-hero .lead { color: var(--hero-muted); }
.brand-hero .hero-logo { height: 56px; width: auto; align-self: flex-start; }
.brand-hero .btn-ghost { border-color: var(--hero-fg); color: var(--hero-fg); }
.brand-hero .btn-ghost:hover { background: var(--hero-fg); color: var(--hero-bg); }
.facts { border: 1px solid color-mix(in srgb, var(--hero-fg) 28%, transparent); border-radius: var(--radius); padding: 6px 26px; }
.facts div { padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--hero-fg) 22%, transparent); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--hero-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split .prose { display: flex; flex-direction: column; gap: 18px; }
.split .prose p { color: var(--muted); font-size: 19px; }
.note { background: var(--sky); border-left: 4px solid var(--blue); padding: 24px 26px; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 23px; }
.feature p { color: var(--muted); font-size: 16px; }
.did-list { display: flex; flex-direction: column; }
.did-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.did-list li:last-child { border-bottom: 1px solid var(--line); }
.did-list b { font: 700 20px var(--display); color: var(--blue-text); }
.did-list span { color: var(--muted); }
.brand-cta { background: var(--hero-bg); color: var(--hero-fg); border-radius: var(--radius); padding: 64px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.brand-cta h2 { max-width: 640px; font-size: clamp(30px, 3.6vw, 48px); }
.brand-cta .btn-ghost { border-color: var(--hero-fg); color: var(--hero-fg); }
.theme-on .brand-cta { --hero-bg: #111111; --hero-fg: #ffffff; }

/* Social media page */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub { background: #fff; border: 2px solid var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.lockup { display: flex; align-items: flex-end; gap: 14px; min-height: 150px; }
.lockup img { width: auto; }
.lockup div { border-left: 2px solid var(--ink); padding-left: 12px; display: flex; flex-direction: column; gap: 3px; font: 800 22px/1 "Archivo", sans-serif; }
.lockup div b { color: #d52b1e; font-weight: 800; }
.lockup div small { font: 500 10px "Archivo", sans-serif; letter-spacing: 0.24em; color: #555; padding-top: 3px; }
.hub p { color: var(--muted); font-size: 17px; }
.hub .handle { font-weight: 600; color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { counter-increment: f; padding: 26px 24px; border: 2px solid var(--ink); margin-left: -2px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.flow li:first-child { margin-left: 0; }
.flow li::before { content: counter(f); font: 800 40px/1 "Archivo", sans-serif; color: var(--blue); }
.flow li:last-child { background: var(--blue); color: #fff; }
.flow li:last-child::before { color: #fff; }
.flow b { font: 800 19px "Archivo", sans-serif; }
.flow span { font-size: 15px; }
.work h3 a { text-decoration: none; }
.work h3 a:hover { color: var(--blue-text); text-decoration: underline; }

@media (max-width: 1000px) {
  .brand-hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li { margin: 0 0 -2px -2px; }
}
@media (max-width: 760px) {
  .brand-hero { padding: 56px 0 64px; }
  .header-left .divider, .crumb span { display: none; }
  .did-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .brand-cta { padding: 40px 24px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .hub { padding: 24px; }
}
.site-nav a[aria-current="page"] { border-color: var(--blue); font-weight: 600; }
.theme-on .brand-hero .btn-ghost { border-color: #111; color: #111; }
.theme-on .brand-hero .btn-ghost:hover { background: #111; color: #fff; }
.theme-on .facts { border: 2px solid #111; background: #fff; }

/* Stepping into a brand's world: themed header, link strip, page transition */
@view-transition { navigation: auto; }
.theme-majiplot { --header-bg: rgba(15, 23, 42, 0.96); --header-solid: #0f172a; --header-fg: #ffffff; --header-line: #263248; }
.theme-stockpin { --header-bg: rgba(15, 95, 92, 0.97); --header-solid: #0f5f5c; --header-fg: #ffffff; --header-line: #2e7a76; }
.theme-majiplot .crumb, .theme-stockpin .crumb { color: #ffffff; }
.theme-majiplot .header-left .divider, .theme-stockpin .header-left .divider { background: rgba(255, 255, 255, 0.3); }
.theme-stockpin .site-header .brand-logo b { color: #7fd1c3; }
.theme-stockpin .site-header .btn-primary { background: #7fd1c3; color: #1a1f24; }
.theme-stockpin .site-nav a:not(.btn):hover, .theme-stockpin .site-nav a[aria-current="page"] { border-color: #7fd1c3; }
.connect { background: var(--sky); border-bottom: 1px solid var(--line); }
.connect .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.connect span { font: 700 17px var(--display); }
.connect nav, .hub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.connect a, .hub-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--btn-radius); text-decoration: none; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink); }
.connect a:first-child { background: var(--ink); color: #fff; }
.connect a:hover, .hub-links a:hover { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 700 21px var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 500 28px var(--body); color: var(--blue-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); }

@media (max-width: 760px) {
  .lockup { flex-direction: column; align-items: flex-start; min-height: 0; }
  .lockup div { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); padding-top: 10px; }
  .theme-majiplot .site-nav a, .theme-stockpin .site-nav a { color: #fff; }
}

/* ------------------------------------------------------------------ */
/* Motion and tech layer                                                */
/* ------------------------------------------------------------------ */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
.theme-stockpin .progress { background: #7fd1c3; }

/* dot-grid backdrops */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, #cfdde9 1.2px, transparent 0) 0 0 / 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%); pointer-events: none; }
.hero .wrap { position: relative; }
.brand-hero { position: relative; overflow: hidden; }
.brand-hero .wrap { position: relative; z-index: 1; }
.brand-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--hero-fg) 22%, transparent) 1.2px, transparent 0) 0 0 / 30px 30px; -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%); pointer-events: none; }
.brand-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: var(--hero-accent); opacity: 0.22; filter: blur(90px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-140px, 120px) scale(1.15); } }

/* headline words rise in */
.js h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js h1 .w > span { display: inline-block; transform: translateY(110%); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes rise { to { transform: none; } }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

/* pointer spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue) 16%, transparent), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: -1; }
.practice-feature.spot::after, .flow li:last-child.spot::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%); z-index: 0; }
.spot:hover::after { opacity: 1; }
.feature, .hub, .work { transition: transform 0.25s, box-shadow 0.25s; }
.feature:hover, .hub:hover, .work:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -34px rgba(16, 38, 64, 0.55); }

/* hero chips pop in, live dots ping */
.js .chip { opacity: 0; animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards, float 6s ease-in-out infinite; }
.js .chip-1 { animation-delay: 1.2s, 1.8s; }
.js .chip-2 { animation-delay: 1.7s, 2.3s; }
.js .chip-3 { animation-delay: 2.2s, 2.8s; }
@keyframes pop { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }
.chip .dot { position: relative; }
.chip .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

/* plan card: scan line + swap */
.plan-card { position: relative; overflow: hidden; }
.plan-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: scan 2.8s linear infinite; }
@keyframes scan { from { background-position: -100% 0; } to { background-position: 300% 0; } }
.plan-card.swap > * { animation: swap 0.45s ease both; }
.plan-card.swap .plan-steps li { animation: swap 0.45s ease both; animation-delay: calc(var(--n) * 70ms); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }

/* buttons */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-22deg); transition: left 0.5s; }
.btn:hover::after { left: 120%; }

/* flow steps light up in sequence */
.js .flow li { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js h1 .w > span { transform: none; animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .chip { opacity: 1; animation: none; }
  .chip .dot::after, .plan-card::before, .brand-hero::after, .plan-card.swap > *, .plan-card.swap .plan-steps li { animation: none; }
  .btn::after { display: none; }
  .feature, .hub, .work { transition: none; }
}
