/* ==========================================================================
   Omiee Tech — colour layer (loaded last; overrides colours only)
   Palette: coral #C85E3D · violet #7058D6 · forest #31513F · off-white #EDECE8
   Neutrals: #111111 · #FFFFFF · #777777 · #F4F4F4 · #1B1B1B
   ========================================================================== */

:root {
  --o-coral: #C85E3D;
  --o-violet: #7058D6;
  --o-forest: #31513F;
  --o-paper: #EDECE8;
  --o-ink: #111111;
  --o-card: #1B1B1B;
}

::selection { background: var(--o-coral); color: #fff; }

/* ---------- Logo swaps (dark / light variants) ---------- */
.o-logo-light { display: none !important; }
.bn[data-tone="light"] .o-logo-dark,
#navbar[data-theme="light"] .o-logo-dark,
.menu[data-theme="light"] .o-logo-dark { display: none !important; }
.bn[data-tone="light"] .o-logo-light,
#navbar[data-theme="light"] .o-logo-light,
.menu[data-theme="light"] .o-logo-light { display: block !important; }

.bn-logo img { border-radius: 0; object-fit: contain; }
.nav-corner .o-wordmark,
.menu-logo .o-wordmark { height: 2.25rem; width: auto; }
.menu-logo .o-wordmark { height: 1.9rem; }

/* ---------- Floating menu bar ---------- */
.bn { --accent: var(--o-coral); }
.bn-talk { background: var(--o-coral) !important; color: #fff !important; }
.bn-talk:hover { background: var(--o-ink) !important; color: #fff !important; }
.bn[data-tone="light"] .bn-talk:hover { background: var(--o-ink) !important; }

/* ---------- Work section: warm off-white instead of cool grey ---------- */
.wk-panel, .wk-card { background: linear-gradient(0deg, var(--o-paper) 0%, #FFFFFF 100%) !important; }

/* ---------- Services playground: off-white frame, refined chips ---------- */
.pg { background: var(--o-paper) !important; }
.pg-box {
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(112, 88, 214, .30), transparent 70%),
    radial-gradient(50% 50% at 90% 100%, rgba(200, 94, 61, .22), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--o-ink) !important;
}
.pg-chip { color: #fff; }
.pg-chip b { background: rgba(255, 255, 255, .2); }
.pg-chip[data-g="0"] { --bg: var(--o-violet) !important; }
.pg-chip[data-g="1"] { --bg: var(--o-coral) !important; }
.pg-chip[data-g="2"] { --bg: var(--o-forest) !important; }
.pg-chip[data-g="3"] { --bg: var(--o-paper) !important; color: var(--o-ink); }
.pg-chip[data-g="3"] b { background: rgba(17, 17, 17, .12); }
.pg-chip[data-g="4"] { --bg: #FFFFFF !important; color: var(--o-ink); }
.pg-chip[data-g="4"] b { background: rgba(17, 17, 17, .12); }
.pg-leg button:nth-child(1) { --c: var(--o-violet) !important; }
.pg-leg button:nth-child(2) { --c: var(--o-coral) !important; }
.pg-leg button:nth-child(3) { --c: var(--o-forest) !important; }
.pg-leg button:nth-child(4) { --c: var(--o-paper) !important; }
.pg-leg button:nth-child(5) { --c: #FFFFFF !important; }
.pg-leg button i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Resources: forest green panel ---------- */
#faq {
  background: var(--o-forest) !important;
  border-radius: 1.75rem 1.75rem 0 0;
}

/* ---------- Closing call-to-action: violet panel ---------- */
#cta-section {
  background: var(--o-violet) !important;
  border-radius: 1.75rem 1.75rem 0 0;
}

/* Blend modes in the CTA were tuned for black; keep colours true on violet */
#cta-section, #cta-section * { mix-blend-mode: normal !important; }

/* ---------- Hero statement: large uppercase text, same blend-difference gradient look ---------- */
.o-hero-word {
  font-size: clamp(1.75rem, 5.2vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
  max-width: 17ch;
  white-space: normal;
}
@media (min-width: 768px) { .o-hero-word { max-width: 20ch; } }

/* ---------- Menu bar: clean focus states (no square outline), cleaner glass ---------- */
.bn a:focus,
.bn button:focus,
.bn a:focus-visible,
.bn button:focus-visible { outline: none !important; }

/* keyboard users still get a clear cue: soft pill highlight that keeps the button's shape */
.bn .bn-toggle:focus-visible,
.bn .bn-talk:focus-visible {
  border-radius: 999px !important;
  background: var(--fill) !important;
  box-shadow: none;
}
.bn .bn-talk:focus-visible { background: var(--o-ink) !important; color: #fff !important; }
.bn .bn-logo:focus-visible,
.bn .bn-page:focus-visible,
.bn .bn-service:focus-visible,
.bn .bn-social:focus-visible { border-radius: 999px !important; background: var(--fill); }

/* light tone: whiter glass so it doesn't look grey/dirty over dark imagery */
.bn[data-tone="light"] { --glass: rgba(255, 255, 255, .92); }
.bn[data-tone="dark"]  { --glass: rgba(20, 20, 20, .72); }

/* idle bar stays crisp (original faded it to 35%, which washed out the coral button) */
.bn[data-compact][data-view="closed"] .bn-bar { opacity: .92; }

/* ---------- Hero (top of page, bar not yet scrolled): solid off-white pill ---------- */
.bn:not([data-scrolled])[data-view="closed"] {
  --ink: #111111;
  --ink-rgb: 17 17 17;
  --fill: rgba(17, 17, 17, .07);
}
.bn:not([data-scrolled])[data-view="closed"] .bn-ground,
.bn:not([data-scrolled])[data-view="closed"] .bn-box:hover .bn-ground {
  background-color: var(--o-paper) !important;
  background-image: none !important;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bn:not([data-scrolled])[data-view="closed"] .o-logo-dark { display: none !important; }
.bn:not([data-scrolled])[data-view="closed"] .o-logo-light { display: block !important; }
.bn:not([data-scrolled])[data-view="closed"] .bn-bar { opacity: 1; }

/* ---------- Work cards: website screenshots floating on colour-gradient tiles ---------- */
.wk-img { box-shadow: 0 1px 0 rgba(17, 17, 17, .06), 0 18px 40px -18px rgba(17, 17, 17, .35); }
.wk-ph--shot {
  inset: 9% 7% !important;
  width: 86%; height: 82%;
  padding: 0 !important;
  object-fit: cover; object-position: top center;
  border-radius: .6rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18);
  display: block;
}
.wk-ph--shot::before { display: none; }

/* ---------- Light sections after the (unchanged, dark) hero ----------
   Done by inverting a near-black base (#121317 -> #EDECE8) so text, lines and the
   scroll animations inside keep working exactly as before, just dark-on-light. */
.ab,
.o-lightpanel {
  background-color: #121317 !important;
  filter: invert(1);
}

/* ---------- Studio intro: clean two-column alignment (no overlapping text) ---------- */
[data-about-right-col] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
[data-about-right-col] > div[data-reveal-stagger] {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  max-width: 30rem;
  padding-left: 0;
}
@media (min-width: 1024px) {
  [data-about-right-col] { padding-left: 2.5rem; }
}

/* Studio intro: single, aligned headline in the right column */
[data-about-right-col] > p {
  font-size: clamp(1.75rem, 3.2vw, 3.3rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em;
  text-indent: 0 !important;
  max-width: 22ch;
  margin: 0;
}

/* ---------- Services list: colour tiles for cards without a photo ---------- */
.o-svc-tile {
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: #fff;
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  line-height: .95;
  letter-spacing: -.05em;
}

/* Services list: product shots keep their own proportions */
.o-svc-img { display: block; width: clamp(300px, 42vw, 640px); max-width: 100%; height: auto; border-radius: 0; }
.o-svc-img--square { width: clamp(280px, 32vw, 500px); }

/* ---------- FAQ accordion ---------- */
.o-faq { border-top: 1px solid rgba(255, 255, 255, .15); }
.o-faq-item { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.o-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3rem 1fr 1.5rem;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
}
@media (min-width: 768px) { .o-faq-item summary { grid-template-columns: 4rem 1fr 1.5rem; padding: 1.75rem 0; } }
.o-faq-item summary::-webkit-details-marker { display: none; }
.o-faq-num { font-family: 'Inter', sans-serif; font-size: .875rem; color: rgba(255, 255, 255, .5); }
.o-faq-q {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: clamp(1.125rem, 1.7vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.o-faq-item summary:hover .o-faq-q { transform: translateX(.5rem); }
.o-faq-ico { position: relative; width: 1.1rem; height: 1.1rem; align-self: center; justify-self: end; }
.o-faq-ico::before, .o-faq-ico::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: #fff;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.o-faq-ico::after { transform: rotate(90deg); }
.o-faq-item[open] .o-faq-ico::after { transform: rotate(0deg); opacity: 0; }
.o-faq-a { padding: 0 2.5rem 1.75rem 4rem; max-width: 46rem; color: rgba(255, 255, 255, .82); line-height: 1.7; }
@media (max-width: 767px) { .o-faq-a { padding: 0 0 1.5rem 4rem; } }
.o-faq-item[open] .o-faq-a { animation: o-faq-in .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes o-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.o-faq-item summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ---------- Testimonials: violet panel instead of black ---------- */
#reviews-section {
  background: var(--o-violet);
  border-radius: 1.75rem 1.75rem 0 0;
  margin-top: -1.75rem;
}
#reviews-section h2 { color: #fff; }
#reviews-section .review-quote { color: rgba(255, 255, 255, .94); }
#reviews-section .review-author { color: #fff; }
#reviews-section .review-avatar { background-color: rgba(255, 255, 255, .25); }
#reviews-section #review-prev,
#reviews-section #review-next { border-color: rgba(255, 255, 255, .6); }
#reviews-section #review-prev:hover,
#reviews-section #review-next:hover { border-color: #fff; background-color: rgba(255, 255, 255, .14); }

/* ---------- Our own products (placeholders until content is supplied) ---------- */
.o-products {
  position: relative; z-index: 10;
  background: var(--o-paper); color: var(--o-ink);
  border-radius: 1.75rem 1.75rem 0 0;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem) calc(clamp(5rem, 10vw, 9rem) + 1.75rem);
}
#faq { position: relative; z-index: 11; margin-top: -1.75rem; }
.o-products-inner { max-width: 1480px; margin: 0 auto; }
.o-prod-head {
  display: grid; gap: 2rem; align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 900px) { .o-prod-head { grid-template-columns: 1.3fr .7fr; } }
.o-prod-eyebrow { font-family: 'Inter', sans-serif; font-size: .875rem; color: var(--grey); margin: 0 0 1.5rem; }
.o-prod-title {
  margin: 0; font-family: 'Geist', 'Inter', sans-serif; font-weight: 500;
  font-size: clamp(3.25rem, 9vw, 9rem); line-height: .92; letter-spacing: -.055em;
}
.o-prod-intro { margin: 0; max-width: 28rem; font-size: 1.0625rem; line-height: 1.6; color: #444; }
.o-prod-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem); }
@media (min-width: 800px) { .o-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.o-prod-panel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 5 / 4; border-radius: 1.25rem; padding: clamp(1.25rem, 2vw, 2rem);
  color: #fff; text-decoration: none; overflow: hidden;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), border-radius .8s cubic-bezier(.22, 1, .36, 1);
}
.o-prod-panel:hover { transform: scale(.985); border-radius: 1.75rem; }
.o-prod-idx { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem; letter-spacing: .06em; opacity: .85; }
.o-prod-name {
  font-family: 'Geist', 'Inter', sans-serif; font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: .92; letter-spacing: -.05em;
}
.o-prod-meta { margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid rgba(17, 17, 17, .14); padding-top: 1.25rem; }
@media (max-width: 560px) { .o-prod-meta { grid-template-columns: 1fr; } }
.o-prod-meta dt { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: .35rem; }
.o-prod-meta dd { margin: 0; font-size: .98rem; line-height: 1.45; }
.o-prod-link {
  display: inline-block; margin-top: 1.25rem; color: var(--o-ink); text-decoration: none;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--o-ink); padding-bottom: .25rem; transition: gap .3s ease, color .3s ease, border-color .3s ease;
}
.o-prod-link:hover { color: var(--o-coral); border-color: var(--o-coral); }
/* placeholder cues */
.o-ph { color: var(--grey); border-bottom: 1px dashed currentColor; width: fit-content; }
.o-ph-light { opacity: .92; border-bottom: 1px dashed rgba(255, 255, 255, .55); width: fit-content; }

/* testimonials: smooth enter/exit (values driven by omiee-motion.js) */
#reviews-section .grid { will-change: transform, opacity, filter; transform-origin: 50% 40%; }
#reviews-section .self-end { will-change: transform; }

/* footer now follows the FAQ directly: rounded overlap like the other panels */
#faq { padding-bottom: calc(clamp(6rem, 8vw, 8rem) + 1.75rem); }
#site-footer {
  position: relative; z-index: 12; margin-top: -1.75rem;
  border-radius: 1.75rem 1.75rem 0 0; overflow: hidden;
}

/* ---------- Menu buttons: hover uses a palette colour so the text stays readable ---------- */
.bn .bn-toggle:hover,
.bn .bn-talk:hover,
.bn .bn-toggle:focus-visible,
.bn .bn-talk:focus-visible {
  background: var(--o-violet) !important;
  color: #fff !important;
}
.bn .bn-social:hover { background: var(--o-violet); color: #fff; }
.bn .bn-book { background: linear-gradient(#2a2a2a, #111); }
.bn .bn-book:hover { background: var(--o-violet); }
