/* ==========================================================================
   Sapphires Creations — black & gold theme
   1. Tokens  2. Base  3. Primitives (buttons, icons, panels, cards)
   4. Header  5. Hero  6. Sections  7. Form  8. Footer  9. Motion  10. Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #070707;
  --bg-raised: #0c0b09;
  --panel: #12110e;
  --panel-2: #181612;
  --line: rgba(217, 173, 82, 0.22);
  --line-strong: rgba(217, 173, 82, 0.5);
  --gold: #d9ad52;
  --gold-light: #f6e3a1;
  --gold-deep: #9a7226;
  --gold-grad: linear-gradient(135deg, #f8e7ad 0%, #d9ad52 45%, #a67c2a 100%); /* fills: buttons, accents */
  --gold-text-grad: var(--gold-grad); /* gradient headings */
  --text: #f1ece1;
  --muted: #b3ab9b;
  --danger: #ff8f7a;
  --success: #8fd6a0;
  --danger-text: #ffc1b5;
  --header-bg: rgba(7, 7, 7, 0.86);
  --overlay-bg: rgba(7, 7, 7, 0.97);
  --hero-top: #050505;
  --strip-bg: rgba(18, 17, 14, 0.7);
  --input-bg: rgba(0, 0, 0, 0.45);
  --input-bg-focus: rgba(0, 0, 0, 0.6);
  --input-border: rgba(217, 173, 82, 0.28);
  --float-bg: #16140f;
  --footer-bg: #050505;
  --lens-shadow: rgba(0, 0, 0, 0.8);
  color-scheme: dark;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

/* Light theme: same tokens, ivory surfaces and deeper golds for contrast. Dark stays the default. */
:root[data-theme='light'] {
  --bg: #faf6ec;
  --bg-raised: #f2ead8;
  --panel: #fffdf8;
  --panel-2: #ffffff;
  --line: rgba(154, 114, 38, 0.3);
  --line-strong: rgba(154, 114, 38, 0.6);
  --gold: #946c1f;
  --gold-light: #6f5113;
  --gold-deep: #5c420e;
  --gold-text-grad: linear-gradient(135deg, #b08329 0%, #8a6420 45%, #5f4410 100%);
  --text: #1e1a12;
  --muted: #5d5546;
  --danger: #b93a26;
  --success: #2c7a48;
  --danger-text: #8f2a1a;
  --header-bg: rgba(250, 246, 236, 0.9);
  --overlay-bg: rgba(250, 246, 236, 0.98);
  --hero-top: #fffaf0;
  --strip-bg: rgba(255, 253, 248, 0.8);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --input-border: rgba(154, 114, 38, 0.45);
  --float-bg: #fffdf8;
  --footer-bg: #efe6d2;
  --lens-shadow: rgba(60, 42, 8, 0.45);
  --shadow: 0 24px 50px -28px rgba(90, 64, 14, 0.45);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s, color 0.35s;
}
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #000; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--gold); color: #000; font-weight: 600; border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 16px; text-align: center; background: #2a1a12; color: var(--gold-light); }

/* ---------- 3. Primitives ---------- */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.08;
  font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.01em;
  background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-lead { margin-top: 18px; color: var(--muted); }
.section-title--ruled { display: flex; align-items: center; gap: 22px; justify-content: center; }
.section-title--ruled::before, .section-title--ruled::after {
  content: ''; flex: 1; height: 1px; min-width: 24px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title--ruled::after { transform: scaleX(-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--gold { background: var(--gold-grad); color: #171204; box-shadow: 0 10px 30px -12px rgba(217, 173, 82, 0.7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(217, 173, 82, 0.9); }
.btn--ghost { border-color: var(--line-strong); color: var(--gold-light); background: rgba(217, 173, 82, 0.04); }
.btn--ghost:hover { background: rgba(217, 173, 82, 0.14); border-color: var(--gold); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 0.78rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: progress; opacity: 0.75; transform: none; }

.panel {
  position: relative; padding: clamp(24px, 3.4vw, 36px);
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* gold cut-corner accent, echoing the brochure */
.panel--corner { overflow: hidden; }
.panel--corner::after {
  content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 64px;
  background: var(--gold-grad); clip-path: polygon(100% 0, 100% 100%, 62% 38%, 0 0); opacity: 0.85;
}
.panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); }
.panel p { color: var(--muted); }

.badge {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%;
  color: var(--gold-light); border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 25%, rgba(246, 227, 161, 0.25), rgba(217, 173, 82, 0.04) 70%);
}
.badge .icon { width: 24px; height: 24px; }
.badge--sm { width: 44px; height: 44px; }
.badge--sm .icon { width: 20px; height: 20px; }

.cards { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.cards--services { grid-template-columns: repeat(3, 1fr); }
.cards--features { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 50px -28px rgba(217, 173, 82, 0.55); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.15; color: var(--gold-light); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; color: var(--gold-light);
  background: rgba(217, 173, 82, 0.08); border: 1px solid var(--line);
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.card__icon .icon { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--gold-grad); color: #171204; transform: rotate(-6deg) scale(1.05); }
.card__link {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.card__link .icon { transition: transform 0.25s var(--ease); }
.card__link:hover { color: var(--gold-light); }
.card__link:hover .icon { transform: translateX(5px); }
.card--cta { justify-content: center; align-items: flex-start; border-style: dashed; border-color: var(--line-strong);
  background: radial-gradient(circle at 100% 0, rgba(217, 173, 82, 0.18), transparent 60%), var(--panel); }

.ticks { display: grid; gap: 6px; font-size: 0.9rem; color: var(--text); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- 4. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, height 0.3s;
}
.header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: auto; height: 44px; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { white-space: nowrap; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tag { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__link { position: relative; white-space: nowrap; padding: 8px 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); transition: color 0.2s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--gold-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav { margin-left: auto; }
.header__tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--gold-light); background: rgba(217, 173, 82, 0.05); border: 1px solid var(--line-strong);
  transition: background 0.25s, color 0.25s, transform 0.4s var(--ease);
}
.theme-toggle:hover { background: var(--gold-grad); color: #171204; transform: rotate(25deg); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle__moon { display: none; }
[data-theme='light'] .theme-toggle__sun { display: none; }
[data-theme='light'] .theme-toggle__moon { display: block; }

.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: var(--gold-light); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(36px, 7vw, 84px)) 0 clamp(110px, 13vw, 170px); overflow: hidden; isolation: isolate; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 38%, rgba(217, 173, 82, 0.2), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(217, 173, 82, 0.1), transparent 70%),
    linear-gradient(180deg, var(--hero-top), var(--bg));
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero .eyebrow { font-size: clamp(0.9rem, 1.6vw, 1.15rem); letter-spacing: 0.22em; color: var(--text); font-weight: 300; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: 0.005em;
  font-size: clamp(3rem, 8.2vw, 6.2rem);
  background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.1em;
}
.hero__lead { max-width: 30em; margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__art { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 1; }
.hero__art::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(217, 173, 82, 0.32), transparent 62%); filter: blur(20px); animation: pulse 6s ease-in-out infinite; }
.lens { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 30px 50px var(--lens-shadow)); animation: float 9s ease-in-out infinite; }
.lens__ticks { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
.lens__text { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: 3.2px; fill: #c9a04a; }
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(246, 227, 161, 0.75), rgba(217, 173, 82, 0) 70%); animation: float 7s ease-in-out infinite; }
.bokeh--1 { width: 70px; height: 70px; top: 2%; right: 4%; }
.bokeh--2 { width: 36px; height: 36px; bottom: 12%; left: -2%; animation-delay: -2s; }
.bokeh--3 { width: 22px; height: 22px; top: 22%; left: 6%; animation-delay: -4s; }

.service-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(44px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--strip-bg); backdrop-filter: blur(6px);
}
.service-strip li + li { border-left: 1px solid var(--line); }
.service-strip a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px; text-align: center; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em; transition: color 0.25s, background 0.25s; }
.service-strip .icon { width: 30px; height: 30px; color: var(--gold); transition: transform 0.3s var(--ease); }
.service-strip a:hover { color: var(--gold-light); background: rgba(217, 173, 82, 0.07); }
.service-strip a:hover .icon { transform: translateY(-4px) scale(1.08); }

.swoosh__fill { fill: var(--bg-raised); transition: fill 0.35s; }
.swoosh { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 140px); z-index: -1; }

/* ---------- 6. Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--raised { background: var(--bg-raised); }
.section--raised::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 50% at 100% 0, rgba(217, 173, 82, 0.09), transparent 70%); }
.section > .container { position: relative; }

.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__copy p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.about__copy .section-title { font-size: clamp(2.8rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: 0.04em; }
.about__cards { display: grid; gap: 22px; }

.feature { text-align: center; padding: 8px 6px; }
.feature__icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; color: var(--gold-light);
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 25%, rgba(246, 227, 161, 0.22), rgba(217, 173, 82, 0.03) 70%);
  box-shadow: 0 0 0 8px rgba(217, 173, 82, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.feature__icon .icon { width: 36px; height: 36px; }
.feature:hover .feature__icon { transform: translateY(-6px); box-shadow: 0 0 0 12px rgba(217, 173, 82, 0.09), 0 20px 40px -18px rgba(217, 173, 82, 0.7); }
.feature h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.feature h3 span { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.3em; color: var(--gold); }
.feature p { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

.clients { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip-list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9rem; font-weight: 400; background: rgba(217, 173, 82, 0.04); transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.chip-list li::before { content: ''; width: 7px; height: 7px; background: var(--gold-grad); transform: rotate(45deg); flex: none; }
.chip-list li:hover { border-color: var(--gold); background: rgba(217, 173, 82, 0.12); transform: translateY(-2px); }
.statement p { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.25; color: var(--text); margin-bottom: 26px; }

/* ---------- 7. Contact & form ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__intro > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.contact__list { display: grid; gap: 20px; margin-top: 34px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong { display: block; font-weight: 500; color: var(--gold-light); letter-spacing: 0.02em; }
.contact__list span, .contact__list a { color: var(--muted); font-size: 0.94rem; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--gold-light); text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.req { color: var(--gold); }
.opt { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; background: var(--input-bg); color: var(--text);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm); font-weight: 400; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9ad52' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--panel); color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 173, 82, 0.22); background-color: var(--input-bg-focus); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 143, 122, 0.16); }
.field__error { min-height: 1.2em; font-size: 0.8rem; font-weight: 400; line-height: 1.2; color: var(--danger); }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.field__count { font-size: 0.76rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255, 143, 122, 0.5); border-radius: var(--radius-sm); background: rgba(255, 143, 122, 0.08); color: var(--danger-text); font-size: 0.9rem; font-weight: 400; }
.form-alert .icon { margin-top: 2px; }
.contact__form .btn--block { margin-top: 20px; }
.form-note { margin-top: 12px; text-align: center; font-size: 0.78rem; color: var(--muted); }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(23, 18, 4, 0.3); border-top-color: #171204; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: block; }

.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--gold-grad); color: #171204; animation: pop 0.5s var(--ease); }
.form-success__icon .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.form-success h3 { font-size: 2rem; text-transform: none; letter-spacing: 0.02em; }
.form-success p { margin: 12px auto 26px; max-width: 30em; }
.form-success strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; pointer-events: auto;
  background: var(--float-bg); color: var(--text); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 0.9rem; font-weight: 400; animation: toast-in 0.35s var(--ease);
}
.toast--success { border-left-color: var(--success); }
.toast--success .icon { color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--error .icon { color: var(--danger); }
.toast .icon { margin-top: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.toast__close { margin-left: auto; padding: 0 2px; background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.toast__close:hover { color: var(--text); }

.social { display: flex; gap: 12px; }
.contact__intro .social { margin-top: 30px; }
.social--sm { gap: 8px; }
.social--sm .social__link { width: 38px; height: 38px; }
.social--sm .social__link .icon { width: 18px; height: 18px; }
.nav__social:has([hidden]) { display: none; }
.social__link {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--gold-light);
  border: 1px solid var(--line-strong); background: rgba(217, 173, 82, 0.05);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.social__link .icon { width: 22px; height: 22px; }
.social__link:hover { background: var(--gold-grad); color: #171204; transform: translateY(-3px); box-shadow: 0 12px 26px -12px rgba(217, 173, 82, 0.8); }

/* ---------- 8. Footer ---------- */
.footer { position: relative; padding: 70px 0 34px; background: var(--footer-bg); }
.footer__swoosh { position: absolute; top: 0; left: 0; width: 100%; height: 44px; }
.footer__inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__nav a { color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { font-size: 0.8rem; color: var(--muted); }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--float-bg); border: 1px solid var(--line-strong); color: var(--gold-light);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #171204; }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.not-found__box { display: grid; gap: 18px; justify-items: center; }
.not-found__box p:not(.eyebrow) { color: var(--muted); }

/* ---------- 9. Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-in { animation: rise 0.9s var(--ease) both; }
.hero-in--1 { animation-delay: 0.05s; } .hero-in--2 { animation-delay: 0.15s; } .hero-in--3 { animation-delay: 0.3s; }
.hero-in--4 { animation-delay: 0.45s; } .hero-in--5 { animation-delay: 0.6s; }

/* Scroll reveal only hides content once JS has confirmed it can show it again */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1024px) {
  .cards--services { grid-template-columns: repeat(2, 1fr); }
  .cards--features { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .about, .clients, .contact { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--overlay-bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 24px; }
  .nav__link { display: block; padding: 16px 0; border-bottom: 1px solid rgba(217, 173, 82, 0.12); font-size: 0.9rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; width: 100%; }
  .nav__social { margin-top: 20px; }
  .nav__social .social { justify-content: center; gap: 14px; }
  .nav__social .social__link { width: 46px; height: 46px; }
  .header.is-menu-open { background: var(--overlay-bg); border-color: var(--line); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; width: min(72%, 340px); }
  .hero__title br { display: none; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 1.28rem; }
  .brand__tag { font-size: 0.5rem; letter-spacing: 0.14em; }
  .brand__mark { height: 36px; }
  .service-strip { grid-template-columns: repeat(6, 1fr); }
  .service-strip li { grid-column: span 2; border-left: 0 !important; }
  .service-strip li:nth-child(n + 4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .service-strip li:nth-child(2), .service-strip li:nth-child(3), .service-strip li:nth-child(5) { border-left: 1px solid var(--line) !important; }
  .service-strip a { padding: 18px 6px; font-size: 0.74rem; }
  .cards--services, .about__cards, .form-grid { grid-template-columns: 1fr; }
  .cards--features { column-gap: 12px; }
  .feature h3 { font-size: 1.25rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section-title--ruled { gap: 12px; }
  .toasts { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .to-top { bottom: 14px; right: 14px; }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand__name { font-size: 1.12rem; }
  .brand__mark { height: 32px; }
  .header__tools { gap: 8px; }
}

@media (max-width: 380px) {
  .brand__tag { display: none; }
  .cards--features { grid-template-columns: 1fr; }
}
