/* ===========================================================
   KiX Creative Studios — Design System v5 "Living Story"
   Deep ink base + Caribbean gradient palette (teal→blue→coral).
   Storytelling scroll, sticky chapters, scroll-reveal.
   Gradients concentrated in high-impact moments, not everywhere.
   Pure CSS animation (transform/opacity) — fast on mobile.
=========================================================== */

:root {
  --ink:        #0A0B0D;
  --ink-800:    #14161A;
  --ink-700:    #1E2126;
  --white:      #FFFFFF;
  --paper:      #FBFAF8;
  --mist:       #F1F0F4;

  --teal:       #12B5A5;
  --teal-deep:  #0B8577;
  --blue:       #2D5BFF;
  --blue-deep:  #1B36C9;
  --coral:      #FF6A4D;
  --coral-deep: #E8492C;
  --gold:       #F2B441;

  --grad-brand:  linear-gradient(120deg, #12B5A5 0%, #2D5BFF 52%, #FF6A4D 100%);
  --grad-cool:   linear-gradient(120deg, #12B5A5 0%, #2D5BFF 100%);
  --grad-warm:   linear-gradient(120deg, #2D5BFF 0%, #FF6A4D 100%);
  --grad-ink:    linear-gradient(160deg, #0A0B0D 0%, #14161A 60%, #17233A 100%);

  --gray-600:   #565A63;
  --gray-500:   #6B6F78;
  --gray-400:   #9A9EA7;
  --line:       rgba(10, 11, 13, 0.10);
  --line-soft:  rgba(10, 11, 13, 0.055);
  --line-white: rgba(255, 255, 255, 0.14);

  --shadow-sm:  0 10px 30px -12px rgba(10, 11, 13, 0.22);
  --shadow-md:  0 24px 60px -20px rgba(10, 11, 13, 0.30);
  --shadow-lg:  0 40px 90px -30px rgba(10, 11, 13, 0.40);
  --shadow-glow: 0 20px 60px -18px rgba(45, 91, 255, 0.40);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r:    14px;
  --r-lg: 26px;
  --max:  1240px;
  --gutter: 6vw;
  --pad-y: 6.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad-brand); z-index: 300; transition: width .1s linear; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.16,.8,.3,1); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .aurora span { animation: none !important; }
}

/* ---------- Layout ---------- */
.max { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--pad-y) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--grad-ink); color: var(--white); }
.section--ink .lead, .section--ink p { color: rgba(255,255,255,.68); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h4 { font-family: var(--body); font-weight: 600; letter-spacing: -0.005em; }
.h-hero { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em; }
.h-xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.9rem, 4vw, 3rem); }
.h-md { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.h-sm { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad-text--cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-text--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.lead { font-size: 1.14rem; color: var(--gray-500); line-height: 1.62; }
.muted { color: var(--gray-500); }

/* ---------- Chapter marker ---------- */
.chapter { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.4rem; }
.chapter__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-size: .82rem; letter-spacing: 0; box-shadow: var(--shadow-glow); }
.chapter__txt { color: var(--ink); }
.section--ink .chapter__txt { color: rgba(255,255,255,.8); }

/* ---------- Aurora mesh ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: var(--teal);  top: -10%; left: -6%;  animation: drift1 18s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 42vw; height: 42vw; background: var(--blue);  top: 20%;  right: -10%; animation: drift2 22s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; background: var(--coral); bottom: -14%; left: 24%; animation: drift3 20s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,8%) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7%,6%) scale(1.08)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(4%,-8%) scale(1.15)} }
.aurora--soft span { opacity: .26; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 200; background: rgba(251, 250, 248, 0.82); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-soft); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--ink); padding: 8px 0; position: relative; white-space: nowrap; }
.nav__links a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad-brand); transition: width .28s cubic-bezier(.16,.8,.3,1); }
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { background: var(--ink); color: var(--white) !important; padding: .68rem 1.3rem; border-radius: 999px; font-size: .85rem; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.nav__cta::after { display: none !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 12px; margin-right: -12px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1050px) {
  .nav__links { position: fixed; inset: 82px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .34s cubic-bezier(.16,.8,.3,1); }
  .nav__links.is-open { max-height: 460px; }
  .nav__links a { padding: 0 var(--gutter); border-bottom: 1px solid var(--line-soft); min-height: 56px; display: flex; align-items: center; border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__links a.is-active { color: var(--blue); }
  .nav__cta { border-radius: 0; }
  .nav__toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 1.05rem 2rem; min-height: 52px; font-size: .94rem; font-weight: 600; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background-position .5s ease; position: relative; }
.btn--grad { background: var(--grad-brand); background-size: 160% 160%; color: #fff; box-shadow: var(--shadow-glow); }
.btn--grad:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 26px 70px -18px rgba(45,91,255,.55); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--on-ink { background: rgba(255,255,255,.08); border-color: var(--line-white); color: #fff; backdrop-filter: blur(6px); }
.btn--on-ink:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

.tlink { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; font-weight: 600; font-size: .96rem; color: var(--ink); }
.tlink span.txt { background-image: linear-gradient(var(--blue),var(--blue)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; padding-bottom: 3px; }
.tlink:hover span.txt { background-size: 100% 2px; }
.tlink::after { content: '→'; transition: transform .25s ease; }
.tlink:hover::after { transform: translateX(4px); }
.section--ink .tlink { color: #fff; }

/* ---------- Frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--mist); border-radius: var(--r); aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .9s cubic-bezier(.16,.8,.3,1); }
/* frames that get their height from a grid parent (hero, page-head) opt out of the default ratio */
.hero__media .frame, .page-head__media .frame { aspect-ratio: auto; }
.frame--lift { box-shadow: var(--shadow-md); }
.frame:hover img { transform: scale(1.045); }
.frame--4x5 { aspect-ratio: 4/5; }
.frame--3x4 { aspect-ratio: 3/4; }
.frame--1x1 { aspect-ratio: 1/1; }
.frame--3x2 { aspect-ratio: 3/2; }
.frame--16x9 { aspect-ratio: 16/9; }
.frame--21x9 { aspect-ratio: 21/9; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 4.5rem 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: auto auto; column-gap: 4rem; align-items: start; position: relative; z-index: 1; }
.hero__lede { grid-column: 1; grid-row: 1; }
.hero__rest { grid-column: 1; grid-row: 2; padding-bottom: 5rem; }
.hero__media { grid-column: 2; grid-row: 1 / span 2; margin-bottom: -5.5rem; z-index: 2; }
.hero__media .frame { aspect-ratio: auto; height: 100%; min-height: 600px; box-shadow: var(--shadow-lg); }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 44ch; margin: 1.8rem 0 2rem; }
.hero__routes { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.hero__pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(45,91,255,.08); color: var(--blue-deep); font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 1.6rem; }
.hero__pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stats span { font-size: .78rem; color: var(--gray-400); }
@media (max-width: 900px) {
  .hero { padding-top: 2rem; }
  .hero__grid { grid-template-columns: 1fr; column-gap: 0; }
  .hero__media { grid-column: 1; grid-row: 2; margin: 1.6rem 0 0; }
  .hero__media .frame { aspect-ratio: 4/3; height: auto; min-height: 0; }
  .hero__rest { grid-column: 1; grid-row: 3; padding-bottom: 0; }
  .hero .lead { margin: 1.5rem 0; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats b { font-size: 1.2rem; }
}

/* ---------- Section header ---------- */
.head-split { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; margin-bottom: 3.4rem; align-items: start; }
.head-split__aside { position: sticky; top: 100px; }
.head-split__body { max-width: 60ch; }
.head-split h2 { margin-bottom: 1rem; }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.4rem; } .head-split__aside { position: static; } }

/* ---------- ALT rows ---------- */
.alt { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.alt + .alt { margin-top: 6.5rem; }
.alt--flip { grid-template-columns: .95fr 1.05fr; }
.alt--flip .alt__media { order: 2; }
.alt--flip .alt__copy { order: 1; }
.alt--up .alt__media { transform: translateY(-2rem); }
.alt--down .alt__media { transform: translateY(2rem); }
.alt__copy .desc { color: var(--gray-500); margin: 1rem 0 1.6rem; max-width: 46ch; }
.alt__copy h2, .alt__copy h3 { margin-bottom: .4rem; }
.spec-list { list-style: none; margin: 1.4rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.4rem; }
.spec-list li { padding: .6rem 0; border-top: 1px solid var(--line-soft); font-size: .93rem; display: flex; align-items: center; gap: .7rem; }
.spec-list li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--grad-brand); flex-shrink: 0; }
@media (max-width: 900px) {
  .alt, .alt--flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .alt + .alt { margin-top: 3.8rem; }
  .alt--flip .alt__media, .alt--flip .alt__copy { order: initial; }
  .alt--up .alt__media, .alt--down .alt__media { transform: none; }
  .alt__media .frame--4x5, .alt__media .frame--3x4 { aspect-ratio: 3/2; }
}
@media (max-width: 520px) { .spec-list { grid-template-columns: 1fr; } }

/* ---------- Story steps ---------- */
.steps { position: relative; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 1.6rem; row-gap: .35rem; padding: 1.9rem 0; border-top: 1px solid var(--line); transition: padding-left .3s ease; align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--line); }
.section--ink .step { border-color: var(--line-white); }
.step:hover { padding-left: 12px; }
.step__n { grid-row: 1 / span 2; font-family: var(--display); font-size: 1.5rem; font-weight: 600; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h4 { grid-column: 2; font-size: 1.12rem; margin-bottom: .15rem; }
.step p { grid-column: 2; color: var(--gray-500); font-size: .96rem; max-width: 62ch; }
.section--ink .step p { color: rgba(255,255,255,.6); }

@media (max-width: 620px) {
  .step { grid-template-columns: 54px minmax(0, 1fr); column-gap: 1rem; }
  .step__n { font-size: 1.3rem; }
}

/* ---------- Feature cards ---------- */
.fcard { position: relative; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 2.2rem; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.fcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,.8,.3,1); }
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fcard:hover::before { transform: scaleX(1); }
.fcard__n { font-family: var(--display); font-size: 1.1rem; color: var(--blue); margin-bottom: 1rem; display: block; }
.fcard h4 { font-size: 1.14rem; margin-bottom: .6rem; }
.fcard p { color: var(--gray-500); font-size: .95rem; }

/* ---------- Work / gallery ---------- */
.work-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.work-stack { display: grid; gap: 1.6rem; }
.work-cap { margin-top: .85rem; font-size: .84rem; color: var(--gray-400); display: flex; align-items: center; gap: .5rem; }
.work-cap::before { content: ''; width: 14px; height: 2px; background: var(--grad-brand); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-stack { grid-template-columns: 1fr 1fr; }
  .work-grid .frame--3x4 { aspect-ratio: 3/2; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .work-stack, .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.ind-cols { columns: 2; column-gap: 4rem; }
.ind-row { break-inside: avoid; display: flex; align-items: baseline; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-white); }
.ind-row:first-child { border-top: 1px solid var(--line-white); }
.ind-row .n { font-size: .74rem; font-weight: 700; letter-spacing: .06em; width: 26px; flex-shrink: 0; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ind-row .t { font-size: 1.04rem; font-weight: 500; color: #fff; }
@media (max-width: 700px) { .ind-cols { columns: 1; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
.why-item { position: relative; padding-top: 2rem; }
.why-item::before { content: ''; position: absolute; top: 0; left: 0; width: 54px; height: 4px; border-radius: 2px; background: var(--grad-brand); }
.why-item .n { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-bottom: .8rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.why-item h4 { font-size: 1.12rem; margin-bottom: .5rem; }
.why-item p { color: var(--gray-500); font-size: .95rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq-split { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-aside p { color: var(--gray-500); font-size: .95rem; margin-top: .8rem; max-width: 30ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: 1.04rem; font-weight: 500; color: var(--ink); min-height: 56px; transition: color .2s; }
.faq-q:hover { color: var(--blue); }
.faq-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; border-radius: 50%; background: var(--grad-brand); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: #fff; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::before { width: 9px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 9px; transition: transform .28s ease; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .34s ease; }
.faq-a p { color: var(--gray-500); padding-bottom: 1.5rem; max-width: 62ch; font-size: .96rem; }
.faq-item.is-open .faq-a { max-height: 340px; }
@media (max-width: 820px) { .faq-split { grid-template-columns: 1fr; gap: 1.6rem; } .faq-aside { position: static; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--grad-ink); color: #fff; padding: 6.5rem 0; }
.cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.cta h2 { color: #fff; margin-bottom: 1rem; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.66); max-width: 46ch; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; gap: 1.8rem; align-items: start; } .cta__actions { justify-content: flex-start; } }

/* ---------- Rate band ---------- */
.rate-band { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2.5rem; align-items: center; padding: 2.6rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.rate-band::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-brand); }
.rate-band__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-400); font-weight: 700; margin-bottom: .4rem; }
.rate-band__value { font-family: var(--display); font-weight: 600; font-size: 1.7rem; }
@media (max-width: 760px) { .rate-band { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Values ---------- */
.value-row { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line); }
.value-row:first-child { border-top: 1px solid var(--line); }
.value-row h4 { font-family: var(--display); font-size: 1.32rem; font-weight: 500; line-height: 1.2; }
.value-row p { color: var(--gray-500); max-width: 58ch; }
@media (max-width: 700px) { .value-row { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- Page head ---------- */
.page-head { position: relative; overflow: hidden; padding: 4.5rem 0 0; }
.page-head__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: stretch; }
.page-head__copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: 5rem; }
.page-head h1 { margin-bottom: 1.2rem; max-width: 17ch; }
.page-head .lead { max-width: 48ch; margin-bottom: 1.8rem; }
.page-head__media { margin-bottom: -5rem; z-index: 2; }
.page-head__media .frame { aspect-ratio: auto; height: 100%; min-height: 440px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .page-head { padding-top: 2rem; }
  .page-head__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .page-head__copy { padding-bottom: 0; }
  .page-head__media { margin-bottom: -2.5rem; }
  .page-head__media .frame { aspect-ratio: 3/2; height: auto; min-height: 0; }
}

/* ---------- About editorial hero (no portrait needed) ---------- */
.about-hero { padding: 5rem 0 4rem; text-align: center; }
.about-hero__inner { max-width: 900px; margin: 0 auto; }
.about-hero .chapter { margin-bottom: 1.8rem; }
.about-hero__title { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 auto 1.6rem; max-width: 18ch; }
.about-hero__sub { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.45; color: var(--gray-500); max-width: 44ch; margin: 0 auto; }
@media (max-width: 760px) { .about-hero { padding: 2.5rem 0 2rem; } .about-hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); margin-bottom: .5rem; }
.field input, .field select, .field textarea { width: 100%; padding: .95rem 1rem; border: 1px solid var(--line); background: var(--white); font-family: var(--body); font-size: 1rem; color: var(--ink); border-radius: 12px; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,91,255,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); width: 92px; flex-shrink: 0; padding-top: 3px; font-weight: 700; }
.contact-row .v { font-size: 1rem; }
.contact-row .v a:hover { color: var(--blue); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none; gap: .6rem; padding: .7rem 1rem; background: rgba(251,250,248,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s cubic-bezier(.16,.8,.3,1); }
.sticky-cta.is-hidden { transform: translateY(120%); }
.sticky-cta .btn { flex: 1; padding: .9rem .6rem; font-size: .88rem; min-height: 48px; }
@media (max-width: 760px) { .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

.social-links { display: flex; gap: .8rem; margin-top: .4rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-white); color: rgba(255,255,255,.78); transition: border-color .2s, color .2s, transform .2s; }
.social-links a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
/* contact-page variant on light bg */
.social-links--dark a { border-color: var(--line); color: var(--gray-500); }
.social-links--dark a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--grad-ink); color: #fff; padding: 5rem 0 2.5rem; position: relative; overflow: hidden; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 2.5rem; }
.footer__logo img { height: 30px; width: auto; margin-bottom: 1.1rem; }
.footer p { color: rgba(255,255,255,.55); font-size: .9rem; max-width: 30ch; }
.footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.42); margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .6rem; font-size: .9rem; color: rgba(255,255,255,.78); }
.footer li a { display: inline-flex; align-items: center; min-height: 32px; transition: color .2s; }
.footer li a:hover { color: var(--teal); }
.footer__bottom { position: relative; z-index: 1; margin-top: 3.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-white); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .76rem; color: rgba(255,255,255,.42); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Crop focus utilities (add to a .frame img via class on the frame) ---------- */
.frame--top img { object-position: center top; }
.frame--bottom img { object-position: center bottom; }
.frame--left img { object-position: left center; }
.frame--right img { object-position: right center; }

/* ---------- Mobile image auto-crop safety net ---------- */
@media (max-width: 760px) {
  /* nothing runs full-length: every framed image crops to a sane ratio on phones */
  .frame--21x9 { aspect-ratio: 16 / 10; }
  .frame--4x5, .frame--3x4 { aspect-ratio: 4 / 3; }
  /* hero + page-head images get an explicit crop on mobile (they opt out of default ratio) */
  .hero__media .frame { aspect-ratio: 4 / 3; }
  .page-head__media .frame { aspect-ratio: 3 / 2; }
  /* hard ceiling: no single image taller than ~72% of viewport height */
  .frame img { max-height: 72vh; }
}

/* ---------- Mobile rhythm ---------- */
@media (max-width: 760px) { :root { --pad-y: 4rem; --gutter: 7vw; } }

/* ---------- Landing pages (ad destinations) ---------- */
.lp-body { }
.lp-bar { display:flex; align-items:center; justify-content:space-between; padding:1.2rem 0; }
.lp-bar__logo img { height:30px; width:auto; }
.lp-bar__phone { font-weight:600; color:var(--ink); text-decoration:none; font-size:.95rem; }
.lp-hero { position:relative; overflow:hidden; padding:3rem 0 2rem; }
.lp-hero__grid { display:grid; grid-template-columns:1.05fr .95fr; gap:3.5rem; align-items:center; }
.lp-hero h1 { font-family:var(--display); font-weight:500; letter-spacing:-.02em; line-height:1.04; font-size:clamp(2rem,4.4vw,3.4rem); margin-bottom:1.3rem; }
.lp-hero .lead { font-size:clamp(1.05rem,1.8vw,1.25rem); color:var(--gray-500); margin-bottom:1.8rem; max-width:44ch; }
.lp-trust { display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1.6rem; }
.lp-trust span { display:inline-flex; align-items:center; gap:.5rem; font-size:.92rem; color:var(--gray-500); font-weight:500; }
.lp-trust span::before { content:""; width:18px; height:18px; border-radius:50%; background:linear-gradient(135deg,var(--teal),var(--blue)); flex:none; }
.lp-card { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:2rem; box-shadow:0 20px 60px -30px rgba(10,11,13,.25); }
.lp-card h2 { font-family:var(--display); font-size:1.4rem; font-weight:500; margin-bottom:.4rem; }
.lp-card p.sub { color:var(--gray-500); font-size:.95rem; margin-bottom:1.4rem; }
.lp-card .field { margin-bottom:1rem; }
.lp-card label { display:block; font-size:.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--gray-500); margin-bottom:.4rem; }
.lp-card input, .lp-card select, .lp-card textarea { width:100%; padding:.85rem 1rem; border:1px solid var(--line); border-radius:var(--r-sm); font:inherit; background:var(--mist); }
.lp-card textarea { min-height:90px; resize:vertical; }
.lp-strip { background:var(--ink); color:#fff; padding:3rem 0; margin-top:1rem; }
.lp-strip__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.lp-strip h3 { font-family:var(--display); font-size:1.15rem; font-weight:500; margin-bottom:.5rem; color:#fff; }
.lp-strip p { color:rgba(255,255,255,.72); font-size:.95rem; }
.lp-foot { padding:2.5rem 0; text-align:center; color:var(--gray-500); font-size:.9rem; }
.lp-foot a { color:var(--ink); }
@media (max-width:820px){ .lp-hero__grid{grid-template-columns:1fr; gap:2rem;} .lp-strip__grid{grid-template-columns:1fr; gap:1.5rem;} }
