/* ================================================
   GiaTech — Enterprise Shopify Agency
   style.css
   ================================================ */

/* ── Design Tokens ── */
:root {
  --c-bg:           #FAFAF9;
  --c-bg-dark:      #092B23;
  --c-bg-dark-2:    #0D4034;
  --c-text:         #1C1917;
  --c-muted:        #78716C;
  --c-text-light:   rgba(255,255,255,0.65);
  --c-accent:       #7AF27A;
  --c-accent-h:     #5ED85E;
  --c-border:       #D6D3D1;
  --c-border-dark:  rgba(255,255,255,0.08);
  --c-white:        #FFFFFF;

  --f-head: 'Lexend', sans-serif;
  --f-body: 'Source Sans 3', sans-serif;

  --t-xs:   clamp(.75rem,  1vw,   .875rem);
  --t-sm:   clamp(.875rem, 1.2vw, 1rem);
  --t-base: clamp(1rem,    1.5vw, 1.125rem);
  --t-lg:   clamp(1.1rem,  1.8vw, 1.25rem);
  --t-xl:   clamp(1.25rem, 2.2vw, 1.5rem);
  --t-2xl:  clamp(1.5rem,  2.8vw, 2rem);
  --t-3xl:  clamp(2rem,    4vw,   2.75rem);
  --t-4xl:  clamp(2.5rem,  5vw,   3.75rem);
  --t-5xl:  clamp(3rem,    7vw,   5.5rem);

  --sp: clamp(80px, 10vw, 160px);
  --cx: clamp(20px, 4vw, 48px);
  --mw: 1280px;

  --ease:      300ms ease;
  --ease-fast: 150ms ease;
  --ease-slow: 600ms cubic-bezier(.16,1,.3,1);

  --r:  6px;
  --rl: 12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageFade .4s ease forwards;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: var(--cx);
}
.section { padding-block: var(--sp); }
.section--dark   { background: var(--c-bg-dark);   color: var(--c-white); }
.section--dark-2 { background: var(--c-bg-dark-2); color: var(--c-white); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: var(--t-5xl); }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-header {
  max-width: 620px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header h2 { font-size: var(--t-3xl); }
.section-header p {
  margin-top: 1rem;
  font-size: var(--t-lg);
  color: var(--c-muted);
  line-height: 1.72;
}
.section--dark .section-header p,
.section--dark-2 .section-header p { color: var(--c-text-light); }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--r);
  font-weight: 600;
  font-size: .9rem;
}
.skip-link:focus { top: 20px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 22px var(--cx);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding var(--ease), background var(--ease),
              backdrop-filter var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  padding: 14px var(--cx);
  background: #092B23;
  border-bottom-color: rgba(122,242,122,.15);
}

.nav__logo {
  flex-shrink: 0;
  line-height: 0;
  transition: opacity var(--ease);
}
.nav__logo-img { height: 38px; width: auto; display: block; }
.nav__logo:hover { opacity: .85; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color var(--ease-fast);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-accent);
  transition: width var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-white); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav--scrolled .nav__link { color: rgba(255,255,255,.7); }
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link.is-active { color: var(--c-white); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--c-accent);
  color: var(--c-bg-dark);
  border-radius: var(--r);
  font-size: .9375rem;
  font-weight: 600;
  transition: background var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
}
.nav__cta:hover {
  background: var(--c-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122,242,122,.3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav--scrolled .nav__toggle span { background: var(--c-white); }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--f-head);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--ease-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg-dark);
}
.btn-primary:hover {
  background: var(--c-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122,242,122,.3);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--c-white);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
}
.btn-dark {
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  background: transparent;
}
.btn-dark:hover {
  border-color: var(--c-text);
  background: var(--c-text);
  color: var(--c-white);
}
.btn-white {
  background: var(--c-white);
  color: var(--c-accent);
}
.btn-white:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.btn--success { background: #16a34a !important; pointer-events: none; }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--c-bg-dark);
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161,98,7,.14), transparent 68%);
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}
.hero__orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161,98,7,.07), transparent 70%);
  left: -100px;
  bottom: -100px;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 820px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp .8s cubic-bezier(.16,1,.3,1) .08s forwards;
}
.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  color: var(--c-white);
  font-size: var(--t-5xl);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp .85s cubic-bezier(.16,1,.3,1) .2s forwards;
}
.hero__title em {
  font-style: normal;
  color: var(--c-accent);
}

.hero__sub {
  font-size: var(--t-lg);
  color: var(--c-text-light);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp .85s cubic-bezier(.16,1,.3,1) .3s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp .85s cubic-bezier(.16,1,.3,1) .4s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  animation: slideUp .8s cubic-bezier(.16,1,.3,1) .62s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

/* ── Logos ── */
.logos {
  padding-block: 48px;
  border-block: 1px solid var(--c-border);
  overflow: hidden;
}
.logos__label {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2rem;
}
.logos__wrapper {
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.logos__track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
  white-space: nowrap;
}
.logos__wrapper:hover .logos__track { animation-play-state: paused; }
.logos__track:nth-child(1) {
  margin-right: 40px;
}
.logos__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 300;
  letter-spacing: -.035em;
  color: #A8A29E;
}
.logos__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.logos__item a {
  color: inherit;
  /* variable-font weight morph on hover */
  transition: color var(--ease), font-weight .35s ease;
}
.logos__item a:hover { color: var(--c-text); font-weight: 500; }

/* ── Stats ── */
.stats { padding-block: clamp(60px, 8vw, 100px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--rl);
  overflow: hidden;
}
.stat {
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
  background: var(--c-bg-dark-2);
  border-right: 1px solid var(--c-border-dark);
  text-align: center;
  transition: background var(--ease);
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(255,255,255,.04); }

.stat__number {
  font-family: var(--f-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--c-white);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
.stat__number .num { display: inline; }
.stat__number .suf { color: var(--c-accent); font-size: .65em; }
.stat__label {
  font-size: var(--t-xs);
  color: var(--c-text-light);
  letter-spacing: .06em;
}

/* ── Services ── */
/* Column count is fixed per breakpoint (4 / 2 / 1) so the separator borders
   below can be written per layout — auto-fit made the count unpredictable and
   the nth-child border removals only matched the 2-column case, leaving
   missing verticals and doubled bottom lines on desktop. */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--c-border);
  border-radius: var(--rl);
  overflow: hidden;
  gap: 0;
}
.svc-card {
  padding: clamp(28px, 4vw, 48px);
  background: var(--c-bg);
  border-right: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: background var(--ease);
}
.svc-card:last-child { border-right: none; }

@media (max-width: 1024px) {
  /* 2×2: verticals between columns, one horizontal between the rows */
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card { border-bottom: 1px solid var(--c-border); }
  .svc-card:nth-child(2n) { border-right: none; }
  .svc-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 640px) {
  /* single column: horizontals only, none after the last card */
  .services__grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; }
  .svc-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-border); }
  .svc-card:last-child { border-bottom: none; }
}

.svc-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.svc-card:hover { background: var(--c-white); }
.svc-card:hover .svc-card__bar { transform: scaleX(1); }

.svc-card__icon {
  width: 44px;
  height: 44px;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.svc-card__num {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: .875rem;
}
.svc-card h3 {
  font-size: var(--t-xl);
  margin-bottom: .875rem;
  line-height: 1.2;
}
.svc-card p {
  color: var(--c-muted);
  font-size: var(--t-sm);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}
.svc-card__link:hover { gap: 10px; }
.svc-card__link svg { transition: transform var(--ease-fast); }
.svc-card__link:hover svg { transform: translateX(2px); }

/* ── Case Study split ── */
.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case-split__copy {
  padding: clamp(48px, 7vw, 100px);
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}
.case-split__visual {
  background: var(--c-bg-dark-2);
  position: relative;
  overflow: hidden;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-split__visual-mock {
  width: 75%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rl);
  position: relative;
  overflow: hidden;
}
.case-split__visual-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(161,98,7,.1), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,.03) 29px);
}
.case-split__visual-bar {
  height: 28px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.case-split__visual-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.case-split__visual-dot:nth-child(1) { background: rgba(239,68,68,.5); }
.case-split__visual-dot:nth-child(2) { background: rgba(234,179,8,.5); }
.case-split__visual-dot:nth-child(3) { background: rgba(34,197,94,.5); }

.case-split__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--c-border-dark);
  border-radius: 40px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  width: fit-content;
}
.case-split__copy h2 { color: var(--c-white); font-size: var(--t-3xl); }
.case-split__copy p { color: var(--c-text-light); font-size: var(--t-base); line-height: 1.72; }

.case-metrics {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border-dark);
}
.case-metric__val {
  font-family: var(--f-head);
  font-size: var(--t-3xl);
  font-weight: 300;
  color: var(--c-accent);
  letter-spacing: -.03em;
  line-height: 1;
}
.case-metric__lbl {
  font-size: .75rem;
  color: var(--c-text-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── CTA Banner ── */
.cta-banner {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--c-accent);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-banner h2 {
  color: var(--c-white);
  font-size: var(--t-4xl);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,.8);
  font-size: var(--t-lg);
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--c-accent);
  color: var(--c-bg-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s;
  box-shadow: 0 6px 20px rgba(9, 43, 35, .35);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-accent-h); }

/* ── Page Hero ── */
.page-hero {
  background: var(--c-bg-dark);
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(161,98,7,.1), transparent);
  pointer-events: none;
}
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--c-white);
  max-width: 760px;
  letter-spacing: -.03em;
}
.page-hero p {
  color: var(--c-text-light);
  font-size: var(--t-lg);
  max-width: 520px;
  margin-top: 1.5rem;
  line-height: 1.72;
}

/* ── Services detail ── */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 100px);
  border-bottom: 1px solid var(--c-border);
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail--flip { direction: rtl; }
.svc-detail--flip > * { direction: ltr; }

.svc-detail__visual {
  aspect-ratio: 4/3;
  border-radius: var(--rl);
  border: 1px solid var(--c-border);
  background: var(--c-bg-dark-2);
  position: relative;
  overflow: hidden;
}
.svc-detail__visual-inner {
  position: absolute;
  inset: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.svc-detail__visual-bar {
  height: 24px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.svc-detail__visual-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.svc-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}
.tag {
  padding: 5px 14px;
  border: 1px solid var(--c-border);
  border-radius: 40px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-muted);
}

/* ── Process ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--rl);
  overflow: hidden;
}
.process-step {
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  border-right: 1px solid var(--c-border);
  position: relative;
  transition: background var(--ease);
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--c-white); }

.process-step__num {
  font-family: var(--f-head);
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--ease);
}
.process-step:hover .process-step__num { color: var(--c-accent); }
.process-step h4 { font-size: var(--t-lg); margin-bottom: .625rem; }
.process-step p { font-size: var(--t-sm); color: var(--c-muted); line-height: 1.65; }

/* ── Portfolio grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.portfolio-card {
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  transition: transform var(--ease), box-shadow var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.09);
}
.portfolio-card__visual {
  aspect-ratio: 1/1;
  background: var(--c-bg-dark-2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center 15%;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.portfolio-card-alternate__img {
  inset: 25px 0 0 0;
  height: calc(100% - 25px);
}
.portfolio-card:hover .portfolio-card__img { transform: scale(1.05); }
.portfolio-card__visual:has(.portfolio-card__img) .portfolio-card__mock { display: none; }
.portfolio-card__mock {
  width: 78%;
  height: 72%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  overflow: hidden;
}
.portfolio-card__mock-bar {
  height: 22px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.portfolio-card__mock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.portfolio-card__mock-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portfolio-card__mock-line {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
}
.portfolio-card__mock-line:nth-child(1) { width: 70%; }
.portfolio-card__mock-line:nth-child(2) { width: 50%; }
.portfolio-card__mock-line:nth-child(3) { width: 85%; }
.portfolio-card__mock-line:nth-child(4) { width: 40%; }

.portfolio-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 40px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.portfolio-card__body { padding: 28px; }
.portfolio-card__client {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .5rem;
}
.portfolio-card h3 { font-size: var(--t-xl); margin-bottom: .75rem; line-height: 1.25; }
.portfolio-card p { font-size: var(--t-sm); color: var(--c-muted); line-height: 1.68; margin-bottom: 1.25rem; }
.portfolio-card__stats { display: none; }
.portfolio-card__stats--hidden {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
}
.pstat__val {
  font-family: var(--f-head);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--c-accent);
}
.pstat__lbl {
  font-size: .75rem;
  color: var(--c-muted);
  margin-top: 2px;
}

/* ── About / Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--c-border-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--rl);
  overflow: hidden;
}
.value-card {
  padding: 36px 32px;
  background: var(--c-bg-dark-2);
  transition: background var(--ease);
}
.value-card:hover { background: rgba(255,255,255,.04); }
.value-card__icon {
  width: 40px;
  height: 40px;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.value-card h3 { font-size: var(--t-xl); color: var(--c-white); margin-bottom: .625rem; }
.value-card p { color: var(--c-text-light); font-size: var(--t-sm); line-height: 1.68; }

/* ── Team grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  transition: transform var(--ease), box-shadow var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.team-card__photo {
  aspect-ratio: 3/4;
  background: var(--c-bg-dark-2);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16%;
}
.team-card__photo-svg {
  width: 52%;
  opacity: .12;
  color: var(--c-white);
}
.team-card__body { padding: 20px 24px 24px; }
.team-card h4 { font-size: var(--t-lg); margin-bottom: 4px; }
.team-card__role { font-size: var(--t-sm); color: var(--c-accent); font-weight: 500; }

/* ── Contact layout ── */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 8vw, 80px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-item__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
}
.contact-info-item__lbl {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.contact-info-item__val { font-size: var(--t-base); font-weight: 500; }

/* ── Form ── */
.form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--rl);
  padding: clamp(28px, 4vw, 48px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group { margin-bottom: 16px; }
.form__group--full { grid-column: 1/-1; }
.form label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.form label .req { color: #dc2626; margin-left: 2px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(161,98,7,.12);
}
.form textarea { resize: vertical; min-height: 130px; }
.form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-size: 1rem;
  justify-content: center;
}

/* ── FAQ ── */
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: color var(--ease-fast);
}
.faq__q:hover { color: var(--c-accent); }
.faq__q svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--c-muted);
  transition: transform var(--ease), color var(--ease);
}
.faq__item.is-open .faq__q svg {
  transform: rotate(45deg);
  color: var(--c-accent);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-slow);
}
.faq__item.is-open .faq__a { max-height: 250px; }
.faq__a p {
  padding-bottom: 22px;
  color: var(--c-muted);
  font-size: var(--t-base);
  line-height: 1.72;
}

/* ── Footer ── */
.footer {
  background: var(--c-bg-dark);
  color: var(--c-white);
  padding-top: 80px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--c-border-dark);
}
.footer__brand {}
.footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.footer__tagline {
  color: var(--c-text-light);
  font-size: var(--t-sm);
  line-height: 1.68;
  max-width: 270px;
  margin-bottom: 1.5rem;
}
.footer__social { display: flex; gap: 10px; }
.footer__social-a {
  width: 36px; height: 36px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  transition: border-color var(--ease-fast), color var(--ease-fast);
}
.footer__social-a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.footer__social-a:nth-child(2),
.footer__social-a:nth-child(3) { display: none !important;}
.footer__col-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__link {
  font-size: var(--t-sm);
  color: var(--c-text-light);
  transition: color var(--ease-fast);
}
.footer__link:hover { color: var(--c-white); }

.footer__bottom {
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer__badges { display: flex; gap: 8px; }
.footer__badge {
  font-size: .7rem;
  padding: 3px 10px;
  border: 1px solid var(--c-border-dark);
  border-radius: 40px;
  color: rgba(255,255,255,.4);
}

/* ── Reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-slow), transform .7s var(--ease-slow);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal-d="1"] { transition-delay: 80ms; }
[data-reveal-d="2"] { transition-delay: 160ms; }
[data-reveal-d="3"] { transition-delay: 240ms; }
[data-reveal-d="4"] { transition-delay: 320ms; }
/* items inside a reveal group stagger by their position (set as --reveal-i in
   JS), all measured from one shared trigger → a clean first-to-last wave */
[data-reveal-group] [data-reveal] { transition-delay: calc(var(--reveal-i, 0) * 110ms); }

/* ── Keyframes ── */
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: .5; transform: scaleY(1) translateY(0); }
  50%      { opacity: 1;  transform: scaleY(.75) translateY(4px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes orbFloat {
  0%,100% { transform: translateY(-50%) scale(1); }
  50%     { transform: translateY(-54%) scale(1.04); }
}

/* ── Blog listing ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.blog-card {
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.09);
}
.blog-card__visual {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__visual-num {
  font-family: var(--f-head);
  font-size: 6rem;
  font-weight: 200;
  color: rgba(255,255,255,.06);
  line-height: 1;
  letter-spacing: -.04em;
  user-select: none;
}
.blog-card__visual--amber  { background: linear-gradient(135deg, #1C1917 0%, #292524 55%, rgba(161,98,7,.25) 100%); }
.blog-card__visual--blue   { background: linear-gradient(135deg, #0d1b2e 0%, #1e3a5f 55%, rgba(59,130,246,.18) 100%); }
.blog-card__visual--teal   { background: linear-gradient(135deg, #051e2a 0%, #0e3d52 55%, rgba(6,182,212,.18) 100%); }
.blog-card__visual--green  { background: linear-gradient(135deg, #081a10 0%, #14532d 55%, rgba(34,197,94,.18) 100%); }
.blog-card__visual--purple { background: linear-gradient(135deg, #150d28 0%, #3b0764 55%, rgba(168,85,247,.18) 100%); }
.blog-card__visual--rose   { background: linear-gradient(135deg, #200d13 0%, #4c0519 55%, rgba(244,63,94,.18) 100%); }

.blog-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 40px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blog-card__read {
  position: absolute;
  bottom: 14px; right: 14px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
}
.blog-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  font-size: .8rem;
  color: var(--c-muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-card__meta-sep { opacity: .4; }
.blog-card h3 {
  font-size: var(--t-xl);
  margin-bottom: .75rem;
  line-height: 1.25;
}
.blog-card p {
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.68;
  margin-bottom: 1.5rem;
  flex: 1;
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}
.blog-card__link:hover { gap: 10px; }
.blog-card__link svg { transition: transform var(--ease-fast); }
.blog-card__link:hover svg { transform: translateX(2px); }

/* ── Article (blog post) ── */
.article-header {
  background: var(--c-bg-dark);
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.article-header__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.article-header__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 0%, rgba(161,98,7,.1), transparent);
  pointer-events: none;
}
.article-header .container { position: relative; z-index: 1; }
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.article-header__cat {
  padding: 4px 14px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 40px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-header__date {
  font-size: .875rem;
  color: var(--c-text-light);
}
.article-header__read {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}
.article-header h1 {
  color: var(--c-white);
  max-width: 820px;
  font-size: var(--t-4xl);
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.article-header__excerpt {
  color: var(--c-text-light);
  font-size: var(--t-lg);
  max-width: 580px;
  line-height: 1.72;
  margin-bottom: 2rem;
}
.article-header__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-header__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-bg-dark-2);
  border: 1.5px solid var(--c-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-header__avatar svg { color: rgba(255,255,255,.4); }
.article-header__author-name { font-weight: 600; color: var(--c-white); font-size: var(--t-sm); line-height: 1.2; }
.article-header__author-role { font-size: .8rem; color: var(--c-text-light); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
  padding-block: clamp(48px, 6vw, 80px);
}
.article-body h2 {
  font-family: var(--f-head);
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
}
.article-body h3 {
  font-family: var(--f-head);
  font-size: var(--t-xl);
  font-weight: 600;
  margin: 2rem 0 .75rem;
}
.article-body p {
  font-size: var(--t-base);
  line-height: 1.82;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}
.article-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.article-body ul li {
  font-size: var(--t-base);
  line-height: 1.72;
  color: var(--c-text);
  padding-left: 1.25rem;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.article-body strong { font-weight: 600; color: var(--c-text); }
.article-body blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(161,98,7,.05);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-body blockquote p {
  font-size: var(--t-lg);
  font-style: italic;
  margin-bottom: 0;
  color: var(--c-text);
}
.highlight-box {
  background: var(--c-bg-dark);
  padding: 2rem;
  border-radius: var(--rl);
  margin: 2rem 0;
}
.highlight-box h3 { color: var(--c-accent) !important; margin-top: 0 !important; }
.highlight-box p { color: var(--c-text-light) !important; margin-bottom: 0 !important; }
.highlight-box ul li { color: var(--c-text-light) !important; }

/* Article sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }
.article-toc {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--rl);
  background: var(--c-bg);
}
.article-toc__title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.article-toc__links { display: flex; flex-direction: column; gap: 2px; }
.article-toc__link {
  font-size: var(--t-sm);
  color: var(--c-muted);
  padding: 5px 10px;
  border-left: 2px solid var(--c-border);
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.article-toc__link:hover { color: var(--c-accent); border-left-color: var(--c-accent); }

.newsletter-box {
  padding: 24px;
  background: var(--c-bg-dark-2);
  border-radius: var(--rl);
}
.newsletter-box h4 { color: var(--c-white); font-size: var(--t-lg); margin-bottom: .5rem; }
.newsletter-box p { color: var(--c-text-light); font-size: var(--t-sm); line-height: 1.65; margin-bottom: 1.25rem; }
.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border-dark);
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
  color: var(--c-white);
  font-size: var(--t-sm);
  margin-bottom: 8px;
  font-family: var(--f-body);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus { outline: none; border-color: var(--c-accent); }
.newsletter-btn {
  width: 100%;
  padding: 10px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--ease-fast);
  font-family: var(--f-head);
}
.newsletter-btn:hover { background: var(--c-accent-h); }

/* Related posts */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog responsive */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-toc { position: static; }
  .article-sidebar { flex-direction: row; flex-wrap: wrap; }
  .article-toc, .newsletter-box { flex: 1 1 280px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-sidebar { flex-direction: column; }
}

/* ── Story (About) ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}
.story-grid__text p {
  font-size: var(--t-lg);
  color: var(--c-muted);
  line-height: 1.75;
}
.story-grid__text p + p { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .story-grid__head h2 { font-size: var(--t-3xl); }
  .story-grid__text {
    position: relative;
    padding-left: 22px;
  }
  .story-grid__text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-accent) 0%, rgba(122, 242, 122, .12) 100%);
  }
  .story-grid__text p { line-height: 1.8; }
}

/* ── Brand flip wall ── */
.brandwall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.brandwall__card {
  position: relative;
  height: clamp(96px, 12vw, 130px);
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--rl);
  overflow: hidden;
  transition: border-color var(--ease);
}
.brandwall__card:hover { border-color: rgba(122, 242, 122, .35); }
.brandwall__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .85);
  /* dissolve: soft blur + scale crossfade between the two text layers */
  opacity: 0;
  filter: blur(6px);
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .7s ease, filter .7s ease, transform .7s ease, color var(--ease);
}
.brandwall__face.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
}
.brandwall__face::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.brandwall__face:hover { color: var(--c-accent); }

@media (max-width: 640px) {
  .brandwall__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brandwall__card { height: 84px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal],
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions, .hero__scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .case-split { grid-template-columns: 1fr; }
  .case-split__visual { min-height: 280px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; gap: 40px; }
  .svc-detail--flip { direction: ltr; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--c-bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    visibility: hidden;
    /* circular reveal growing out of the hamburger button */
    clip-path: circle(0px at calc(100% - 46px) 44px);
    transition: clip-path .5s cubic-bezier(.77, 0, .18, 1), visibility 0s .5s;
    z-index: 999;
  }
  .nav__menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 82% 12%, rgba(122, 242, 122, .10), transparent 42%),
      radial-gradient(circle at 12% 88%, rgba(122, 242, 122, .06), transparent 40%);
    pointer-events: none;
  }
  .nav__menu.is-open {
    visibility: visible;
    clip-path: circle(142vmax at calc(100% - 46px) 44px);
    transition: clip-path .6s cubic-bezier(.77, 0, .18, 1), visibility 0s 0s;
    pointer-events: all;
  }
  .nav__links { flex-direction: column; align-items: center; gap: 1.5rem; }
  /* staggered cascade for menu items */
  .nav__links li,
  .nav__menu .nav__cta {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav__menu.is-open .nav__links li,
  .nav__menu.is-open .nav__cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
  }
  .nav__menu.is-open .nav__links li:nth-child(1) { transition-delay: .22s; }
  .nav__menu.is-open .nav__links li:nth-child(2) { transition-delay: .29s; }
  .nav__menu.is-open .nav__links li:nth-child(3) { transition-delay: .36s; }
  .nav__menu.is-open .nav__links li:nth-child(4) { transition-delay: .43s; }
  .nav__menu.is-open .nav__cta { transition-delay: .52s; }
  .nav__link { font-size: var(--t-2xl); color: var(--c-white) !important; }
  .nav__toggle { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--c-border-dark); }
  .stat:last-child { border-bottom: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--c-border); }
  .process-step:last-child { border-bottom: none; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ================================================
   3D Intro / Brand Reveal  (js/intro.js)
   Shown once per session on first landing.
   ================================================ */

/* NOTE: the overlay's visibility must NOT be gated on .gt-intro-on — that
   class is removed at reveal while the curtain is still lifting, so a
   `.gt-intro-on #gt-intro { display:block }` guard would hide the overlay
   instantly and cut the 1.8s curtain transition to a hard one-frame exit.
   The element only exists while the intro legitimately runs (intro.js creates
   and removes it), so no default-hidden guard is needed. */
/* keep the root scrollbar track visible while scrolling is locked, so the
   layout width doesn't shift ~5px when the curtain releases the lock and
   the scrollbar would otherwise pop back in ("page just reloaded" jolt) */
.gt-intro-on { overflow-y: scroll; }
.gt-intro-on body { overflow: hidden; }

/* ── Intro → page handoff ──
   .gt-intro-session is set (alongside .gt-intro-on) by the head bootstrap and
   never removed: it marks a visit where the intro plays. On such visits the
   hero's per-element entrance animations are skipped entirely — the content
   sits fully settled behind the curtain from the first frame, so nothing
   "appears" or fades in when the curtain opens (that fade-in is exactly what
   reads as "the page is only loading now").
   Cohesion instead comes from one unified motion: the whole hero starts
   slightly zoomed-in and dimmed, and settles/brightens in perfect sync with
   the curtain (identical duration and easing) — a single camera move that
   continues the intro stage's zoom, not a page load.
   Visits without the intro (reduced motion, second view this session) never
   get .gt-intro-session, so they keep the normal slideUp entrance. */
.gt-intro-session .hero__eyebrow,
.gt-intro-session .hero__title,
.gt-intro-session .hero__sub,
.gt-intro-session .hero__actions,
.gt-intro-session .hero__scroll {
  animation: none;
  opacity: 1;
}
.gt-intro-session .hero {
  animation: gtHeroSettle 1.8s cubic-bezier(.55, 0, .15, 1) both;
}
/* held on the first frame while the curtain is up; intro.js removing
   .gt-intro-on at reveal releases it in the same instant the panels move */
.gt-intro-on .hero {
  animation-play-state: paused;
}
@keyframes gtHeroSettle {
  from { transform: scale(1.045); filter: brightness(.85); }
  to   { transform: scale(1);     filter: brightness(1); }
}

#gt-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

/* single-sheet curtain — the whole intro is printed on it, and at reveal it
   lifts bottom-to-top like a theater curtain rising */
.gt-intro__curtain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 120% at 50% 42%, #0D4034 0%, #092B23 55%, #061d18 100%);
  /* shadow under the rising bottom edge so the sheet reads as physically
     passing over the page while it lifts */
  box-shadow: 0 26px 60px rgba(4, 20, 16, .38);
  will-change: transform;
  /* the 3D cube's perspective lives here (not on #gt-intro) because all the
     content is inside the curtain now */
  perspective: 1100px;
  perspective-origin: 50% 42%;
  /* unhurried lift with a gentle start and a long deceleration tail;
     the hero's settle animation uses the identical duration + easing so
     curtain and page move as one */
  transition: transform 1.8s cubic-bezier(.55, 0, .15, 1);
}
#gt-intro.is-leaving .gt-intro__curtain { transform: translateY(-101%); }

/* soft accent glow behind the mark */
.gt-intro__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(122,242,122,.16) 0%, rgba(122,242,122,0) 62%);
  opacity: 0;
  animation: gtGlow 2.6s ease forwards .35s;
  pointer-events: none;
}
@keyframes gtGlow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  60%  { opacity: 1; }
  100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
}

/* centered content, printed on the curtain — it rides up with the sheet at
   reveal, so its exit is just a soft fade while the curtain provides motion */
.gt-intro__stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 40px);
  transform-style: preserve-3d;
  transition: opacity 1s ease;
}
#gt-intro.is-leaving .gt-intro__stage {
  opacity: 0;
}

/* ── 3D cube ── */
.gt-scene {
  width: clamp(96px, 22vw, 150px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
}
.gt-cube-orbit {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* backwards fill holds the sway's from-pose during its 1.9s delay,
     otherwise the orbit snaps 0° → -9° the instant the delay elapses */
  animation: gtIdle 8s ease-in-out 1.9s infinite alternate backwards;
}
.gt-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(-460px) rotateY(-170deg) rotateX(-34deg) scale(.6);
  opacity: 0;
  will-change: transform, opacity;
  animation: gtTumble 1.9s cubic-bezier(.16, 1, .3, 1) forwards .1s;
}
@keyframes gtTumble {
  0%   { opacity: 0; transform: translateZ(-460px) rotateY(-170deg) rotateX(-34deg) scale(.6); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: translateZ(0) rotateY(-26deg) rotateX(-18deg) scale(1); }
}
@keyframes gtIdle {
  0%   { transform: rotateY(-9deg) rotateX(-1deg); }
  100% { transform: rotateY(9deg)  rotateX(2deg); }
}

.gt-cube__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(150deg, #0F4A3C 0%, #0A3025 100%);
  box-shadow: inset 0 0 0 1px rgba(122,242,122,.18);
  backface-visibility: visible;
}
.gt-cube__face .gt-intro__icon { width: 78%; height: 78%; }
/* half the cube edge = translateZ distance; scene is square so use its side */
.gt-cube__face--front  { transform: rotateY(  0deg) translateZ(var(--half)); }
.gt-cube__face--back   { transform: rotateY(180deg) translateZ(var(--half)); }
.gt-cube__face--right  { transform: rotateY( 90deg) translateZ(var(--half)); }
.gt-cube__face--left   { transform: rotateY(-90deg) translateZ(var(--half)); }
.gt-cube__face--top    { transform: rotateX( 90deg) translateZ(var(--half)); }
.gt-cube__face--bottom { transform: rotateX(-90deg) translateZ(var(--half)); }
.gt-scene { --half: clamp(48px, 11vw, 75px); }

/* ── wordmark — same site font (Lexend), no shadow ── */
.gt-word {
  display: flex;
  max-width: 96vw;
  font-family: var(--f-head);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  color: #fff;
}
/* letters start scattered (per-letter --dx/--dy/--rot set in JS) and
   converge to their centered position */
.gt-word__l {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0) rotate(var(--rot, 0)) scale(.35);
  animation: gtLetter .85s cubic-bezier(.2, .75, .25, 1) forwards;
  animation-delay: calc(.55s + var(--i) * .04s);
}
@keyframes gtLetter {
  0%   { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, 0), 0) rotate(var(--rot, 0)) scale(.35); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

.gt-tagline {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: clamp(.6rem, 1.6vw, .78rem);
  color: var(--c-accent);
  padding-left: .38em;
  opacity: 0;
  transform: translateY(8px);
  animation: gtFadeUp .7s ease forwards 1.5s;
}
@keyframes gtFadeUp {
  to { opacity: .9; transform: translateY(0); }
}

/* skip button */
.gt-intro__skip {
  position: absolute;
  top: clamp(18px, 4vh, 34px);
  right: clamp(18px, 4vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  font-family: var(--f-body);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  opacity: 0;
  animation: gtFadeUp .6s ease forwards 1s;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.gt-intro__skip:hover {
  color: #fff;
  border-color: rgba(122,242,122,.5);
  background: rgba(122,242,122,.08);
}

@media (prefers-reduced-motion: reduce) {
  #gt-intro { display: none !important; }
  .gt-intro-on body { overflow: auto; }
}
