/* Kambasha Jewellery Co — layout: full-bleed video heroes, cream/black bands, floating icon dock */
:root {
  --black: #050506;
  --night: #0c0b0e;
  --cream: #ece4d0;
  --paper: #f4f1d3;
  --ink: #17120c;
  --gold: #cba35f;
  --gold-hi: #e8cc8c;
  --copper: #c9884a;
  --mist: #d9d2c2;
  --line: rgba(203, 163, 95, 0.28);

  --display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --accent: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.19, 0.8, 0.22, 1);
  --hh: 58px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.splash-on, html.splash-on body { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--mist);
  font: 400 16px/1.7 var(--sans);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- splash ---------- */
.splash { display: none; }
html.splash-on .splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 42%, #14110d 0%, #050506 62%);
  transition: opacity 1s var(--ease) 0.15s, visibility 0s linear 1.2s;
}
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-inner { position: relative; display: grid; justify-items: center; gap: clamp(28px, 6vh, 56px); padding: 0 var(--gr) 0 var(--gl); }
.splash-logo {
  width: min(78vw, 600px);
  filter: drop-shadow(0 0 22px rgba(203, 163, 95, 0.28));
  animation: glow 3.6s ease-in-out 3s infinite;
  transition: transform 1.2s var(--ease);
}
.splash-logo .lm {
  -webkit-mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: wipe 2.6s var(--ease) 0.4s both;
}
.splash-logo img { width: 100%; height: auto; }
@keyframes wipe {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes glow {
  50% { filter: drop-shadow(0 0 34px rgba(232, 204, 140, 0.5)); }
}
.start {
  position: relative; cursor: pointer;
  padding: 16px 46px; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-hi);
  font-size: 12px; letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transform: translateY(14px);
  animation: rise 1s var(--ease) 3.1s forwards;
  transition: background 0.4s, color 0.4s;
}
.start::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--gold); opacity: 0; animation: ring 2.4s ease-out 4.2s infinite;
}
.start:hover, .start:focus-visible { background: var(--gold); color: var(--black); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45, 1.9); } }
html.splash-on .splash.leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.leaving .splash-logo { transform: scale(1.12); }

/* ---------- page fade ---------- */
.veil { position: fixed; inset: 0; z-index: 150; background: var(--black); opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
.veil.out { opacity: 1; pointer-events: all; }

/* ---------- top menu ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl);
  background: rgba(5, 5, 6, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 163, 95, 0.14);
  transition: background 0.4s;
}
.topbar nav { height: var(--hh); display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3.4vw, 46px); }
.topbar a {
  position: relative; padding: 6px 0;
  font-size: clamp(10px, 2.7vw, 12.5px); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: rgba(236, 228, 208, 0.62); white-space: nowrap; transition: color 0.3s;
}
.topbar a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform 0.5s var(--ease);
}
.topbar a:hover, .topbar a[aria-current="page"] { color: #fff; }
.topbar a:hover::after, .topbar a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- heroes ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--black); isolation: isolate; }
.hero--inner { min-height: 84vh; min-height: 84svh; }
.hero .bg { position: absolute; left: 0; right: 0; top: -10%; height: 120%; z-index: -2; will-change: transform; }
.hero .bg video, .hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0.08) 58%, rgba(5, 5, 6, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0) 46%);
}
.hero--founder::after {
  background:
    linear-gradient(270deg, rgba(5, 5, 6, 0.62) 0%, rgba(5, 5, 6, 0.08) 58%, rgba(5, 5, 6, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0) 46%);
}
.hero-logo { position: absolute; top: calc(var(--hh) + 11vh); right: max(9vw, env(safe-area-inset-right, 0px)); width: clamp(168px, 29vw, 460px); filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.5)); }
.hero-logo img { width: 100%; height: auto; }
.hero-copy {
  position: absolute; left: var(--gl); right: var(--gr); bottom: clamp(104px, 17vh, 170px);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px clamp(24px, 4vw, 60px);
}
.hero h1 {
  margin: 0; font: 500 clamp(56px, 9.6vw, 176px)/0.88 var(--display);
  letter-spacing: -0.045em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hero-copy p { margin: 0.9em 0 0; max-width: 34ch; font-size: clamp(12.5px, 1.25vw, 15px); line-height: 1.65; color: #f1ebdd; }
.enter {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 0 10px; margin-bottom: 6px;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 500; color: #fff;
}
.enter i { display: block; width: 46px; height: 1px; background: var(--gold-hi); transform-origin: left; animation: pulseline 2.4s ease-in-out infinite; }
.enter:hover i { animation: none; transform: scaleX(1.7); transition: transform 0.5s var(--ease); }
@keyframes pulseline { 50% { transform: scaleX(1.6); } }

.hero--inner .hero-copy { bottom: clamp(110px, 18vh, 180px); display: block; }
.hero--inner h1 { font-size: clamp(54px, 10.5vw, 160px); text-transform: none; letter-spacing: -0.04em; line-height: 0.95; }
.hero--inner p { max-width: 30ch; font-size: clamp(14px, 1.4vw, 17px); }
.hero--founder .hero-copy { text-align: right; }
.hero--founder .hero-copy p { margin-left: auto; }
.pill {
  display: inline-block; margin-top: 28px; padding: 15px 32px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s;
}
.pill:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }

/* ---------- banner ---------- */
.banner { position: relative; height: clamp(250px, 46vh, 440px); overflow: hidden; display: flex; align-items: center; isolation: isolate; background: #05080d; }
.banner .bg { position: absolute; left: 0; right: 0; top: -18%; height: 136%; z-index: -2; }
.banner .bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-2%); } }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 6, 12, 0.55), rgba(3, 6, 12, 0) 70%); }
.banner h2 { margin: 0; padding: 0 var(--gr) 0 var(--gl); font: 500 clamp(40px, 8vw, 128px)/0.92 var(--display); letter-spacing: -0.04em; text-transform: uppercase; color: #fff; }

/* ---------- contact ---------- */
.contact { background: var(--cream); color: var(--ink); padding: clamp(56px, 9vw, 120px) var(--gr) clamp(56px, 9vw, 120px) var(--gl); }
.contact-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact-copy { text-align: center; min-width: 0; }
.contact-copy h3 { margin: 0 0 1.1em; font: 500 clamp(28px, 3.6vw, 48px)/1.08 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.contact-copy p { margin: 0 auto 1em; max-width: 44ch; font-size: 15px; line-height: 1.75; }
.mail-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 1.1em 0; }
.mail { font: 600 clamp(17px, 2vw, 24px)/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; border-bottom: 1px solid var(--copper); }
.copy-btn { border: 1px solid rgba(23, 18, 12, 0.35); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.copy-btn:hover { background: var(--ink); color: var(--cream); }
.form-card { min-width: 0; background: #f7f2e4; border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(23, 18, 12, 0.35); }
.form-card label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.form-card input, .form-card textarea {
  width: 100%; margin: 0 0 18px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(23, 18, 12, 0.55); background: #f6f6cf; color: var(--ink); transition: box-shadow 0.3s, border-color 0.3s;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201, 136, 74, 0.3); }
.send { width: 100%; border: 0; border-radius: 999px; padding: 14px; background: var(--copper); color: #fff; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.send:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(201, 136, 74, 0.8); }
.form-status { margin-top: 18px; font-size: 14px; line-height: 1.6; }
.form-status[hidden] { display: none; }
.form-status .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.form-status .acts a, .form-status .acts button { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--ink); font-size: 12px; letter-spacing: 0.08em; cursor: pointer; }

/* ---------- content sections ---------- */
.about-text { background: var(--paper); color: var(--ink); padding: clamp(56px, 9vw, 120px) var(--gr) clamp(56px, 8vw, 100px) var(--gl); }
.measure { max-width: 940px; margin: 0 auto; }
.about-text p { margin: 0 0 1.4em; font-size: clamp(15.5px, 1.5vw, 18.5px); line-height: 1.85; }
.quote { margin: 1.6em 0 0; padding-top: 1.4em; position: relative; font: italic 400 clamp(26px, 3.6vw, 46px)/1.25 var(--accent); }
.quote::before { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 1px; background: var(--copper); }

.founder-text { background: var(--black); padding: clamp(56px, 9vw, 120px) var(--gr) clamp(56px, 8vw, 100px) var(--gl); }
.founder-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { position: sticky; top: calc(var(--hh) + 28px); overflow: hidden; border-radius: 4px; aspect-ratio: 2 / 3; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 204, 140, 0.45); pointer-events: none; }
.bio p { margin: 0 0 1.5em; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.9; color: #cfc8b8; }
.bio p.lede { font: 400 clamp(21px, 2.2vw, 29px)/1.5 var(--accent); color: #f3ecdc; }
.bio .sign { font: italic 400 clamp(22px, 2.6vw, 32px)/1.3 var(--accent); color: var(--gold-hi); }

.strip { position: relative; height: clamp(220px, 40vh, 400px); overflow: hidden; isolation: isolate; background: #1a110a; }
.strip .bg { position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: -1; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--black); text-align: center; padding: clamp(56px, 8vw, 96px) var(--gr) calc(130px + env(safe-area-inset-bottom, 0px)) var(--gl); }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; width: min(520px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer p { margin: 0 auto; font: 400 clamp(18px, 2.7vw, 30px)/1.35 var(--display); letter-spacing: -0.025em; color: #ece6d6; text-wrap: balance; }
.footer .mark { width: clamp(130px, 16vw, 190px); height: auto; margin: 26px auto 0; opacity: 0.95; }
.splash-logo img, .hero-logo img { height: auto; }
.footer small { display: block; margin-top: 22px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(236, 228, 208, 0.45); }

/* ---------- floating dock ---------- */
.dock {
  position: fixed; left: 50%; z-index: 90; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 6px; padding: 8px; border-radius: 999px;
  background: rgba(14, 13, 16, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translate(-50%, 140%); transition: transform 1s var(--ease) 0.6s;
}
html.ready .dock, html:not(.js) .dock { transform: translate(-50%, 0); }
.dock a { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #cfc8b8; transition: color 0.3s, background 0.4s, transform 0.4s var(--ease); }
.dock a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover { color: #fff; transform: translateY(-4px); }
.dock a[aria-current] { color: #0b0a0d; background: linear-gradient(135deg, var(--gold-hi), #b88a43); box-shadow: 0 6px 18px rgba(203, 163, 95, 0.45); }
.dock .tip {
  position: absolute; bottom: 62px; left: 50%; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--black); border: 1px solid var(--line); color: var(--gold-hi);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 44px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js [data-reveal="left"] { transform: translate3d(-70px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(70px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(0.9); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) var(--d, 0s); }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--d, 0s); }
.js [data-reveal="line"].in { transform: scaleX(1); }
.js [data-reveal="wipe"] {
  opacity: 1; transform: none;
  -webkit-mask-image: linear-gradient(100deg, #000 45%, transparent 55%); mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 2.4s var(--ease) var(--d, 0s), mask-position 2.4s var(--ease) var(--d, 0s);
}
.js [data-reveal="wipe"].in { -webkit-mask-position: 0 0; mask-position: 0 0; }
.js [data-reveal="words"] { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; }
.js [data-reveal="words"] .w > span { transform: translateY(112%); transition: transform 1.1s var(--ease) calc(var(--d, 0s) + var(--i) * 0.07s); }
.js [data-reveal="words"].in .w > span { transform: none; }

@media (max-width: 800px) {
  .contact-grid, .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: relative; top: 0; max-width: 420px; margin: 0 auto; }
  .hero-logo { top: calc(var(--hh) + 7vh); right: max(7vw, env(safe-area-inset-right, 0px)); width: clamp(150px, 46vw, 260px); }
  .hero h1 { font-size: clamp(54px, 17.5vw, 110px); }
  .hero--inner h1 { font-size: clamp(46px, 13.5vw, 100px); }
  .hero-copy { bottom: 120px; }
  .hero-copy p { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .start { opacity: 1; transform: none; }
}
