:root {
  --bg: #f1ece5;
  --paper: #ffffff;
  --text: #1f1a14;
  --muted: #b08952;
  --accent: #d7a35a;
  --accent-rgb: 215, 163, 90;
  --line: #e0d5c5;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  /* hide scrollbar in Firefox while keeping scroll */
  -ms-overflow-style: none;
  /* hide scrollbar in IE/Edge */
}

body {
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  /* hide scrollbar in WebKit browsers while keeping scroll */
}

main {
  padding-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 12px;
}

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

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

.container {
  width: min(1200px, 96vw);
  margin: 0 auto;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
  z-index: 0;
}

.mobile-splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-splash.show {
  display: flex;
}

.mobile-splash.hide {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.splash-content {
  display: grid;
  gap: 6px;
  justify-items: center;
  animation: splashUp 0.8s ease forwards;
}

.splash-logo {
  height: 72px;
}

.splash-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.6px;
  color: var(--text);
}

@keyframes splashUp {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fdfbf7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-bottom: none;
  padding: 6px 0;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 46px;
  width: auto;
}

.logo.small {
  height: 38px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #26211b;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

#menu-react,
.react-menu-wrapper {
  justify-self: end;
  display: inline-flex;
  align-items: center;
}

.menu {
  position: absolute;
  top: 68px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu.stagger a {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #26211b;
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(6px);
}

.menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu.stagger.open a {
  opacity: 1;
  transform: translateY(0);
}

.menu.stagger.open a:nth-child(1) {
  transition-delay: 60ms;
}

.menu.stagger.open a:nth-child(2) {
  transition-delay: 120ms;
}

.menu.stagger.open a:nth-child(3) {
  transition-delay: 180ms;
}

.menu.stagger.open a:nth-child(4) {
  transition-delay: 240ms;
}

.menu.stagger.open a:nth-child(5) {
  transition-delay: 300ms;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 8;
}

.menu-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.staggered-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.staggered-trigger {
  gap: 10px;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.staggered-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staggered-dot.open {
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.32);
}

.staggered-panel {
  min-width: 220px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 28, 24, 0.12);
  background: radial-gradient(circle at 18% 20%, rgba(var(--accent-rgb), 0.22), transparent 46%),
    rgba(239, 211, 99, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
  padding: 12px;
}

.staggered-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.02);
  font-weight: 600;
}

.staggered-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.32);
}

.staggered-index {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  letter-spacing: 0.6px;
  font-size: 13px;
}

.staggered-label {
  flex: 1;
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.03);
}

.react-menu-wrapper {
  position: relative;
  display: inline-flex;
}

.menu-root {
  position: relative;
}

.menu-toggle-btn {
  position: relative;
  z-index: 8;
}

.menu.stagger {
  min-width: 150px;
  z-index: 8;
}

.hero {
  padding: 80px 0 50px;
}

.hero-full {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: linear-gradient(120deg, rgba(20, 16, 12, 0.58), rgba(20, 16, 12, 0.3)),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1800&q=80&sat=-8") center top/cover no-repeat;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.08), transparent 45%);
}

.hero-full .container {
  position: relative;
  z-index: 1;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 760px;
}

.logo-hero {
  width: clamp(180px, 38vw, 380px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.22));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
}

.hero-visual .frame {
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
  min-height: 460px;
  border: 1px solid var(--line);
}

.hero-full h1 {
  color: var(--accent);
}

.hero-full .lede {
  color: var(--muted);
}

.hero-full .actions {
  justify-content: center;
}

.hero-atelier {
  background: linear-gradient(110deg, rgba(18, 14, 10, 0.78), rgba(18, 14, 10, 0.4)),
    url("foto lavori/shot01.webp") center center/cover no-repeat;
  color: #f6efe4;
  background-attachment: fixed;
}

.hero-atelier::before {
  background: radial-gradient(circle at 40% 30%, rgba(255, 240, 217, 0.12), transparent 46%);
}

.hero-atelier-inner {
  display: grid;
  gap: 14px;
  text-align: center;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-lede {
  color: #f2e8d8;
}

.hero-actions {
  margin-top: 12px;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  max-width: 640px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: var(--text);
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.92));
}

.button.solid {
  background: linear-gradient(120deg, var(--accent), #e5d2b2);
  border-color: var(--accent);
  color: #241b12;
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.32);
}

.button.gold {
  background: linear-gradient(120deg, #d7a35a, #f2cd8b);
  color: #1f1a14;
  border: 1px solid rgba(215, 163, 90, 0.8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.button.ghost.light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f6efe4;
}

.button.outline {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: #7a5930;
}

.button.tiny {
  padding: 10px 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
  justify-content: center;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.25);
  border-color: rgba(var(--accent-rgb), 0.6);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.portfolio {
  padding: 70px 0 40px;
}

.portfolio.highlight {
  background: radial-gradient(circle at 20% 20%, rgba(215, 163, 90, 0.1), transparent 35%),
    radial-gradient(circle at 80% 40%, rgba(60, 43, 25, 0.08), transparent 38%);
}

.portfolio-wrap {
  display: grid;
  gap: 22px;
}

.portfolio-copy {
  max-width: 720px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px 1fr;
}

.project .cover {
  background-size: cover;
  background-position: center;
}

.project-meta {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}

.mosaic-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
  background: #0e0b08;
  min-height: 220px;
}

.mosaic-image {
  position: absolute;
  inset: 0;
}

.mosaic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.mosaic-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 8, 6, 0.82) 75%);
  color: #f6efe4;
  display: grid;
  gap: 6px;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.area-1 {
  grid-area: area-1;
}

.area-2 {
  grid-area: area-2;
}

.area-3 {
  grid-area: area-3;
}

.area-4 {
  grid-area: area-4;
}

.location {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6efe4;
  margin: 0;
}

.studio {
  padding: 70px 0 40px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.studio-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.studio-card {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1);
}

.studio-card h2 {
  margin-bottom: 8px;
}

.studio-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.studio-highlights h4 {
  margin: 0 0 4px;
}

.studio-highlights p {
  margin: 0;
  color: var(--text);
}

.studio-visual {
  margin: 0;
  border-radius: 18px;
  min-height: 420px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.frame.slim {
  border-radius: 20px;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1);
}

.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}

.bullets>div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.services {
  padding: 60px 0 40px;
}

.service-intro {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.service-line {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.08));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.team-grid .pc-card-wrapper {
  margin: 0;
}

.team-grid .pc-card {
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  animation: none;
}

.team-grid .pc-inside {
  background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.22), transparent 42%),
    rgba(255, 255, 255, 0.94);
}

.team-grid .pc-behind,
.team-grid .pc-shine {
  display: none;
}

.team-grid .pc-content:not(.pc-avatar-content) {
  mix-blend-mode: normal;
  color: var(--text);
}

.team-grid .pc-details h3,
.team-grid .pc-details p {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}

.team-grid .pc-status,
.team-grid .pc-handle {
  color: var(--muted);
}

.team-grid .pc-contact-btn {
  border-color: rgba(31, 28, 24, 0.08);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--text);
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .job-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .mosaic-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 180px 190px 190px;
    grid-template-areas:
      "area-1 area-2"
      "area-3 area-2"
      "area-3 area-4";
  }
}

@media (max-width: 900px) {
  .mosaic-grid {
    grid-auto-rows: 200px;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-atelier {
    background-image: linear-gradient(110deg, rgba(18, 14, 10, 0.82), rgba(18, 14, 10, 0.46)),
      url("foto lavori/shot02.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

@media (max-width: 720px) {
  .hero-atelier {
    padding: 100px 0 90px;
    min-height: 80vh;
    background-attachment: scroll;
  }

  .hero-atelier-inner {
    padding-top: 10px;
  }

  .mosaic-grid {
    grid-auto-rows: auto;
  }

  .studio-visual {
    min-height: 320px;
  }
}

.cta {
  padding: 70px 0;
}

.logo-feature {
  padding: 40px 0 60px;
}

.logo-feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.logo-big {
  width: clamp(240px, 42vw, 520px);
  height: auto;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.12));
}

.logo-feature .actions {
  justify-content: center;
}

.cta-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(197, 139, 58, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(197, 139, 58, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form input:focus,
.form textarea:focus {
  outline: 1px solid rgba(197, 139, 58, 0.6);
  box-shadow: 0 0 0 4px rgba(197, 139, 58, 0.14);
}

.job-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.job-form-copy h2 {
  margin: 4px 0 12px;
}

.job-hints {
  margin: 10px 0 0;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.job-hints li+li {
  margin-top: 4px;
}

.job-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.job-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.job-form input,
.job-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: inherit;
}

.job-form input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

.file-label {
  font-size: 12px;
  color: var(--muted);
}

.file-hint {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .job-form-grid {
    grid-template-columns: 1fr;
  }
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.profile-thumb {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 10px;
}

.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.footer-text {
  max-width: 360px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
}

.footer-links strong {
  display: block;
  margin-bottom: 8px;
}

.footer-links a {
  display: block;
  margin: 4px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.chip.muted {
  color: var(--muted);
  background: var(--paper);
}

.chat-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 20;
}

.chat-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--accent), #e8d5b3);
  color: #231c14;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

.chat-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #55bfa0;
  top: 10px;
  right: 10px;
  box-shadow: 0 0 0 6px rgba(85, 191, 160, 0.2);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  max-height: 70vh;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.chat-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.chat-body {
  padding: 12px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  max-height: 320px;
}

.msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  width: fit-content;
  max-width: 90%;
  border: 1px solid var(--line);
}

.msg.bot {
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
}

.msg.user {
  margin-left: auto;
  background: linear-gradient(120deg, var(--accent), #e8d5b3);
  color: #261d14;
  border-color: transparent;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
}

.chat-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
}

.chat-form button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(120deg, var(--accent), #e8d5b3);
  color: #261d14;
  font-weight: 600;
  cursor: pointer;
}

.viewer-3d {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.viewer-canvas {
  width: 100%;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.16), transparent 48%), var(--bg);
}

.viewer-shell {
  position: relative;
}

.viewer-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(246, 242, 236, 0.9), rgba(246, 242, 236, 0.7));
  color: var(--muted);
  font-weight: 600;
  z-index: 2;
}

.viewer-status.error {
  color: #a43c3c;
  background: rgba(164, 60, 60, 0.08);
}

@media (max-width: 1024px) {

  .hero-grid,
  .studio-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
  }

  .project {
    grid-template-rows: 200px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .chat-panel {
    width: min(360px, 92vw);
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-visual .frame {
    min-height: 320px;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-panel {
    right: -4px;
  }
}