/*! TOMLAB — tomlab.cloud */
:root {
  --bg: 220 14% 96%;
  --fg: 222 25% 10%;
  --card: 220 14% 94%;
  --muted: 220 10% 91%;
  
  --muted-fg: 220 8% 43%;
  --border: 220 10% 87%;
  --accent: 195 30% 48%;
  
  --accent-strong: 195 30% 38%;
  
  --accent-text: 195 30% 38%;
  --accent-fg: 0 0% 100%;

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.45) 100%);
  --glass-border: rgba(255,255,255,.55);
  --glass-shadow: inset 0 1px rgba(255,255,255,.7), inset 0 -1px rgba(255,255,255,.1),
                  0 8px 32px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);

  --blob-1: rgba(77,153,179,.30);
  --blob-2: rgba(64,117,191,.22);
  --blob-3: rgba(140,120,220,.18);

  --panel-radius: 18px;
  --ease: cubic-bezier(.23, 1, .32, 1);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: 240 10% 4%;
  --fg: 0 0% 96%;
  --card: 240 10% 8%;
  --muted: 240 5% 16%;
  --muted-fg: 240 4% 64%;
  --border: 240 5% 16%;
  --accent: 192 35% 55%;
  --accent-strong: 192 35% 38%;
  --accent-text: 192 35% 55%;

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 50%, rgba(255,255,255,.06) 100%);
  --glass-border: rgba(255,255,255,.12);
  --glass-shadow: inset 0 1px rgba(255,255,255,.15), inset 0 -1px rgba(255,255,255,.03),
                  0 4px 24px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.1);

  --blob-1: rgba(77,153,179,.20);
  --blob-2: rgba(64,117,191,.16);
  --blob-3: rgba(140,120,220,.14);

  color-scheme: dark;
}

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

html {
  
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 5.5rem;
  scroll-padding-block-end: 3rem;
}

body {
  margin: 0;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 3px;
  border-radius: 6px;
}

main[tabindex="-1"]:focus,
main[tabindex="-1"]:focus-visible,
.lab-nav[tabindex="-1"]:focus,
.lab-nav[tabindex="-1"]:focus-visible { outline: none; }

.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;
}

.t-display {
  font-size: clamp(2.5rem, 9.05vw, 6.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .t-display { font-size: clamp(3rem, 5.8vw, 6.75rem); }
}

.t-h2 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.t-h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.t-body {
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 68ch;
  color: hsl(var(--muted-fg));
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .t-body { font-size: 18px; }
}

.t-small {
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--muted-fg));
}

@media (min-width: 640px) {
  .t-small { font-size: 16px; }
}

.t-eyebrow {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

@media (min-width: 768px) {
  .t-eyebrow { font-size: 11px; }
}

.t-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: hsl(var(--accent-text));
  font-variant-numeric: tabular-nums;
}

.shell {
  --recuo: 1.25rem;
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--recuo);
}

@media (min-width: 640px) { .shell { --recuo: 2rem; } }
@media (min-width: 1024px) { .shell { --recuo: 3rem; } }

.bleed {
  grid-column: 1 / -1;
  width: calc(100% + var(--recuo) * 2);
  margin-inline: calc(var(--recuo) * -1);
  max-width: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.grid > * { grid-column: 1 / -1; }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--enxuta { padding-block: clamp(1.75rem, 3vw, 2.5rem); }

.section + .section { border-top: 1px solid hsl(var(--border) / .55); }.stack,
.stack-3,
.stack-5,
.stack-8 { display: flex; flex-direction: column; }
.stack-3 { gap: 0.75rem; }
.stack-5 { gap: 1.25rem; }
.stack-8 { gap: 2rem; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-radius: var(--panel-radius);
}

.blob-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: liquid-float 20s ease-in-out infinite;
}

.blob--reverse { animation: liquid-float-reverse 25s ease-in-out infinite; }
.blob--sm { filter: blur(50px); animation-duration: 15s; }

.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(hsl(var(--fg) / .09) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
}

.blob--1 { width: 42vw; height: 42vw; top: -8vw; left: -6vw; background: var(--blob-1); }
.blob--2 { width: 36vw; height: 36vw; top: 38vh; right: -10vw; background: var(--blob-2); }
.blob--3 { width: 26vw; height: 26vw; bottom: -6vw; left: 22vw; background: var(--blob-3); }

@keyframes liquid-float {
  0%, 100% { transform: translate(0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

@keyframes liquid-float-reverse {
  0%, 100% { transform: translate(0) scale(1); }
  25% { transform: translate(-25px, 20px) scale(.97); }
  50% { transform: translate(20px, -15px) scale(1.04); }
  75% { transform: translate(-10px, -25px) scale(.98); }
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.lab-header[data-scrolled="true"] {
  background: hsl(var(--bg) / .72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: hsl(var(--border));
}

.lab-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.nav-group { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

.brand img { height: 1.5rem; width: auto; max-width: none; }

@media (max-width: 639px) { .brand img { height: 1.25rem; } }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
[data-theme="dark"] .brand .logo-light { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  border-radius: 999px;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}

.nav-link:hover { color: hsl(var(--fg)); background: hsl(var(--fg) / .06); }

@media (max-width: 639px) {
  .lab-nav {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding-block: 0.75rem;
    row-gap: 0.5rem;
  }
  .nav-link { padding-inline: 0.625rem; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--fg));
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .16s var(--ease);
}

.icon-btn:hover { background: hsl(var(--fg) / .06); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 1rem; height: 1rem; stroke-width: 1.7; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.5rem;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn:active { transform: scale(.97); }
.btn svg { width: 0.9rem; height: 0.9rem; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: hsl(var(--fg));
  color: hsl(var(--bg));
}

.btn-primary:hover { box-shadow: 0 8px 28px hsl(var(--fg) / .22); }

.btn-ghost {
  border-color: hsl(var(--fg) / .18);
  color: hsl(var(--fg));
  background: hsl(var(--bg) / .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover { background: hsl(var(--fg) / .06); }

.link-underline {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(var(--fg));
  border-bottom: 1px solid hsl(var(--fg) / .28);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}

.link-underline:hover { border-bottom-color: hsl(var(--fg)); }

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.hero__inner { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  .hero__inner { grid-column: 1 / span 10; }
}

.hero__title {
  margin-top: 1.25rem;
  
  text-wrap: initial;
}

.hero__title em { font-style: normal; }

.hero-highlight { color: inherit; }

.words-on span {
  color: hsl(var(--fg) / .22);
  transition: color .45s var(--ease);
}

.words-on span.is-lit { color: hsl(var(--fg)); }

.hero__lead {
  margin-top: 1.75rem;
  max-width: 52ch;
}

.hero__percurso {
  margin-top: 0.875rem;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: hsl(var(--muted-fg));
}

@media (min-width: 640px) { .hero__percurso { font-size: 14px; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-mounted="true"] .hero-anim { opacity: 1; transform: translateY(0); }
.hero-anim-1 { transition-delay: 120ms; }
.hero-anim-2 { transition-delay: 280ms; }
.hero-anim-3 { transition-delay: 440ms; }

.proof { grid-column: 1 / -1; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem); }

.proof__numeros {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem clamp(1rem, 3vw, 2.5rem);
}

@media (min-width: 720px) {
  .proof__numeros {
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: 1.5rem clamp(2rem, 5vw, 4rem);
  }
}

.proof dt {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof dd { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }

.proof__qualifica {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: hsl(var(--fg));
}

.proof__detalhe {
  font-size: 13.5px;
  line-height: 1.5;
  color: hsl(var(--muted-fg));
  text-wrap: pretty;
}

.proof__metodo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.proof__metodo span {
  padding: 0.375rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

.work-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.work-list { grid-column: 1 / -1; display: grid; gap: 1.5rem; }

@media (min-width: 768px) { .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work-card {
  display: block;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
}

.work-card:hover { transform: translateY(-4px); animation: card-glow 3s ease-in-out infinite; }

@keyframes card-glow {
  0%, 100% { box-shadow: var(--glass-shadow), 0 0 20px rgba(77,153,179,.08), 0 0 60px rgba(64,117,191,.04); }
  50% { box-shadow: var(--glass-shadow), 0 0 30px rgba(77,153,179,.15), 0 0 80px rgba(64,117,191,.08); }
}

.work-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.work-list > li:last-child:nth-child(odd) .work-card__stage {
  aspect-ratio: auto;
  height: clamp(15rem, 24vw, 21rem);
  max-height: none;
}

.work-card__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 26rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% -10%, #1e1f26 0%, #141519 55%, #0d0d10 100%);
  isolation: isolate;
}

.work-card__body { padding: 1.5rem; }

.work-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-fg));
}

.badge--solid {
  background: hsl(var(--accent-strong));
  border-color: transparent;
  color: hsl(var(--accent-fg));
}

.browser {
  width: 84%;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #17171a;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transform: perspective(1400px) rotateX(6deg) rotateY(-9deg) scale(1.02);
  transform-origin: center bottom;
  transition: transform .7s var(--ease);
}

.work-card:hover .browser { transform: perspective(1400px) rotateX(0deg) rotateY(0deg) scale(1.05); }

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.5rem;
  padding-inline: 0.625rem;
  background: linear-gradient(#2a2a2f, #202024);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.browser__lights { display: flex; gap: 0.25rem; }
.browser__lights i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #3f3f46; }
.browser__url {
  flex: 1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #71717a;
  text-align: center;
}

.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d0f; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone-pair { display: flex; gap: 0.75rem; transition: transform .7s var(--ease); }
.work-card:hover .phone-pair { transform: scale(1.04); }

.phone {
  width: 7.5rem;
  border-radius: 1.25rem;
  padding: 0.3rem;
  background: #1b1b1f;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.phone-pair > .phone:first-child { transform: translateY(1rem) rotate(-3deg); }
.phone-pair > .phone:last-child { transform: translateY(-0.5rem) rotate(2deg); }

.phone__screen {
  position: relative;
  aspect-ratio: 414 / 896;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}

.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone__island {
  position: absolute;
  top: 0.375rem; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 0.55rem;
  border-radius: 999px;
  background: #000;
}

.value-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
  border-radius: var(--panel-radius);
  overflow: hidden;
}

@media (min-width: 768px) { .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.value-item {
  background: hsl(var(--bg));
  padding: 2.25rem 2.25rem 2.5rem;
  transition: background-color .4s var(--ease);
}

.value-item:hover { background: hsl(var(--card)); }
.value-item__head { display: flex; align-items: baseline; gap: 0.875rem; }

.marquee {
  grid-column: 1 / -1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
  border-block: 1px solid hsl(var(--border));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate(0); }
  to { transform: translate(-50%); }
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.75rem;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  white-space: nowrap;
}

.tool svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.5;
  color: hsl(var(--accent-text));
}

.about { grid-column: 1 / -1; display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 768px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.about__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.about__lead {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: hsl(var(--fg));
  text-wrap: pretty;
  max-width: 34ch;
}

.about__lead strong { font-weight: 500; }

.about__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

.about .t-display { font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -0.025em; }

@media (min-width: 768px) {
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .about .portrait { max-width: 19rem; }
}

.about .stack-5 { gap: 1.75rem; }

.about .t-display { margin-bottom: 0.375rem; }
.about .t-body { max-width: 56ch; }

.about .hero-meta { gap: 1rem 2.5rem; margin-top: 0.25rem; }

.portrait { overflow: hidden; border-radius: var(--panel-radius); }

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}

.portrait:hover img { filter: grayscale(0); transform: scale(1.03); }

.closing { grid-column: 1 / -1; margin-block: clamp(2rem, 4vw, 3rem); padding: clamp(2rem, 4.5vw, 3.5rem) 1.75rem; text-align: center; }
.closing__lead { margin: 1.5rem auto 0; max-width: 46ch; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2.5rem; }

.cta-breathe { animation: cta-breathe 6s ease-in-out infinite; }

@keyframes cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.cta-breathe:active { animation: none; transform: scale(.97); }

.lab-footer { border-top: 1px solid hsl(var(--border)); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 2rem;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

.page-hero { padding-block: clamp(2.25rem, 5.5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-hero__inner { grid-column: 1 / -1; }

@media (min-width: 1024px) { .page-hero__inner { grid-column: 1 / span 9; } }

.page-hero__lead { margin-top: 1.5rem; max-width: 52ch; }

.section-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.section-head__lead { max-width: 56ch; }

.brand-story__intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 1024px) {
  .brand-story__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.brand-story__column { display: flex; flex-direction: column; gap: 1.25rem; }

.brand-sketches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .brand-sketches {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: stretch;
  }
  .brand-sketch--video { grid-column: 1; grid-row: 1 / -1; }
  .brand-sketches > :not(.brand-sketch--video) { grid-column: 2; }
}

.brand-sketch img,
.brand-sketch video { filter: grayscale(1); }

.brand-sketch {
  position: relative;
  min-width: 0;
  height: clamp(8rem, 11vw, 10.5rem);
  overflow: hidden;
  border-radius: var(--panel-radius);
  border: 1px solid var(--glass-border);
  background: #d8d8d4;
  isolation: isolate;
}

.brand-sketch--video { height: auto; aspect-ratio: 9 / 16; }

@media (min-width: 640px) {
  .brand-sketch--video { height: 100%; aspect-ratio: auto; }
}

.brand-sketch img,
.brand-sketch video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.brand-sketch:hover img { transform: scale(1.03); }
.brand-sketch--wide img { object-position: center; }

.brand-sketch figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.brand-process {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  margin-block: clamp(2.5rem, 6vw, 4rem);
  background: hsl(var(--border));
  border-radius: var(--panel-radius);
  overflow: hidden;
}

@media (min-width: 768px) { .brand-process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.brand-process li { background: hsl(var(--bg)); padding: 2rem 1.75rem; }
.brand-process li > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: hsl(var(--accent-text));
}
.brand-process h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand-process p { margin-top: 0.5rem; font-size: 14px; line-height: 1.55; color: hsl(var(--muted-fg)); }

.brand-showcase {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem 1.5rem;
}

@media (min-width: 1024px) {
  .brand-showcase { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .brand-item--7 { grid-column: span 7; }
  .brand-item--5 { grid-column: span 5; }
  .brand-item--12 { grid-column: span 12; }
  .brand-item--12 .brand-board { height: 25rem; }
  .brand-item--5 .brand-board { height: 27rem; }
}

.brand-item { min-width: 0; }

.brand-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(22rem, 36vw, 27rem);
  border-radius: var(--panel-radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  isolation: isolate;
  background: #111115;
  transition: transform .5s var(--ease);
}

.brand-item:hover .brand-board { transform: translateY(-4px); }

.brand-board__index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, .55);
}

.brand-plane {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
}

.brand-plane img { max-width: 100%; max-height: 72%; object-fit: contain; }

.brand-board--carla .brand-plane--primary { background: #111; }
.brand-board--carla .brand-plane--secondary { background: #fff; }
.brand-board--carla .brand-plane img { width: auto; height: 100%; max-height: none; }

.brand-board--slowtake { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.brand-board--slowtake .brand-plane--primary { background: radial-gradient(circle at 50% 45%, #321326, #0d0b10 70%); }
.brand-board--slowtake .brand-plane--secondary { background: #f5eff2; }
.brand-board--slowtake .brand-plane img { width: 60%; max-height: 68%; }

.brand-board--thiago .brand-plane--primary { background: linear-gradient(145deg, #1b1b1e, #09090b); }
.brand-board--thiago .brand-plane--secondary { background: #fff; }
.brand-board--thiago .brand-plane img { width: 84%; max-height: 70%; }

.brand-item__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 1.125rem;
}

.brand-item__meta h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.brand-item__meta > div > span,
.brand-item__meta p {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

.brand-item__meta > div > span { display: block; margin-top: 0.375rem; }

@media (min-width: 768px) { }

.featured {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .featured { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.featured__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.featured__text .t-body { max-width: 40ch; }

.featured__stage {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.featured__stage .phone { width: clamp(9rem, 17vw, 15rem); }
.featured__stage .phone:first-child { transform: translateY(1.5rem) rotate(-3deg); }
.featured__stage .phone:last-child { transform: translateY(-0.75rem) rotate(2deg); }

.featured:hover .phone:first-child { transform: translateY(1rem) rotate(-2deg); }
.featured:hover .phone:last-child { transform: translateY(-1.25rem) rotate(1deg); }
.featured__stage .phone { transition: transform .6s var(--ease); }

.case-hero { padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(1.25rem, 2.5vw, 2rem); }
.case-hero__inner { grid-column: 1 / -1; }

@media (min-width: 1024px) { .case-hero__inner { grid-column: 1 / span 9; } }

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  transition: color .3s var(--ease);
}

.case-back:hover { color: hsl(var(--fg)); }

.case-title {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.case-intro--secondary { margin-top: 0.875rem; font-size: 14.5px; }

.case-intro {
  margin-top: 1.5rem;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: hsl(var(--muted-fg));
  text-wrap: pretty;
}

.case-intro strong { color: hsl(var(--fg)); font-weight: 500; }.stage-block {
  grid-column: 1 / -1;
  display: flex;
  overflow: hidden;
  border-radius: var(--panel-radius);
  border: 1px solid var(--glass-border);
}

.stage-block { min-height: 22rem; }.stage-block > .stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2.5rem;
  background: radial-gradient(120% 100% at 50% -10%, #1e1f26 0%, #141519 55%, #0d0d10 100%);
  isolation: isolate;
}.stage-block--bare {
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  height: auto;
}.stage-block--bare > .stage {
  background: none;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.stage-block--bare .phone-pair { gap: clamp(1rem, 2vw, 1.75rem); }
.stage-block--bare .phone-pair > .phone { width: clamp(9rem, 17vw, 15rem); }

.stage-pair > .stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.stage-pair .phone-pair { justify-content: center; }
.stage-pair .phone-pair > .phone { width: clamp(6.5rem, 12vw, 10.5rem); }
.stage-pair .logo-loop { width: min(88%, 22rem); justify-self: center; }

@media (max-width: 767px) {
  .stage-pair > .stage { grid-template-columns: minmax(0, 1fr); }
  .stage-pair .phone-pair > .phone { width: clamp(7rem, 30vw, 11rem); }
}

.logo-loop { width: min(60%, 22rem); height: auto; }

.proto-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.figure-caption {
  grid-column: 1 / -1;
  margin-top: 0.875rem;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  text-align: center;
}

.panel {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--panel-radius);
}

.panel--narrow { max-width: 60ch; margin-inline: auto; }

.media-pair {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) { .media-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media-pair .panel { grid-column: auto; }

.plus-list {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
  max-width: 68ch;
}

@media (min-width: 768px) {
  .plus-list--duas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    max-width: none;
  }
}

.plus-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 14px;
  line-height: 1.55;
  color: hsl(var(--muted-fg));
}

.plus-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: hsl(var(--accent-text));
  font-family: var(--mono);
  font-size: 12px;
}

.phone--proto {
  --proto-w: 414px;
  --proto-h: 896px;
  --proto-scale: 1;

  width: fit-content;
  height: fit-content;
  max-width: none;
}

.phone--proto .phone__screen {
  width: calc(var(--proto-w) * var(--proto-scale));
  height: calc(var(--proto-h) * var(--proto-scale));
  aspect-ratio: auto;
}

.phone--proto .phone__screen iframe {
  width: var(--proto-w);
  height: var(--proto-h);
  
  max-width: none;
  border: none;
  transform: scale(var(--proto-scale));
  transform-origin: top left;
}

@media (max-width: 560px) { .phone--proto { --proto-scale: 0.76; } }
@media (max-width: 400px) { .phone--proto { --proto-scale: 0.64; } }

.t-lg { font-size: 18px; line-height: 1.65; }
.t-base { font-size: 16.5px; line-height: 1.65; }
.t-sm { font-size: 15px; line-height: 1.6; color: hsl(var(--muted-fg)); }

@media (min-width: 640px) {
  .t-sm { font-size: 16px; }
}

.prose {
  color: hsl(var(--muted-fg));
  font-size: 18px;
  line-height: 1.75;
  max-width: 68ch;
}

.prose strong,
.t-body strong { color: hsl(var(--fg)); font-weight: 500; }
.prose > * + * { margin-top: 1.25rem; }

.numbered > li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid hsl(var(--border));
}

.numbered > li:last-child { border-bottom: 1px solid hsl(var(--border)); }

.numbered .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: hsl(var(--accent-text));
  font-variant-numeric: tabular-nums;
  padding-top: 0.375rem;
}

.numbered h3 { margin-bottom: 0.5rem; }

.callout {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--panel-radius);
  border-left: 2px solid hsl(var(--accent-text));
  background: hsl(var(--muted) / .5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.divided-list {
  border: 1px solid hsl(var(--border));
  border-radius: var(--panel-radius);
  overflow: hidden;
}

.divided-list > li + li { border-top: 1px solid hsl(var(--border)); }

.timeline > article {
  position: relative;
  padding-left: 1.75rem;
  gap: 0;                      
}

.timeline > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--accent-text));
}

.timeline > article::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.1rem;
  bottom: -2rem;
  width: 1px;
  background: hsl(var(--border));
}

.timeline > article:last-child::after { content: none; }

.timeline > article > .t-h3 { margin-top: 0.5rem; }

.timeline > article > .t-h3:first-child { margin-top: 0; }
.timeline > article > .t-body { margin-top: 0.25rem; }

.timeline .t-body .link-underline {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.timeline .skill-list > li {
  position: relative;
  padding-block: 0.25rem;
  padding-left: 1.15rem;
}

.timeline .skill-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.5rem;
  height: 1px;
  background: hsl(var(--muted-fg) / .55);
}
.timeline > article > .skill-list { margin-top: 0.875rem; }

.divided-list a,
.divided-list .row-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  transition: background-color .3s var(--ease);
}

.divided-list a:hover { background: hsl(var(--fg) / .04); }

.arrow {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}

a:hover > .arrow { transform: translateX(4px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

.skill-list > li {
  padding-block: 0.5rem;
  color: hsl(var(--muted-fg));
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.skill-list > li:hover { color: hsl(var(--fg)); transform: translateX(3px); }

.browser--flat { transform: none; width: 100%; }

.phone--sm {
  width: auto;
  max-width: none;
  height: 86%;
  padding: 0.5rem;
  border-radius: 2.25rem;
}

.macbook {
  width: 84%;
  transform: perspective(1600px) rotateX(8deg) scale(1.01);
  transition: transform .7s var(--ease);
}

.work-card:hover .macbook,
.stage:hover .macbook { transform: perspective(1600px) rotateX(0deg) scale(1.04); }

.macbook__lid {
  position: relative;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.625rem 0.625rem 0.75rem;
  background: linear-gradient(#26262b, #171719);
  border: 1px solid rgba(255, 255, 255, .11);
  border-bottom: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.macbook__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #08080a;
}

.macbook__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.macbook__base {
  position: relative;
  height: 0.75rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: linear-gradient(#1e1e22, #303036 40%, #17171a);
  border: 1px solid rgba(255, 255, 255, .09);
  border-top: none;
}

.macbook__notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18%; height: 0.3125rem;
  border-radius: 0 0 0.375rem 0.375rem;
  background: #111114;
}

.macbook__cam {
  position: absolute;
  top: 0.3125rem; left: 50%;
  transform: translateX(-50%);
  width: 0.25rem; height: 0.25rem;
  border-radius: 999px;
  background: #3d3d44;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--panel-radius);
  overflow: hidden;
}

@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  
  .stat-grid > .stat:first-child { grid-column: 1 / -1; }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: hsl(var(--bg));
  transition: background-color .4s var(--ease);
}

.stat:hover { background: hsl(var(--card)); }

.stat__num {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 13px;
  line-height: 1.45;
  color: hsl(var(--muted-fg));
}

@media (min-width: 720px) {
  
  .stat-grid > .stat:first-child {
    flex-direction: row;
    align-items: baseline;
    gap: 1.25rem;
  }
  
  .stat-grid > .stat:first-child .stat__num { font-size: clamp(3.5rem, 6vw, 5.5rem); }
  .stat-grid > .stat:first-child .stat__label { font-size: 15px; max-width: 22ch; }
}

button.brand-plane {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}

.brand-plane__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.brand-plane__zoom svg { width: 0.875rem; height: 0.875rem; }

.brand-plane:hover .brand-plane__zoom,
.brand-plane:focus-visible .brand-plane__zoom { opacity: 1; transform: scale(1); }

.lightbox {
  width: min(92vw, 68rem);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(4, 5, 7, .82); backdrop-filter: blur(6px); }

.lightbox__stage {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: hsl(var(--muted) / .4);
}

.lightbox__img { max-width: 100%; max-height: 68vh; object-fit: contain; }

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 1.75rem);
  border-top: 1px solid hsl(var(--border));
}

.lightbox__caption {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding-inline: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--fg));
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}

.lightbox__close:hover { background: hsl(var(--fg) / .06); }

@media (min-width: 1024px) {
  
  .section-head,
  .work-head { grid-column: 1 / span 7; }

  .value-list { grid-column: 1 / -1; }

  .closing { grid-column: 1 / -1; }

  .brand-process { grid-column: 1 / -1; }

  .media-pair { grid-column: 2 / -1; }
  .panel--narrow { grid-column: 3 / span 8; }
}

.skip-link {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: hsl(var(--fg));
  color: hsl(var(--bg));
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  
  transform: translateY(calc(-100% - 0.5rem));
  
  opacity: 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.skip-link + .skip-link {
  top: 3.75rem;
  transform: translateY(calc(-100% - 3.75rem));
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee__track, .cta-breathe { animation: none !important; }
  .work-card:hover { animation: none; }
  
  .words-on span { color: hsl(var(--fg)) !important; transition: none !important; }
  .hero-anim, .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

[data-surface="flat"] {
  --bg: 0 0% 100%;
  --fg: 0 0% 0%;
  --card: 0 0% 100%;
  --muted: 0 0% 96%;
  --muted-fg: 0 0% 38%;
  --border: 0 0% 87%;

  --glass-bg: none;
  --glass-border: rgba(0,0,0,.14);
  --glass-shadow: none;
}

[data-surface="flat"][data-theme="dark"] {
  --bg: 0 0% 0%;
  --fg: 0 0% 100%;
  --card: 0 0% 4%;
  --muted: 0 0% 10%;
  --muted-fg: 0 0% 68%;
  --border: 0 0% 20%;

  --glass-bg: none;
  --glass-border: rgba(255,255,255,.18);
  --glass-shadow: none;
}

[data-surface="flat"] .blob-field,
[data-surface="flat"] .dot-grid { display: none; }

[data-surface="flat"] .glass {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
  box-shadow: none;
}[data-surface="flat"] .stage-block > .stage,
[data-surface="flat"] .work-card__stage { background: none; }

[data-surface="flat"] .phone { box-shadow: 0 18px 40px rgba(0,0,0,.55); }
[data-surface="flat"][data-theme="dark"] .phone { box-shadow: none; border-color: rgba(255,255,255,.22); }
