/* GIL ZAR — editorial potter's studio: emerald and ivory bands, gold hairlines, rotating plates as the recurring motif. */
:root {
  --emerald: #004942;
  --emerald-deep: #00332E;
  --emerald-soft: #0B5A51;
  --gold: #D4AF5F;
  --gold-light: #E2C27A;
  --gold-ink: #7A5A1B;
  --ivory: #F5F1E6;
  --paper: #FBF8F1;
  --sand: #ECE5D4;
  --ink: #17251F;
  --muted: #4E5A55;
  --on-dark: #EEF0EC;
  --muted-dark: #B9CEC7;
  --line: #DCCFB4;
  --line-dark: rgba(212, 175, 95, 0.38);
  --error: #F4B9A6;
  --f-display: 'Forum', 'Noto Serif SC', 'Noto Serif JP', 'Songti SC', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --f-body: 'Literata', 'Noto Serif SC', 'Noto Serif JP', 'Songti SC', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --f-ui: 'Manrope', 'PingFang SC', 'Hiragino Sans', 'Yu Gothic', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--emerald); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.dark { background: var(--emerald); color: var(--on-dark); }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--emerald); padding: 10px 16px; font-family: var(--f-ui); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none; }
.eyebrow-ink { color: var(--gold-ink); }
h2 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; letter-spacing: .01em; color: var(--emerald); margin-top: 16px; }
.dark h2 { color: var(--on-dark); }
.sec-lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); max-width: 60ch; }
.dark .sec-lead { color: var(--muted-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--emerald); box-shadow: 0 10px 30px -12px rgba(212, 175, 95, .7); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--gold); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-dark);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled { background: rgba(0, 62, 56, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 21px; letter-spacing: .2em; color: var(--on-dark); white-space: nowrap; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-family: var(--f-ui); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--muted-dark); position: relative; padding-block: 6px; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--on-dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: .08em; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 168px; background: var(--emerald-deep); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); }
.lang-list button { width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--on-dark); font-family: var(--f-ui); font-size: 14px; cursor: pointer; }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: rgba(212, 175, 95, .16); color: var(--gold-light); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-dark); transition: transform .3s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--emerald); color: var(--on-dark); padding-top: calc(132px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; min-height: 760px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.hero::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--line-dark); pointer-events: none; }
.hero-in { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: .96; letter-spacing: .005em; max-width: 10.5ch; margin-top: 22px; }
.hero-lead { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted-dark); max-width: 40ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-wheel { position: absolute; z-index: 1; width: min(60vw, 800px); aspect-ratio: 1; right: calc(-1 * min(12vw, 170px)); top: 50%; transform: translateY(-50%); }
.hero-rings { position: absolute; inset: -9%; color: var(--gold); opacity: .55; animation: spin 140s linear infinite reverse; }
.hero-plate { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(0, 20, 16, .55)); will-change: transform; }
.stats { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.stats strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--f-ui); font-size: 13px; line-height: 1.45; color: var(--muted-dark); }

/* Master class */
.mc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.formats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.format-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.format-card svg { color: var(--gold-ink); }
.format-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.format-card[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: var(--on-dark); }
.format-card[aria-pressed="true"] svg { color: var(--gold-light); }
.format-t { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.format-d { font-size: 15px; line-height: 1.5; color: inherit; opacity: .85; }
.price-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 600; font-size: 14px; color: var(--gold-ink); }
.price-note svg { width: 10px; height: 10px; flex: none; }
.steps-title { margin-top: 40px; font-size: 26px; color: var(--emerald); }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 16px; font-size: 17px; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--f-display); font-size: 20px; color: var(--gold-ink); }
.mc-photos { margin-top: 44px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: end; }
.arch { margin: 0; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.mc-photos .arch { aspect-ratio: 3 / 4; }
.mc-photos .arch-sm { aspect-ratio: 3 / 3.6; margin-bottom: 40px; }

.mc-form-col { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.mc-form, .form-success { background: var(--emerald); color: var(--on-dark); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--gold); outline: 1px solid var(--emerald); outline-offset: 4px; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0, 40, 35, .7); }
.mc-form { display: flex; flex-direction: column; gap: 18px; }
.mc-form h3 { font-size: 30px; line-height: 1.1; color: var(--on-dark); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: rgba(255, 255, 255, .06); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 4px;
  font-family: var(--f-ui); font-size: 16px; color-scheme: dark;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(185, 206, 199, .6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(212, 175, 95, .25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line-dark); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; font-family: var(--f-ui); font-weight: 600; font-size: 14px; color: var(--muted-dark); transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--gold); color: var(--emerald); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 0; font-family: var(--f-ui); font-size: 14px; color: var(--error); }
.form-status:empty { display: none; }
.form-note { font-family: var(--f-ui); font-size: 12px; line-height: 1.5; color: var(--muted-dark); }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form-success svg { color: var(--gold-light); }
.form-success h3 { font-size: 34px; }
.form-success p { color: var(--muted-dark); }
.form-demo { font-family: var(--f-ui); font-size: 13px; padding: 10px 12px; border: 1px dashed var(--line-dark); border-radius: 4px; }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.direct-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.direct-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--emerald); text-decoration: none; }
.direct-links a:hover { color: var(--gold-ink); }

/* Wheel */
.wheel-sec { position: relative; overflow: hidden; }
.wheel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.wheel-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%); }
.wheel-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-dark); }
#wheelCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: 50%; }
#wheelCanvas:active { cursor: grabbing; }
.wheel-hint { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 30, 27, .65); color: var(--gold-light); font-family: var(--f-ui); font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.wheel-hint.gone { opacity: 0; }
.wheel-panel { display: flex; flex-direction: column; align-items: flex-start; }
.ctrl { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ctrl-label { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 8px 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted-dark); font-family: var(--f-ui); font-size: 12px; font-weight: 600; cursor: pointer; }
.swatch .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25), inset 0 4px 8px rgba(255, 255, 255, .25); }
.swatch[aria-pressed="true"] { border-color: var(--gold); color: var(--on-dark); }
.seg-dark { border-color: var(--line-dark); }
.seg-dark button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-dark); font-family: var(--f-ui); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg-dark button[aria-pressed="true"] { background: var(--gold); color: var(--emerald); }
#wheelReset { margin-top: 28px; }
.wheel-cta { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; width: 100%; }
.wheel-cta p { font-family: var(--f-display); font-size: 24px; line-height: 1.2; flex: 1 1 220px; }

/* About */
.sec-head { max-width: 760px; }
.timeline { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; position: relative; display: grid; gap: clamp(48px, 7vw, 96px); }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; transform: translateX(-.5px); }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: var(--progress, 0%); background: var(--gold); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.tl-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; background: var(--ivory); border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.tl-item.lit::before { background: var(--gold); }
.tl-photo { width: min(100%, 380px); aspect-ratio: 4 / 5; justify-self: end; box-shadow: 0 30px 60px -36px rgba(0, 40, 35, .55); }
.tl-item:nth-child(even) .tl-photo { order: 2; justify-self: start; }
.tl-item:nth-child(even) .tl-body { order: 1; justify-self: end; text-align: right; }
.tl-body { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.tl-item:nth-child(even) .tl-body { align-items: flex-end; }
.tl-tag { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.tl-body h3 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; color: var(--emerald); }
.tl-body p { color: var(--muted); }
.tl-credit { font-family: var(--f-ui); font-size: 12px; }
.quote { margin: clamp(64px, 9vw, 120px) auto 0; max-width: 780px; text-align: center; position: relative; padding-top: 48px; }
.quote::before { content: "“"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-size: 96px; line-height: 1; color: var(--gold); }
.quote p { font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; color: var(--emerald); }

/* Brand band */
.brand-band { padding-block: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.brand-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.brand-logo { width: clamp(140px, 16vw, 200px); height: auto; }
.brand-defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.brand-defs .eyebrow { grid-column: 1 / -1; }
.brand-def { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.brand-word { font-family: var(--f-display); font-size: clamp(56px, 6vw, 84px); line-height: .9; letter-spacing: .08em; color: var(--gold-light); }
.brand-def p { color: var(--muted-dark); font-size: 17px; }

/* Works */
.works-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.works-head > div:first-child { max-width: 640px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--f-ui); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--emerald); color: var(--on-dark); border-color: var(--emerald); }
.filters .n { font-size: 12px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] .n { color: var(--gold-light); }
.works-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.work { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #FFFFFF; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), box-shadow .4s; }
.work:hover { box-shadow: 0 26px 50px -28px rgba(0, 40, 35, .55); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work.is-plate { background: var(--sand); }
.work.is-plate img { object-fit: contain; padding: 12%; filter: drop-shadow(0 14px 16px rgba(60, 40, 20, .28)); }
.work.is-plate:hover img { transform: rotate(28deg) scale(1.04); }
.work:not(.is-plate):hover img { transform: scale(1.05); }
.work::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; border-radius: 6px; transition: border-color .3s; pointer-events: none; }
.work:hover::after { border-color: var(--gold); }
.works-grid li.enter { animation: pop .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 38, 34, .96); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lb-figure img { max-width: min(86vw, 900px); max-height: 78vh; width: auto; height: auto; object-fit: contain; animation: lbIn .5s var(--ease); }
.lb-figure.is-plate img { animation: lbSpin .9s var(--ease); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.lb-figure figcaption { font-family: var(--f-ui); font-size: 14px; color: var(--muted-dark); letter-spacing: .06em; }
.lb-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(0, 0, 0, .15); color: var(--on-dark); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* Contacts */
.contacts { position: relative; overflow: hidden; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.contact-list { margin: 36px 0 0; display: grid; }
.contact-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line-dark); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 18px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: color .2s, border-color .2s; }
.contact-list a:hover { color: var(--gold-light); border-color: var(--gold); }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy-btn { min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--muted-dark); font-family: var(--f-ui); font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.contacts-art { position: relative; justify-self: end; width: min(100%, 520px); aspect-ratio: 1; margin-right: calc(-1 * min(10vw, 140px)); }
.contacts-art img { width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(0, 20, 16, .5)); }
.spin-slow { animation: spin 90s linear infinite; }

/* Footer */
.site-footer { background: var(--emerald-deep); color: var(--muted-dark); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; font-family: var(--f-ui); font-size: 13px; }
.site-footer .brand { font-size: 17px; }

/* Sticky CTA (phones) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; align-items: center; padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(0, 62, 56, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .45s var(--ease); }
.sticky-cta.show { transform: none; }
.tg-mini { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--gold-light); }

/* Motion */
.rv { transition: transform 1s var(--ease); }
.rv.pending { transform: translateY(44px); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: translateY(18px) scale(.97); } to { transform: none; } }
@keyframes lbIn { from { transform: scale(.94); } to { transform: none; } }
@keyframes lbSpin { from { transform: rotate(-60deg) scale(.9); } to { transform: none; } }

/* Language tweaks */
:lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(zh) .nav a, :lang(ja) .nav a { letter-spacing: .04em; }
:lang(zh) h1, :lang(ja) h1 { line-height: 1.12; max-width: 9em; }
:lang(zh) h2, :lang(ja) h2 { line-height: 1.2; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter-r) 24px var(--gutter-l); background: var(--emerald-deep); border-bottom: 1px solid var(--line-dark); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 20px; font-family: var(--f-display); padding-block: 14px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
  .nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .mc-grid, .wheel-grid, .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-form-col { position: static; }
  .wheel-stage { max-width: 520px; }
  .timeline::before, .timeline::after { left: 11px; }
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 40px; }
  .tl-item::before { left: 11px; top: 24px; }
  .tl-item .tl-photo, .tl-item:nth-child(even) .tl-photo { order: 0; justify-self: start; width: min(100%, 360px); }
  .tl-item:nth-child(even) .tl-body { order: 1; justify-self: start; text-align: left; align-items: flex-start; }
  .brand-in { grid-template-columns: minmax(0, 1fr); }
  .contacts-art { justify-self: center; margin-right: 0; width: min(80%, 420px); }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: calc(112px + env(safe-area-inset-top, 0px)); gap: 0; }
  .hero::after { inset: 12px; }
  .hero-wheel { position: relative; z-index: 1; right: auto; top: auto; transform: none; width: 112vw; margin: 12px -34vw -18vw auto; align-self: flex-end; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
  .formats, .brand-defs { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lightbox { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .lb-figure { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-figure img { max-height: 64vh; max-width: 92vw; }
  .brand { font-size: 18px; letter-spacing: .16em; }
}
@media (max-width: 420px) {
  .lang-btn span { display: none; }
  .hero h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv.pending { transform: none; }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Form segmented control: plain-case labels, equal halves */
.seg label { text-transform: none; letter-spacing: normal; }
.mc-form .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 999px; }
.mc-form .seg label span { justify-content: center; width: 100%; padding-inline: 10px; text-align: center; }

@media (max-width: 760px) {
  .hero-in { order: 1; }
  .hero-wheel { order: 2; width: 92vw; margin: 36px -30vw 0 auto; }
  .hero > .wrap:last-child { order: 3; margin-top: 8px; }
  .swatches { gap: 4px; }
  .swatch { min-width: 54px; padding-inline: 2px; }
}

/* Map links under the address */
.addr-text { display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-list .map-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-family: var(--f-ui); font-size: 13px; font-weight: 700; color: var(--on-dark); }
.contact-list .map-links a svg { color: var(--gold-light); }
.contact-list .map-links a:hover { border-color: var(--gold); color: var(--gold-light); }
