/* ============================================================
   PEVT® — homepage redesign
   Paper / ink / signal-orange. Swiss grid that breathes.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --ink: #0e0e0c;
  --ink-soft: #55524b;
  --orange: #ff7543;
  --orange-deep: #f4581f;
  --line: rgba(14, 14, 12, 0.14);
  --line-soft: rgba(14, 14, 12, 0.07);
  --radius: 2px;
  --pad: clamp(20px, 4vw, 64px);
  --site-max: 1760px;
  --font-display: "Clash Display", "Clash Grotesk", sans-serif;
  --font-body: "Clash Grotesk", "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* body text scale */
  --text-lg: clamp(21px, 1.9vw, 27px);
  --text-md: clamp(17px, 1.55vw, 21px);
  --text-sm: clamp(15px, 1.2vw, 18px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: var(--site-max);
  margin-inline: auto;
}

/* widest displays get a roomier column */
@media (min-width: 2561px) {
  :root { --site-max: 2160px; }
  /* full-height heroes: lift content off the bottom so the top isn't all empty;
     scroll hint stays pinned to the bottom where it was */
  .hero.hero { justify-content: center; }
  body .hero > .hero__foot {
    position: absolute;
    left: var(--pad); right: var(--pad); bottom: 0;
    z-index: 1;
  }
}

::selection { background: var(--orange); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- structural grid lines ---------- */
.gridlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  display: flex; justify-content: space-evenly;
}
.gridlines span {
  width: 1px; height: 100%;
  background: var(--line-soft);
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner {
  display: flex; align-items: baseline; gap: 24px;
  font-family: var(--font-display); font-weight: 600;
}
.preloader__count { font-size: clamp(28px, 4vw, 44px); color: var(--orange); font-variant-numeric: tabular-nums; }
.preloader__bar {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: rgba(242, 240, 235, 0.15);
}
.preloader__bar span { display: block; width: 0%; height: 100%; background: var(--orange); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9500; }
.cursor__dot {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--ink); border-radius: 50%;
}
.cursor__ring {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(14, 14, 12, 0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}
.cursor__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper);
  opacity: 0; transition: opacity 0.25s;
}
.cursor.is-label .cursor__ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--ink); border-color: var(--ink);
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-press .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(var(--pad), calc((100vw - var(--site-max)) / 2 + var(--pad)));
  transition: background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo { display: flex; align-items: center; }
.header__logo img { width: 38px; height: 38px; }
.header__nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: clamp(16px, 3vw, 40px);
}

.nav-link {
  position: relative; overflow: hidden; display: inline-block;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 2px;
}
.nav-link::after {
  content: attr(data-text);
  position: absolute; left: 2px; top: 100%;
  color: var(--orange);
}
.nav-link .txt { display: inline-block; }
.nav-link .txt, .nav-link::after { transition: transform 0.45s var(--ease-expo); }
.nav-link:hover .txt { transform: translateY(-130%); }
.nav-link:hover::after { transform: translateY(-100%); }
.nav-link[aria-current="page"] .txt { color: var(--orange); }

.header__right { display: flex; align-items: center; gap: 20px; }
.status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft);
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2db56a;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 181, 106, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(45, 181, 106, 0); }
}
.header__cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 100px;
  padding: 10px 20px;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.header__cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 880px) {
  .header__nav { display: none; }
  .status { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 0;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > :not(.hero__canvas) { position: relative; z-index: 1; }

.hero__eyebrow {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: clamp(16px, 3vh, 40px);
}
.hero__eyebrow span { display: inline-block; }
@media (max-width: 700px) { .hero__eyebrow span:nth-child(2) { display: none; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(58px, 12.5vw, 190px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: none;
  margin-bottom: clamp(24px, 4vh, 56px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .word { display: inline-block; transform: translateY(120%); will-change: transform; }
.hero__title .amp { color: var(--orange); }
.hero__title .ship { position: relative; }
.hero__title .ship .dot { font-style: normal; color: var(--orange); }
.hero__title .ship::after {
  content: "";
  position: absolute; left: 0; bottom: 0.04em;
  width: 100%; height: 0.045em;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-expo) 0.15s;
}
.hero__title.is-in .ship::after { transform: scaleX(1); }

/* inner-page hero (work / about / contact) */
.hero--page {
  min-height: auto;
  justify-content: flex-start;
  padding: clamp(150px, 22vh, 250px) var(--pad) clamp(36px, 7vh, 80px);
}
.hero--page .hero__title { margin-bottom: clamp(20px, 3.5vh, 44px); }
.hero--page .hero__aside { margin-bottom: 0; }

/* about hero: title + portrait */
.hero--about .hero__title { font-size: clamp(44px, 8.4vw, 150px); }
.hero-about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(28px, 5vh, 64px);
}
.hero-about__main .hero__lede { margin-bottom: clamp(24px, 4vh, 44px); }
.hero-about__main .hero__title { margin-bottom: clamp(24px, 4vh, 56px); }
.hero-about__photo {
  position: relative;
  align-self: end;
  margin: 0;
  max-height: 65svh;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-about__photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 65svh;
  object-fit: contain;
  object-position: bottom center;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
}
.hero-about__photo::after { display: none; }
@media (max-width: 880px) {
  .hero-about { grid-template-columns: 1fr; align-items: start; }
  .hero-about__photo { order: -1; max-width: 240px; }
  .hero-about__photo img { max-height: 40vh; }
}

/* case study pages */
.hero--case .hero__title { font-size: clamp(44px, 7.4vw, 128px); }
.hero--case .hero__eyebrow { justify-content: flex-start; gap: clamp(24px, 6vw, 80px); }
.case__back { transition: color 0.3s var(--ease-out); }
.case__back:hover { color: var(--orange); }
.case__tags { flex: 0 0 auto; }
@media (min-width: 881px) {
  .hero--about .hero__lede { max-width: none; }
}

.case__cover { padding: clamp(90px, 14vh, 180px) var(--pad); }
.case__media { position: relative; display: block; margin: 0; overflow: hidden; border-radius: 28px; }
.case__media img { width: 100%; display: block; }
.case__cover .card__stat {
  position: absolute; top: 18px; left: 18px;
  background: var(--orange); color: var(--paper);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 100px;
}

/* overview: large body that fills the container */
.case__overview p {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-soft);
}

.gr {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 90px);
}
.gr__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.gr__col p { color: var(--ink-soft); font-size: var(--text-md); }
@media (max-width: 880px) { .gr { grid-template-columns: 1fr; } }

/* fullbleed image — lives between sections (grid-1) or inside details (grid-2) */
.case__fullbleed {
  overflow: hidden; display: block;
  position: relative;
  aspect-ratio: 2140 / 1296;
  background: var(--case-color, var(--paper-2));
}

/* grid image: centered at original size, GSAP handles transform */
.case__grid-img {
  position: absolute;
  left: 50%; top: 50%;
  max-width: none;
  /* JS sets explicit px width/height and negative margins for centering */
  will-change: transform;
}
/* Tablets and mobile: half size */
@media (max-width: 1024px) {
  .case__grid-img { scale: 0.5; }
}
/* Tablets: fixed-height grid container */
@media (max-width: 1024px) {
  .case__fullbleed { aspect-ratio: auto; height: 800px; }
}
/* Mobile: shorter fixed-height grid container */
@media (max-width: 600px) {
  .case__fullbleed { aspect-ratio: auto; height: 640px; }
}
/* Desktop: full @2x size */
@media (min-width: 1025px) {
  .case__grid-img { scale: 1; }
}

/* fullbleed breakout: escape body's 1600px max-width */
.case__fullbleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* standalone grid-1: extra vertical breathing room */
main > .case__fullbleed {
  margin-top: clamp(48px, 8vh, 100px);
  margin-bottom: clamp(48px, 8vh, 100px);
}

/* grid-2 inside details: no bottom spacing */
.case__details {
  display: flex; flex-direction: column;
  gap: 0;
}
.section.case__details { padding-bottom: 0; }
.case__details .section__head { margin-bottom: clamp(90px, 14vh, 180px); }
.case__details .case__fullbleed {
  margin-top: clamp(120px, 18vh, 240px);
  /* margin-inline from .case__fullbleed base rule */
}

/* true diagonal 2x2 grid: feature-1 top-left, feature-2 bottom-right */
.case__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.case__feature { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); margin: 0; }
/* explicit diagonal placement */
.case__feature:nth-child(1) { grid-column: 1; grid-row: 1; }
.case__feature:nth-child(2) { grid-column: 2; grid-row: 2; }
.case__feature:nth-child(3) { grid-column: 1; grid-row: 3; }
.case__feature:nth-child(4) { grid-column: 2; grid-row: 4; }

/* colored frame with parallax image */
.case__feature-frame {
  background: var(--case-color, var(--paper-2));
  padding: clamp(20px, 3.5vw, 52px);
  overflow: hidden;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  height: 700px;
}
.case__parallax-img {
  width: 60%; max-width: 560px; display: block;
  transform: scale(1.05) translateY(5%);
  will-change: transform;
}

.case__caption {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .case__features { grid-template-columns: 1fr; }
  .case__feature:nth-child(1), .case__feature:nth-child(2),
  .case__feature:nth-child(3), .case__feature:nth-child(4) {
    grid-column: 1; grid-row: auto;
  }
}

/* ---------- service modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 8800;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.modal.is-open { pointer-events: all; opacity: 1; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(14, 14, 12, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative; z-index: 1;
  background: var(--paper);
  padding: clamp(32px, 5vw, 56px);
  width: 100%; max-width: 620px;
  max-height: 90svh; overflow-y: auto;
  transform: translateY(28px);
  transition: transform 0.45s var(--ease-expo);
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__close {
  position: absolute; top: 20px; right: 24px;
  font-size: 20px; line-height: 1; color: var(--ink-soft);
  transition: color 0.25s var(--ease-out);
}
.modal__close:hover { color: var(--orange); }
.modal__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.casenav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.casenav__link {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(36px, 6vh, 70px) var(--pad);
  transition: background-color 0.35s var(--ease-out);
}
.casenav__link--next { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.casenav__link:hover { background: var(--paper-2); }
.casenav__dir {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.casenav__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease-out);
}
.casenav__link:hover .casenav__name { color: var(--orange); }

/* contact hero: title + form */
.hero--contact .hero__title { font-size: clamp(56px, 11vw, 180px); margin-bottom: clamp(28px, 5vh, 56px); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: end;
  margin-bottom: clamp(28px, 5vh, 64px);
}
.contact__channels { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact__email { text-align: left; }
.contact__email .cta__email-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-lg);
}
.contact__social { display: flex; gap: 24px; }
.contact__social a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.contact__social a:hover { color: var(--orange); }
@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; align-items: start; }
}

/* form */
.form { display: flex; flex-direction: column; gap: clamp(20px, 2.6vh, 30px); }
.form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 32px);
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.form__input {
  width: 100%;
  font: inherit; color: var(--ink);
  background: none; border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.3s var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.form__input:focus { outline: none; border-bottom-color: var(--orange); }
.form__input:hover { border-bottom-color: var(--ink); }
.form__textarea { resize: vertical; min-height: 96px; }
.form__selectwrap { position: relative; display: block; }
.form__select { cursor: pointer; }
.form__select:invalid { color: var(--ink-soft); }
.form__chevron {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--orange); pointer-events: none;
  font-size: 15px;
}
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--ink-soft); min-height: 1em; }
.form__status.is-ok { color: var(--orange); }
.form__status.is-err { color: var(--ink); }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* prose (about text) */
.prose { max-width: none; }
.prose__lg {
  font-size: var(--text-lg);
  line-height: 1.45;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.prose__gr { margin-top: clamp(56px, 9vh, 100px); }

/* how i work */
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 110px);
  align-items: start;
}
.how__desc {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  max-width: 54ch;
}
.how__list { list-style: none; }
.how__list li {
  position: relative;
  padding: 16px 0 16px 30px;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--line-soft);
}
.how__list li:first-child { border-top: 1px solid var(--line-soft); }
.how__list li::before {
  content: "→"; position: absolute; left: 0; color: var(--orange);
}
@media (max-width: 880px) {
  .how__grid { grid-template-columns: 1fr; }
}

/* principles grid */
.princ__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 72px);
}
.princ__item {
  display: flex; flex-direction: column; gap: 10px;
}
.princ__num {
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.08em; color: var(--orange);
}
.princ__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.01em; line-height: 1.1;
}
.princ__desc {
  color: var(--ink-soft); font-size: var(--text-md); line-height: 1.55;
}
@media (max-width: 1100px) { .princ__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .princ__grid { grid-template-columns: 1fr; } }

.hero__aside {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 6vh, 72px);
}
.hero__lede {
  font-size: var(--text-md);
  color: var(--ink-soft);
}
@media (min-width: 881px) { .hero__lede { max-width: 48%; } }
.hero__actions { display: flex; gap: 14px; }
@media (max-width: 700px) {
  .hero__aside { flex-direction: column; align-items: stretch; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; padding: 16px 18px; white-space: nowrap; }
}

/* buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 34px;
  border-radius: 100px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  isolation: isolate;
}
.btn--sm { padding: 13px 26px; font-size: 13px; }
.btn__txt { position: relative; z-index: 2; transition: color 0.4s var(--ease-out); }
.btn__bg {
  position: absolute; inset: -2px; z-index: 1;
  border-radius: 100px;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
}
.btn:hover .btn__bg { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid .btn__bg { background: var(--orange); }
.btn--solid:hover .btn__txt { color: var(--ink); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost .btn__bg { background: var(--ink); }
.btn--ghost:hover .btn__txt { color: var(--paper); }

.hero__foot {
  display: flex; align-items: center; gap: 32px;
}
.hero__scrollhint {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 20px 0;
}
.hero__scrollline { width: 48px; height: 1px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scrollline::after {
  content: ""; position: absolute; inset: 0;
  background: var(--orange);
  animation: scroll-sweep 1.8s var(--ease-out) infinite;
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.ticker {
  position: relative; z-index: 1;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  border-top: 1px solid var(--line);
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; align-items: center;
  white-space: nowrap; width: max-content;
  padding: 60px 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
}
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-left: clamp(28px, 4vw, 56px); }
.marquee__group .star {
  width: 16px; height: 16px; flex: 0 0 auto;
  background: url("assets/star.svg") no-repeat center / contain;
}
.marquee__group .tool-logo {
  height: 80px; width: auto; flex: 0 0 auto;
  display: block; opacity: 0.8;
}

/* ---------- sections ---------- */
.section { padding: clamp(90px, 14vh, 180px) var(--pad); position: relative; z-index: 1; }
.work.section { padding-bottom: clamp(160px, 18vw, 260px); }

.section__head {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(90px, 14vh, 180px);
}
.section__index {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--orange);
  padding-bottom: 10px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.95; letter-spacing: -0.03em;
  flex: 1;
}
.st-line { display: inline-block; }
.st-outline {
  --stroke-w: clamp(1px, 0.15vw, 2px);
  color: transparent;
  -webkit-text-stroke: var(--stroke-w) var(--ink);
}
.section__head--dark .st-outline { -webkit-text-stroke-color: var(--paper); }

/* ---------- work ---------- */
.work__filters { display: none; gap: 8px; padding-bottom: 10px; }
.chip {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.work__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px) clamp(24px, 3vw, 56px);
}
.work__grid .card:nth-child(even) { transform: translateY(clamp(70px, 12vw, 220px)); }
@media (max-width: 880px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__grid .card:nth-child(even) { transform: none; }
}

.card { position: relative; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-radius: 14px;
}
.card__media img:not(.cover__screen) {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1s var(--ease-expo);
  will-change: transform;
}
.card:hover .card__media img:not(.cover__screen) { transform: scale(1.0); }

/* composite cover: abstract bg + floating screen */
.cover__bg {
  width: 100%; height: 100%; object-fit: cover;
  display: block; will-change: transform;
  transform: scale(1.08) translateY(0%);
}
.cover__screen {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: auto;
  max-height: 85%;
  object-fit: contain;
  object-position: center;
  will-change: transform;
  pointer-events: none;
  scale: 1;
  transition: scale 0.7s var(--ease-expo);
}
/* !important overrides GSAP's inline `scale: none` (it zeroes independent
   transforms to protect its transform-based parallax on the same element) */
.card:hover .cover__screen { scale: 1.08 !important; }
/* disable default card img scaling for the bg only */
.card__media:has(.cover__bg) .cover__bg { transform: none !important; transition: none; }

/* case page composite cover */
.case__media:has(.cover__bg) { aspect-ratio: 16 / 7; }

.card__stat {
  position: absolute; top: 16px; left: 16px;
  background: var(--orange); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px;
}
.card__body { padding-top: 22px; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
}
.card__arrow {
  font-size: clamp(22px, 2.2vw, 30px);
  transition: transform 0.45s var(--ease-expo);
}
.card:hover .card__arrow { transform: translate(8px, -8px) rotate(-45deg); color: var(--orange); }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.card__tags span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 100px;
}
.card__desc { color: var(--ink-soft); font-size: var(--text-md); max-width: 56ch; }

/* ---------- services accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto 60px;
  align-items: center; gap: 20px;
  padding: clamp(24px, 3.4vw, 44px) 0;
  text-align: left;
  transition: padding 0.4s var(--ease-out);
}
.acc__num {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.08em; color: var(--orange);
}
.acc__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 4.2vw, 56px);
  letter-spacing: -0.02em; line-height: 1;
  transition: transform 0.45s var(--ease-expo), color 0.3s;
}
.acc__head:hover .acc__name { transform: translateX(14px); color: var(--orange); }
.acc__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.acc__meta b { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 22px); }
.acc__meta i { font-style: normal; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.acc__icon {
  position: relative; width: 44px; height: 44px; justify-self: end;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease-expo);
}
.acc__icon span {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-expo), background-color 0.35s;
}
.acc__icon span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc__item.is-open .acc__icon span { background: var(--paper); }
.acc__item.is-open .acc__icon span:last-child { transform: translate(-50%, -50%) rotate(0deg); }

.acc__panel { overflow: hidden; height: 0; }
.acc__panel-in {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 28px clamp(56px, 8vw, 140px);
  padding: 6px 0 clamp(32px, 4vw, 56px) 90px;
}
.acc__desc { color: var(--ink-soft); font-size: var(--text-md); max-width: 46ch; }
.acc__list { list-style: none; }
.acc__list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: var(--text-md);
}
.acc__list li::before {
  content: "→"; position: absolute; left: 0; color: var(--orange);
}
.acc__panel-in .btn { grid-column: 1; justify-self: start; }
@media (max-width: 880px) {
  .acc__head { grid-template-columns: 44px 1fr 44px; }
  .acc__meta { display: none; }
  .acc__panel-in { grid-template-columns: 1fr; padding-left: 0; }
}

/* ---------- faq accordion variant ---------- */
.acc--faq .acc__head {
  grid-template-columns: 70px 1fr 60px;
  padding: clamp(18px, 2.2vw, 28px) 0;
}
.acc--faq .acc__name {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(17px, 1.8vw, 24px);
  letter-spacing: 0.01em; line-height: 1.3;
}
.acc--faq .acc__head:hover .acc__name { transform: translateX(10px); }
.acc--faq .acc__icon { width: 36px; height: 36px; }
.acc--faq .acc__icon span { width: 13px; }
.acc--faq .acc__panel-in {
  display: block;
  padding: 2px 0 clamp(24px, 3vw, 40px) 90px;
}
.acc--faq .acc__desc { max-width: 62ch; }
@media (max-width: 880px) {
  .acc--faq .acc__head { grid-template-columns: 36px 1fr 36px; }
  .acc--faq .acc__panel-in { padding-left: 0; }
}

/* ---------- process ---------- */
.process {
  position: relative;
  background: var(--ink); color: var(--paper);
  z-index: 1;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.process__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px, 10vh, 120px) max(var(--pad), calc((100vw - var(--site-max)) / 2 + var(--pad)));
  overflow: hidden;
}
.process .section__head { margin-bottom: clamp(40px, 7vh, 90px); }
.process__progress {
  width: 100%; height: 1px;
  background: rgba(242, 240, 235, 0.18);
  margin-bottom: clamp(40px, 7vh, 80px);
}
.process__progress span { display: block; width: 0%; height: 100%; background: var(--orange); }
.process__track {
  display: flex; gap: clamp(40px, 6vw, 120px);
  width: max-content;
  will-change: transform;
}
.step {
  width: min(78vw, 560px);
  flex: 0 0 auto;
  position: relative;
  padding-top: clamp(60px, 10vh, 110px);
}
.step__num {
  position: absolute; top: -0.18em; left: -0.03em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(120px, 22vh, 230px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.15vw, 2px) rgba(242, 240, 235, 0.25);
  z-index: 0;
}
.step__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.step__desc { position: relative; z-index: 1; color: rgba(242, 240, 235, 0.65); font-size: var(--text-md); max-width: 42ch; }
@media (max-width: 880px) {
  .process__pin { min-height: 0; }
  .process__track { flex-direction: column; width: 100%; }
  .step { width: 100%; }
  .process__progress { display: none; }
}

/* ---------- quotes ---------- */
.quote { max-width: 1100px; margin-bottom: clamp(70px, 10vh, 130px); }
.quote--alt { margin-left: auto; }
.quote:last-child { margin-bottom: 0; }
.quote__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 2.6vw, 34px);
  line-height: 1.35; letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.quote__text .qw { display: inline-block; opacity: 0.14; }
.quote__who { display: flex; align-items: center; gap: 16px; }
.quote__who img { border-radius: 50%; filter: grayscale(1); transition: filter 0.5s; }
.quote:hover .quote__who img { filter: grayscale(0); }
.quote__who span { display: flex; flex-direction: column; }
.quote__who b { font-weight: 600; font-size: 16px; }
.quote__who i { font-style: normal; font-size: var(--text-sm); color: var(--ink-soft); letter-spacing: 0.01em; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(110px, 18vh, 220px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
  z-index: 1;
}
.cta__kicker {
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.cta__big { display: block; }
.cta__row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2.5vw, 40px);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(56px, 13vw, 210px);
  line-height: 1; letter-spacing: 0.015em;
}
.cta__word--o {
  --stroke-w: clamp(1px, 0.15vw, 2px);
  color: transparent; -webkit-text-stroke: var(--stroke-w) var(--ink);
  transition: color 0.45s var(--ease-out);
}
.cta__big:hover .cta__word--o { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.cta__email {
  margin-top: clamp(32px, 5vh, 56px);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.cta__email-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
}
.cta__email:hover .cta__email-text { color: var(--orange); border-color: var(--orange); }
.cta__email-hint {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.03em;
  position: relative; z-index: 1;
}
.footer__social { display: flex; gap: 22px; justify-self: center; }
.footer__top { justify-self: end; }
@media (max-width: 700px) {
  .footer { grid-template-columns: 1fr auto; }
  .footer__social { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}
.footer__social a {
  position: relative;
  font-weight: 500; color: var(--ink);
}
.footer__social a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-expo);
}
.footer__social a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__top {
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 17px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.footer__top:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- reveal helpers ---------- */
.reveal-row { opacity: 0; transform: translateY(18px); }
[data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scrollline::after { animation: none; }
  .hero__title .word { transform: none; }
  .reveal-row, [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { padding-left: 0; }
}
