/* Section-specific styles for Proofwork */

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
[data-theme="light"] .nav--scrolled { background: rgba(244,244,243,0.82); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__link { font-size: 16px; font-weight: 500; color: var(--fg-dim); transition: color .2s; padding: 6px 0; position: relative; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }

/* Theme toggle */
/* Theme toggle — segmented switch, both sides clickable */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  gap: 0;
  transition: background .3s, border-color .3s;
}
.theme-toggle__seg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  background: transparent;
  border: 0;
  transition: color .25s ease;
}
.theme-toggle__seg.is-active { color: var(--accent-ink); }
.theme-toggle__seg:not(.is-active):hover { color: var(--fg); }
.theme-toggle__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 2px 8px color-mix(in oklch, var(--brand) 40%, transparent);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.theme-toggle__indicator.is-right { transform: translateX(36px); }
.nav__menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav__menu span { display: block; width: 16px; height: 1.5px; background: var(--fg); }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; }
}

/* Menu overlay */
.menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.menu--open { pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity .4s; }
.menu--open .menu__bg { opacity: 1; }
.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.menu--open .menu__panel { transform: none; }
.menu__inner { padding: 28px 0; min-height: 100%; display: flex; flex-direction: column; }
.menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.menu__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.menu__list li { opacity: 0; transform: translateX(20px); transition: opacity .5s, transform .5s; border-bottom: 1px solid var(--line); }
.menu--open .menu__list li { opacity: 1; transform: none; }
.menu__list a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  transition: padding .3s, color .3s;
}
.menu__list a:hover { padding-left: 10px; color: var(--accent); }
.menu__num { color: var(--fg-mute); }
.menu__label { font-size: 32px; }
.menu__sub { color: var(--fg-dim); font-size: 13px; }
.menu__arrow { font-size: 20px; opacity: 0; transition: opacity .3s, transform .3s; }
.menu__list a:hover .menu__arrow { opacity: 1; transform: translateX(4px); }
.menu__footer { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-dim); }

/* Hero */
.hero { padding: 160px 0 100px; min-height: 100svh; display: flex; align-items: center; overflow: hidden; position: relative; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orb {
  position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  transform: translateZ(0);
}
.hero__orb--1 {
  top: -300px; left: -200px;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 60%);
}
.hero__orb--2 {
  bottom: -400px; right: -250px;
  background: radial-gradient(circle at 50% 50%, oklch(0.6 0.18 260) 0%, transparent 60%);
  opacity: 0.35;
}
[data-theme="light"] .hero__orb { opacity: 0.35; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__meta { margin-bottom: 40px; }
.hero__headline { font-size: clamp(28px, 5.5vw, 90px); margin: 0; max-width: 18ch; }
.hero__word {
  display: inline-block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), color .3s, font-style .3s, letter-spacing .3s;
  transform-origin: bottom left;
}
.hero__word.is-hot { color: var(--accent); font-style: italic; letter-spacing: -0.05em; transform: skewX(-8deg); }

[data-hero-variant="split"] .hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
[data-hero-variant="split"] .hero__bottom { grid-column: 2; display: block; margin-top: 0; }
[data-hero-variant="split"] .hero__headline { grid-column: 1; font-size: clamp(44px, 7vw, 120px); }
[data-hero-variant="split"] .hero__meta { grid-column: 1; }

[data-hero-variant="stacked"] .hero__headline { text-align: center; margin: 0 auto; }
[data-hero-variant="stacked"] .hero__meta,
[data-hero-variant="stacked"] .hero__bottom { text-align: center; }
[data-hero-variant="stacked"] .hero__meta { display: flex; justify-content: center; }
[data-hero-variant="stacked"] .hero__cta,
[data-hero-variant="stacked"] .hero__specs { justify-content: center; }
[data-hero-variant="stacked"] .hero__lede { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  [data-hero-variant="split"] .hero__inner { grid-template-columns: 1fr; }
  [data-hero-variant="split"] .hero__bottom { grid-column: 1; }
  [data-hero-variant="split"] .hero__headline { grid-column: 1; }
}

.hero__bottom {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 60px;
  align-items: end;
}
.hero__lede { max-width: 48ch; color: var(--fg-dim); font-size: 18px; line-height: 1.5; margin: 0; }
.hero__cta { display: flex; gap: 12px; grid-column: 2; grid-row: 1; align-self: start; }
.hero__specs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__cta { grid-column: 1; }
  .hero__specs { grid-template-columns: repeat(2, 1fr); }
}

/* Logos */
.logos { padding: 60px 0 20px; }
.logos__strip { margin-top: 24px; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.logos__item { display: flex; align-items: center; gap: 12px; color: var(--fg-dim); font-size: 22px; letter-spacing: -0.02em; font-family: var(--font-display); }
.logos__glyph svg { width: 22px; height: 22px; color: var(--fg-dim); }

/* Services */
.services__grid { --col-w: 360px; }
.service { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; transition: border-color .3s, transform .3s, background .3s; }
.service:hover { border-color: var(--line-strong); background: var(--bg-elev-2); transform: translateY(-4px); }
.service__head { display: flex; justify-content: space-between; align-items: center; color: var(--fg-mute); }
.service__plus { font-size: 24px; transition: transform .4s; }
.service:hover .service__plus { transform: rotate(45deg); color: var(--accent); }
.service__title { font-size: 32px; margin: 0; }
.service__body { color: var(--fg-dim); margin: 0; flex: 1; line-height: 1.45; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service__tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-dim); }

/* Process */
.process__wrap { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
@media (max-width: 1000px) { .process__wrap { grid-template-columns: 1fr; } }
.process__rail { position: sticky; top: 120px; }
.process__rail-inner { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.process__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.process__item { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.process__item:last-child { border-bottom: 0; }
.process__n { font-size: 56px; color: var(--fg-mute); }
.process__t { font-size: 32px; margin: 0 0 8px; }
.process__b { color: var(--fg-dim); margin: 0; line-height: 1.5; }

/* Work */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
@media (max-width: 900px) { .work__grid { grid-template-columns: 1fr; } }
.work__card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s; }
.work__card:hover { transform: translateY(-4px); }
.work__thumb {
  position: relative; aspect-ratio: 16/10; padding: 32px;
  background: linear-gradient(135deg, oklch(0.3 0.1 var(--hue)) 0%, oklch(0.15 0.06 var(--hue)) 100%);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.work__thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.work__thumb-tag { color: rgba(255,255,255,0.7); position: relative; }
.work__thumb-stat { position: relative; }
.work__meta { padding: 28px; }
.work__title { font-size: 28px; margin: 12px 0; max-width: 24ch; }
.work__more { color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Detail */
.detail { position: fixed; inset: 0; z-index: 300; display: flex; }
.detail__bg { position: absolute; inset: 0; background: rgba(15, 13, 31, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.detail__panel {
  position: relative; margin-left: auto; width: min(1080px, 100%); background: var(--bg);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  animation: slideIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.detail__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  padding: 36px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 2;
}
.detail__top-meta { flex: 1; min-width: 0; }
.detail__crumbs { display: flex; align-items: center; gap: 10px; color: var(--fg-mute); font-size: 12px; flex-wrap: wrap; }
.detail__crumb-sep { color: var(--line-strong); }
.detail__title { font-size: clamp(28px, 3.2vw, 44px); margin: 14px 0 0; max-width: 28ch; line-height: 1.05; }
.detail__close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0;
}

.detail__hero {
  position: relative;
  padding: 60px 48px 64px;
  background:
    radial-gradient(ellipse at 80% 20%, color-mix(in oklch, var(--brand) 55%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--ink) 100%);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.detail__hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
}
.detail__hero-orb {
  position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.55;
  top: -180px; left: -120px;
  pointer-events: none;
}
.detail__hero-graphic {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
}
.detail__hero-graphic .work__graphic { width: 100%; height: 100%; }
.detail__hero-graphic .work__graphic [stroke="var(--line-strong)"] { stroke: rgba(255,255,255,0.18); }
.detail__hero-graphic .work__graphic text { fill: rgba(255,255,255,0.85) !important; }
.detail__hero-stat {
  position: relative;
  text-align: right;
  min-width: 220px;
}
.detail__hero-label { color: rgba(255,255,255,0.55); font-size: 11px; margin-bottom: 8px; }
.detail__hero-num { font-size: clamp(72px, 10vw, 132px); line-height: 0.85; letter-spacing: -0.04em; color: #fff; }
.detail__hero-cap { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 10px; }

.detail__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px 48px; align-items: start; }
@media (max-width: 900px) {
  .detail__panel { width: 100%; }
  .detail__top { padding: 24px; }
  .detail__hero { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .detail__hero-stat { text-align: left; }
  .detail__body { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
}
.detail__block { margin-bottom: 32px; }
.detail__block:last-child { margin-bottom: 0; }
.detail__block .eyebrow { margin-bottom: 12px; }
.detail__body-l p { color: var(--fg-dim); font-size: 17px; line-height: 1.65; max-width: 56ch; margin: 0; }
.detail__body-r {
  position: sticky;
  top: 140px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.detail__stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail__stats li {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.detail__stats li:hover { border-color: var(--brand); transform: translateY(-2px); }
.detail__stats li.is-lead {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand);
  color: #fff;
}
.detail__stats li.is-lead .detail__stat-l { color: rgba(255,255,255,0.8); }
.detail__stat-v { font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.detail__stats li.is-lead .detail__stat-v { font-size: 56px; }
.detail__stat-l { color: var(--fg-dim); font-size: 11px; margin-top: 8px; }
.detail__cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail__cta .btn { width: 100%; justify-content: center; }

/* Stats */
.stats { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stats__cell { padding: 0; }
.stats__k { font-size: clamp(40px, 5vw, 72px); }
.stats__v { color: var(--fg-dim); margin-top: 8px; }

/* Team */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
@media (max-width: 900px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team__grid { grid-template-columns: 1fr; } }
.team__card { overflow: hidden; }
.team__portrait {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  transition: transform .4s;
}
.team__card[data-tone="brand-deep"] .team__portrait {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2A1F8A 100%);
}
.team__card[data-tone="brand-soft"] .team__portrait {
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 70%, white) 0%, var(--brand) 100%);
}
.team__card[data-tone="brand-ink"] .team__portrait {
  background: linear-gradient(135deg, #2A1F8A 0%, var(--ink) 100%);
}
.team__card:hover .team__portrait { transform: scale(0.98); }
.team__portrait-grain { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0); background-size: 8px 8px; opacity: 0.3; }
.team__portrait-initials { position: relative; font-size: 88px; color: rgba(255,255,255,0.92); letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,0.18); }
.team__portrait-tag { position: absolute; bottom: 16px; left: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.4); color: #fff; backdrop-filter: blur(8px); }
.team__meta { padding: 16px 4px; }
.team__name { font-size: 22px; }
.team__role { color: var(--fg-dim); margin-top: 4px; }

/* Testimonials */
.quote { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fade .6s;
}
.quote__q { font-size: clamp(32px, 4.5vw, 68px); line-height: 1.08; max-width: 24ch; margin: 0 0 40px; animation: fade .8s; }
.quote__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.quote__dots { display: flex; gap: 8px; }
.quote__dot { width: 28px; height: 4px; background: var(--line-strong); border-radius: 999px; transition: background .3s, width .3s; }
.quote__dot.is-on { background: var(--accent); width: 48px; }

/* Contact */
.contact__form { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .contact__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { color: var(--fg-mute); }
.field__err { color: oklch(0.7 0.2 25); }
.field input, .field textarea {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 20px;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field--error input, .field--error textarea { border-bottom-color: oklch(0.7 0.2 25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--center { justify-content: center; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; transition: all .2s; }
.chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.contact__submit { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.contact__sent { text-align: center; padding: 80px 0; }
.contact__sent h2 { margin: 24px auto; max-width: 20ch; }

/* Process loop animation */
.loop-anim { position: relative; }
.loop-anim__label {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex;
  justify-self: center;
  color: var(--fg);
}
@keyframes loopPop {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Interactive hover affordances — Qurova "Q" pointer cursor on all clickable elements */
button, a, [role="button"], [data-magnetic], .card--hover, input[type="button"], input[type="submit"],
.footer__big-ch, .hero__word, .hero__headline, .work__card, .team__card, .quote__dot, .tweak__swatch {
  cursor: url("assets/cursor-q-pointer-v2.png") 5 5, pointer;
}

/* Logos strip heading — larger, readable */
.logos__title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 48px);
  color: var(--fg-dim);
  margin: 0 auto 48px;
  max-width: 28ch;
  font-weight: 500;
}
.logos__title + .logos__strip { margin-top: 0; }

/* Work card — stats strip under title */
.work__stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work__stat-chip { text-align: left; }
.work__stat-v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}
[data-theme="dark"] .work__stat-v { color: #FFFFFF; }
.work__stat-l {
  font-size: 10px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* Work card graphic (top-right corner) */
.work__graphic {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 55%;
  max-width: 260px;
  height: 120px;
  opacity: 0.9;
  pointer-events: none;
}
.work__thumb-stat { position: relative; z-index: 2; }
.work__thumb-tag { position: relative; z-index: 2; }
.work__card {
  background: var(--bg-elev) !important;
  border: 1px solid var(--line-strong) !important;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.work__card:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 20px 60px -20px color-mix(in oklch, var(--brand) 35%, transparent);
}
.work__thumb {
  background: var(--brand-pale) !important;
  position: relative;
  padding: 32px;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .work__thumb {
  background: color-mix(in oklch, var(--brand) 18%, var(--bg-elev-2)) !important;
}
.work__thumb-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--brand) 15%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--brand) 15%, transparent) 1px, transparent 1px) !important;
  opacity: 0.6 !important;
}
.work__thumb-stat .display {
  color: var(--brand) !important;
  font-weight: 600;
}
[data-theme="dark"] .work__thumb-stat .display { color: #FFFFFF !important; }
.work__thumb-tag {
  color: var(--ink) !important;
  opacity: 0.7;
}
[data-theme="dark"] .work__thumb-tag { color: #FFFFFF !important; opacity: 0.75; }
.work__meta { padding: 24px; background: var(--bg-elev); }
.work__title {
  color: var(--fg) !important;
  margin: 12px 0 16px;
}
.work__more {
  color: var(--brand) !important;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .work__more { color: #FFFFFF !important; }

/* Service cards — extended */
.service__cover { color: var(--fg-mute); margin-top: 18px; margin-bottom: 8px; font-size: 12px; }
.service__list { margin: 0 0 16px; padding: 0 0 0 16px; color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
.service__list li { margin-bottom: 4px; }
.service__best { font-size: 12px; color: var(--fg); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }

/* Process — sub-items */
.process__items { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--fg-dim); font-size: 14px; line-height: 1.7; }
.process__items li { margin-bottom: 2px; }

/* Case detail — results list */
.detail__results { margin: 8px 0 0; padding: 0 0 0 18px; color: var(--fg-dim); line-height: 1.7; }
.detail__results li { margin-bottom: 4px; }

/* Section head — prevent heading/text overlap */
.section-head { align-items: start; }
.section-head > div:last-child h2 { margin-top: 0; margin-bottom: 24px; }
.section-head > div:last-child p { margin-top: 0; }

/* Footer — 4-col layout */
.footer__cols--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 800px) {
  .footer__cols--4 { grid-template-columns: 1fr 1fr; }
}

/* Footer motion */
.footer__big {
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.footer__big-line { display: block; }
.footer__big-ch {
  display: inline-block;
  transition: color .3s, transform .5s cubic-bezier(.2,.8,.2,1), font-style .3s;
  transform-origin: bottom left;
}
.footer__big-ch.is-hot {
  color: var(--accent);
  font-style: italic;
  transform: skewX(-8deg) translateY(-6px);
}

/* Footer */
.footer { padding: 100px 0 40px; border-top: 1px solid var(--line); }
.footer__big { font-size: clamp(80px, 16vw, 240px); line-height: 0.85; margin-bottom: 80px; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 780px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__list { list-style: none; margin: 12px 0 0; padding: 0; color: var(--fg-dim); }
.footer__list li { padding: 4px 0; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 24px; color: var(--fg-mute); }

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  width: 320px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tweaks__title { letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.tweaks__close { color: var(--fg-mute); }
.tweak { padding: 12px 0; border-top: 1px solid var(--line); }
.tweak__label { color: var(--fg-mute); display: block; margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.tweak input[type="text"], .tweak select {
  width: 100%; background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--fg); padding: 8px 10px; border-radius: 6px; font: inherit; outline: none;
}
.tweak input[type="range"] { width: 100%; }
.tweak__swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak__swatch { width: 28px; height: 28px; border-radius: 999px; border: 2px solid transparent; transition: transform .2s; }
.tweak__swatch:hover { transform: scale(1.15); }
.tweak__swatch.is-on { border-color: var(--fg); }
.tweak__seg { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak__seg button { flex: 1; padding: 6px 8px; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 6px; color: var(--fg-dim); }
.tweak__seg button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── AI Loop section ────────────────────────────────────────── */
.ailoop { padding: 80px 0; }
.ailoop__frame {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 72px 64px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.ailoop__frame::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--brand) 20%, transparent), transparent 70%);
  pointer-events: none;
}
@media (max-width: 780px) {
  .ailoop__frame { padding: 40px 24px; border-radius: 16px; }
}
.ailoop__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.ailoop__h {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.ailoop__accent { color: var(--brand); font-style: normal; }
[data-theme="dark"] .ailoop__accent { color: #FFFFFF; }
.ailoop__lead {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 40px;
}
.ailoop__symptoms {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
}
.ailoop__symptoms-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.ailoop__symptom {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ailoop__symptom:last-child { border-bottom: none; padding-bottom: 0; }
.ailoop__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 20%, transparent);
}
.ailoop__symptom-text {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.6;
}
.ailoop__symptom-text span { color: var(--fg-dim); }
.ailoop__quote {
  border-left: 3px solid var(--brand);
  padding: 18px 24px;
  background: var(--brand-pale);
  border-radius: 0 12px 12px 0;
  margin: 0 0 32px;
  font-size: 15.5px;
  color: var(--brand-dark);
  line-height: 1.65;
  font-style: italic;
  position: relative;
}
[data-theme="dark"] .ailoop__quote {
  background: color-mix(in oklch, var(--brand) 22%, var(--bg-elev-2));
  color: #FFFFFF;
}
.ailoop__quote strong { font-weight: 600; }
.ailoop__quote-mark {
  font-size: 24px;
  margin-right: 2px;
  font-style: normal;
  font-weight: 700;
}
.ailoop__divider {
  height: 1px;
  background: var(--line-strong);
  margin: 40px 0;
}
.ailoop__solution-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 14px;
}
.ailoop__solution-h {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.ailoop__solution-p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 0 36px;
}
.ailoop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.ailoop__card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.ailoop__card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 16px 40px -20px color-mix(in oklch, var(--brand) 40%, transparent);
}
.ailoop__card-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--brand-pale);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
[data-theme="dark"] .ailoop__card-icon {
  background: color-mix(in oklch, var(--brand) 25%, var(--bg-elev-2));
  color: #FFFFFF;
}
.ailoop__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.ailoop__card-body {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.ailoop__cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ailoop__ghost {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}
.ailoop__ghost:hover { color: var(--brand-dark); }
.ailoop__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ailoop__trust-item {
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.ailoop__check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
