/* ==========================================================================
   GO — Premium Portfolio
   Direção de arte: escuro, editorial, minimalista. Preto + vermelho.
   ========================================================================== */

:root {
  --bg-main: #050505;
  --bg-secondary: #0b0b0b;
  --bg-card: #101010;
  --text: #ffffff;
  --text-secondary: #a5a5a5;
  --text-muted: #6b6b6b;
  --accent: #ffffff;
  --accent-hover: #d4d4d4;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Clash Display", "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --container-max: 1440px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

em {
  font-style: normal;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   Grain overlay — textura sutil sobre o fundo escuro
   ========================================================================== */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Loader
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.04em;
}

.loader-bar-track {
  width: min(280px, 60vw);
  height: 2px;
  background: var(--border);
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s var(--ease);
}

#loader-percent {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* ==========================================================================
   Shared bits
   ========================================================================== */

.dot { color: var(--accent); }

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.section {
  padding: clamp(56px, 7vw, 110px) 0;
  position: relative;
  border-top: 1px solid var(--border);
}

/* No divider where a section fades smoothly into the next via a gradient
   instead of a hard cut (hero → projetos, processo → contato). */
.section-projects,
.section-contact {
  border-top: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-hover), 0 0 32px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-large { padding: 20px 40px; font-size: 1.1rem; margin-top: 40px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ghost svg { transition: transform 0.35s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  --header-alpha: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 32px 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, var(--header-alpha)), rgba(5, 5, 5, 0));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
}

.logo-rest {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0;
  filter: blur(2px);
  transition:
    max-width 1.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.4s ease,
    filter 1.4s ease;
}

.logo-space {
  display: inline-block;
  width: 0;
  overflow: hidden;
  transition: width 1.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-rest {
  max-width: 9em;
  opacity: 1;
  filter: blur(0px);
}

.logo:hover .logo-word:first-child .logo-rest {
  transition-delay: 0s;
}

.logo:hover .logo-word:last-of-type .logo-rest {
  transition-delay: 0.28s;
}

.logo:hover .logo-space {
  width: 0.32em;
  transition-delay: 0.14s;
}

.logo .dot {
  transition: opacity 1s ease, transform 1s ease;
}

.logo:hover .dot {
  opacity: 0;
  transform: translateX(-4px);
}

.main-nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after { width: 100%; }

.btn-header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}

.btn-header-cta:hover {
  border-color: var(--accent);
}

/* Small dot that scales up into a full background fill on hover, while the
   idle label slides out and a second (arrow) label slides in on top. */
.hover-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}

.btn-header-cta:hover .hover-btn-dot {
  transform: scale(40);
}

.hover-btn-label {
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.btn-header-cta:hover .hover-btn-label {
  transform: translateX(16px);
  opacity: 0;
}

.hover-btn-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  opacity: 0;
  transform: translateX(-20px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}

.btn-header-cta:hover .hover-btn-reveal {
  opacity: 1;
  transform: translateX(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #010103;
}

.hero-auralis-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  display: block;
}

.hero-statement {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
}

.word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  font-weight: 600;
}

.availability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-hover);
}

.hero-socials {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-social-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-indicator span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Serviços
   ========================================================================== */

.section-heading-row {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Two-column layout: a normally-scrolling list of services on the left,
   a sticky preview panel on the right that swaps content to match
   whichever item is currently in view — content visibly "arrives" as
   you scroll instead of everything being on-screen at once. */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
  opacity: 0.4;
  filter: blur(1.5px);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}

.service-item:last-child { border-bottom: 1px solid var(--border); }

.service-item.is-active {
  opacity: 1;
  filter: blur(0px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  margin-left: 12px;
  margin-bottom: 16px;
  vertical-align: middle;
}

.service-item h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-item p {
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tags span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 8px 16px;
}

/* Sticky preview — stays pinned within the section's scroll range while
   the list scrolls past beside it. Panels stack in the same spot; app.js
   crossfades between them via .is-active. */
.services-preview {
  position: sticky;
  top: 120px;
  height: 420px;
}

.preview-panel {
  position: absolute;
  inset: 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.preview-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Panel 0 — landing page mockup */
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-url {
  margin-left: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.preview-skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: var(--border-strong);
  margin-bottom: 12px;
}

.preview-skeleton-line.thin { height: 8px; opacity: 0.6; }

.preview-skeleton-pill {
  width: 120px;
  height: 34px;
  border-radius: 100px;
  background: var(--text);
  margin: 20px 0 24px;
}

.preview-image-block {
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.preview-footer {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preview-pagination { display: flex; gap: 6px; }
.preview-pagination i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.preview-pagination i:first-child { background: var(--text); }

/* Panel 1 — ads dashboard mockup */
.preview-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: #6bcf6b; }

.preview-dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.preview-dash-label em { font-style: normal; color: var(--text-muted); margin-left: 6px; font-size: 0.85rem; }
.preview-dash-value { font-family: var(--font-display); font-weight: 600; }

.preview-dash-footer {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Panel 2 — Google Business profile mockup */
.preview-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.preview-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.preview-rating {
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.preview-rating span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: normal;
  margin-left: 8px;
}

.preview-status.open {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
}

.preview-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.preview-profile-row span:first-child { color: var(--text-muted); }

/* ==========================================================================
   Sobre
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.about-content .section-title {
  margin-top: 4px;
  margin-bottom: clamp(24px, 4vw, 32px);
}

.about-text {
  color: var(--text-secondary);
  max-width: 54ch;
}

.about-text + .about-text {
  margin-top: 16px;
}

/* ==========================================================================
   Projetos
   ========================================================================== */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.project-row:nth-child(even) .project-shot { order: 2; }
.project-row:nth-child(even) .project-info { order: 1; }

.project-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.project-row:hover .project-shot img {
  transform: scale(1.03);
}

.project-info h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 16px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.project-tags span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 8px 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.project-link svg { transition: transform 0.35s var(--ease); }

.project-link:hover {
  gap: 14px;
  color: var(--accent-hover);
}

.project-link:hover svg { transform: translateX(4px); }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.view-all-link svg { transition: transform 0.35s var(--ease); }
.view-all-link:hover { color: var(--text); }
.view-all-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Contato
   ========================================================================== */

.section-contact {
  overflow: hidden;
}

.contact-auralis-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--bg-main) 0%,
      rgba(5, 5, 5, 0.5) 14%,
      rgba(5, 5, 5, 0.35) 45%,
      rgba(5, 5, 5, 0.75) 100%
    );
}

.section-contact .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.65fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.contact-title { margin-top: 8px; }

.contact-lede {
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 40ch;
}

.contact-availability { margin-top: 28px; }

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
  overflow: hidden;
}

.contact-info :last-child.contact-row { border-bottom: 1px solid var(--border); }

.contact-info a.contact-row:hover {
  padding-left: 8px;
  color: var(--accent-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent-hover);
}

.contact-value { font-size: 1.05rem; }

/* Quote form */
.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group textarea { resize: vertical; min-height: 44px; }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a5a5a5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select:invalid { color: var(--text-muted); }
.form-group select option { background: var(--bg-secondary); color: var(--text); }

.form-hint {
  margin-top: -6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-submit {
  margin-top: 4px;
  align-self: flex-start;
}

.form-status {
  font-size: 0.95rem;
  color: var(--accent-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo { font-size: 1.2rem; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.footer-socials a { transition: color 0.3s var(--ease); }
.footer-socials a:hover { color: var(--accent-hover); }
.footer-socials span { color: var(--text-muted); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   GSAP reveal base state (JS toggles .is-visible)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
}

[data-reveal="none"] { opacity: 1; }

.reveal-ready[data-reveal] { opacity: 1; } /* fallback if JS fails to load */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16 / 10; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Sticky side-by-side preview only makes sense with room to spare —
     desktop-only; mobile just gets the list. (Also sidesteps a real bug:
     position:static here strips the positioning context those absolute-
     inset .preview-panel children need, so they escaped and floated. */
  .services-layout { grid-template-columns: 1fr; }
  .services-preview { display: none; }
}

@media (max-width: 720px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 96px;
    left: 16px;
    right: 16px;
    z-index: 400;
    padding: 28px 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

  /* The 16:10 crop from the tablet breakpoint cuts off the top/bottom of
     the portrait photo on narrow screens — drop the forced ratio here
     entirely so the image renders at its own natural proportions and
     never crops, no matter the exact source dimensions. */
  .about-image { aspect-ratio: auto; height: auto; max-width: 100%; object-fit: contain; }

  .project-row,
  .project-row:nth-child(even) .project-shot,
  .project-row:nth-child(even) .project-info {
    grid-template-columns: 1fr;
    order: initial;
  }
  .project-row { display: flex; flex-direction: column; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
