/* ==========================================================
   Turnstone Digital Marketing — Homepage, version 2 (editorial)
   ========================================================== */

:root {
  --navy: #012A50;
  --navy-deep: #011D38;
  --teal: #02B4AB;
  --teal-dark: #01807A;
  --charcoal: #2B3642;
  --slate: #53606F;

  --paper: #F5F7FA;
  --navy-rgb: 1, 42, 80;
  --teal-rgb: 2, 180, 171;
  --white: #FFFFFF;
  --line: #DFE5EC;
  --text: #2B3642;
  --muted: #53606F;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.75rem, 6.2vw + .25rem, 5.75rem);
  --fs-h2: clamp(2rem, 3vw + .75rem, 3.25rem);

  --container: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 20px;
  --radius-sm: 10px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: var(--fs-h2); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: .975rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: .9rem 1.9rem; font-size: 1.025rem; }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: color-mix(in srgb, var(--teal) 85%, #fff); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { border-color: currentColor; color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-line-dark { border-color: var(--navy); color: var(--navy); margin-top: 1.5rem; }
.btn-line-dark:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1.1rem; }
.eyebrow-light { color: var(--teal); }

.section { padding-block: var(--section-y); }
.section-soft { background: var(--paper); }

.split-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.split-head p { font-size: 1.1rem; color: rgba(255,255,255,.75); }
.split-head--dark p { color: var(--muted); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 247, 250, .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand img { height: var(--logo-h, 52px); width: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list > li > a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 999px;
  font: inherit; font-size: .925rem; font-weight: 600; color: var(--charcoal); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav-list > li > a:hover, .dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"] { background: var(--white); color: var(--navy); }
.chevron { transition: transform .2s var(--ease); }
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(var(--navy-rgb), .12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .65rem .9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; color: var(--charcoal); text-decoration: none; }
.dropdown a:hover { background: var(--paper); color: var(--navy); }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   1. HERO (light, editorial)
   ========================================================== */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  background-image:
    linear-gradient(rgba(var(--navy-rgb), .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .045) 1px, transparent 1px);
  background-size: 64px 64px;
  padding-bottom: 2.5rem;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; margin-bottom: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .18); }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.045em; margin-bottom: 1.75rem; }
.hl { position: relative; display: inline-block; color: var(--navy); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--teal); opacity: .55; z-index: -1; border-radius: 4px; }
.hero h1 { position: relative; z-index: 0; }
.hero-lead { font-size: clamp(1.075rem, .5vw + .95rem, 1.25rem); color: var(--muted); max-width: 54ch; margin-bottom: 2.25rem; }
.hero-note { margin-top: 1.75rem; font-size: .925rem; color: var(--muted); }

.hero-stack { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.stack-img { position: absolute; width: 74%; border-radius: 16px; box-shadow: 0 30px 60px rgba(var(--navy-rgb), .22); animation: float-in .9s var(--ease) backwards; }
.stack-1 { top: 0; right: 0; transform: rotate(3deg); animation-delay: .1s; }
.stack-2 { top: 30%; left: 0; transform: rotate(-4deg); animation-delay: .22s; }
.stack-3 { bottom: 0; right: 6%; transform: rotate(1.5deg); animation-delay: .34s; }
.stack-bars { position: absolute; left: 6%; top: 4%; width: 22%; }
@keyframes float-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-tags li { padding: .5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--charcoal); }

/* ==========================================================
   2. T3 — STAIRCASE (navy)
   ========================================================== */
.t3 { background: var(--navy); color: #fff; padding-top: var(--section-y); overflow: hidden; }
.t3 h2 { color: #fff; }
.stairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.stair {
  position: relative; display: flex; flex-direction: column; gap: .85rem;
  padding: 2.25rem 2rem 2.5rem; border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
}
.stair-1 { min-height: 420px; }
.stair-2 { min-height: 500px; background: rgba(var(--teal-rgb), .12); border-color: rgba(var(--teal-rgb), .35); }
.stair-3 { min-height: 580px; background: var(--teal); border-color: var(--teal); color: var(--navy); }
.stair-num { font-size: .85rem; font-weight: 800; letter-spacing: .14em; color: var(--teal); }
.stair-3 .stair-num { color: var(--navy); }
.stair h3 { font-size: clamp(2rem, 2.5vw + 1rem, 2.75rem); color: inherit; }
.stair-lead { font-size: 1.15rem; font-weight: 700; }
.stair p { color: rgba(255,255,255,.75); }
.stair-3 p { color: rgba(var(--navy-rgb), .85); }
.stair .stair-lead { color: #fff; }
.stair-3 .stair-lead { color: var(--navy); }
.stair-tags { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .875rem; font-weight: 700; }
.stair-3 .stair-tags { border-color: rgba(var(--navy-rgb), .2); }

/* ==========================================================
   3. SERVICES — editorial list
   ========================================================== */
.svc-list { border-top: 1px solid var(--line); }
.svc a {
  display: grid; grid-template-columns: 70px 1fr 1.1fr 56px; gap: 1.5rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .3s var(--ease), background-color .3s var(--ease);
}
.svc-num { font-size: .9rem; font-weight: 800; color: var(--teal-dark); }
.svc-title { display: flex; flex-direction: column; gap: .35rem; font-size: clamp(1.4rem, 1.4vw + .9rem, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; }
.svc-title em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); }
.svc-desc { color: var(--muted); }
.svc-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy); font-size: 1.2rem; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.svc a:hover { background: var(--paper); padding-inline: 1.5rem; }
.svc a:hover .svc-arrow { background: var(--teal); border-color: var(--teal); transform: rotate(-45deg); }
.svc--lead .svc-title { font-size: clamp(1.6rem, 2vw + .9rem, 2.4rem); }

/* ==========================================================
   4. WORK — bento grid
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1.25rem; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--navy); text-decoration: none; }
.tile--xl { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile--wide { grid-column: span 2; aspect-ratio: auto; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(1,29,56,.75) 68%, rgba(1,29,56,.97) 100%); transition: opacity .3s; }
.tile-info { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; display: flex; flex-direction: column; gap: .15rem; color: #fff; transform: translateY(6px); transition: transform .35s var(--ease); }
.tile-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6FE6DF; }
.tile-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.tile--xl .tile-title { font-size: 1.75rem; }
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile-info { transform: none; }

/* ==========================================================
   5. WHY
   ========================================================== */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.why-statement h2 { font-size: clamp(2.25rem, 3.6vw + .75rem, 3.75rem); position: sticky; top: calc(var(--header-h) + 2rem); }
.muted { color: var(--teal-dark); }
.why-lead { font-size: 1.2rem; color: var(--charcoal); margin-bottom: 2.5rem; }
.principles { border-top: 1px solid var(--line); }
.principles li { display: flex; gap: 1.5rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.principles span { font-size: .8rem; font-weight: 800; color: var(--teal-dark); }
.why-closing { margin-top: 2rem; font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--muted); }

/* ==========================================================
   6. AGENCY
   ========================================================== */
.agency { background: var(--charcoal); color: rgba(255,255,255,.8); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.agency-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; }
.agency h2 { color: #fff; font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.agency p { margin-bottom: 1.5rem; }
.agency .btn-line { color: #fff; }
.agency .btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ==========================================================
   7. BLOG — list
   ========================================================== */
.post-list { border-top: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 220px 1fr 140px 40px; gap: 1.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.post-cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.post-title { font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.post-list time { font-size: .9rem; color: var(--muted); }
.post-arrow { font-size: 1.25rem; color: var(--navy); transition: transform .25s var(--ease); }
.post-list a:hover { padding-inline: 1rem; }
.post-list a:hover .post-arrow { transform: translateX(4px); color: var(--teal-dark); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq h2 { margin-bottom: 1rem; }
.faq-intro { color: var(--muted); }
.faq-intro a { color: var(--navy); font-weight: 700; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-list details { margin-bottom: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--teal); }
.faq-list summary { position: relative; padding: 1.25rem 3.5rem 1.25rem 1.5rem; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); font-size: 1.2rem; font-weight: 600; transition: transform .25s var(--ease), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--teal); }
.faq-list details p { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ==========================================================
   8. CTA — teal panel
   ========================================================== */
.cta { padding-block: var(--section-y); }
.cta-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem); border-radius: 28px; background: var(--teal); color: var(--navy);
}
.cta-panel::before { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cta-copy { position: relative; }
.cta-panel h2 { font-size: clamp(2.25rem, 3.5vw + .75rem, 3.75rem); margin-bottom: 1.25rem; }
.cta-panel p { font-size: 1.15rem; color: rgba(var(--navy-rgb), .85); margin-bottom: 2rem; max-width: 52ch; }
.cta-alt { margin: 1.25rem 0 0 !important; font-size: .95rem !important; }
.cta-alt a { font-weight: 700; color: var(--navy); }
.cta-steps { position: relative; display: grid; gap: .75rem; }
.cta-steps li { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: rgba(255,255,255,.35); border-radius: 14px; font-weight: 700; }
.cta-steps span { font-size: .8rem; font-weight: 800; color: var(--teal-dark); background: #fff; border-radius: 8px; padding: .2rem .5rem; }

/* ==========================================================
   FOOTER (light)
   ========================================================== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .95rem; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 30ch; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 1.1rem; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--teal-dark); }
.footer-word { margin: clamp(3rem, 6vw, 5rem) 0 0; font-size: clamp(2.75rem, 9vw, 8.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--navy-rgb), .18); white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--xl { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .tile--wide { aspect-ratio: 8 / 3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .brand img { height: calc(var(--logo-h, 52px) * .88); }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem; background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1.05rem; border-radius: 0; }
  .nav-list > li > a:hover, .dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"] { background: none; }
  .dropdown { position: static; display: none; min-width: 0; padding: 0 0 .75rem .75rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown.is-open { display: block; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stack { max-width: 460px; justify-self: center; }
  .split-head, .why, .faq, .agency-inner, .cta-panel { grid-template-columns: 1fr; }
  .why-statement h2 { position: static; }
  .stairs { grid-template-columns: 1fr; gap: .75rem; }
  .stair { min-height: 0 !important; border-radius: var(--radius); border-bottom: 1px solid; }
  .stair-1 { border-color: rgba(255,255,255,.1); }
  .stair-2 { border-color: rgba(var(--teal-rgb), .35); }
  .t3 { padding-bottom: var(--section-y); }
  .svc a { grid-template-columns: 1fr 52px; gap: .75rem 1rem; }
  .svc-num { grid-column: 1 / -1; }
  .svc-desc { grid-column: 1 / 2; }
  .svc-arrow { grid-row: 2; grid-column: 2; }
  .post-list a { grid-template-columns: 1fr 32px; gap: .35rem 1rem; }
  .post-cat, .post-title, .post-list time { grid-column: 1; }
  .post-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--xl, .tile--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-row .btn, .agency .btn, .btn-line-dark { width: 100%; }
  .hl { white-space: normal; }
  .svc a:hover, .post-list a:hover { padding-inline: 0; }
}

/* ==========================================================
   INNER PAGES
   ========================================================== */
.container--narrow { max-width: 860px; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.inline-link { color: var(--navy); font-weight: 700; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--teal-dark); }
.nav-list a[aria-current="page"], .dropdown-toggle.is-current { color: var(--navy); background: var(--white); box-shadow: inset 0 -2px 0 var(--teal); }
.dropdown a[aria-current="page"] { background: var(--paper); color: var(--navy); }

/* Page hero */
.page-hero {
  background: var(--paper);
  background-image: linear-gradient(rgba(var(--navy-rgb), .045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--navy-rgb), .045) 1px, transparent 1px);
  background-size: 64px 64px;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}
.page-hero h1 { position: relative; z-index: 0; font-size: clamp(2.5rem, 4.6vw + .5rem, 4.5rem); letter-spacing: -0.04em; margin-bottom: 1.5rem; max-width: 16ch; }
.page-hero h1.h1-wide { max-width: 20ch; }
.page-lead { font-size: clamp(1.075rem, .5vw + .95rem, 1.25rem); color: var(--muted); max-width: 60ch; }
.page-hero .btn-row { margin-top: 2.25rem; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.hero-badge { width: clamp(140px, 18vw, 240px); padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 60px rgba(var(--navy-rgb), .1); transform: rotate(-4deg); }
.page-hero--dark { background: var(--navy); background-image: radial-gradient(800px 420px at 85% 10%, rgba(var(--teal-rgb), .2), transparent 60%); color: #fff; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .page-lead { color: rgba(255,255,255,.78); }
.page-hero--dark .crumbs, .page-hero--dark .crumbs a { color: rgba(255,255,255,.65); }
.page-hero--slim { padding-bottom: 2.5rem; }
.page-hero--project { padding-bottom: clamp(2rem, 4vw, 3rem); }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }
.page-hero--dark .crumbs [aria-current] { color: #fff; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.features li { display: flex; flex-direction: column; gap: .75rem; padding: 2rem; background: #fff; transition: background-color .25s; }
.features li:hover { background: var(--paper); }
.section-soft .features li:hover { background: #fbfcfd; }
.f-num { font-size: .8rem; font-weight: 800; color: var(--teal-dark); }
.features h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.features p { color: var(--muted); }

/* Compact staircase */
.t3--compact { padding-bottom: 0; }
.t3--compact .stair-1 { min-height: 280px; }
.t3--compact .stair-2 { min-height: 330px; }
.t3--compact .stair-3 { min-height: 380px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { display: flex; flex-direction: column; gap: .75rem; padding: 2.25rem 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pillar--accent { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.8); }
.pillar--accent h3 { color: #fff; }
.pillar-tag { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); font-weight: 800; letter-spacing: -0.03em; color: var(--teal-dark); line-height: 1; }
.pillar--accent .pillar-tag { color: var(--teal); }
.pillar h3 { font-size: 1.25rem; }
.pillar p:last-child { color: var(--muted); }
.pillar--accent p:last-child { color: rgba(255,255,255,.78); }

/* Related */
.related-title { font-size: 1.25rem; margin-bottom: 1.25rem; }
.related { padding-block: clamp(3rem, 5vw, 4rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-weight: 700; color: var(--navy); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.related-card:hover { border-color: var(--teal); transform: translateY(-2px); }

/* Work grid + filters */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-grid .tile[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: var(--charcoal); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-empty { padding: 2rem 0; color: var(--muted); }

/* Case study */
.project-cover { background: linear-gradient(var(--paper) 50%, #fff 50%); }
.project-cover img { width: 100%; border-radius: 24px; box-shadow: 0 30px 70px rgba(var(--navy-rgb), .18); }
.case { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.case-facts { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.case-facts dl { margin: 0; display: grid; gap: 1.25rem; }
.case-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .3rem; }
.case-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.scope { display: grid; gap: .35rem; }
.scope li { position: relative; padding-left: 1rem; font-weight: 500; color: var(--charcoal); }
.scope li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 2px; background: var(--teal); }
.tbc { padding: .9rem 1.1rem; border: 1px dashed #E0A800; border-radius: 10px; background: #FFF9E6; color: #6B5300 !important; font-size: .925rem !important; }

.browser { max-width: 1100px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(var(--navy-rgb), .14); }
.browser-bar { display: flex; gap: .4rem; padding: .85rem 1rem; background: #EEF2F6; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser-bar span:nth-child(2) { background: #FEBC2E; }
.browser-bar span:nth-child(3) { background: #28C840; }
.browser-view { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; }
.browser-view img { width: 100%; }

.next-project { border-top: 1px solid var(--line); }
.next-link { display: flex; flex-direction: column; gap: .25rem; padding-block: clamp(3rem, 6vw, 4.5rem); text-decoration: none; }
.next-link .eyebrow { margin: 0; }
.next-title { font-size: clamp(2rem, 4vw + .5rem, 4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); transition: color .2s; }
.next-title span { display: inline-block; transition: transform .25s var(--ease); }
.next-link:hover .next-title { color: var(--teal-dark); }
.next-link:hover .next-title span { transform: translateX(8px); }

/* Prose */
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--charcoal); font-size: 1.075rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--teal-dark); font-weight: 700; }
.prose a { color: var(--navy); font-weight: 600; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--teal); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.why-body.prose .why-lead { margin-bottom: 0; }

/* Duo cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.duo-card { display: flex; flex-direction: column; gap: .75rem; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.duo-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(var(--navy-rgb), .12); }
.duo-card h3 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); }
.duo-card p { color: var(--muted); }
.duo-card .eyebrow { margin-bottom: .25rem; }
.duo-card--navy { background: var(--navy); border-color: var(--navy); }
.duo-card--navy h3 { color: #fff; }
.duo-card--navy p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.duo-link { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--navy); }
.duo-card--navy .duo-link { color: var(--teal); }
.legal-note { margin-top: 2rem; font-size: .875rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { display: flex; flex-direction: column; gap: .6rem; padding: 2rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .5rem; border-radius: 12px; background: var(--navy); color: var(--teal); font-weight: 800; font-size: .9rem; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); }

/* Blog */
.post-thumb { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 1.25rem; overflow: hidden; border-radius: 16px; background: var(--navy); color: rgba(255,255,255,.9); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.post-thumb::after { content: ""; position: absolute; right: 8%; bottom: -6%; width: 42%; aspect-ratio: 6 / 5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cpath d='M4 100 9 70 30 58 25 90Z' fill='%23ffffff' fill-opacity='.18'/%3E%3Cpath d='M42 100 49 50 70 38 63 88Z' fill='%2302B4AB'/%3E%3Cpath d='M80 100 90 22 116 8 106 84Z' fill='%23ffffff' fill-opacity='.85'/%3E%3C/svg%3E") no-repeat center / contain; transition: transform .4s var(--ease); }
.post-thumb--teal { background: var(--teal); color: var(--navy); }
.post-thumb--teal::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cpath d='M4 100 9 70 30 58 25 90Z' fill='%23012A50' fill-opacity='.25'/%3E%3Cpath d='M42 100 49 50 70 38 63 88Z' fill='%23ffffff' fill-opacity='.7'/%3E%3Cpath d='M80 100 90 22 116 8 106 84Z' fill='%23012A50'/%3E%3C/svg%3E"); }
.post-thumb--charcoal { background: var(--charcoal); }
.post-cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); text-decoration: none; }
.post-meta { font-size: .875rem; color: var(--muted); }
.post-excerpt { color: var(--muted); font-size: 1.05rem; }

.post-featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-featured .post-thumb { font-size: 2rem; }
.post-featured-body { display: flex; flex-direction: column; gap: .9rem; }
.post-featured-title { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: var(--navy); transition: color .2s; }
.post-featured:hover .post-featured-title, .post-card:hover .post-card-title { color: var(--teal-dark); }
.post-featured:hover .post-thumb::after, .post-card:hover .post-thumb::after { transform: translateY(-6px); }
.post-featured[hidden], .post-card[hidden] { display: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.post-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; }
.post-card .post-thumb { margin-bottom: .6rem; }
.post-card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--navy); transition: color .2s; }

.pagination { display: flex; align-items: center; gap: .5rem; margin-top: 3.5rem; }
.page-num { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; color: var(--navy); text-decoration: none; }
.page-num.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-next { margin-left: auto; font-weight: 700; color: var(--navy); text-decoration: none; }
.page-next:hover { color: var(--teal-dark); }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.newsletter h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin-bottom: .75rem; }
.newsletter p { color: var(--muted); }
.newsletter-form { display: flex; gap: .5rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 0 1.1rem; border: 0; background: none; font: inherit; color: var(--text); }
.newsletter-form input:focus { outline: none; }
.newsletter-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .2); }

/* Article */
.article-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2.5rem; background: var(--paper); }
.article-hero h1 { font-size: clamp(2.1rem, 3.4vw + .6rem, 3.5rem); margin: 1rem 0 1.25rem; }
.article-lead { font-size: 1.25rem; color: var(--muted); }
.article-meta { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; font-size: .925rem; color: var(--muted); line-height: 1.45; }
.article-meta strong { color: var(--navy); }
.author-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--teal); font-weight: 800; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.toc ol { display: grid; gap: .25rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .925rem; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-color: var(--teal); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.article-share a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; text-decoration: none; }
.article-share a:hover { border-color: var(--teal); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px rgba(var(--navy-rgb), .06); }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form legend, .field > label { display: block; margin-bottom: .5rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .2); }
.field.has-error input, .field.has-error textarea { border-color: #C62828; }
.field-error { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: #C62828; }
.field-error:empty { display: none; }
.req { color: #C62828; }
.form-type { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-type legend { width: 100%; }
.radio-card { position: relative; flex: 1; min-width: 160px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--charcoal); cursor: pointer; transition: border-color .2s, background-color .2s; }
.radio-card input:checked + span { border-color: var(--teal); background: rgba(var(--teal-rgb), .08); color: var(--navy); }
.radio-card input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--charcoal); transition: border-color .2s; }
.check:has(input:checked) { border-color: var(--teal); background: rgba(var(--teal-rgb), .06); }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--teal-dark); flex: none; }
.check--inline { padding: 0; border: 0; font-weight: 500; }
.check--inline:has(input:checked) { background: none; }
.form-status { font-weight: 700; color: var(--teal-dark); }
.form-status:empty { display: none; }

.contact-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.side-card { padding: 1.75rem; border-radius: var(--radius); background: var(--navy); color: rgba(255,255,255,.8); }
.side-card h2 { font-size: 1.15rem; color: #fff; margin-bottom: 1rem; letter-spacing: -0.01em; }
.side-card--soft { background: var(--paper); color: var(--muted); }
.side-card--soft h2 { color: var(--navy); margin-bottom: .5rem; }
.cta-steps--plain li { background: rgba(255,255,255,.06); color: #fff; }
.cta-steps--plain span { background: var(--teal); color: var(--navy); }

/* 404 */
.notfound { padding-block: clamp(5rem, 12vw, 9rem); background: var(--paper); text-align: center; }
.notfound .container { display: flex; flex-direction: column; align-items: center; }
.notfound-bars { width: 120px; margin-bottom: 2rem; }
.notfound h1 { font-size: clamp(2.25rem, 4vw + .5rem, 3.75rem); max-width: 18ch; margin-bottom: 1rem; }
.notfound .btn-row { justify-content: center; margin-top: 2rem; }

/* Inner pages — responsive */
@media (max-width: 1100px) {
  .features--4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-hero-grid, .case, .contact, .newsletter, .post-featured, .duo { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .features, .pillars, .related-grid, .post-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .case-facts, .contact-side { position: static; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; }
  .t3--compact { padding-bottom: var(--section-y); }
}
@media (max-width: 560px) {
  .features, .features--4, .pillars, .related-grid, .post-grid, .work-grid, .steps, .form-row, .check-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: 16px; }
  .newsletter-form input { padding: .8rem 1rem; }
  .contact-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   WORDPRESS ADDITIONS
   ========================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ts-header-static .site-header { position: relative; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* Announcement bar */
.announce { background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.announce .container { padding-block: .6rem; }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { color: var(--teal); }

/* Footer extras */
.footer-logo { display: inline-block; }
.footer-address a, .footer-address { line-height: 1.5; }
.social-list { display: flex !important; flex-wrap: wrap; gap: .5rem !important; margin-top: 1.25rem; }
.social-list a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: #fff; transition: border-color .2s, color .2s, background-color .2s; }
.social-list a:hover { border-color: var(--teal); color: var(--teal-dark); }
.social-list svg { width: 18px; height: 18px; fill: currentColor; }
.legal-links { display: flex !important; flex-wrap: wrap; gap: 1.25rem !important; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Buttons on dark heroes */
.btn-line--light { color: #fff; }
.btn-line--light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Hero without images */
.hero-inner--solo { grid-template-columns: 1fr; }

/* Contact form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; }
.form-notice--ok { background: rgba(var(--teal-rgb), .12); color: var(--navy); border: 1px solid var(--teal); }
.form-notice--error { background: #FDECEC; color: #8E1C1C; border: 1px solid #F3B7B7; }
.contact-form--embed input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .contact-form--embed textarea, .contact-form--embed select { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.contact-form--embed input[type="submit"], .contact-form--embed button[type="submit"] { padding: .9rem 1.9rem; border: 0; border-radius: 999px; background: var(--teal); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.newsletter-embed input[type="email"] { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }

/* Blog extras */
.post-thumb--image { padding: 0; background: var(--paper); }
.post-thumb--image::after { display: none; }
.post-thumb--image img { width: 100%; height: 100%; object-fit: cover; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.pagination a.page-numbers:hover { border-color: var(--teal); }
.pagination .next { margin-left: auto; }
.article-cover { margin-top: -1rem; }
.article-cover img { width: 100%; height: auto; border-radius: 20px; }
.article-layout--solo { grid-template-columns: minmax(0, 760px); }
.prose img { border-radius: 14px; height: auto; }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .5rem; font-size: .875rem; color: var(--muted); text-align: center; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.faq-answer > * + * { margin-top: .75rem; }
.faq-list details .faq-answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq-answer a { color: var(--navy); font-weight: 700; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.search-box { margin-top: 1.5rem; max-width: 520px; }
.search-box input[type="search"] { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.search-box .search-submit { display: none; }

/* Case study without written sections */
.case--facts-only { grid-template-columns: 1fr; }
.case--facts-only .case-facts { position: static; }
.case--facts-only .case-facts dl { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* WordPress core alignment */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.faq-list details .faq-answer p { padding: 0; }

/* ==========================================================
   MOTION, HERO POLISH & TESTIMONIALS
   ========================================================== */

/* Header: compact on scroll */
.header-inner { transition: height .3s var(--ease); }
.brand img { transition: height .3s var(--ease); }
.site-header { transition: border-color .2s, box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(var(--navy-rgb), .06); }
@media (min-width: 1025px) {
  .site-header.is-scrolled .header-inner { height: 70px; }
  .site-header.is-scrolled .brand img { height: calc(var(--logo-h, 52px) * .82); }
}

/* Hero: full-height, softened grid, brand glows */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 65% 45%, transparent 30%, var(--paper) 85%); }
.hero > * { position: relative; z-index: 1; }
@media (min-width: 1025px) and (min-height: 700px) {
  .hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
  .hero > .hero-inner { flex: 1; }
}
.hero .pill { animation: float-in .7s var(--ease) backwards; }
.hero-lead { animation: float-in .8s .55s var(--ease) backwards; }
.hero .btn-row { animation: float-in .8s .7s var(--ease) backwards; }
.hero-note { animation: float-in .8s .85s var(--ease) backwards; }

.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; animation: word-up .9s var(--ease) backwards; animation-delay: calc(.12s + var(--i, 0) * .07s); }
@keyframes word-up { from { transform: translateY(105%); } }
.hl::after { height: .14em; bottom: .04em; opacity: .9; background: linear-gradient(90deg, var(--teal), #6FE6DF); transform-origin: left; animation: line-draw .9s 1s var(--ease) backwards; }
@keyframes line-draw { from { transform: scaleX(0); } }

.hero-stack { isolation: isolate; transform: perspective(1400px) rotateX(calc(var(--ry, 0) * -5deg)) rotateY(calc(var(--rx, 0) * 7deg)); transition: transform .7s var(--ease); }
.stack-img { translate: calc(var(--rx, 0) * var(--depth, 0) * 1px) calc(var(--ry, 0) * var(--depth, 0) * 1px); transition: translate .7s var(--ease); }
.stack-1 { --depth: -12; }
.stack-2 { --depth: 10; }
.stack-3 { --depth: 22; }
.stack-bars { z-index: 2; }
.stack-bars path { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .8s var(--ease) backwards; }
.stack-bars path:nth-child(1) { animation-delay: .55s; }
.stack-bars path:nth-child(2) { animation-delay: .68s; }
.stack-bars path:nth-child(3) { animation-delay: .81s; }
@keyframes bar-grow { from { transform: scaleY(0); opacity: 0; } }

.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: glow-drift 14s ease-in-out infinite alternate; }
.hero-glow--teal { width: 70%; aspect-ratio: 1; top: 6%; right: -8%; background: rgba(var(--teal-rgb), .4); }
.hero-glow--navy { width: 55%; aspect-ratio: 1; bottom: -4%; left: 2%; background: rgba(var(--navy-rgb), .22); animation-delay: -7s; }
@keyframes glow-drift { to { translate: -6% 8%; scale: 1.12; } }

.hero-chip { position: absolute; z-index: 3; left: -4%; bottom: 10%; display: flex; align-items: center; gap: .85rem; padding: .6rem 1.25rem .6rem .6rem; background: var(--navy); border: 3px solid #fff; border-radius: 20px; box-shadow: 0 20px 44px rgba(var(--navy-rgb), .35); animation: float-in .9s .9s var(--ease) backwards, bob 6s 1.8s ease-in-out infinite; }
.hero-chip strong { display: grid; place-items: center; min-width: 52px; height: 52px; padding-inline: .5rem; border-radius: 13px; background: var(--teal); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.hero-chip > span { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .65); white-space: nowrap; }
.hero-chip b { font-size: 1rem; font-weight: 700; color: #fff; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Hero tags: infinite marquee (enabled by JS) */
.hero-tags-wrap.is-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.is-marquee .hero-tags { flex-wrap: nowrap; gap: 0; width: max-content; animation: marquee var(--marquee-t, 40s) linear infinite; }
.is-marquee .hero-tags li { margin-right: .6rem; white-space: nowrap; }
.is-marquee:hover .hero-tags { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll reveal (class added by JS) */
.rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.is-in { opacity: 1; translate: 0 0; }
/* Staircase: bars grow one by one (classes added by JS) */
@media (min-width: 901px) {
  .chart .stair { clip-path: inset(100% 0 0 0 round var(--radius) var(--radius) 0 0); transition: clip-path 1s var(--ease); transition-delay: calc(var(--d, 0) * 380ms); }
  .chart.is-in .stair { clip-path: inset(0 0 0 0 round var(--radius) var(--radius) 0 0); }
  .chart .stair > * { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--d, 0) * 380ms + .6s + var(--k, 0) * 80ms); }
  .chart.is-in .stair > * { opacity: 1; translate: 0 0; }
}
@media (max-width: 900px) {
  .chart .stair { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 150ms); }
  .chart.is-in .stair { opacity: 1; translate: 0 0; }
}
.stair::before { content: ""; position: absolute; top: 0; left: 2rem; right: 2rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 380ms + .7s); }
.stair-3::before { background: rgba(255, 255, 255, .7); }
.chart.is-in .stair::before { transform: none; }

/* Services: light that follows the cursor */
.svc a { position: relative; isolation: isolate; }
.svc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(var(--teal-rgb), .16), transparent 60%); opacity: 0; transition: opacity .3s; }
.svc a:hover::before { opacity: 1; }

/* Statement: words fill in on scroll */
.is-scrub .w > span { color: rgba(var(--navy-rgb), .14); transition: color .35s var(--ease); }
.is-scrub .w.on > span { color: inherit; }

/* FAQ: smooth open/close (JS) */
.faq-list details { overflow: hidden; }

/* Testimonials */
.quotes { display: grid; gap: 1.25rem; }
.quotes--2, .quotes--grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.75rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.quotes--1 .quote { max-width: 920px; margin-inline: auto; align-items: center; text-align: center; }
.quote-mark { width: 40px; height: auto; fill: var(--teal); }
.quote blockquote p { font-size: 1.15rem; font-weight: 500; line-height: 1.6; color: var(--navy); }
.quotes--1 .quote blockquote p { font-size: clamp(1.35rem, 1.4vw + .9rem, 1.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; }
.quote figcaption { display: flex; align-items: center; gap: .85rem; margin-top: auto; text-align: left; }
.quote-photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-initial { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote-meta { font-size: .875rem; color: var(--muted); }

@media (max-width: 1024px) {
  .hero-chip { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stack, .stack-img { transform: none; translate: none; }
  .hero-glow, .hero-chip { animation: none; }
}
