/* ───────────── Tokens ─────────────
   Palette: amber #EAAC55 (brand) · terracotta #CF613C
   Backgrounds: warm black #1C1710 and cream #FAF6EE */
:root {
  color-scheme: light;
  --bg: #faf6ee;
  --surface: #ffffff;
  --text: #1b1a14;
  --muted: #5e5a4e;
  --line: #e8e1d2;
  --field: #a9a08c;
  --ink: #1c1710;            /* dark sections */
  --ink-2: #2a2118;
  --on-ink: #f1eee3;
  --on-ink-muted: #c4baa8;
  --brand: #eaac55;          /* amber: buttons, logo and accents on dark */
  --brand-hover: #f2ba6b;
  --on-brand: #1c1710;       /* text on amber */
  --accent: #9a5b0f;         /* dark amber: links and accents on light */
  --accent-hover: #7a4608;
  --accent-2: #b8491f;       /* dark terracotta */
  --accent-3: #cf613c;       /* terracotta */
  --accent-soft: #fbebd0;
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--accent-3) 100%);
  --grad-light: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --error: #b42318;
  --error-soft: #fef3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(43,33,12,.05), 0 8px 24px rgba(43,33,12,.06);
  --shadow-lg: 0 24px 60px rgba(28,23,16,.2);
  --max: 1160px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
main:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.header :focus-visible, .hero :focus-visible, .dark :focus-visible, .footer :focus-visible { outline-color: var(--brand); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 104px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.grad-text {
  background: var(--grad-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.hero .grad-text, .dark .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: inherit; font-weight: 650; font-size: 1rem;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px rgba(234,172,85,.35); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(234,172,85,.45); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--on-ink); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { flex: none; }

/* ───────────── Header ───────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.scrolled {
  background: rgba(28,23,16,.84);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255,255,255,.08);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.logo:hover { color: #fff; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(234,172,85,.4);
}
.logo-mark svg { stroke: var(--on-brand); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--on-ink-muted); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { min-height: 42px; padding: 8px 20px; margin-left: 10px; font-size: .95rem; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
  cursor: pointer; place-items: center;
}
.menu-toggle .bar { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle .bar + .bar { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(28,23,16,.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; min-height: 52px; }
  .header.menu-open { background: rgba(28,23,16,.97); }
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding: calc(var(--header-h) + 72px) 0 112px;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero::before { width: 620px; height: 620px; left: -180px; top: -200px; background: radial-gradient(circle, rgba(207,97,60,.8) 0%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.hero::after  { width: 560px; height: 560px; right: -160px; bottom: -220px; background: radial-gradient(circle, rgba(234,172,85,.75) 0%, transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: .88rem; font-weight: 550; color: var(--on-ink);
  margin-bottom: 24px;
}
.badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.badge .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-brand); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .6; } }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; color: #fff; text-wrap: balance;
}
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--on-ink-muted); margin: 0 0 36px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--on-ink); font-weight: 550; font-size: .95rem; }
.hero-points svg { color: var(--brand); flex: none; }

/* Chat simulation */
.chat {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 18px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  max-width: 420px; margin-left: auto; width: 100%;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--on-brand); font-weight: 800; }
.chat-name { font-weight: 700; color: #fff; line-height: 1.2; }
.chat-state { font-size: .8rem; color: var(--brand); }
.chat-body { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  animation: msgIn .45s ease forwards;
}
.msg.in { align-self: flex-start; background: rgba(255,255,255,.1); color: var(--on-ink); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; text-align: right; }
.msg:nth-child(1) { animation-delay: .4s; }
.msg:nth-child(2) { animation-delay: 1.6s; }
.msg:nth-child(3) { animation-delay: 2.9s; }
.msg:nth-child(4) { animation-delay: 4.1s; }
.typing {
  align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px;
  background: rgba(234,172,85,.45); opacity: 0; animation: msgIn .3s ease 5.1s forwards;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
/* Rotating chat: JS shows each message by adding .show (without JS, the animations above are used) */
.chat-avatar svg { width: 20px; height: 20px; }

/* Pause control for the rotating chat (hidden without JavaScript, where the chat does not rotate) */
.chat-wrap { position: relative; max-width: 420px; margin-left: auto; width: 100%; }
.chat-pause {
  display: none; position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; padding: 0; border-radius: 50%; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
  transition: background-color .2s;
}
.js .chat-pause { display: grid; }
.chat-pause:hover { background: rgba(255,255,255,.18); }
.chat-pause .icon-play { display: none; }
.chat-pause[aria-pressed="true"] .icon-pause { display: none; }
.chat-pause[aria-pressed="true"] .icon-play { display: block; }
.js .chat-head, .js .chat-body { transition: opacity .35s ease; }
.js .chat.switching .chat-head, .js .chat.switching .chat-body { opacity: 0; }
.js .msg { animation: none; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.js .msg.show { opacity: 1; transform: none; }
.js .typing { animation: none; opacity: 1; }
.js .chat-tag { opacity: 0; transition: opacity .4s ease; }
.js .chat-tag.show { opacity: 1; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-tag {
  position: absolute; left: -28px; bottom: -52px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text); border-radius: 14px; padding: 10px 14px;
  font-size: .85rem; font-weight: 650; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.chat-tag .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.chat-tag small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .chat-wrap, .chat { margin: 0 auto; }
  .chat-tag { left: -8px; }
}

/* ───────────── Industries ticker ───────────── */
.strip { background: var(--ink-2); color: var(--on-ink-muted); border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { display: flex; gap: 48px; padding: 22px 24px; margin: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; font-size: 1.02rem; }
.marquee li::before { content: "✦"; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .marquee { animation-play-state: paused; }

/* ───────────── Services ───────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,33,12,.1); border-color: #e3cfa3; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.card h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card.featured { background: var(--ink); color: var(--on-ink); border-color: transparent; overflow: hidden; }
.card.featured::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(234,172,85,.38), transparent 70%); }
.card.featured h3 { color: #fff; }
.card.featured p { color: var(--on-ink-muted); position: relative; }
.card.featured .icon { background: var(--grad); color: var(--on-brand); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ───────────── Sectors ───────────── */
.sectors-wrap { background: var(--surface); border-block: 1px solid var(--line); }
.sectors { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tabs-list { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%;
  font: inherit; font-weight: 650; font-size: 1.05rem; text-align: left;
  padding: 16px 18px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: #dcc9a0; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .emoji { font-size: 1.3rem; }
.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px; min-height: 100%;
}
.panel[hidden] { display: none; }
.panel h3 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.02em; }
.panel > p { color: var(--muted); margin: 0 0 24px; font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}
@media (max-width: 880px) {
  .sectors { grid-template-columns: 1fr; gap: 20px; }
  .tabs-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
  .tabs-list::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; white-space: nowrap; scroll-snap-align: start; padding: 12px 16px; font-size: 1rem; }
  .panel { padding: 24px; }
  .checks { grid-template-columns: 1fr; }
}

/* ───────────── Process ───────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #dcc9a0 10%, #dcc9a0 90%, transparent);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
  color: var(--accent); font-weight: 800; font-size: 1.2rem; position: relative;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .step::before { grid-row: span 2; margin: 0; box-shadow: none; }
}

/* ───────────── Callout ───────────── */
.callout { background: var(--brand); color: var(--on-brand); padding: 56px 0; }
.callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.callout h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; color: var(--on-brand); text-wrap: balance; }
.callout p { margin: 0; max-width: 640px; font-size: 1.05rem; color: rgba(28,23,16,.85); }
.callout :focus-visible { outline-color: var(--ink); }
.btn-dark { flex: none; background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
@media (max-width: 760px) {
  .callout { padding: 44px 0; }
  .callout-inner { flex-direction: column; align-items: stretch; gap: 24px; }
}

/* ───────────── Examples (dark) ───────────── */
.dark { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate; }
.dark::before {
  content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; left: 50%; top: -400px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(207,97,60,.38), transparent 65%);
}
.dark h2 { color: #fff; }
.dark .section-head p { color: var(--on-ink-muted); }
.dark .eyebrow { color: var(--brand); }

/* Media placeholder: replace with <video> or <img> */
.media {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 20%, rgba(207,97,60,.55), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(234,172,85,.4), transparent 55%),
    #33261a;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.1);
}
.media.portrait { aspect-ratio: 4 / 5; }
.media.square { aspect-ratio: 1; }
.media > video, .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 12px; }
.media .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #fff;
  transition: transform .25s, background-color .25s;
}
.slide:hover .play { transform: scale(1.08); background: rgba(255,255,255,.24); }
.media .tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(28,23,16,.65); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 24px; margin: 0 -4px;
  list-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 4px; }
.slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 12px 12px 22px;
  transition: border-color .25s, background-color .25s;
}
.slide:hover { border-color: rgba(234,172,85,.5); background: rgba(255,255,255,.06); }
.slide h3 { margin: 18px 10px 6px; font-size: 1.12rem; color: #fff; }
.slide p { margin: 0 10px; color: var(--on-ink-muted); font-size: .95rem; }
@media (max-width: 960px) { .slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .slide { flex-basis: 86%; } }

.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.28); transition: width .25s, background-color .25s;
}
.dots button[aria-current="true"] { width: 30px; background: var(--brand); }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff;
  transition: background-color .2s, opacity .2s;
}
.arrow:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.arrow:disabled { opacity: .35; cursor: default; }

/* Gallery */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 96px 0 28px; }
.gallery-head h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; letter-spacing: -.02em; }
.gallery-head p { color: var(--on-ink-muted); margin: 6px 0 0; }
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery .media { aspect-ratio: auto; height: 100%; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
@media (min-width: 881px) { .gallery > :last-child { grid-column: span 2; } }
@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery .g-big { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-head { flex-direction: column; align-items: start; margin-top: 72px; }
}

/* ───────────── FAQ ───────────── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #dcc9a0; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 650; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a5b0f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { border-radius: var(--r); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* ───────────── Contact ───────────── */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { text-align: left; }
.contact-info > p { color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; box-shadow: 0 24px 60px rgba(43,33,12,.08);
  position: relative;
}
.form-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--grad);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.req { color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--field); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e5a4e' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #857c69; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(154,91,15,.25);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(180,35,24,.2); }
.error-msg { color: var(--error); font-size: .9rem; margin: 6px 0 0; }
.error-msg:empty { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 0; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.legal { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* hCaptcha widget: reserve its height so the form does not jump when it loads (it is 78px tall, 303px wide) */
.captcha-field { min-height: 78px; }
@media (max-width: 380px) {
  .captcha-field .h-captcha { transform: scale(.88); transform-origin: 0 0; }
  .captcha-field { min-height: 70px; }
}

.submit { width: 100%; min-height: 56px; font-size: 1.05rem; border-radius: var(--r-sm); margin-top: 4px; }
.submit:disabled { opacity: .7; cursor: wait; transform: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(28,23,16,.3); border-top-color: var(--on-brand); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { border-radius: var(--r-sm); padding: 14px 16px; margin-top: 16px; font-weight: 500; }
.status:empty { display: none; }
.status.is-error { background: var(--error-soft); color: var(--error); border: 1px solid #fecdca; }

.success-panel { text-align: center; padding: 40px 8px; }
.success-panel .ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.success-panel h3 { margin: 0 0 8px; font-size: 1.4rem; }
.success-panel p { margin: 0; color: var(--muted); }
.success-panel:focus { outline: none; }

/* ───────────── Final CTA and footer ───────────── */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { color: var(--on-ink-muted); text-decoration: none; font-weight: 550; }
.footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .9rem; }
.footer-bottom a { color: var(--on-ink-muted); }
.footer-bottom a:hover { color: #fff; }

/* ───────────── Scroll animations ───────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee { animation: none; }
  .msg, .typing { opacity: 1; transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
