:root {
  --ink: oklch(0.2 0.012 270);
  --ink-2: oklch(0.27 0.014 270);
  --soft: oklch(0.43 0.015 270);
  --mist: oklch(0.78 0.012 270);
  --paper: oklch(0.955 0.008 85);
  --paper-2: oklch(0.915 0.012 85);
  --paper-3: oklch(0.975 0.005 85);
  --line: oklch(0.84 0.012 85);
  --coral: oklch(0.66 0.19 38);
  --coral-dk: oklch(0.52 0.17 38);
  --green: oklch(0.52 0.1 160);

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-text: 'Manrope', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, .statement-text, .logo { font-family: var(--f-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; font-weight: 700; }
h1 em { font-style: normal; color: var(--coral-dk); }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; font-weight: 600; max-width: 18ch; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; font-weight: 800; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-dk); margin-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1; transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: oklch(0.7 0.19 38); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { font-size: 24px; font-weight: 800; }
.logo span { color: var(--coral); }
.nav { display: flex; gap: 32px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.top-cta { padding: 12px 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 46ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-visual { position: relative; height: 560px; }
.phone {
  position: absolute; right: 2%; top: 0; width: 290px;
  background: var(--paper-3); border: 9px solid var(--ink); border-radius: 46px;
  padding: 44px 22px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 40px 80px -30px oklch(0.2 0.02 270 / 0.35);
  transform: rotate(4deg);
  animation: phoneIn 1.2s var(--ease) both .2s;
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: var(--ink); border-radius: 12px; }
.ph-muted { font-size: 13px; color: var(--soft); }
.ph-big { font-family: var(--f-display); font-size: 34px; font-weight: 700; line-height: 1; }
.ph-good { font-size: 12px; font-weight: 700; color: var(--green); }
.ph-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; margin: 6px 0; }
.ph-bars i { flex: 1; height: calc(var(--h) * 100%); background: var(--paper-2); border-radius: 6px; transform-origin: bottom; animation: barUp 1s var(--ease) both; }
.ph-bars i:nth-child(1) { animation-delay: .5s; } .ph-bars i:nth-child(2) { animation-delay: .56s; } .ph-bars i:nth-child(3) { animation-delay: .62s; } .ph-bars i:nth-child(4) { animation-delay: .68s; } .ph-bars i:nth-child(5) { animation-delay: .74s; } .ph-bars i:nth-child(6) { animation-delay: .8s; } .ph-bars i:nth-child(7) { animation-delay: .86s; }
.ph-bars i.hi { background: var(--coral); }
.ph-row { display: flex; justify-content: space-between; align-items: center; background: var(--paper); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.ph-row small { display: block; font-size: 12px; color: var(--soft); }
.ph-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.ph-split { display: flex; justify-content: space-between; }
.ph-track { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.ph-track div { width: 62%; height: 100%; background: var(--green); border-radius: 4px; }

.rank { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 22px 24px; width: 230px; z-index: 2; transform: rotate(-3deg); animation: rankIn 1.2s var(--ease) both .45s; }
.rank-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); font-weight: 700; margin-bottom: 12px; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-list li { font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--mist); opacity: .55; }
.rank-list li.is-top { color: var(--coral); opacity: 1; font-size: 40px; }

@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(8deg); } }
@keyframes rankIn { from { opacity: 0; transform: translateY(30px) rotate(-8deg); } }
@keyframes barUp { from { transform: scaleY(0); } }

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper-3); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { font-family: var(--f-display); font-weight: 600; font-size: 20px; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* services: editorial rows */
.services { border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: 80px 1fr 1.3fr; grid-template-rows: auto auto; column-gap: 40px; row-gap: 18px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-n { font-family: var(--f-display); font-weight: 700; color: var(--coral-dk); font-size: 18px; padding-top: 4px; grid-row: span 2; }
.service h3 { grid-row: span 2; font-size: clamp(24px, 2.4vw, 32px); }
.service p { color: var(--soft); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; font-weight: 700; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; }

/* statement */
.statement { background: var(--coral); padding: clamp(80px, 11vw, 160px) 0; }
.statement-text { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.05; font-weight: 700; max-width: 16ch; }
.statement-sub { font-size: clamp(18px, 1.7vw, 22px); max-width: 52ch; margin-top: 32px; font-weight: 600; }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 5px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.step:first-child { border-top-color: var(--coral); }
.step-when { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dk); }
.step p:last-child { color: var(--soft); }

/* work */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case { display: flex; flex-direction: column; gap: 18px; }
.case-wide { grid-column: span 2; }
.case-art { border-radius: 28px; aspect-ratio: 16 / 10; transition: transform .6s var(--ease); overflow: hidden; position: relative; }
.case-wide .case-art { aspect-ratio: 21 / 9; }
.case:hover .case-art { transform: scale(.985); }
.art-1 { background: var(--ink); }
.art-1::before { content: ''; position: absolute; width: 46%; aspect-ratio: 1; right: 8%; top: 18%; border-radius: 50%; background: var(--coral); }
.art-1::after { content: ''; position: absolute; left: 7%; bottom: 14%; width: 34%; height: 22%; border-radius: 18px; background: var(--paper-2); }
.art-2 { background: var(--coral); }
.art-2::before { content: ''; position: absolute; inset: 18% 30%; border-radius: 30px; background: var(--paper-3); border: 8px solid var(--ink); }
.art-3 { background: var(--paper-3); border: 1.5px solid var(--line); }
.art-3::before { content: ''; position: absolute; left: 12%; right: 12%; top: 30%; height: 14%; border-radius: 999px; background: var(--ink); }
.art-3::after { content: ''; position: absolute; left: 12%; width: 48%; top: 52%; height: 14%; border-radius: 999px; background: var(--coral); }
.case-kind { font-size: 14px; font-weight: 700; color: var(--soft); margin-bottom: 4px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-weight: 800; font-size: clamp(18px, 1.6vw, 21px); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--soft); padding: 0 48px 28px 0; max-width: 60ch; }

/* contact */
.contact { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; }
.contact .eyebrow { color: var(--coral); }
.contact h2 { max-width: 16ch; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.contact-links { display: flex; flex-direction: column; border-top: 1px solid var(--ink-2); }
.contact-link { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--ink-2); transition: color .3s var(--ease), padding .5s var(--ease); }
.contact-link span { color: var(--mist); font-weight: 700; }
.contact-link b { font-family: var(--f-display); font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.contact-link:hover { color: var(--coral); }

.foot { background: var(--ink); color: var(--mist); border-top: 1px solid var(--ink-2); }
.foot-row { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; font-size: 14px; }
.logo-sm { font-size: 18px; color: var(--paper); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .service { grid-template-columns: 56px 1fr; }
  .service h3 { grid-row: auto; }
  .service p, .service .tags { grid-column: 2; }
  .service-n { grid-row: span 3; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .top-cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; font-size: 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero-visual { height: 460px; }
  .phone { width: 250px; right: 4%; }
  .rank { width: 190px; padding: 18px; }
  .rank-list li.is-top { font-size: 32px; }
  .cases { grid-template-columns: 1fr; }
  .case-wide { grid-column: auto; }
  .case-wide .case-art { aspect-ratio: 16 / 10; }
  .contact-link { flex-direction: column; gap: 4px; }
}
