﻿/* =============================================================================
   PixelFlow Studio â€” design system (ispirazione: joy-builder editorial)
   Work Sans + Instrument Serif Â· griglia punti Â· grain Â· bento Â· sezioni dense
   ============================================================================= */

:root {
  --ink: #141210;
  --paper: #f4f1eb;
  --paper-2: #ebe4d8;
  --card: #f0ebe3;
  --muted: #5c574e;
  --line: rgba(20, 18, 16, 0.12);
  --line-strong: rgba(20, 18, 16, 0.2);
  --accent: #1a1917;
  --accent-soft: #3d3a34;
  --wa: #25d366;
  --wa-deep: #128c7e;
  --indigo: #4f46e5;
  --teal: #0d9488;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  --font-sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(20, 18, 16, 0.06);
  --shadow-md: 0 18px 50px rgba(20, 18, 16, 0.1);
  --shadow-lg: 0 28px 80px rgba(20, 18, 16, 0.14);
  --max: 1320px;
  --site-vw: 1vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 18, 16, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.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;
}

.wrap {
  width: min(var(--max), calc(100vw - 2.5rem));
  margin-inline: auto;
  position: relative;
}

.wrap--wide {
  width: min(1480px, calc(100vw - 2rem));
}

/* Grain overlay (da pattern SVG noise) */
.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.16;
  border-radius: inherit;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                    */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.25s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header__inner {
  width: min(var(--max), calc(100vw - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-logo em {
  font-style: italic;
  color: var(--muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-soft);
}
@media (hover: hover) {
  .site-nav a:hover {
    color: var(--ink);
  }
  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}
.site-nav a.is-active {
  color: var(--ink);
}
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, color 0.2s,
    border-color 0.2s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-pill-dark {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
@media (hover: hover) {
  .btn-pill-dark:hover {
    background: var(--ink);
    color: var(--paper);
  }
}

.btn-wa {
  background: linear-gradient(145deg, var(--wa), var(--wa-deep));
  color: #fff;
  border: none;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
}
@media (hover: hover) {
  .btn-wa:hover {
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.42);
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: color-mix(in srgb, var(--paper) 97%, white);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-out);
  z-index: 75;
  border-top: 1px solid var(--line);
}
body.nav-open .nav-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 960px) {
  .nav-drawer {
    display: none;
  }
}

.nav-drawer a {
  display: block;
  padding: 0.95rem 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  color: var(--ink);
}
.nav-drawer a:active {
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
}

.header-cta-desktop {
  display: none;
}
@media (min-width: 960px) {
  .header-cta-desktop {
    display: inline-flex;
  }
}

/* -------------------------------------------------------------------------- */
/* Reveal                                                                    */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Hero editoriale                                                           */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 7vw, 4.5rem);
  overflow: clip;
}

.hero-parallax {
  --hero-scroll: 0;
  pointer-events: none;
  position: absolute;
  inset: -12% -8% auto;
  height: 58%;
  background: radial-gradient(ellipse 70% 80% at 70% 0%, rgba(79, 70, 229, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 30%, rgba(13, 148, 136, 0.09), transparent 50%);
  opacity: calc(0.55 + var(--hero-scroll) * 0.35);
  transform: translateY(calc(var(--hero-scroll) * -18px));
  transition: opacity 0.15s linear;
}

.hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.hide-mobile {
  display: none;
}
@media (min-width: 720px) {
  .hide-mobile {
    display: block;
  }
}

.hero-title {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 11vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-title .line-italic {
  font-style: italic;
  color: var(--muted);
}
.hero-title .line-accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--indigo), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-split {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.hero-lead-serif {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  font-weight: 400;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-aside p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 28rem;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
  width: fit-content;
  transition: border-color 0.2s, gap 0.25s var(--ease-out);
}
@media (hover: hover) {
  .link-underline:hover {
    border-color: var(--ink);
    gap: 0.55rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Marquee                                                                   */
/* -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, white);
  padding: 1.1rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: pf-marquee 48s linear infinite;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  white-space: nowrap;
  align-items: center;
}
.marquee-track.is-paused {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee-item em {
  font-style: italic;
}
.marquee-sep {
  color: var(--muted);
  font-size: 0.75em;
  opacity: 0.55;
}

@keyframes pf-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------------------- */
/* Section headers                                                           */
/* -------------------------------------------------------------------------- */

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-title em {
  font-style: italic;
  color: var(--muted);
}

.section-desc {
  margin: 0;
  max-width: 46rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

/* -------------------------------------------------------------------------- */
/* Bento lavori                                                              */
/* -------------------------------------------------------------------------- */

.work-section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(140px, auto);
}
@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1rem;
  }
}

.bento__cell {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
@media (hover: hover) and (min-width: 900px) {
  .bento__cell[data-tilt]:hover {
    box-shadow: var(--shadow-md);
  }
}

.bento__hero {
  min-height: 280px;
}
@media (min-width: 720px) {
  .bento__hero {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    min-height: 0;
  }
}

.bento__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.4rem;
}
@media (min-width: 720px) {
  .bento__stat {
    grid-column: 5 / span 2;
    grid-row: 1 / span 2;
  }
}

.bento__quote {
  padding: 1.35rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
@media (min-width: 720px) {
  .bento__quote {
    grid-column: 5 / span 2;
    grid-row: 3 / span 1;
  }
}

.bento__project {
  padding: 0;
  min-height: 200px;
}
@media (min-width: 720px) {
  .bento__project {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 0;
  }
}

.bento-diptych {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 260px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .bento-diptych {
    min-height: 100%;
  }
}

.bento-diptych__half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.bento-diptych__half--dark {
  background: radial-gradient(circle at 50% 40%, #1e1e26 0%, #08080c 78%);
}
.bento-diptych__half--light {
  background: linear-gradient(165deg, #eef2f7, #dce4ef);
}
.bento-diptych__half img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bento-diptych__half--light img {
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}
.bento-diptych__half--dark img {
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.65));
}

.bento-diptych__cap {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.bento-diptych__half--dark .bento-diptych__cap {
  color: #fafafa;
}
.bento-diptych__half--light .bento-diptych__cap {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.bento-diptych__cap small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.bento-stat-num {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 4.5rem);
  line-height: 0.95;
}
.bento-stat-caption {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
}
.bento-stat-foot {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.bento-quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
  font-style: italic;
}
.bento-quote-by {
  margin: 0.85rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
}

.bento-proj-inner {
  position: relative;
  height: 100%;
  min-height: 220px;
}
.bento-proj-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
@media (hover: hover) {
  .bento__project:hover .bento-proj-inner img {
    transform: scale(1.05);
  }
}
.bento-proj-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
}
.bento-proj-cap h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #fff;
  mix-blend-mode: difference;
}
.bento-proj-cap p {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  mix-blend-mode: difference;
}

/* -------------------------------------------------------------------------- */
/* Project index list                                                        */
/* -------------------------------------------------------------------------- */

.project-list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  padding: 1.35rem 0.35rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.project-row:first-of-type {
  border-top: none;
}
@media (min-width: 720px) {
  .project-row {
    grid-template-columns: 52px 1fr 160px 64px;
    align-items: center;
    padding: 1.65rem 0.5rem;
  }
}
@media (hover: hover) {
  .project-row:hover {
    background: color-mix(in srgb, var(--card) 80%, transparent);
    padding-left: 0.75rem;
  }
}

.project-row__n {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.project-row__name {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  grid-column: 2 / -1;
}
@media (min-width: 720px) {
  .project-row__name {
    grid-column: auto;
  }
}
@media (hover: hover) {
  .project-row:hover .project-row__name {
    font-style: italic;
  }
}
.project-row__tag {
  font-size: 0.82rem;
  color: var(--muted);
  grid-column: 2 / -1;
}
@media (min-width: 720px) {
  .project-row__tag {
    grid-column: auto;
  }
}
.project-row__year {
  font-size: 0.82rem;
  color: var(--muted);
  display: none;
}
@media (min-width: 720px) {
  .project-row__year {
    display: block;
  }
}
.project-row__arrow {
  justify-self: end;
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease-out);
  grid-column: 2;
  justify-self: start;
}
@media (min-width: 720px) {
  .project-row__arrow {
    grid-column: auto;
    justify-self: end;
  }
}
@media (hover: hover) {
  .project-row:hover .project-row__arrow {
    transform: translate(4px, -4px);
  }
}

/* -------------------------------------------------------------------------- */
/* Services (practice list)                                                  */
/* -------------------------------------------------------------------------- */

.services-band {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, var(--paper));
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.services-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    align-items: start;
  }
}

.service-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-row {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.65rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .service-row {
    grid-template-columns: 52px 1fr;
    align-items: start;
  }
}
.service-row:first-child {
  border-top: none;
  padding-top: 0;
}

.service-row__n {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.service-row h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
}
.service-row p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* About / studio                                                            */
/* -------------------------------------------------------------------------- */

.about-section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.about-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  }
}

.about-visual {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  min-height: 280px;
  background: linear-gradient(145deg, #1a1820, #2a2435 40%, #15141a);
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, rgba(79, 70, 229, 0.35), transparent, rgba(13, 148, 136, 0.3), transparent);
  animation: pf-spin 22s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .about-visual::before {
    animation: none;
    opacity: 0.5;
  }
}
.about-visual__cap {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.75);
  z-index: 1;
}

@keyframes pf-spin {
  to {
    transform: rotate(360deg);
  }
}

.about-copy h2 {
  margin: 0.5rem 0 0;
}
.about-copy .prose {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.stat-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-grid dt {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}
.stat-grid dd {
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Process                                                                   */
/* -------------------------------------------------------------------------- */

.process-section {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white);
}

.process-steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 780px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1.35rem 1.4rem 1.5rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease-out);
}
@media (hover: hover) {
  .process-card:hover {
    border-color: color-mix(in srgb, var(--indigo) 35%, var(--line));
    box-shadow: var(--shadow-sm);
  }
}
.process-card__n {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.process-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.process-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

/* -------------------------------------------------------------------------- */
/* Portfolio chrome strip (live previews)                                  */
/* -------------------------------------------------------------------------- */

.portfolio-band {
  position: relative;
  padding: clamp(3rem, 9vw, 5.75rem) 0;
  background: #06080f;
  color: #cbd5e1;
  overflow: hidden;
}
.portfolio-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 55% at 85% -10%, rgba(99, 102, 241, 0.32), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(45, 212, 191, 0.1), transparent 50%);
  pointer-events: none;
}
.portfolio-band .wrap {
  position: relative;
  z-index: 1;
}
.portfolio-band .section-kicker {
  color: #a5b4fc;
}
.portfolio-band .section-title {
  color: #f8fafc;
}
.portfolio-band .section-desc {
  color: #94a3b8;
}

.grid-portfolio {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin-inline: auto;
  align-items: stretch;
}
@media (min-width: 720px) {
  .grid-portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
@media (hover: hover) and (min-width: 900px) {
  .pf-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.55);
  }
}

.pf-shot {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.pf-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  background: linear-gradient(180deg, #eef2f7, #dfe6f0);
  border-bottom: 1px solid #c8d0dc;
}
.pf-chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pf-chrome-dot:nth-child(1) {
  background: #ff5f57;
}
.pf-chrome-dot:nth-child(2) {
  background: #febc2e;
}
.pf-chrome-dot:nth-child(3) {
  background: #28c840;
}
.pf-chrome-url {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.pf-viewport--brand {
  background: radial-gradient(circle at 50% 42%, #15151c 0%, #050506 75%);
}
.pf-viewport--photo {
  background: linear-gradient(165deg, #eef2f7 0%, #dce4ef 100%);
}

.pf-media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3.5vw, 26px);
}
.pf-media-inner img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.pf-viewport--photo .pf-media-inner img {
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.pf-viewport--brand .pf-media-inner img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65));
}

.pf-body {
  padding: 1.25rem 1.35rem 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: #0f172a;
}
.pf-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.pf-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  flex: 1;
  line-height: 1.55;
  min-height: 4.5em;
}

.pf-link {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s var(--ease-out), color 0.2s;
}
@media (hover: hover) {
  .pf-link:hover {
    gap: 0.55rem;
    color: #3730a3;
  }
}
.pf-link .pf-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .pf-link:hover .pf-arrow {
    transform: translateX(3px);
  }
}

.tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: #f1f5f9;
}

/* -------------------------------------------------------------------------- */
/* Pricing                                                                   */
/* -------------------------------------------------------------------------- */

.price-section {
  padding: clamp(3rem, 7vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}

.price-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(50% - 50vw + 1rem);
  padding: 0 1rem;
}
@media (min-width: 900px) {
  .price-wrap {
    margin: 0;
    padding: 0;
  }
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}
.price-table th,
.price-table td {
  padding: 1.05rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--paper) 60%, var(--card));
}
.price-table .price {
  font-weight: 700;
  color: var(--indigo);
  white-space: nowrap;
}

.price-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 639px) {
  .price-wrap {
    display: none;
  }
  .price-cards {
    display: flex;
  }
}

.price-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1.25rem 1.3rem;
}
.price-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.price-card .amt {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.65rem;
}
.price-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                       */
/* -------------------------------------------------------------------------- */

.faq-section {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 720px;
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0.25rem 1.15rem 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after {
  content: "âˆ’";
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 52rem;
}

/* -------------------------------------------------------------------------- */
/* Contact inverse                                                           */
/* -------------------------------------------------------------------------- */

.contact-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.25rem, 9vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.contact-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(99, 102, 241, 0.2), transparent 55%);
  pointer-events: none;
}
.contact-band .wrap {
  position: relative;
  z-index: 1;
}

.contact-band .section-kicker {
  color: rgba(244, 241, 235, 0.55);
}

.contact-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.contact-title em {
  font-style: italic;
  opacity: 0.85;
}

.contact-split {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 241, 235, 0.14);
}
@media (min-width: 880px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 241, 235, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.45rem 1.5rem 1.55rem;
  backdrop-filter: blur(10px);
}
.contact-form label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.55);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 241, 235, 0.18);
  background: rgba(8, 8, 12, 0.55);
  color: var(--paper);
  font: inherit;
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-hint {
  font-size: 0.82rem;
  color: rgba(244, 241, 235, 0.55);
  margin: -0.25rem 0 1rem;
}

.btn-on-dark {
  width: 100%;
  border: none;
  border-radius: 999px;
  min-height: 48px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(120deg, #6366f1, #4f46e5);
  color: #fff;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
}
.btn-on-dark:hover {
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.45);
}
.btn-on-dark:active {
  transform: scale(0.99);
}

.contact-side h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
}
.contact-side p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(244, 241, 235, 0.72);
}
.contact-side a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}
.contact-side a:hover {
  text-decoration: underline;
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
}

.btn-copy {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 235, 0.25);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-copy:hover {
  border-color: rgba(244, 241, 235, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.btn-copy.is-copied {
  border-color: rgba(52, 211, 153, 0.65);
  color: #6ee7b7;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                    */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(244, 241, 235, 0.1);
  background: #0a0a0f;
  color: rgba(244, 241, 235, 0.55);
  padding: 2.25rem 0 2.5rem;
  font-size: 0.78rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 780px) {
  .site-footer__grid {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

.site-footer a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/* WhatsApp float                                                            */
/* -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--wa), var(--wa-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.42), 0 0 0 3px rgba(244, 241, 235, 0.95);
  z-index: 70;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .wa-float:hover {
    transform: scale(1.06);
  }
}
.wa-float svg {
  width: 28px;
  height: 28px;
}

/* -------------------------------------------------------------------------- */
/* Reduced motion overrides                                                  */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .site-nav a::after {
    transition: none !important;
  }
  .bento__cell,
  .pf-card,
  .wa-float {
    transition: none !important;
  }
  .bento__project:hover .bento-proj-inner img,
  .pf-card:hover {
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Print                                                                     */
/* -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .nav-toggle,
  .nav-drawer,
  .wa-float,
  .marquee {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
