/* Ivory + espresso palette, taken from the Oxyriz LinkedIn renders: warm ivory pages, deep espresso
   panels lit by a copper glow, and copper accents. Loaded last on every page. */
:root {
  --espresso-950: #110d09;
  --espresso-900: #18120d;
  --espresso-800: #231b14;
  --on-espresso: #f3eadb;
  --on-espresso-muted: rgba(243, 234, 219, 0.66);
  --espresso-line: rgba(255, 222, 186, 0.1);
  --copper-300: #e2a86e;
  --copper-400: #c4854a;
  --copper-500: #a76d3b;
  --copper-glow: rgba(226, 168, 110, 0.35);
  --espresso-surface:
    radial-gradient(120% 90% at 88% -10%, rgba(226, 168, 110, 0.2), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(167, 109, 59, 0.16), transparent 60%),
    linear-gradient(180deg, #1e1711 0%, #120e0a 100%);
  /* Fine film grain so dark panels read as rendered rather than flat. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html:not([data-theme="dark"]) { --page: #f8f6f1; }
html:not([data-theme="dark"]) body { background: #f8f6f1; }

/* Espresso panels */
.v2-journey, .v2-closing, .legal-help, .help-contact, .cta-band {
  position: relative; isolation: isolate;
  background: var(--espresso-surface) !important;
  color: var(--on-espresso) !important;
  border: 1px solid var(--espresso-line) !important;
  box-shadow: 0 1px 0 rgba(255, 222, 186, 0.06) inset, 0 34px 70px -38px rgba(17, 13, 9, 0.75) !important;
}
.v2-journey::after, .v2-closing::after, .legal-help::after, .help-contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay;
}
.v2-journey { --v2-panel-ink: var(--on-espresso); --v2-panel-muted: var(--on-espresso-muted); }
.v2-journey-top, .v2-journey-bottom, .v2-stage-tabs { border-color: var(--espresso-line) !important; }
.v2-stage-tabs button[aria-selected="true"] { color: var(--copper-300) !important; border-color: var(--copper-300) !important; }
.v2-processor { background: linear-gradient(160deg, #2a2017, #17120d) !important; border-color: rgba(226, 168, 110, 0.55) !important; box-shadow: 0 0 46px rgba(226, 168, 110, 0.22), 0 0 0 1px rgba(226, 168, 110, 0.12) inset !important; }
.v2-output-grid span { background: #f0dcbc !important; box-shadow: 2px 3px 0 var(--copper-500), 0 0 12px rgba(226, 168, 110, 0.35) !important; }
.v2-closing .v2-eyebrow, .v2-closing em, .legal-help h2 em { color: var(--copper-300) !important; }
.v2-closing h2, .legal-help h2, .help-contact h2 { color: var(--on-espresso) !important; }
.legal-help p, .help-contact p { color: var(--on-espresso-muted) !important; }
.v2-closing-orbit { border-color: rgba(226, 168, 110, 0.22) !important; box-shadow: 0 0 0 64px rgba(226, 168, 110, 0.035), 0 0 0 128px rgba(226, 168, 110, 0.025), 0 0 120px rgba(226, 168, 110, 0.12) inset !important; }

/* Primary buttons: espresso with a soft copper halo on hover. */
.v2-button:not(.v2-button-light), .action-primary, .nav-contact, .help-contact-actions > a, .robotics-cta, .career-apply-wrap button,
main a.inline-flex.bg-fg, main button[type="submit"] {
  background: linear-gradient(180deg, #2a2118, #18120d) !important; border-color: #18120d !important; color: #f8f1e4 !important;
  transition: box-shadow 0.2s ease-out, transform 0.1s ease-out, background-color 0.2s !important;
}
.v2-button:not(.v2-button-light):hover, .action-primary:hover, .nav-contact:hover, .help-contact-actions > a:hover, .robotics-cta:hover, .career-apply-wrap button:hover,
main a.inline-flex.bg-fg:hover, main button[type="submit"]:hover {
  box-shadow: 0 0 0 1px rgba(226, 168, 110, 0.45), 0 12px 26px -12px rgba(167, 109, 59, 0.7) !important;
}
.v2-button-light, .legal-help a, .help-contact > a { background: linear-gradient(180deg, #f6ecdc, #e8d8be) !important; color: #18120d !important; }
.v2-button-light:hover, .legal-help a:hover, .help-contact > a:hover { box-shadow: 0 0 0 1px rgba(226, 168, 110, 0.6), 0 0 24px rgba(226, 168, 110, 0.35) !important; }
.v2-service:hover .v2-round-arrow { background: #18120d !important; border-color: #18120d !important; }

/* Copper details on light pages */
.v2-dot, .eyebrow-dot { box-shadow: 0 0 10px rgba(167, 109, 59, 0.45); }
.scroll-progress { background: linear-gradient(90deg, var(--copper-500), var(--copper-300)) !important; }
::selection { background: rgba(226, 168, 110, 0.32); }

/* Dark theme keeps the same espresso panels, a touch deeper. */
html[data-theme="dark"] {
  --espresso-surface:
    radial-gradient(120% 90% at 88% -10%, rgba(226, 168, 110, 0.16), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(167, 109, 59, 0.12), transparent 60%),
    linear-gradient(180deg, #1a140f 0%, #0d0a07 100%);
}
html[data-theme="dark"] .v2-button:not(.v2-button-light), html[data-theme="dark"] .action-primary, html[data-theme="dark"] .nav-contact, html[data-theme="dark"] main button[type="submit"] {
  background: linear-gradient(180deg, #f6ecdc, #e3d1b5) !important; border-color: #e3d1b5 !important; color: #18120d !important;
}

.help-contact { border-radius: 14px; }
