/* ==========================================================
   Lograr Studious LLC
   ========================================================== */
:root {
  --ink: #0d0b12;
  --plum: #1a1324;
  --plum-2: #251a35;
  --cream: #ece6da;
  --cream-2: #ddd5c6;
  --paper: #f5f1e8;
  --accent: #ff5a1f;
  --violet: #7a4dff;
  --text-dark: #1a1324;
  --text-light: #efe9dd;
  --dim: rgba(239, 233, 221, 0.55);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* pebbled leather texture */
  --pebble: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55) 0 1.4px, transparent 2.2px),
            radial-gradient(circle at 70% 70%, rgba(0,0,0,.09) 0 2.6px, transparent 3.4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.dim { color: var(--dim); }
.accent-word { color: var(--accent); }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .09;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Section surfaces */
.cream {
  background-color: var(--cream);
  background-image: var(--pebble);
  background-size: 9px 9px, 13px 13px;
  color: var(--text-dark);
}
.dark { background: radial-gradient(120% 80% at 50% 0%, var(--plum) 0%, var(--ink) 70%); }
.ink { background: var(--plum); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  color: var(--text-dark);
  transition: color .35s var(--ease);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header.on-dark { color: var(--text-light); }
.logo svg { width: 42px; height: 42px; }
.wordmark {
  font-family: "Archivo Narrow", var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em;
  position: absolute; left: 50%; transform: translateX(-50%);
  transition: opacity .3s;
}
.header.scrolled .wordmark { opacity: 0; pointer-events: none; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: inherit;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.menu-btn span {
  display: block; width: 32px; height: 4px; background: currentColor;
  transform: skewX(-30deg); transition: transform .4s var(--ease), width .4s var(--ease);
}
.menu-btn span:last-child { width: 24px; margin-left: -6px; }
.menu-open .menu-btn span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { width: 32px; margin-left: 0; transform: translateY(-5px) rotate(-45deg); }
.menu-open .header { color: var(--text-light); }
.menu-open .wordmark { opacity: 0; }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 60px) 48px);
  transition: clip-path .8s var(--ease);
  overflow: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 48px); }
.menu-open { overflow: hidden; }
.menu ul { list-style: none; margin: 0; padding: 0; position: relative; }
.menu li { overflow: hidden; }
.menu li a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(44px, 9vw, 120px); font-weight: 900; line-height: 1.02; text-transform: uppercase;
  transform: translateY(110%); transition: transform .7s var(--ease), color .25s;
}
.menu-open .menu li a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .05s; } .menu li:nth-child(3) a { transition-delay: .1s; }
.menu li:nth-child(4) a { transition-delay: .15s; } .menu li:nth-child(5) a { transition-delay: .2s; }
.menu li a:hover { color: var(--accent); }
.menu li a .mono { color: var(--accent); font-size: 13px; }
.menu-bg-word {
  position: absolute; right: -2vw; bottom: -4vw; font-size: 30vw; font-weight: 900; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
}
.menu-foot { margin-top: 48px; color: var(--dim); position: relative; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(0, 1.6fr) 1fr; align-items: end;
  gap: clamp(16px, 3vw, 48px);
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
}
.hero-letters {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: center; pointer-events: none;
}
.hero-letters span {
  font-weight: 900; font-size: 24vw; line-height: .8; text-align: center; letter-spacing: -.04em;
  color: rgba(26, 19, 36, .07);
  transform: translateY(var(--py, 0));
}
.hero-center { position: relative; z-index: 2; align-self: center; display: grid; justify-items: center; gap: 36px; }
.hero-title {
  display: grid; text-align: center; text-transform: uppercase;
  font-weight: 900; font-size: clamp(40px, 6.4vw, 104px); line-height: .9; letter-spacing: -.035em;
}
.device {
  width: min(560px, 100%);
  background: #120d1a; color: #e9e3ff; border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(26,19,36,.55), 0 0 0 8px var(--paper), 0 0 0 9px rgba(26,19,36,.15);
  transform: rotate(-2deg);
  overflow: hidden;
}
.device-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1c1527; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; } .device-bar i:nth-child(3) { background: #28c840; }
.device-bar .mono { margin-left: auto; margin-right: auto; color: rgba(233,227,255,.5); font-size: 10px; letter-spacing: .08em; text-transform: none; }
.code {
  margin: 0; padding: 18px 20px 22px; min-height: 196px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap;
}
.code .k { color: #ff8a5c; } .code .s { color: #9ef0c0; } .code .f { color: #a99bff; } .code .c { color: #6c6380; }
.code .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-side { position: relative; z-index: 2; display: grid; gap: 22px; max-width: 260px; font-size: 15px; line-height: 1.45; }
.hero-right { justify-self: end; }
.mini-card {
  width: 150px; aspect-ratio: 3 / 4; padding: 6px; border-radius: 6px;
  background: linear-gradient(135deg, #ffb36b, var(--accent) 45%, #8a2be2);
  box-shadow: 0 18px 40px -16px rgba(26,19,36,.6);
  transform: rotate(-4deg);
}
.mini-card-inner {
  height: 100%; border-radius: 3px; display: grid; align-content: space-between; padding: 14px 12px;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.25), transparent 50%), linear-gradient(160deg, #2a1d3d, #0d0b12);
  color: var(--text-light);
}
.mini-card-inner strong { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.mini-card-inner .mono { font-size: 9px; color: #ffb36b; }
.signature {
  font-family: "Mrs Saint Delafield", cursive; font-size: clamp(72px, 8vw, 120px); line-height: .7;
  color: var(--accent); transform: rotate(-8deg); padding: 10px 0 18px;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 8px; align-items: center; color: rgba(26,19,36,.6);
}
.scroll-cue span { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -.01em; white-space: nowrap; }
.marquee b { font-size: 22px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Background words ---------- */
.bg-word {
  position: absolute; left: 0; right: 0; top: clamp(70px, 9vh, 110px);
  font-weight: 900; text-transform: uppercase; white-space: nowrap; line-height: .85; letter-spacing: -.04em;
  font-size: clamp(90px, 16vw, 260px); pointer-events: none; user-select: none;
}
.bg-word-fill {
  background: linear-gradient(180deg, rgba(122,77,255,.55), rgba(122,77,255,0) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateX(var(--px, 0));
}
.bg-word-texture {
  text-align: center;
  background-color: #3a2560;
  background-image: radial-gradient(circle at 40% 40%, rgba(255,255,255,.35) 0 1.6px, transparent 2.6px),
                    radial-gradient(circle at 60% 60%, rgba(0,0,0,.6) 0 2.4px, transparent 3.4px);
  background-size: 8px 8px, 12px 12px;
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .8;
}

/* ---------- Work (horizontal) ---------- */
.work { position: relative; height: 420vh; }
.work-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.work-sticky::after { /* yard lines */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30px; opacity: .25;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 56px);
  -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000);
}
.work-track {
  position: absolute; top: 0; bottom: 0; left: 0;
  display: flex; align-items: center; gap: clamp(60px, 9vw, 160px);
  padding: 0 calc(var(--gutter) + 12vw) 0 calc(var(--gutter) + 22vw);
  will-change: transform;
}
.project { position: relative; width: clamp(240px, 24vw, 340px); flex: none; text-align: center; transform: translateY(70px); }
.project.up { transform: translateY(-30px); }
.project h3 { margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--text-light); }
.project p { margin-top: 10px; font-size: 10px; }
.project .num {
  position: absolute; left: 50%; bottom: -120px; transform: translateX(-50%); z-index: -1;
  font-size: 110px; font-weight: 400; color: rgba(255,255,255,.09); letter-spacing: -.02em;
}
.frame {
  aspect-ratio: 3 / 4; padding: 9px; border-radius: 10px;
  background: linear-gradient(140deg, #ffd7a8, var(--c1) 30%, #2b1a40 55%, var(--c1) 80%, #ffd7a8);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 60px -10px color-mix(in srgb, var(--c1) 55%, transparent);
  transform: rotate(var(--r, -3deg));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 80%, 92% 100%, 0 100%);
}
.project:nth-child(even) .frame { --r: 3deg; clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 90%); }
.art {
  position: relative; height: 100%; border-radius: 4px; overflow: hidden; padding: 18px;
  background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--c1) 70%, transparent), transparent),
              radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--c2) 75%, transparent), transparent),
              #120d1a;
}
.art::after { /* sparkle */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px);
  background-size: 23px 31px; opacity: .25; mix-blend-mode: screen;
}
/* dashboard art */
.ui-top { height: 14px; width: 55%; border-radius: 4px; background: rgba(255,255,255,.85); }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.ui-grid i { height: 48px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.ui-chart { position: absolute; left: 18px; right: 18px; bottom: 26px; height: 42%; width: calc(100% - 36px); }
.ui-chart polyline { fill: none; stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
/* phone art */
.art-phone { display: grid; place-items: center; }
.phone { width: 62%; aspect-ratio: 9 / 18; border-radius: 22px; background: #0d0b12; border: 3px solid rgba(255,255,255,.85); padding: 18px 10px 10px; display: grid; gap: 8px; align-content: start; position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 36%; height: 6px; border-radius: 4px; background: rgba(255,255,255,.7); }
.phone-hero { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.phone i { height: 22px; border-radius: 6px; background: rgba(255,255,255,.14); }
/* shop art */
.art-shop { display: grid; gap: 10px; align-content: center; }
.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-row i { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); position: relative; }
.shop-row i::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.shop-cta { height: 30px; border-radius: 99px; background: #fff; margin-top: 6px; }
/* brand art */
.art-brand { display: grid; place-items: center; align-content: center; gap: 30px; }
.brand-mark { position: relative; z-index: 1; width: 52%; aspect-ratio: 1; border-radius: 50% 50% 50% 8px; background: conic-gradient(from 200deg, var(--c1), var(--c2), var(--c1)); box-shadow: 0 0 0 10px rgba(255,255,255,.12); }
.brand-swatches { display: flex; gap: 8px; position: relative; z-index: 1; }
.brand-swatches i { width: 26px; height: 26px; border-radius: 50%; background: var(--c1); }
.brand-swatches i:nth-child(2) { background: var(--c2); } .brand-swatches i:nth-child(3) { background: #fff; } .brand-swatches i:nth-child(4) { background: #0d0b12; border: 1px solid #fff; }
/* terminal art */
.art-terminal { display: grid; align-content: center; gap: 10px; }
.art-terminal .mono { position: relative; z-index: 1; font-size: 11px; letter-spacing: .04em; text-transform: none; color: #fff; background: rgba(13,11,18,.6); padding: 8px 10px; border-radius: 6px; }
.art-terminal .ok { color: #9ef0c0; }

.work-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 60px; height: 2px; background: rgba(255,255,255,.1); }
.work-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Quote ---------- */
.quote {
  position: relative; min-height: 100vh; display: grid; place-content: center; justify-items: center;
  padding: 140px var(--gutter); overflow: hidden; text-align: center;
}
.quote-mark { font-size: 140px; font-weight: 900; line-height: .5; color: rgba(236,230,218,.35); height: 60px; }
.quote-stage { position: relative; }
.quote-text { display: grid; text-transform: uppercase; font-weight: 800; font-size: clamp(48px, 9.4vw, 150px); line-height: .92; letter-spacing: -.03em; color: var(--cream-2); }
.quote-text span { white-space: nowrap; }
.polaroid {
  position: absolute; left: 50%; top: 50%; width: clamp(170px, 19vw, 290px);
  translate: -50% -50%;
  background: var(--paper); padding: 12px 12px 54px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7);
  rotate: -4deg;
}
.polaroid-img {
  aspect-ratio: 4 / 5; display: grid; align-content: end; gap: 6px; padding: 22px; text-align: left; color: #fff;
  background: radial-gradient(70% 50% at 70% 25%, rgba(255,90,31,.85), transparent 70%),
              radial-gradient(70% 60% at 20% 90%, rgba(122,77,255,.8), transparent 70%), #120d1a;
}
.polaroid-img .mono { color: #ffb36b; font-size: 11px; }
.polaroid-img strong { font-size: clamp(26px, 2.6vw, 38px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.quote-sub { position: relative; z-index: 2; max-width: 520px; margin-top: 56px; color: var(--dim); font-size: 16px; }

/* ---------- Services ---------- */
.services { position: relative; padding: 170px var(--gutter) 230px; overflow: hidden; }
.services-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr minmax(0, 1.3fr) 1fr; align-items: end; gap: 40px; min-height: 620px;
}
.services-list { display: flex; gap: 26px; align-items: flex-start; }
.dots { display: grid; gap: 10px; padding-top: 6px; }
.dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.3); transition: height .4s var(--ease), background .3s;
}
.dots button.active { height: 30px; background: #fff; }
.svc-text { max-width: 250px; min-height: 140px; }
.svc-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.svc-text p { color: var(--dim); font-size: 15px; }
.svc-text.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.stack { position: relative; height: 520px; }
.stack .card {
  position: absolute; top: 50%; left: 50%; width: min(70%, 380px); aspect-ratio: 4 / 5;
  background: var(--paper); padding: 12px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
  transition: transform .8s var(--ease), opacity .6s, z-index 0s .3s;
}
.stack .card .card-img {
  height: 100%; display: grid; align-content: space-between; padding: 24px; color: #fff;
  background: radial-gradient(90% 70% at 85% 10%, var(--c1), transparent 65%), radial-gradient(90% 70% at 10% 95%, var(--c2), transparent 70%), #120d1a;
}
.card-img .mono { font-size: 11px; opacity: .8; }
.card-img .glyph { font-size: clamp(70px, 8vw, 120px); font-weight: 900; line-height: .9; letter-spacing: -.05em; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 32px; border-radius: 99px; border: 0; cursor: pointer;
  font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.pill:hover { transform: translateY(-3px); }
.pill-light { background: var(--paper); color: var(--ink); justify-self: end; }
.pill-light:hover { background: var(--accent); }
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-accent:hover { background: var(--paper); }
.tech {
  list-style: none; margin: 80px 0 0; padding: 0; position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px;
}
.tech li { font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); color: rgba(255,255,255,.35); transition: color .3s; }
.tech li:hover { color: var(--text-light); }

/* ---------- Process ---------- */
.process { position: relative; padding: 40px var(--gutter) 120px; }
.slant {
  position: absolute; left: 0; right: 0; top: -159px; height: 160px;
  background: inherit; background-color: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.process-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 70px; }
.process-head h2 { font-size: clamp(44px, 6.6vw, 104px); font-weight: 900; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.process-head em { font-style: normal; color: var(--accent); }
.process-head p { max-width: 380px; justify-self: end; font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps li {
  background: var(--paper); padding: 28px 24px 34px; min-height: 280px;
  display: grid; align-content: space-between; gap: 30px;
  border-top: 4px solid var(--text-dark);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.steps li:hover { transform: translateY(-8px) rotate(-1deg); background: var(--text-dark); color: var(--text-light); }
.steps li .mono { color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 10px; }
.steps p { font-size: 15px; opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; border-top: 1px solid rgba(26,19,36,.2); }
.stats div { padding: 34px 0 0; display: grid; gap: 6px; }
.stats strong { font-size: clamp(56px, 8vw, 120px); font-weight: 900; line-height: .85; letter-spacing: -.05em; }
.stats .mono { font-size: 11px; opacity: .7; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: 220px var(--gutter) 140px; overflow: hidden; }
.contact .bg-word { top: 60px; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.contact h2 { font-size: clamp(40px, 5.6vw, 88px); font-weight: 900; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .mono { font-size: 10px; color: var(--dim); }
.contact-form input, .contact-form textarea {
  width: 100%; font: 500 16px/1.4 var(--display); color: var(--text-light);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: 14px 16px; resize: vertical; transition: border-color .3s, background .3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,90,31,.06); }
.contact-form button { justify-self: start; }
.form-note { grid-column: 1 / -1; color: var(--accent); min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 0 var(--gutter) 30px; overflow: hidden; }
.footer-big {
  font-weight: 900; font-size: 21vw; line-height: .8; letter-spacing: -.05em; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(239,233,221,.18);
  margin: 0 calc(var(--gutter) * -1);
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); color: var(--dim); }
.footer-row a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.device.reveal { transform: translateY(40px) rotate(-2deg); }
.device.reveal.in { transform: rotate(-2deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: start; padding-top: 110px; }
  .hero-center { grid-column: 1 / -1; order: -1; }
  .hero-letters { grid-template-columns: 1fr; }
  .hero-letters span { font-size: 42vw; }
  .services-inner { grid-template-columns: 1fr; min-height: 0; }
  .stack { height: 440px; order: -1; }
  .pill-light { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .process-head { grid-template-columns: 1fr; }
  .process-head p { justify-self: start; }
}
@media (max-width: 640px) {
  .wordmark { font-size: 15px; }
  .logo svg { width: 34px; height: 34px; }
  .header { padding-top: 18px; padding-bottom: 18px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 80px; }
  .hero-right { justify-self: start; }
  .hero-side { max-width: none; }
  .hero-left { grid-template-columns: 110px 1fr; align-items: center; }
  .mini-card { width: 110px; }
  .mini-card-inner strong { font-size: 36px; }
  .code { font-size: 11px; min-height: 170px; }
  /* work becomes a native swipe row */
  .work { height: auto; padding: 150px 0 130px; }
  .work-sticky { position: relative; height: auto; overflow: visible; }
  .work-track { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--gutter) 150px; gap: 40px; transform: none !important; scrollbar-width: none; }
  .work-track::-webkit-scrollbar { display: none; }
  .project, .project.up { transform: none; scroll-snap-align: center; width: 72vw; }
  .work-progress { display: none; }
  .polaroid { position: relative; left: auto; top: auto; translate: none; width: 200px; margin: 36px auto 0; transform: none !important; }
  .quote-text span { white-space: normal; }
  .services { padding-bottom: 200px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
