/* thegemcutter.eu — styles. Palette and type follow DESIGN.md. */
:root {
  --bg: #100904;
  --cream: #ffedd7;
  --cream-78: rgba(255, 237, 215, 0.78);
  --ember: #dc5000;
  --line: #40372e;
  --line-2: #6c5f51;
  --umber: #382416;
  --gutter: clamp(16px, 3vw, 41px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.page {
  background: var(--bg); color: var(--cream);
  font-family: 'Hanken Grotesk', 'Neue Haas Grotesk Text', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 500; text-transform: uppercase;
  min-height: 100vh; overflow-x: hidden; overflow-wrap: break-word;
}
a { color: var(--cream); }
a:hover { color: #fff; }
input, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: rgba(255, 237, 215, 0.45); }
input, textarea { transition: border-color .4s ease; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ember) !important; }
a:focus-visible, button:focus-visible { outline: 1px dashed var(--cream); outline-offset: 4px; }
a, button { transition: color .3s ease, background-color .35s ease, border-color .35s ease, opacity .35s ease, transform .35s ease; }

/* ---------- shared type & bits ---------- */
.t10 { font-size: 10px; } .t12 { font-size: 12px; } .t14 { font-size: 14px; }
.t18 { font-size: 18px; line-height: 1.09; } .t24 { margin: 0; font-size: 24px; line-height: 1.09; white-space: pre-line; }
.lh1 { line-height: 1; } .center { text-align: center; } .pt2 { padding-top: 2px; }
.dim { opacity: .6; } .dim78 { color: var(--cream-78); }
.eyebrow { margin: 0; font-size: 12px; color: var(--ember); }
.h1 { margin: 0; font-size: clamp(52px, 10.4vw, 160px); line-height: .9; font-weight: 500; }
.h2 { margin: 0; font-size: clamp(36px, 3.6vw, 51px); line-height: .9; font-weight: 500; white-space: pre-line; }
.h3 { margin: 0; font-size: 24px; line-height: 1.09; font-weight: 500; }
.lead { margin: 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.26; font-weight: 400; text-transform: none; }
.lead-sm { margin: 0; font-size: 18px; line-height: 1.26; font-weight: 400; text-transform: none; color: var(--cream-78); }
.body15 { margin: 0; font-size: 15px; line-height: 1.26; font-weight: 400; text-transform: none; }
.body16 { margin: 0; font-size: 16px; line-height: 1.26; font-weight: 400; text-transform: none; color: var(--cream-78); }
.body18 { margin: 0; font-size: 18px; line-height: 1.26; font-weight: 400; text-transform: none; color: var(--cream-78); }
.maxw { max-width: 460px; }
.rule { border-top: 1px dashed var(--line); }
.rule-light { border-top-color: var(--line-2); }
.divider { margin: 0 var(--gutter); border-top: 1px dashed var(--line); }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-31 { display: flex; flex-direction: column; gap: 31px; }
.stack-41 { display: flex; flex-direction: column; gap: 41px; }
.pill { text-decoration: none; font-size: 12px; border: 1px solid var(--cream); border-radius: 22.5px; padding: 12px 22px; display: inline-block; }
.gem { width: 100%; height: 100%; display: block; overflow: visible; }
.gem polygon { stroke: rgba(255, 237, 215, .22); stroke-width: .7; stroke-linejoin: round; transition: fill .9s ease; }
.gem .gc-glint { fill: var(--cream); stroke: none; }

.gc-link { text-decoration: none; background-image: linear-gradient(var(--cream), var(--cream)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease); }
.gc-row { transition: padding-left .5s var(--ease); }
.gc-card { transition: border-color .5s ease, transform .6s var(--ease); }
.gc-gemwrap { transition: transform 1.4s var(--ease); }
@media (hover: hover) {
  .gc-pill:hover { background-color: rgba(255, 237, 215, .1); }
  .gc-solid:hover { background-color: #4a3020 !important; }
  .gc-link:hover { background-size: 100% 1px; }
  .gc-card:hover { border-color: var(--line-2); transform: translateY(-6px); }
  .gc-card:hover .gc-gemwrap { transform: scale(1.07) rotate(6deg); }
  .gc-row:hover { padding-left: 12px; }
}

/* ---------- motion ---------- */
@keyframes gc-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gc-gem-in { from { opacity: 0; transform: scale(.9) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes gc-spin { to { transform: rotate(360deg); } }
@keyframes gc-glint { 0%, 100% { opacity: 0; } 50% { opacity: .4; } }
@keyframes gc-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gc-in { animation: gc-up 1s var(--ease) both; }
.gc-d1 { animation-delay: .12s; } .gc-d2 { animation-delay: .26s; } .gc-d3 { animation-delay: .42s; } .gc-d4 { animation-delay: .6s; }
.gc-gem { width: 100%; height: 100%; animation: gc-gem-in 1.8s var(--ease) .1s both; }
.gc-spin { transform-box: view-box; transform-origin: 250px 250px; animation: gc-spin 200s linear infinite; }
.gem .gc-glint { opacity: 0; animation: gc-glint 7s ease-in-out infinite; }
.gc-swap { animation: gc-swap .6s var(--ease) both; }
@supports (animation-timeline: view()) {
  .gc-reveal { animation: gc-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

/* ---------- header ---------- */
.gc-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 24px var(--gutter); }
.logo-a { display: inline-flex; align-items: center; min-height: 44px; }
.gc-logo { display: block; width: 172px; height: 44px; }
.gc-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 41px); }
.gc-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 31px); font-size: 12px; }
.nav-a { text-decoration: none; padding: 14px 0 4px; }
.nav-current { border-bottom: 1px dashed var(--cream); }
.gc-langs { display: flex; align-items: center; gap: 2px; padding-left: clamp(0px, 1.6vw, 24px); border-left: 1px dashed var(--line); }
.lang-a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; font-size: 12px; text-decoration: none; border-bottom: 1px dashed transparent; opacity: .6; }
.lang-a.is-on { border-bottom-color: var(--cream); opacity: 1; }

/* ---------- hero ---------- */
.gc-hero { position: relative; min-height: 920px; display: flex; flex-direction: column; justify-content: space-between; padding: 132px var(--gutter) 41px; }
.hero-top { position: relative; z-index: 2; }
.hero-tag { margin: 0 0 18px; }
.gc-hero-gem { position: absolute; top: 50%; left: 50%; transform: translate(-30%, -46%); width: min(64vw, 720px); aspect-ratio: 1 / 1; z-index: 1; }
.hero-bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-card { max-width: 380px; padding: 24px; border-radius: 12px; background: rgba(56, 36, 22, .72); display: flex; flex-direction: column; gap: 18px; }
.hero-card p { margin: 0; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.gc-vlabel { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; font-size: 10px; white-space: nowrap; z-index: 2; }

/* ---------- types of cut ---------- */
.gc-craft { min-height: 900px; padding: 120px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 41px 18px; align-items: center; }
.h2-craft { margin: 0; font-size: clamp(32px, 2.9vw, 41px); line-height: .9; font-weight: 500; max-width: 560px; white-space: pre-line; }
.cut-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.cut-pill { background: transparent; color: var(--cream); font-size: 12px; text-transform: uppercase; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 22.5px; border: 1px dashed var(--line-2); transition: border-color .35s ease, background-color .35s ease; }
.cut-pill.is-on { border: 1px solid var(--cream); }
.cut-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cut-stage p { margin: 0; }
.cut-gems { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; }
.cut-layer { position: absolute; inset: 0; opacity: 0; transform: scale(.88) rotate(-10deg); pointer-events: none; transition: opacity .8s ease, transform 1.1s var(--ease); }
.cut-layer.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cut-layer:not(.is-on) .gc-glint { display: none; }
.cut-detail { display: flex; flex-direction: column; gap: 12px; }
.note { margin: 0; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.4; font-weight: 400; text-transform: none; color: var(--cream-78); }

/* ---------- sections ---------- */
.gc-sec { padding: 120px var(--gutter); }
.sec-stack { display: flex; flex-direction: column; gap: 68px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 41px; }
.intro { margin: 0; max-width: 520px; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.26; font-weight: 400; text-transform: none; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 41px 18px; align-items: start; }
.contact { gap: 68px 18px; align-items: stretch; }

/* anatomy */
.anatomy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 41px 68px; align-items: center; }
.fig { margin: 0; }
.fig-box { position: relative; width: 100%; aspect-ratio: 800 / 460; }
.fig-box svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.part-label { position: absolute; left: 75%; transform: translateY(-50%); display: flex; gap: 6px; font-size: 11px; line-height: 1; white-space: nowrap; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px dashed var(--line); }
.legend li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px dashed var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.step { border-top: 1px dashed var(--line-2); padding: 24px 0 41px; display: flex; flex-direction: column; gap: 24px; }

/* stones (hidden for now, see build.py SHOW_STONES) */
.stones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card-wrap { display: flex; }
.gc-card { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.gc-gemwrap { width: 74%; align-self: center; aspect-ratio: 1 / 1; padding: 12px 0; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.h3-card { margin: 0; font-size: 22px; line-height: 1.09; font-weight: 500; }
.card-spec { margin: 0; font-size: 12px; line-height: 1.2; color: var(--cream-78); }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }

/* atelier accordion */
.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px dashed var(--line); }
.acc { border-top: 1px dashed var(--line); }
.acc-h { margin: 0; font: inherit; }
.acc-btn { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; background: transparent; border: 0; color: var(--cream); text-transform: uppercase; text-align: left; cursor: pointer; }
.acc-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9999px; border: 1px dashed var(--line-2); transition: transform .5s var(--ease), border-color .35s ease; }
.acc-btn[aria-expanded="true"] .acc-icon { border: 1px solid var(--cream); transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 1fr; }
.acc-panel > div { min-height: 0; overflow: hidden; }
.acc-text { padding: 0 48px 24px 0; }
/* Without JavaScript the panels stay open; with it they start closed. */
.js .acc-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s linear .55s; }
.js .acc.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s linear 0s; }

/* contact */
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 460px; display: flex; flex-direction: column; border-bottom: 1px dashed var(--line); }
.contact-list li { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-top: 1px dashed var(--line); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.contact-a { text-transform: none; font-size: 18px; line-height: 1.2; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.form-col { display: flex; flex-direction: column; justify-content: center; }
.thanks { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.enquiry { display: flex; flex-direction: column; gap: 31px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 31px 18px; }
.enquiry label { display: flex; flex-direction: column; gap: 10px; font-size: 10px; }
.enquiry input, .enquiry textarea { background: transparent; border: 0; border-bottom: 1px solid var(--cream); border-radius: 0; color: var(--cream); font-size: 18px; padding: 8px 2px; min-height: 28px; text-transform: none; }
.enquiry textarea { resize: vertical; }
.send { background: var(--umber); color: var(--cream); border: 0; border-radius: 36px; padding: 14px 24px; min-height: 44px; font-size: 14px; text-transform: uppercase; cursor: pointer; }

/* footer */
.footer { padding: 68px var(--gutter) 41px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 41px; }
.wordmark { margin: 0; font-size: clamp(32px, 10.4vw, 160px); line-height: .9; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; font-size: 12px; }
.credit { color: var(--ember); }
.gc-foot-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.gc-legal { font-family: Arial, sans-serif; font-size: 8px; color: rgba(255, 237, 215, .7); }

/* back to top */
.to-top { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 48px; height: 48px; padding: 0; border-radius: 9999px; border: 1px solid var(--cream); background-color: var(--umber); color: var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none; transition: opacity .45s ease, transform .45s var(--ease), background-color .35s ease; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .gc-header { position: relative; padding-top: 16px; padding-bottom: 8px; gap: 4px 12px; }
  .gc-header-right { display: contents; }
  .gc-nav { order: 3; width: 100%; justify-content: space-between; gap: 0 12px; }
  .gc-langs { margin-left: auto; padding-left: 0; border-left: 0; }
  .gc-logo { width: 156px; height: 40px; }
  .lang-a { min-width: 36px; padding: 0 4px; }
  .gc-hero { min-height: 0; padding-top: 24px; justify-content: flex-start; gap: 31px; }
  .gc-hero-gem { position: relative; top: auto; left: auto; transform: none; width: min(100%, 440px); margin: 0 auto; }
  .gc-vlabel { display: none; }
  .gc-sec, .gc-craft { padding-top: 68px; padding-bottom: 68px; }
  .gc-craft { min-height: 0; }
  .gc-part-name { display: none; }
  .gc-foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .gc-legal { font-size: 10px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
