/* 225Hub — landing premium (self-hosted fonts + design tokens) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gold: #c5a037;
  --gold-soft: #d8b94a;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ivory: #f9f9f7;
  --ivory-2: #f3efe5;
  --line: rgba(26, 26, 26, 0.08);
  --line-strong: rgba(197, 160, 55, 0.35);
  --glass: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 20px 50px -30px rgba(26, 26, 26, 0.18), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  --shadow-hover: 0 28px 60px -28px rgba(26, 26, 26, 0.22), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  --danger: #dc2626;
  --success: #16a34a;
  --warn: #b45309;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-body);
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: linear-gradient(180deg, #ffffff 0%, var(--ivory-2) 100%);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.section-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.scroll-sentinel {
  height: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

/* --- Backdrop décoratif --- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% -6%, rgba(197, 160, 55, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(197, 160, 55, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--ivory-2) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 12%, black, transparent);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Header sticky premium --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

html.has-scrolled .site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -24px rgba(26, 26, 26, 0.25);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-main {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  max-width: min(560px, 100% - 280px);
  z-index: 1;
}

.nav-main a {
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav-main a:hover {
  color: var(--ink);
  background: rgba(197, 160, 55, 0.1);
  text-decoration: none;
}

.header-trail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: rgba(197, 160, 55, 0.55);
  box-shadow: 0 10px 28px -16px rgba(26, 26, 26, 0.35);
}

.btn-primary:hover {
  background: var(--gold-soft);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(26, 26, 26, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 26, 26, 0.18);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(197, 160, 55, 0.45);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-magnetic {
  will-change: transform;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    max-width: none;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter);
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
    z-index: 60;
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- Hero --- */
.hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 38%);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

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

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 1.1rem 0 0.85rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.85rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

.muted-inline {
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 26, 26, 0.06);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(197, 160, 55, 0.14), transparent 55%);
  animation: hero-glow 22s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before {
    animation: none;
  }
}

@keyframes hero-glow {
  to {
    transform: rotate(360deg);
  }
}

.hero-visual-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-stat div {
  padding: 0.85rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 26, 26, 0.06);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- Section piliers (3 cartes) --- */
.section-piliers {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 7vw, 4.5rem);
}

.piliers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.pilier-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.pilier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 160, 55, 0.22);
}

.pilier-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(197, 160, 55, 0.12);
  color: var(--gold);
}

.pilier-icon svg {
  width: 26px;
  height: 26px;
}

.pilier-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.pilier-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Sections génériques --- */
section:not(.hero) {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  transition-delay: 0.05s;
}

.reveal[data-reveal="fade"] {
  transform: none;
}

.reveal[data-reveal="up"] {
  transform: translateY(28px);
}

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

.reveal[data-reveal="fade"].is-visible {
  transform: none;
}

.reveal[data-reveal="stagger"] > .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}

.reveal[data-reveal="stagger"].is-visible > .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

html.reduce-motion .reveal,
html.reduce-motion .reveal[data-reveal="stagger"] > .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* --- Cartes expertises (glass) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 160, 55, 0.2);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  background: rgba(197, 160, 55, 0.12);
  color: var(--gold);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Process --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

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

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

.step {
  position: relative;
  padding: 1.35rem 1.25rem 1.35rem 3.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 26, 26, 0.06);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.step-num {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 16px -8px rgba(26, 26, 26, 0.35);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Pourquoi --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

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

.why-item {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.why-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-aside {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 26, 26, 0.06);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.contact-aside h3 {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-line {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-line strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.form-panel {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 26, 26, 0.06);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.field {
  position: relative;
  margin-bottom: 1.15rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1rem 0.85rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 1.35rem;
}

.field label {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  pointer-events: none;
  transition:
    top 0.2s var(--ease),
    font-size 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.field textarea + label {
  top: 1.15rem;
  transform: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(197, 160, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(197, 160, 55, 0.12);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field input:not(:placeholder-shown) + label,
.field input:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:focus + label {
  top: 0.45rem;
  font-size: 0.72rem;
  transform: none;
  color: var(--gold);
}

.field textarea:not(:placeholder-shown) + label,
.field textarea:focus + label {
  top: 0.55rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: transparent;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--danger);
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: var(--success);
}

.alert-warn {
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: var(--warn);
}

/* --- Footer --- */
.site-footer {
  padding: 2.75rem 0;
  margin-top: 0;
  border-top: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.35);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

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

/* --- Dialog --- */
dialog.landing-dialog {
  max-width: 420px;
  width: calc(100% - 2rem);
  padding: 0;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: var(--shadow-hover);
}

dialog.landing-dialog::backdrop {
  background: rgba(26, 26, 26, 0.45);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.dialog-close {
  padding: 0.35rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.dialog-close:hover {
  color: var(--ink);
  background: rgba(197, 160, 55, 0.1);
}

.dialog-body {
  padding: 0.5rem 1.25rem 1.35rem;
}

.dialog-body .field {
  margin-bottom: 0.95rem;
}

.dialog-body .field label {
  position: static;
  transform: none;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.dialog-body .field input {
  padding: 0.65rem 0.85rem;
}

.dialog-body input {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.dialog-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
