/* ==========================================================================
   THEME: "Obsidian & Aroma"
   The whole site shares the hero's palette: deep obsidian, slate teal, brushed gold.
   Loaded after every other stylesheet: it re-points the design tokens to the dark palette
   and adds the section-to-section transitions (see js/theme.js).
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0A0D0E;
  --surface: #101719;
  --surface-2: #162124;
  --ink: #F4F6F6;
  --ink-2: #C5D0D3;
  --muted: #8E9CA0;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #2E6B7C;                 /* fills (buttons) */
  --accent-hover: #3B7A85;
  --accent-text: #7FB4C2;            /* accent used as text/icon colour on dark */
  --accent-soft: rgba(127, 180, 194, .10);
  --accent-ring: rgba(127, 180, 194, .28);
  --tea-gold-2: #E2C285;
  --dark: #0D1416;
  --dark-line: rgba(255, 255, 255, .09);
  --grid-line: rgba(255, 255, 255, .045);
  --success: #3DD598;
  --danger: #FF7A7A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 40px -12px rgba(0, 0, 0, .65);
}
html { background: var(--bg); }
body { background: transparent; color: var(--ink); }
::selection { background: var(--tea-gold); color: #0A0D0E; }

/* ------------------------------------------------ accent as text on dark */
.sec-index__n, .creds__num, .trust__top .icon, .link-arrow, .hero__title .hl { color: var(--accent-text); }
.section--dark { --accent-text: #8FC3CF; }

/* ------------------------------------------------------- ambient backdrop */
/* One fixed layer of two soft glows; js/theme.js glides them (and their tint) from section to section. */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform; }
.ambient i:nth-child(1) { left: 0; top: 0; background: radial-gradient(closest-side, rgba(59, 122, 133, .55), transparent); transform: translate3d(var(--a1x, -10vmax), var(--a1y, 10vh), 0); }
.ambient i:nth-child(2) { left: 0; top: 0; background: radial-gradient(closest-side, rgba(200, 169, 110, .30), transparent); transform: translate3d(var(--a2x, 50vw), var(--a2y, 60vh), 0); }
.ambient::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 80%); opacity: .6; }
main, .footer { position: relative; z-index: 1; }
.aroma { z-index: 1; }

/* ------------------------------------------------------ section seams */
.section, .trust { border-top: 0; }
.section::before, .trust::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 50%; width: min(1180px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(200, 169, 110, .55) 30%, rgba(127, 180, 194, .55) 70%, transparent);
  pointer-events: none;
}
/* a faint glow that bleeds down from each seam so sections melt into each other */
.section::after, .trust::after {
  content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 220px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(200, 169, 110, .08), transparent 75%);
}
.js.motion-ok .section::before, .js.motion-ok .trust::before { transform: translateX(-50%) scaleX(0); transition: transform 1.4s var(--ease-in-out, cubic-bezier(.65,0,.35,1)); }
.js.motion-ok .section.is-seen::before, .js.motion-ok .trust.is-seen::before { transform: translateX(-50%) scaleX(1); }
.js.motion-ok .section::after, .js.motion-ok .trust::after { opacity: 0; transition: opacity 1.6s ease .2s; }
.js.motion-ok .section.is-seen::after, .js.motion-ok .trust.is-seen::after { opacity: 1; }
.section > .container, .trust > .container { position: relative; z-index: 1; }

/* The pricing block keeps a distinct, slightly lifted tone but is translucent so the glow shows through. */
.section--dark { background: linear-gradient(180deg, rgba(13, 20, 22, .82), rgba(10, 16, 18, .9)); border-top-color: transparent; }
.section--contact { background: linear-gradient(180deg, transparent, rgba(13, 20, 22, .7) 40%); }

/* Richer reveal: rise + soft blur-in, a touch more travel than before. */
.js.motion-ok [data-reveal] {
  transform: translate3d(0, 28px, 0);
  transition: opacity 600ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js.motion-ok [data-reveal].is-in { transform: none; }

/* Section titles: a gold underline sweeps in beneath each when it reveals. */
.sec-title { position: relative; }

/* ---------------------------------------------------- hero -> page handoff */
.aroma__veil { position: absolute; inset: 0; z-index: 6; background: var(--ar-bg0, #0A0D0E); opacity: 0; pointer-events: none; }

/* --------------------------------------------------- component corrections */
.skip-link, .skip { background: var(--tea-gold); color: #0A0D0E; }
.lang:not(.lang--vial) a[aria-current] { background: var(--ink); color: #0A0D0E; }
.badge, .portrait__tag, [class*="about__badge"] { }
.card, .svc, .trust__item, .creds__item, .direct__row, .form-card, .bento > *, .faq__item { background-color: var(--surface); }
.input { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--ink); }
.input::placeholder { color: #7E8B90; }
.input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-ring); }
select.input option { background: #0F1719; color: var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 34px -10px rgba(59, 122, 133, .7); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--ink); }
.footer { background: transparent; border-top: 1px solid var(--line); }
.footer__wordmark { background: linear-gradient(180deg, rgba(244, 246, 246, .14) 0%, rgba(244, 246, 246, 0) 92%); -webkit-background-clip: text; background-clip: text; }
/* the portrait caption chip was ink-on-light: keep it dark glass */
.badge { background: rgba(10, 13, 14, .88); border: 1px solid rgba(200, 169, 110, .22); }
.faq__icon::before, .faq__icon::after { background: var(--ink); }
.lang--vial a[aria-current] { color: #fff; }

/* Light "screens" inside the project frames stay light: they are pictures of finished websites. */
.frame__screen.lp { --ink: #0D1B21; --line: #E2E4E9; --line-strong: #CDD1D8; --muted: #525866; --surface: #fff; }
.project .frame { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 169, 110, .12); }

@media (prefers-reduced-motion: reduce) {
  .ambient i { transform: none; }
  .js .section::before, .js .trust::before { transform: translateX(-50%) !important; }
  .js .section::after, .js .trust::after { opacity: 1 !important; }
}
@media print {
  .ambient { display: none; }
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #444; --line: #ccc; }
  html, body { background: #fff; }
}
