/* Marube Labs — shared styles (all pages) */
@import url("../fonts/fonts.css");

:root {
  --ink: #1b2742;
  --ink-soft: #46516e;
  --ink-faint: #737d96;
  --gold: #c99a3e;
  --gold-hi: #f6dc95;
  --gold-deep: #a5762a;
  --gold-grad: linear-gradient(180deg, #ecc86e 0%, #b4842a 100%);
  --cloud: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --gray: #8b93a5;
  --red: #b5434a;
  --shadow: 0 30px 80px rgba(46, 64, 110, 0.14);
  --shadow-gold: 0 40px 110px rgba(201, 154, 62, 0.26);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: #eef4fc;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
em, .serif { font-family: "EB Garamond", Georgia, serif; font-style: italic; font-weight: 500; }
.gold-text {
  background: linear-gradient(100deg, #b4842a 0%, #e9c46a 30%, #fff3c9 45%, #e9c46a 60%, #b4842a 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .05em;
}
.shimmer { animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: -40% 0; } }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(201, 154, 62, .7); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sky ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#sky-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 46%, rgba(255, 244, 210, .95), rgba(255, 244, 210, 0) 70%),
    linear-gradient(180deg, #a9c8ee 0%, #dbe7f7 40%, #fff1d6 52%, #ffffff 70%, #eef3fb 100%);
}
#grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background .4s, box-shadow .4s;
}
.nav.solid { background: rgba(255, 255, 255, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(46, 64, 110, .06); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: .28em; font-size: 15px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(31, 43, 71, .1); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: rgba(250, 252, 255, .96);
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu a { font-size: clamp(34px, 9vw, 52px); font-weight: 300; letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid rgba(31, 43, 71, .07); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a span { font-size: 18px; color: var(--gold); }
.mobile-menu .btn { margin-top: 26px; justify-content: center; font-size: 18px; padding: 18px; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 0; min-height: 48px;
  font: 500 16px/1 "Outfit", sans-serif; letter-spacing: .02em; white-space: nowrap;
  padding: 15px 26px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #ddb35b, #b4842a);
  box-shadow: 0 12px 32px rgba(180, 132, 42, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative; overflow: hidden;
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(180, 132, 42, .48), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(31, 43, 71, .14); }
.btn.ghost::before { display: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- shared blocks ---------- */
section { position: relative; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.h2 { font-weight: 300; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.035em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.glass.gold { border-color: rgba(246, 220, 149, .95); box-shadow: var(--shadow-gold), inset 0 1px 0 #fff; }

/* real brand logo, drawn in its brand colour */
.logo-chip {
  --c: #333; display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 22px rgba(30, 40, 70, .14), inset 0 0 0 1px rgba(31, 43, 71, .06);
}
.logo-chip i { display: block; width: 58%; height: 58%; background: var(--c); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- footer ---------- */
footer { padding: 60px var(--gutter) calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .7); background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); }
.foot-grid { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 14px; }
.foot-grid a, .foot-grid button { display: block; color: var(--ink-soft); font-size: 15px; padding: 5px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.foot-grid a:hover, .foot-grid button:hover { color: var(--ink); }
.foot-legal { width: min(1240px, 100%); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(31, 43, 71, .07); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); line-height: 1.6; }

/* ---------- cookie consent ---------- */
.cookie {
  position: fixed; z-index: 80; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  width: min(760px, calc(100% - 24px)); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: var(--glass-strong); transition: transform .7s var(--ease);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 220, 149, .35); font-size: 22px; }
.cookie p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.cookie p a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie .row { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie .btn { padding: 12px 20px; font-size: 15px; }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(27, 39, 66, .28); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-back.show { display: flex; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 32px; background: #fff; }
.modal h3 { font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.modal > p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.pref { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(31, 43, 71, .08); }
.pref b { font-weight: 500; display: block; margin-bottom: 4px; }
.pref span { font-size: 14px; color: var(--ink-faint); line-height: 1.5; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d6dbe5; transition: background .3s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:disabled + i { opacity: .6; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 10vh) 0 6vh; text-align: center; }
.page-hero .h2 { font-size: clamp(48px, 8vw, 120px); margin-top: 16px; }
.page-hero .lead { margin: 22px auto 0; max-width: 640px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav .nav-cta { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .brand { font-size: 13px; letter-spacing: .22em; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .cookie { grid-template-columns: 1fr; padding: 18px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cookie .ico { display: none; }
  .cookie .row .btn { flex: 1 1 auto; }
  .modal { padding: 24px 20px; }
}
/* phones: frosted glass is expensive, use a solid frost instead */
@media (max-width: 640px), (pointer: coarse) {
  #grain { display: none; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .84); }
  .nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .92); }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer { animation: none; background-position: 50% 0; }
  * { transition-duration: .01ms !important; }
}
.modal.glass { background: #fff; }
.modal-back.show ~ .cookie, .modal-back.show + .cookie { visibility: hidden; }
