/* =====================================================================
   Guilherme Novais Tech
   Tokens follow the brand manual (Marca/05-MANUAL DA MARCA):
   Black #1D1D1B · Purple #773DBD · Off White #F8F8F9 · Lime #93D500
   Exo 2 for titles · Inter for running text
   ===================================================================== */

@font-face {
  font-family: 'Exo 2';
  src: url('../fonts/exo2-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../fonts/exo2-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --brand-black: #1d1d1b;
  --brand-purple: #773dbd;
  --brand-offwhite: #f8f8f9;
  --brand-lime: #93d500;

  /* Surfaces (dark-first) */
  --bg: #111110;
  --surface: var(--brand-black);
  --surface-2: #242422;
  --line: rgba(248, 248, 249, 0.09);
  --line-strong: rgba(248, 248, 249, 0.16);

  /* Text */
  --text: var(--brand-offwhite);
  --muted: #a4a4a9;
  --faint: #707075;
  --purple-text: #ac85e6; /* brand purple lifted to pass AA on dark */

  /* Pixel fields: dimmest -> brightest */
  --dot-1: #33244f;
  --dot-2: #54309a;
  --dot-3: #773dbd;
  --dot-4: #b490ec;
  --dot-ink-1: #cdbce9;
  --dot-ink-2: #b896e6;
  --dot-ink-3: #773dbd;
  --dot-ink-4: #4b2386;
  --trail-1: #3d2a63;
  --trail-2: #5c35a6;
  --trail-3: #8150c8;
  --trail-4: #c3a4f2;
  --trail-halo: rgba(248, 248, 249, 0.3);

  /* Type */
  --font-display: 'Exo 2', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --radius: 20px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------- */
/* Base                                                                   */
/* --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
  color-scheme: dark;
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain: barely there, keeps large flat darks from looking digital. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

::selection {
  background: var(--brand-purple);
  color: var(--brand-offwhite);
}

:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-lime);
  color: var(--brand-black);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------- */
/* Type                                                                   */
/* --------------------------------------------------------------------- */

.display,
.title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-size: clamp(3.1rem, 9.6vw, 9.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.display--md {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 0.95;
}

.title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.title--sm {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.accent {
  color: var(--purple-text);
}

.muted {
  color: var(--faint);
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-purple);
}
.section-label span {
  color: var(--faint);
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.6s var(--ease-out),
    background-color 0.3s,
    box-shadow 0.4s var(--ease-out),
    color 0.3s;
  will-change: transform;
}

.btn--sm {
  --h: 44px;
  padding-left: 18px;
  gap: 10px;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--brand-purple);
  color: var(--brand-offwhite);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 30px -12px rgba(119, 61, 189, 0.7);
}
.btn--primary:hover {
  background: #8549d1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px -12px rgba(119, 61, 189, 0.9);
}
.btn--primary:active {
  transform: scale(0.97);
}

.btn--ghost {
  padding: 0 24px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(248, 248, 249, 0.06);
  box-shadow: inset 0 0 0 1px rgba(248, 248, 249, 0.3);
}

.btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--h) - 14px);
  height: calc(var(--h) - 14px);
  border-radius: 50%;
  background: rgba(17, 17, 16, 0.24);
  overflow: hidden;
}
.btn__icon svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}
.btn__icon svg:last-child {
  transform: translate(-150%, 150%);
}
.btn:hover .btn__icon svg:first-child {
  transform: translate(150%, -150%);
}
.btn:hover .btn__icon svg:last-child {
  transform: none;
}

/* --------------------------------------------------------------------- */
/* Header                                                                 */
/* --------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(17, 17, 16, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.logo__symbol {
  width: 34px;
  height: 32px;
  fill: var(--brand-purple);
  transition: transform 0.7s var(--ease-out);
}
.logo:hover .logo__symbol {
  transform: rotate(-8deg) scale(1.06);
}
.logo__word {
  display: grid;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo__word small {
  margin-left: 6px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--purple-text);
  vertical-align: middle;
}

.nav ul {
  display: flex;
  gap: 4px;
}
.nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--brand-purple);
  transform: translate(-50%, 6px) scale(0);
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  transform: translate(-50%, 0) scale(1);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 248, 249, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.5s var(--ease-out);
}
.menu-toggle span:first-child {
  transform: translateY(-4px);
}
.menu-toggle span:last-child {
  transform: translateY(4px);
}
.menu-toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s var(--ease-out),
    visibility 0s 0.4s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu ol {
  display: grid;
}
.mobile-menu li {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease-out);
}
.mobile-menu li a span {
  font-size: 0.8rem;
  color: var(--faint);
}
.mobile-menu.is-open li a {
  transform: none;
}
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-menu__mail {
  color: var(--muted);
}

/* --------------------------------------------------------------------- */
/* Pixel fields                                                           */
/* --------------------------------------------------------------------- */

.field {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.field.is-ready {
  opacity: 1;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(17, 17, 16, 0.92) 0%, rgba(17, 17, 16, 0.55) 40%, transparent 70%),
    linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: calc(var(--header-h) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(56px, 9vh, 96px);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: fit-content;
  color: var(--text);
}
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--brand-lime);
}
.status__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-lime);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

.hero__main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 32px;
}
.hero__title {
  grid-column: 1 / span 8;
  max-width: 9.5ch;
}
.hero__aside {
  grid-column: 9 / -1;
  display: grid;
  gap: 28px;
  padding-bottom: 0.6rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.scroll-cue .label {
  font-size: 0.625rem;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 40px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--brand-purple);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(44px); }
}

/* --------------------------------------------------------------------- */
/* Clients marquee                                                        */
/* --------------------------------------------------------------------- */

.clients {
  border-block: 1px solid var(--line);
}
.clients__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 26px;
}
.clients__label {
  white-space: nowrap;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track li {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__track li::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--dot-2);
}
.marquee__track li:hover {
  color: var(--text);
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------- */
/* Sections                                                               */
/* --------------------------------------------------------------------- */

.section {
  padding-block: clamp(96px, 14vw, 180px);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head > div {
  grid-column: 1 / span 7;
}
.section-head__aside {
  grid-column: 9 / -1;
  color: var(--muted);
  max-width: 38ch;
}

/* About ---------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.about__grid .section-label {
  grid-column: 1 / span 3;
  align-self: start;
  margin-top: 0.7em;
}
.statement {
  grid-column: 4 / -1;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.scrub__word {
  color: rgba(248, 248, 249, 0.18);
  transition: color 0.5s var(--ease-out);
}
.scrub__word.is-lit {
  color: var(--text);
}
.scrub__word.accent.is-lit {
  color: var(--purple-text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 32px 28px 0 0;
}
.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__value small {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--purple-text);
}
.stat dd {
  max-width: 28ch;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Cards ---------------------------------------------------------------- */

.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Spotlight that follows the pointer, inside and on the border. */
.card[data-pointer]::before,
.card[data-pointer]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.card[data-pointer]::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(119, 61, 189, 0.16), transparent 60%);
}
.card[data-pointer]::after {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(180, 144, 236, 0.75), transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.card[data-pointer]:hover::before,
.card[data-pointer]:hover::after {
  opacity: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Services ------------------------------------------------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.7s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px);
}
.service__visual {
  position: relative;
  height: clamp(200px, 19vw, 260px);
  border-bottom: 1px solid var(--line);
}
.service__index {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--faint);
}
.service__body {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1;
  padding: 28px 26px 30px;
}
.service__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.service__body p {
  color: var(--muted);
  font-size: 0.97rem;
}
.service .tags {
  margin-top: 6px;
}

/* Work ----------------------------------------------------------------- */

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 80px) 24px;
}
.project {
  grid-column: span 6;
  display: grid;
  align-content: start;
  gap: 14px;
}
.project--offset {
  margin-top: clamp(0px, 12vw, 160px);
}
.project__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.project__media .field {
  position: absolute;
  inset: 0;
}
.project__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.9s var(--ease-out);
}
.project__media:hover .project__photo,
.project__media:focus-visible .project__photo {
  clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
}
.project__year {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(17, 17, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.65rem;
}
.project__open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-offwhite);
  color: var(--brand-black);
  transform: scale(0.4) rotate(-45deg);
  opacity: 0;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.3s;
}
.project__open svg {
  width: 18px;
  height: 18px;
}
.project__media:hover .project__open,
.project__media:focus-visible .project__open {
  transform: none;
  opacity: 1;
}
.project__meta .label span {
  color: var(--faint);
}
.project__title {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.project--cta {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-top: clamp(16px, 4vw, 48px);
}
.project__media--cta {
  grid-column: 1 / span 5;
  aspect-ratio: 1;
  margin: 0;
}
.project__cta-body {
  grid-column: 7 / -1;
  display: grid;
  justify-items: start;
  gap: 20px;
}
.project__cta-body > p:not(.label) {
  max-width: 40ch;
  color: var(--muted);
}
.project__cta-body .section-label {
  margin-bottom: 0;
}

/* Process (light panel) ------------------------------------------------ */

.process {
  padding-inline: clamp(8px, 1.5vw, 20px);
}
.process__panel {
  --line: rgba(29, 29, 27, 0.1);
  --line-strong: rgba(29, 29, 27, 0.2);
  --text: var(--brand-black);
  --muted: #5b5b60;
  --faint: #8c8c91;
  --purple-text: var(--brand-purple);
  padding-block: clamp(88px, 12vw, 160px);
  border-radius: clamp(20px, 3vw, 36px);
  background: var(--brand-offwhite);
  color: var(--text);
}
.process__panel ::selection {
  color: var(--brand-offwhite);
}
.process__strip {
  aspect-ratio: 4 / 1;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  opacity: 0.42;
  transition: opacity 0.6s var(--ease-out);
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.step.is-active {
  opacity: 1;
}
.step.is-active::before {
  transform: none;
}
.step__num {
  color: var(--brand-purple);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Contact -------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.contact__intro {
  grid-column: 1 / span 6;
  display: grid;
  gap: 28px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.contact__intro .section-label {
  margin-bottom: 0;
}
.contact__channels {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.contact__channels li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.contact__channels svg {
  width: 20px;
  height: 20px;
  color: var(--purple-text);
  flex-shrink: 0;
}
.contact__channels a {
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.contact__channels a:hover {
  background-size: 100% 1px;
}

.form {
  grid-column: 8 / -1;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
}
.field-row {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field-row label,
.field-row legend {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.field-row legend {
  margin-bottom: 10px;
}
.field-row input,
.field-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 1rem;
  transition: box-shadow 0.3s;
}
.field-row textarea {
  resize: vertical;
  min-height: 120px;
}
.field-row input::placeholder,
.field-row textarea::placeholder {
  color: var(--faint);
}
.field-row input:hover,
.field-row textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(248, 248, 249, 0.28);
}
.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--brand-purple),
    0 0 0 4px rgba(119, 61, 189, 0.25);
}
.field-row [aria-invalid='true'] {
  box-shadow: inset 0 0 0 1px #e5484d;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.chip:hover span {
  color: var(--text);
}
.chip input:checked + span {
  background: var(--brand-purple);
  color: var(--brand-offwhite);
  box-shadow: none;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.form__status:empty {
  display: none;
}
.form__status {
  font-size: 0.92rem;
}
.form__status[data-state='ok'] {
  color: var(--brand-lime);
}
.form__status[data-state='error'] {
  color: #ff8a8d;
}
.form__note {
  font-size: 0.8rem;
  color: var(--faint);
}

/* Footer --------------------------------------------------------------- */

.footer {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.footer__nav {
  display: grid;
  align-content: start;
  gap: 14px;
}
.footer__nav ul {
  display: grid;
  gap: 8px;
}
.footer__nav a,
.footer__nav span {
  color: var(--muted);
  transition: color 0.3s;
}
.footer__nav a:hover {
  color: var(--text);
}

/* Giant wordmark, lit by a purple spotlight that follows the pointer. */
.footer__word {
  margin: clamp(64px, 8vw, 120px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11.6vw, 11.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  background:
    radial-gradient(340px circle at var(--mx, -400px) var(--my, -400px), var(--brand-purple), transparent 70%),
    linear-gradient(180deg, #2b2b29, #1a1a19);
  background-attachment: scroll;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  transform: translateY(0.08em);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}
.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__made svg {
  width: 16px;
  height: 15px;
  fill: var(--brand-purple);
}
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__top-link svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
  transition: transform 0.5s var(--ease-out);
}
.footer__top-link:hover {
  color: var(--text);
}
.footer__top-link:hover svg {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* --------------------------------------------------------------------- */
/* Entrance & scroll reveals (only when JS runs and motion is welcome)    */
/* --------------------------------------------------------------------- */

.split__mask {
  display: inline-block;
  margin: -0.08em 0 -0.18em;
  padding: 0.08em 0 0.18em;
  overflow: hidden;
  vertical-align: top;
}
.split__word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .js .split__word {
    transform: translateY(110%);
    transition: transform 1.1s var(--ease-out);
  }
  .js .is-visible .split__word {
    transform: none;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1s var(--ease-out),
      transform 1s var(--ease-out);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .js .service[data-reveal].is-visible:hover {
    transform: translateY(-6px);
  }

  /* Hero choreography: meta, headline (split), then copy and actions. */
  .js #top .hero__meta {
    transition-delay: 0.1s;
  }
  .js #top .lead {
    transition-delay: 0.75s;
  }
  .js #top .hero__actions {
    transition-delay: 0.9s;
  }
  /* Animate the inner row, not the header: a transform on the header would
     become the containing block of the fixed mobile menu. */
  .js .site-header__inner {
    animation: header-in 1s var(--ease-out) 0.1s both;
  }
  @keyframes header-in {
    from { opacity: 0; transform: translateY(-16px); }
  }

  /* Stagger siblings in grids. */
  .js .services__grid > :nth-child(2),
  .js .stats > :nth-child(2) { transition-delay: 0.08s; }
  .js .services__grid > :nth-child(3),
  .js .stats > :nth-child(3) { transition-delay: 0.16s; }
  .js .stats > :nth-child(4) { transition-delay: 0.24s; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee {
    overflow-x: auto;
  }
  .scrub__word {
    color: inherit;
  }
}

/* --------------------------------------------------------------------- */
/* Responsive                                                             */
/* --------------------------------------------------------------------- */

@media (max-height: 760px) {
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 1080px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .services__grid > :last-child {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    padding-top: 40px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
  }
  .nav,
  .site-header__cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  .hero__main,
  .section-head,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero__title,
  .hero__aside,
  .section-head > div,
  .section-head__aside,
  .about__grid .section-label,
  .statement,
  .contact__intro,
  .form {
    grid-column: 1 / -1;
  }
  .hero__inner {
    gap: 32px;
  }
  .hero__aside {
    gap: 22px;
  }
  .section-head {
    gap: 20px;
  }
  .about__grid {
    gap: 8px;
  }
  .contact__intro {
    position: static;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }
  .project,
  .project--cta {
    grid-column: 1 / -1;
  }
  .project--offset {
    margin-top: 0;
  }
  .project--cta {
    grid-template-columns: 1fr;
  }
  .project__media--cta,
  .project__cta-body {
    grid-column: 1 / -1;
  }
  .project__media--cta {
    aspect-ratio: 4 / 3;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__tagline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(17, 17, 16, 0.75) 0%, transparent 26%),
      radial-gradient(140% 60% at 0% 100%, rgba(17, 17, 16, 0.92) 0%, rgba(17, 17, 16, 0.5) 45%, transparent 75%),
      linear-gradient(180deg, transparent 80%, var(--bg) 100%);
  }
  .hero__meta {
    flex-direction: column;
    gap: 14px;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .clients__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clients__label br {
    display: none;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat,
  .stat + .stat {
    padding: 28px 0;
    border-left: 0;
  }
  .stat + .stat {
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(n + 3) {
    padding-top: 28px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .process__strip {
    aspect-ratio: 2 / 1;
  }
  .scroll-cue {
    display: none;
  }
  .form__actions .btn {
    width: 100%;
  }
}
