/* Frame the Brand — site styles (2026 brand)
   Idea: the client's business is the picture, Frame the Brand is the frame.
   Palette 60/30/10: mat white + sky (light), ink (lead dark), ultramarine (frame), golden hour (light, small accents only).
   Readability: white text only on ink or ultramarine; ink text on mat, sky or gold; gold is never a text color. */
:root {
  --mat: #FBF8F2;
  --sky: #E8ECFF;
  --ink: #161A33;
  --ink-2: #0F1226;          /* footer, a touch deeper than ink */
  --ultra: #2B3FD9;          /* white on ultramarine 7.5:1 */
  --gold: #FFC83D;           /* ink on gold 11:1; never used as text */
  --text: #161A33;
  --text-2: #3A3F5C;         /* secondary text on mat/sky, 10:1 */
  --on-ink: #FFFFFF;
  --on-ink-2: #D5D9EE;       /* secondary text on ink, 12:1 */
  --line: rgba(22, 26, 51, .14);
  --line-ink: rgba(255, 255, 255, .16);

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mat);
  color: var(--text);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ultra); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.sky { background: var(--sky); }
.ink { background: var(--ink); color: var(--on-ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 23px; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }

/* Eyebrow: sentence case, bold, with a small gold "light" mark */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: .01em;
  color: var(--ultra); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--gold); transform: rotate(-6deg); flex: none; }
.ink .eyebrow { color: var(--on-ink); }
.lead { font-size: clamp(19px, 1.7vw, 21px); color: var(--text-2); max-width: 60ch; }
.ink .lead { color: var(--on-ink-2); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 0; }

/* Highlight: golden light behind key words (ink text on gold) */
.hl {
  color: var(--ink);
  background: var(--gold);
  padding: 0 .14em .04em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  box-shadow: .07em .07em 0 var(--ultra);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 17px/1.1 var(--body); text-decoration: none; text-align: center;
  padding: 16px 26px; border-radius: 12px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--ultra); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.ink .btn-primary { background: var(--gold); color: var(--ink); }
.ink .btn-primary:hover { background: #fff; }
.ink .btn-ghost { border-color: #fff; color: #fff; }
.ink .btn-ghost:hover { background: #fff; color: var(--ink); }
.ink form .btn-primary { background: var(--ultra); color: #fff; }
.ink form .btn-primary:hover { background: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(22, 26, 51, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-ink);
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 17px; font-weight: 700; }
.nav-links a:not(.btn) { text-decoration: none; color: #fff; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-header .btn { padding: 12px 18px; font-size: 16px; white-space: nowrap; background: var(--gold); color: var(--ink); }
.site-header .btn:hover { background: #fff; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 24px; font-size: 17px; color: var(--on-ink-2); max-width: 52ch; }

/* Frame and light: tilted ultramarine frame + golden block behind, like the logo */
.framed { position: relative; isolation: isolate; }
.framed::before {
  content: ""; position: absolute; inset: -12px; z-index: 2; pointer-events: none;
  border: 6px solid var(--ultra); border-radius: 18px; transform: rotate(-3deg);
}
.framed::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); border-radius: var(--radius);
  transform: translate(18px, 16px) rotate(1.5deg);
}

.kit-wrap { padding: 20px 28px 32px 16px; }
.kit {
  background: var(--mat); color: var(--ink);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 28px;
}
.kit .logo { width: 100%; max-width: 300px; margin: 0 auto; }
.kit-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kit-swatches span { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); }
.kit-type { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }
.kit-type .aa { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.kit-type .aa + .aa { font-family: var(--body); font-weight: 700; }
.kit-type small { font-size: 15px; color: var(--text-2); font-weight: 700; }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.promise > div { min-width: 0; background: var(--mat); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--ultra); }
.promise h3 { margin-bottom: 10px; }
.promise p { color: var(--text-2); }
.quote {
  margin-top: clamp(48px, 6vw, 72px);
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink); max-width: 30ch;
}

/* Packages */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.package {
  min-width: 0; background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: clamp(28px, 3.5vw, 40px);
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.package.featured { border-color: var(--ultra); box-shadow: 10px 10px 0 var(--gold); }
.package .for { font-size: 17px; color: var(--text-2); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--display); font-size: 56px; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price span { font-size: 16px; font-weight: 700; color: var(--text-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--sky); color: var(--ink); }
.package ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.package li { position: relative; padding-left: 30px; }
.package li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 13px;
  border: 2.5px solid var(--ultra); border-radius: 3px; transform: rotate(-6deg);
  background: linear-gradient(var(--gold), var(--gold)) 3px 3px / 100% 100% no-repeat;
}
.package .btn { margin-top: auto; align-self: flex-start; }
.addons { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.addons > * { min-width: 0; }
.addons table { width: 100%; border-collapse: collapse; font-size: 17px; }
.addons td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.addons td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.addons p { color: var(--text-2); }
.small-note { margin-top: 20px; font-size: 16px; color: var(--text-2); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.steps li { min-width: 0; counter-increment: step; border-top: 1px solid var(--line-ink); padding-top: 22px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 10px;
  font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1;
  background: var(--gold); color: var(--ink); margin-bottom: 16px;
  transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ultra);
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { font-size: 17px; color: var(--on-ink-2); }
.process-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 17px; color: var(--on-ink-2); }
.process-foot b { color: #fff; font-weight: 700; }

/* Work */
.work { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; }
.work > * { min-width: 0; }
.work-main { background: var(--ink); border-radius: var(--radius); display: grid; place-items: center; padding: clamp(32px, 5vw, 64px); }
.work-main img { width: 100%; max-width: 360px; }
.work-side { display: grid; grid-template-rows: auto auto; gap: 24px; }
.work-tile { border-radius: var(--radius); display: grid; place-items: center; padding: clamp(24px, 3.5vw, 40px); }
.work-tile.ultra { background: var(--ultra); }
.work-tile img { width: 100%; max-width: 340px; }
.stickers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; }
.stickers img { border-radius: 50%; }
.stickers .icon-tile { background: var(--sky); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 18%; }
.stickers .icon-tile img { border-radius: 0; }
.palette-tile { display: grid; grid-template-rows: repeat(5, 1fr); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.work-caption { margin-top: 32px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; }
.work-caption > * { min-width: 0; }
.work-caption p { color: var(--text-2); max-width: 64ch; }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about > * { min-width: 0; }
.about .framed { margin: 12px 30px 30px 12px; }
.photo-slot {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius);
  background: var(--mat); display: grid; place-items: center; text-align: center;
  color: var(--ink); font-size: 17px; padding: 24px;
}
.about .copy { display: grid; gap: 18px; }
.about .copy .eyebrow { margin-bottom: 0; }
.about .copy p { color: var(--text-2); max-width: 60ch; }
.about .sig { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 18px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 8px;
  font: 700 24px/1 var(--body); background: var(--sky); color: var(--ultra);
}
.faq details[open] summary::after { content: "–"; background: var(--gold); color: var(--ink); }
.faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 66ch; }
.faq details p a { color: var(--ultra); font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact > * { min-width: 0; }
.contact-info { display: grid; gap: 22px; }
.contact-info .eyebrow { margin-bottom: 14px; }
.contact-info dl { margin: 8px 0 0; display: grid; gap: 16px; }
.contact-info dt { font-size: 15px; font-weight: 700; color: var(--on-ink-2); }
.contact-info dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; }
.contact-info dd a { text-decoration: none; border-bottom: 3px solid var(--gold); }
form.inquiry {
  background: var(--mat); color: var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row > * { min-width: 0; }
label { font-size: 17px; font-weight: 700; }
input, select, textarea {
  width: 100%; font: 18px/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid rgba(22, 26, 51, .28); border-radius: 10px; padding: 13px 14px;
}
input::placeholder, textarea::placeholder { color: #5E6380; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ultra); }
textarea { min-height: 140px; resize: vertical; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice legend { font-size: 17px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.choice label { font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 2px solid rgba(22, 26, 51, .28); border-radius: 10px; cursor: pointer; background: #fff; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ultra); }
.choice label:has(input:checked) { border-color: var(--ultra); background: var(--sky); }
.form-note { font-size: 16px; color: var(--text-2); }
.form-status { font-size: 17px; color: var(--ink); font-weight: 700; background: var(--gold); padding: 12px 14px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; }

/* Teaser */
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.teaser > div { display: grid; gap: 12px; max-width: 660px; }
.teaser .eyebrow { margin-bottom: 0; }
.teaser-band { padding-block: clamp(52px, 6vw, 80px); }
.page-title { font-size: clamp(38px, 5vw, 60px); }

/* Footer */
.site-footer { background: var(--ink-2); color: var(--on-ink-2); padding-block: 48px; font-size: 16px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 28px; }
.foot img { height: 40px; width: auto; }
.foot a { color: #fff; }
.foot-links a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero-grid, .packages, .addons, .work, .about, .contact { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .kit-wrap { max-width: 460px; }
  .about .framed { max-width: 420px; }
  .work-caption { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand img { height: 34px; }
  .site-header .btn { padding: 10px 14px; font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .price strong { font-size: 48px; }
  .hero-actions .btn { width: 100%; }
  .package.featured { box-shadow: 6px 6px 0 var(--gold); }
  .kit-wrap { padding: 14px 22px 26px 10px; max-width: 340px; margin-inline: auto; }
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
  .site-header .btn { padding: 9px 12px; font-size: 14px; }
}

/* ===== Motion =====
   Only runs when the visitor hasn't asked their device for reduced motion
   (a tiny script in <head> adds .motion to <html>). Without it, everything shows instantly. */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; pointer-events: none; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes sweep {
  0% { background-size: 0% 100%; box-shadow: 0 0 0 var(--ultra); color: #fff; }
  55% { color: #fff; }
  100% { background-size: 100% 100%; box-shadow: .07em .07em 0 var(--ultra); color: var(--ink); }
}
@keyframes frameIn { from { opacity: 0; transform: rotate(10deg) scale(1.1); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes lightOn { from { opacity: 0; transform: translate(0, 0) rotate(0); } to { opacity: 1; transform: translate(18px, 16px) rotate(1.5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero entrance */
.motion .hero-grid > div:first-child > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero-grid > div:first-child > :nth-child(2) { animation-delay: .12s; }
.motion .hero-grid > div:first-child > :nth-child(3) { animation-delay: .3s; }
.motion .hero-grid > div:first-child > :nth-child(4) { animation-delay: .45s; }
.motion .hero-grid > div:first-child > :nth-child(5) { animation-delay: .6s; }
.motion .hl { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 0 / 100% 100%; }
.motion .hero .hl { animation: sweep .8s cubic-bezier(.6,0,.2,1) .8s both; }
.motion .hero .kit-wrap { animation: rise 1s cubic-bezier(.2,.7,.2,1) .2s both; }
.motion .hero .framed { animation: float 6s ease-in-out 2.2s infinite; }
.motion .hero .framed::before { animation: frameIn 1s cubic-bezier(.2,.8,.2,1) .7s both; transition: rotate .4s cubic-bezier(.2,.7,.2,1); }
.motion .hero .framed::after { animation: lightOn .9s cubic-bezier(.2,.8,.2,1) 1.2s both; transition: translate .4s cubic-bezier(.2,.7,.2,1); }
.motion .hero .framed:hover::before { rotate: -3deg; }
.motion .hero .framed:hover::after { translate: 8px 8px; }
.motion .kit-swatches span { animation: pop .5s cubic-bezier(.3,1.5,.5,1) both; }
.motion .kit-swatches span:nth-child(1) { animation-delay: 1.3s; }
.motion .kit-swatches span:nth-child(2) { animation-delay: 1.38s; }
.motion .kit-swatches span:nth-child(3) { animation-delay: 1.46s; }
.motion .kit-swatches span:nth-child(4) { animation-delay: 1.54s; }
.motion .kit-swatches span:nth-child(5) { animation-delay: 1.62s; }

/* Scroll reveals (site.js adds .reveal, then .in when the element scrolls into view) */
.motion .reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
              translate .3s cubic-bezier(.2,.7,.2,1), rotate .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .quote.reveal .hl { background-size: 0% 100%; box-shadow: none; transition: background-size .8s cubic-bezier(.6,0,.2,1) .6s, box-shadow .3s 1.3s; }
.motion .quote.in .hl { background-size: 100% 100%; box-shadow: .07em .07em 0 var(--ultra); }
.motion .steps li.reveal::before { transform: rotate(14deg) scale(.5); transition: transform .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + .25s); }
.motion .steps li.in::before { transform: rotate(-3deg); }

/* Hover life */
.motion .package:hover { translate: 0 -8px; }
.motion .package:not(.featured):hover { box-shadow: 0 18px 40px rgba(22, 26, 51, .12); }
.motion .package.featured:hover { box-shadow: 16px 16px 0 var(--gold); }
.motion .promise > div:hover { translate: 0 -6px; box-shadow: 0 16px 34px rgba(22, 26, 51, .1); }
.motion .work-main:hover, .motion .work-tile:hover { translate: 0 -6px; rotate: -1deg; }
.motion .stickers > *:hover { translate: 0 -6px; rotate: -3deg; }
.motion .stickers > * { transition: translate .3s cubic-bezier(.2,.7,.2,1), rotate .3s cubic-bezier(.2,.7,.2,1); }
.motion .steps li:hover::before { rotate: -6deg; }

/* ===== Round 2 animations: rotating word, spotlight, drawn logo, word band, scroll-through steps, parallax ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header logo built in live type so its frame can draw itself */
.L { display: inline-flex; align-items: center; gap: .24em; font-family: var(--display); font-weight: 800; line-height: .9; font-size: 34px; color: #fff; white-space: nowrap; }
.L .ft { font-size: .5em; letter-spacing: -.015em; }
.L .br { position: relative; isolation: isolate; letter-spacing: -.03em; padding: .05em .18em .13em; color: var(--ink); }
.L .br::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); border-radius: .12em; transform: translate(.08em, .07em) rotate(1deg); }
.L .fr { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-3deg); pointer-events: none; }
.L .fr rect { fill: none; stroke: var(--ultra); stroke-width: .075em; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lightUp { from { opacity: 0; transform: translate(0, 0) rotate(0) scaleX(.15); } to { opacity: 1; transform: translate(.08em, .07em) rotate(1deg); } }
.motion .L.play .fr rect { stroke-dasharray: 100; animation: draw 1.1s cubic-bezier(.6,0,.2,1) .25s both; }
.motion .L.play .br::after { transform-origin: 0 50%; animation: lightUp .55s cubic-bezier(.2,.8,.2,1) 1.2s both; }
@media (max-width: 520px) { .L { font-size: 27px; } }
@media (max-width: 380px) { .L { font-size: 23px; } }

/* Rotating business word */
.rot { display: inline-block; position: relative; }
.rot-w { display: inline-block; }
.rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .07em; border-radius: .04em; background: var(--gold); transform-origin: 0 50%; }
.motion .rot { clip-path: inset(-.1em -.2em -.2em -.1em); }
.motion .rot-w { transition: transform .45s cubic-bezier(.6,0,.2,1), opacity .45s; }
.motion .rot-w.out { transform: translateY(-.8em); opacity: 0; }
.motion .rot-w.pre { transform: translateY(.8em); opacity: 0; transition: none; }
.motion .rot.swap::after { animation: underline .9s cubic-bezier(.6,0,.2,1); }
@keyframes underline { 0% { transform: scaleX(1); } 40% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* Golden spotlight in the hero */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 72%) var(--my, 45%), rgba(255, 200, 61, .34) 0%, rgba(255, 200, 61, .16) 22%, rgba(255, 200, 61, .05) 55%, transparent 80%);
  opacity: 0; transition: opacity .5s;
}
.motion .hero.lit::before { opacity: 1; }

/* Floating frames and light in the hero (parallax) */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; }
.deco span { position: absolute; display: block; border-radius: 6px; }
.deco .d1 { width: 26px; height: 26px; background: var(--gold); top: 12%; right: 5%; transform: rotate(14deg); }
.deco .d2 { width: 54px; height: 54px; border: 5px solid var(--ultra); bottom: 7%; left: 52%; transform: rotate(-8deg); }
.deco .d3 { width: 14px; height: 14px; background: var(--gold); top: 80%; left: 2%; transform: rotate(-12deg); }
.deco .d4 { width: 34px; height: 34px; border: 4px solid rgba(255, 255, 255, .5); bottom: 18%; right: 3%; transform: rotate(9deg); }
.deco .d5 { width: 18px; height: 18px; border: 3px solid var(--gold); top: 8%; left: 52%; transform: rotate(20deg); }
.motion .deco span { animation: pop .6s cubic-bezier(.3,1.5,.5,1) both; }
.motion .deco .d1 { animation-delay: 1.5s; } .motion .deco .d2 { animation-delay: 1.65s; } .motion .deco .d3 { animation-delay: 1.8s; }
.motion .deco .d4 { animation-delay: 1.95s; } .motion .deco .d5 { animation-delay: 2.1s; }
@media (max-width: 880px) { .deco .d2, .deco .d3, .deco .d5 { display: none; } }

/* Moving word band */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 20px 0; }
.ticker li { display: flex; align-items: center; font: 800 25px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.ticker li::after { content: ""; width: 14px; height: 14px; margin: 0 30px; border: 3px solid var(--ultra); border-radius: 3px; transform: rotate(-8deg); }
.motion .ticker-track { animation: ticker 45s linear infinite; }
.motion .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
html:not(.motion) .ticker-track { width: auto; justify-content: center; }
html:not(.motion) .ticker ul { flex-wrap: wrap; justify-content: center; row-gap: 12px; padding-inline: 20px; }
html:not(.motion) .ticker ul[aria-hidden] { display: none; }

/* Scroll-through steps (large screens only; site.js adds .scrolly) */
.scrolly { height: 280vh; padding-block: 0; }
.scrolly > .wrap { position: sticky; top: var(--hh, 77px); min-height: calc(100vh - var(--hh, 77px)); display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.scrolly .section-head { margin-bottom: 40px; }
.scrolly .steps { position: relative; }
.scrolly .steps::after { content: ""; position: absolute; left: 0; top: -1px; height: 4px; border-radius: 2px; width: calc(var(--sp, 0) * 100%); background: var(--gold); }
.scrolly .steps li { opacity: .32; transition: opacity .45s, translate .45s cubic-bezier(.2,.7,.2,1); }
.scrolly .steps li.on { opacity: 1; }
.scrolly .steps li.cur { translate: 0 -10px; }
.scrolly .steps li::before { transition: transform .5s cubic-bezier(.3,1.6,.5,1), scale .5s cubic-bezier(.3,1.6,.5,1); }
.scrolly .steps li:not(.on)::before { transform: rotate(10deg) scale(.7); }
.scrolly .steps li.cur::before { scale: 1.15; }
