/* ==========================================================================
   Varenne Digital — stylesheet
   Liquid glass: refractive, light-catching panels floating over drifting colour.
   ========================================================================== */

:root {
  --bg: #0a0b0e;
  --bg-alt: rgba(255, 255, 255, 0.02);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --lg-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025) 42%, rgba(255, 255, 255, 0.05));
  --lg-fill-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.08));
  --lg-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.2));
  --lg-specular: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 22px rgba(255, 255, 255, 0.035);
  --lg-backdrop: blur(14px) saturate(180%) brightness(1.08);
  --blur: 22px;
  --gold: #c9a86a;
  --gold-rgb: 201, 168, 106;
  --text: #f3f2ef;
  --text-muted: rgba(243, 242, 239, 0.6);
  --text-faint: rgba(243, 242, 239, 0.36);
  --max-width: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1100px 700px at 12% -6%, rgba(var(--gold-rgb), 0.09), transparent 60%),
    radial-gradient(900px 700px at 96% 8%, rgba(110, 140, 190, 0.09), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #0a0b0e;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border-strong);
  border-radius: 8px;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ------------------------------- Liquid glass ------------------------------ */
/* Shared liquid-glass treatment for header, panels and cards: a translucent
   gradient fill, a specular top edge, a light-catching rim (::after) and, in
   browsers that support it, real refraction of what sits behind (.lg-refract). */

.glass {
  position: relative;
  background: var(--lg-fill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  backdrop-filter: var(--lg-backdrop);
  -webkit-backdrop-filter: var(--lg-backdrop);
  box-shadow: var(--lg-specular), 0 10px 40px rgba(0, 0, 0, 0.35);
}

.glass::after,
.btn:not(.btn-primary)::after,
.lang-switch::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--lg-rim);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Colour drifting behind the glass, so there is something to refract.
   Injected by initLiquidGlass() in js/script.js. */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.liquid-bg span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  will-change: transform;
}

.liquid-bg span:nth-child(1) {
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.20), transparent 65%);
  animation: lg-drift-1 38s ease-in-out infinite alternate;
}

.liquid-bg span:nth-child(2) {
  top: 10vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(110, 140, 200, 0.18), transparent 65%);
  animation: lg-drift-2 46s ease-in-out infinite alternate;
}

.liquid-bg span:nth-child(3) {
  bottom: -30vmax;
  left: 20vmax;
  background: radial-gradient(circle, rgba(170, 110, 160, 0.12), transparent 65%);
  animation: lg-drift-3 52s ease-in-out infinite alternate;
}

@keyframes lg-drift-1 { to { transform: translate(30vw, 25vh) scale(1.15); } }
@keyframes lg-drift-2 { to { transform: translate(-35vw, 30vh) scale(0.9); } }
@keyframes lg-drift-3 { to { transform: translate(-20vw, -40vh) scale(1.1); } }

/* Real refraction (Chromium only): SVG displacement applied to the backdrop. */
.lg-refract .site-header,
.lg-refract .btn:not(.btn-primary),
.lg-refract .lang-switch,
.lg-refract .back-to-top {
  backdrop-filter: url(#liquid-glass) var(--lg-backdrop);
  -webkit-backdrop-filter: url(#liquid-glass) var(--lg-backdrop);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.section-heading h2 {
  font-size: 32px;
}

.section-heading p {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ----------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  background: var(--lg-fill);
  backdrop-filter: var(--lg-backdrop);
  -webkit-backdrop-filter: var(--lg-backdrop);
  box-shadow: var(--lg-specular), 0 6px 20px rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover {
  border-color: var(--glass-border-strong);
  background: var(--lg-fill-hover);
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, #e4c993, var(--gold) 55%, #b8955a);
  border-color: var(--gold);
  color: #14120c;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(var(--gold-rgb), 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #efd7a8, #dcc08a 55%, #c4a266);
  border-color: #dcc08a;
  color: #14120c;
}

/* ------------------------------ Header ----------------------------------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max-width);
  z-index: 100;
  border-radius: var(--radius-pill);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 12px 0 24px;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo span {
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s var(--ease);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
  display: flex;
  background: var(--lg-fill);
  box-shadow: var(--lg-specular);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}

.lang-switch a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--text);
  background: var(--glass-hover);
}

.lang-switch svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.header-cta {
  padding: 10px 22px;
  font-size: 11.5px;
}

/* ------------------------------- Hero ------------------------------------ */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 80px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-meta strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-meta span {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --------------------------- Section generic ------------------------------ */

section {
  padding: 110px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

/* ------------------------------ Intro text -------------------------------- */

.intro-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
}

.intro-block h2 {
  font-size: 32px;
}

.intro-block .body-text {
  color: var(--text-muted);
  font-size: 16px;
}

.intro-block .body-text p + p {
  margin-top: 16px;
}

/* --------------------------------- Spotlight glow --------------------------- */
/* Glass panels light up along the border where the cursor is. */

.card,
.work-item,
.team-card,
.contact-panel {
  position: relative;
  isolation: isolate;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card::before,
.work-item::before,
.team-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), 0.9), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover,
.work-item:hover,
.team-card:hover,
.contact-panel:hover {
  background: var(--lg-fill-hover);
  transform: translateY(-2px);
}

.card:hover::before,
.work-item:hover::before,
.team-card:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

/* --------------------------------- Grid cards ------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.section-actions {
  margin-top: 40px;
  text-align: center;
}

.card {
  padding: 36px 32px;
}

.card .index {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* --------------------------------- Process -------------------------------- */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr;
  gap: 32px;
  padding: 28px 24px;
  align-items: start;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s var(--ease);
}

.process-item:hover {
  background: var(--glass);
}

.process-item .num {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.process-item h3 {
  font-size: 20px;
}

.process-item p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ------------------------------ Work / gallery ----------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-item {
  padding: 40px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-item .tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.work-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.work-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 420px;
}

/* -------------------------------- Team ------------------------------------ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  padding: 28px;
}

.team-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.team-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --------------------------------- CTA ------------------------------------- */

.cta-band {
  padding: 90px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 38px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-band p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: -16px auto 32px;
}

/* -------------------------------- Contact page ------------------------------ */

.contact-grid {
  max-width: 820px;
  margin: 0 auto;
}

.contact-panel {
  padding: 48px;
}

.contact-panel h2 {
  font-size: 26px;
  margin-bottom: 22px;
}

.contact-panel .panel-intro {
  color: var(--text-muted);
  font-size: 15px;
  margin: -8px 0 28px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--glass-hover);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 16px;
}

.form-success {
  display: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--gold);
}

.form-success.visible,
.form-error.visible {
  display: block;
}

.form-error {
  display: none;
  border: 1px solid #b5544a;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 13.5px;
  color: #d9756a;
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.field-consent label {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.field-consent a,
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-consent.is-invalid label {
  color: #d9756a;
}

/* Campo trappola anti-spam: nascosto agli utenti, compilato solo dai bot */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ------------------------------ Privacy policy ------------------------------ */

.legal {
  max-width: 760px;
}

.legal .legal-meta {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.legal h2 {
  font-size: 22px;
  margin: 44px 0 14px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------- Footer ----------------------------------- */

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  max-width: 260px;
  margin-top: 10px;
}

.footer-brand .footer-payoff {
  color: var(--gold);
  font-style: italic;
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
}

.footer-bottom .socials {
  display: flex;
  gap: 20px;
}

.footer-bottom .socials a {
  transition: color 0.25s var(--ease);
}

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

/* ----------------------------- Page header (inner pages) --------------------- */

.page-header {
  padding: 160px 0 64px;
}

.page-header h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  max-width: 680px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
  margin-top: 18px;
}

.page-header .hero-actions {
  margin-top: 32px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb span {
  color: var(--gold);
}

/* ------------------------------- Reveal animation ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------- FAQ ------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border-radius: var(--radius-sm);
  transition: background-color 0.3s var(--ease);
}

.faq-item:hover {
  background: var(--glass);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: color 0.25s var(--ease);
}

.faq-item:hover .faq-question {
  color: var(--gold);
}

.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--gold);
}

.faq-question .icon::before,
.faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .icon::before {
  width: 12px;
  height: 1px;
}

.faq-question .icon::after {
  width: 1px;
  height: 12px;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 0 20px 22px;
  max-width: 600px;
}

/* ---------------------------------- Back to top ------------------------------ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
  z-index: 90;
  font-size: 16px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--lg-fill-hover);
}

/* ---------------------------------- Responsive -------------------------------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .lang-switch a { padding: 6px 8px; }

  .main-nav.open {
    display: flex;
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, rgba(22, 23, 28, 0.82), rgba(10, 11, 14, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--lg-specular), 0 20px 50px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    padding: 28px;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 24px;
  }

  .hero { padding-top: 120px; }
  .hero-meta { gap: 32px; }

  .intro-block { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .process-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-panel { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-nav { flex-wrap: wrap; gap: 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .page-header { padding: 132px 0 48px; }
}

@media (hover: none) {
  .card::before, .work-item::before, .team-card::before, .contact-panel::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-bg span { animation: none; }
  .btn:hover, .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .btn:not(.btn-primary), .lang-switch, .main-nav.open {
    background: #16171c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .liquid-bg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-bg span { animation: none; }
  .btn:hover, .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .btn:not(.btn-primary), .lang-switch, .main-nav.open {
    background: #16171c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .liquid-bg { display: none; }
}
