/* Hai Watch Repair — "Caliber": a living watch dial. Mobile first. */
:root {
  --surface: #0D1117;
  --ink: #EFE8DA;
  --brand: #B8893B;   /* brass */
  --steel: #3E6E8E;
  --grey: #7A8288;
  --cta: #E4572E;     /* reserved: primary action */
  --panel: #121923;
  --line: #2A3442;
  --muted: #A9A398;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(1.1rem, 4.5vw, 3rem);
  --f-disp: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "Michroma", "Exo 2", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1rem/1.6 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-disp); margin: 0; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 2px solid #E2C07A; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--surface); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 3.2rem; }

/* header */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .75rem; padding: .6rem var(--pad); background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
html.is-scrolled .hd { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font: 800 1.1rem/1 var(--f-disp); letter-spacing: .32em; }
.brand-txt small { font: 500 .78rem/1.2 var(--f-body); color: var(--muted); letter-spacing: .06em; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { min-width: 44px; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 .8rem var(--f-num); letter-spacing: .08em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.hd-call { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
@media (min-width: 761px) { .hd-call { display: inline-flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.4rem; border-radius: 999px; font: 700 1rem/1.1 var(--f-disp); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--cta); color: #000; }
.btn-ghost { border-color: rgba(239,232,218,.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-line { border-color: var(--brand); color: var(--ink); background: transparent; }
.btn-line:hover { background: rgba(184,137,59,.14); }

/* HERO */
.hero { display: grid; gap: 1.4rem; padding: 1.2rem var(--pad) 3rem; position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 28%, rgba(62,110,142,.22), transparent 70%); pointer-events: none; }
.dial-wrap { position: relative; }
.dial-box { position: relative; width: min(70vw, 320px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.dial { width: 100%; height: 100%; display: block; }
.crystal { position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 34%, rgba(255,255,255,.22) 40%, transparent 46% 84%, rgba(255,255,255,.1) 88%, transparent 92%); mix-blend-mode: soft-light; animation: sweep 24s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.dial-nav { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: var(--panel); }
.dial-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 54px; text-decoration: none; border-radius: 10px; font: 600 .86rem/1.1 var(--f-disp); letter-spacing: .02em; text-align: center; padding: .3rem .2rem; transition: background-color .3s; }
.dial-nav a:hover { background: #1B2430; }
.dial-nav i { font: normal .72rem/1 var(--f-num); color: var(--brand); }
.hero-copy { position: relative; display: grid; gap: 1rem; }
.eyebrow { font: 600 .86rem/1.4 var(--f-disp); letter-spacing: .16em; color: #D4B47A; text-transform: uppercase; }
.hero h1 { font-weight: 800; font-size: clamp(2.9rem, 13vw, 6.4rem); letter-spacing: -.025em; line-height: .9; }
.lede { font-size: 1.08rem; color: #D9D2C4; max-width: 34ch; }
.readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ro-time { font: 1.3rem/1 var(--f-num); letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-lbl { font-size: .85rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; min-height: calc(100vh - 110px); padding-top: 4.5rem; padding-bottom: 5rem; }
  .hero-copy { order: -1; }
  .dial-wrap { padding: 4.2rem 8.4rem; }
  .dial-box { width: min(38vw, 64vh, 560px); }
  .dial-nav { display: block; margin: 0; border: 0; padding: 0; background: none; }
  .dial-nav a { position: absolute; min-height: 44px; flex-direction: row; gap: .55rem; padding: .4rem .7rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
  .dial-nav a::after { content: ""; position: absolute; background: var(--brand); transition: transform .5s var(--ease); }
  .dial-nav .n12 { top: 1rem; left: 50%; transform: translateX(-50%); flex-direction: column; }
  .dial-nav .n6 { bottom: 1rem; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }
  .dial-nav .n3 { right: 0; top: 50%; transform: translateY(-50%); }
  .dial-nav .n9 { left: 0; top: 50%; transform: translateY(-50%); flex-direction: row-reverse; }
  .dial-nav a:hover { background: transparent; color: #E2C07A; }
}

/* section heads */
section { scroll-margin-top: 70px; }
.sec-head { display: grid; gap: .7rem; margin-bottom: 2rem; }
.kicker { font: 600 .82rem/1.2 var(--f-disp); letter-spacing: .2em; text-transform: uppercase; color: #D4B47A; }
.sec-head h2, .st-head h2 { font-weight: 700; font-size: clamp(2.1rem, 8vw, 4.2rem); letter-spacing: -.02em; }
.sec-sub { color: var(--muted); max-width: 52ch; }
.tag { display: inline-block; margin-left: .3rem; padding: .15rem .6rem; border: 1px solid var(--brand); border-radius: 999px; font: 600 .78rem/1.5 var(--f-body); color: #E2C07A; white-space: nowrap; }

/* COMPLICATIONS */
.cx-sec { overflow: clip; padding: 4rem var(--pad); background: linear-gradient(var(--surface), var(--panel)); }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cx { display: grid; grid-template-columns: 34vw minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.cx:last-child { border-bottom: 1px solid var(--line); }
.cx-sub { position: relative; aspect-ratio: 1; }
.cx-sub img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(.85) contrast(1.05); }
.cx-ring { position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--brand); }
.cx-ring circle { transform-origin: 0 0; transform: rotate(calc(var(--p, 0) * 140deg)); }
.cx-body { display: grid; gap: .35rem; }
.cx-n { font: .9rem/1 var(--f-num); color: #D4B47A; letter-spacing: .1em; }
.cx h3 { font-weight: 700; font-size: clamp(1.35rem, 5.5vw, 1.9rem); letter-spacing: -.01em; }
.cx-body > p:not(.cx-price) { font-size: .95rem; color: #CFC8BA; }
.cx-price { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.cx-price b { font: 1.05rem var(--f-num); color: var(--ink); }
@media (min-width: 900px) {
  .cx-list { grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
  .cx { grid-template-columns: 1fr; border: 0; padding: 0; align-items: start; }
  .cx:last-child { border: 0; }
  .cx:nth-child(even) { margin-top: 4rem; }
  .cx-sub { width: 86%; margin: 0 auto 1.4rem; }
  .cx-body { border-top: 1px solid var(--line); padding-top: 1rem; }
}

/* APERTURE */
.aperture { position: relative; height: 150vh; background: #07090D; }
.ap-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.ap-fig { position: absolute; inset: 0; margin: 0; clip-path: circle(calc(14% + var(--pin, 1) * 62%) at 50% 50%); }
.ap-fig img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.9); transform: scale(calc(1.15 - var(--pin, 1) * .15)); }
.ap-txt { position: relative; z-index: 1; text-align: center; font: 800 clamp(2.2rem, 9vw, 6rem)/.95 var(--f-disp); letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.6); padding: 0 var(--pad); }

/* ESTIMATE */
.est { padding: 4.5rem var(--pad); }
.est-grid { display: grid; gap: 2.4rem; }
.seg-f { border: 0; margin: 0 0 1.6rem; padding: 0; }
.seg-f legend { font: 700 1.05rem var(--f-disp); margin-bottom: .8rem; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.seg button, .chips button { min-height: 48px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: 600 .95rem/1.15 var(--f-body); cursor: pointer; padding: .4rem .7rem; transition: background-color .3s, color .3s, border-color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { border-color: var(--line); border-radius: 999px; padding: .4rem 1.1rem; }
.chips button[aria-pressed="true"] { border-color: var(--brand); background: rgba(184,137,59,.16); color: #F3DFB6; }
.est-note { font-size: .9rem; color: var(--muted); max-width: 40ch; }
.est-dial { display: grid; justify-items: center; gap: 1.4rem; }
.bezel-wrap { position: relative; width: min(88vw, 460px); aspect-ratio: 1; }
.bezel { width: 100%; height: 100%; display: block; }
#ring { transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.est-out { position: absolute; inset: 24%; display: grid; place-content: center; text-align: center; gap: .35rem; }
.eo-lbl { font: 600 .8rem/1.2 var(--f-disp); letter-spacing: .18em; text-transform: uppercase; color: #D4B47A; }
.eo-price { font: 800 clamp(1.8rem, 8vw, 2.8rem)/1 var(--f-disp); letter-spacing: -.01em; }
.eo-turn { font-size: .92rem; color: #CFC8BA; max-width: 18ch; margin: 0 auto; }
.est-out.na .eo-price { font-size: 1.4rem; }
.est-out.pop .eo-price { animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 960px) {
  .est-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; }
  .seg { grid-template-columns: repeat(4, 1fr); }
}

/* GALLERY · orbs */
.gal { padding: 4rem var(--pad) 4.5rem; background: var(--panel); overflow: hidden; }
.orbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; gap: .6rem; }
.orb { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--panel), 0 0 0 8px rgba(184,137,59,.45); }
.orb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 1.2s var(--ease); }
.orb:hover img { transform: scale(1.06); }
.o1 { grid-column: 1 / span 7; }
.o2 { grid-column: 8 / span 5; margin-top: -20%; }
.o3 { grid-column: 2 / span 6; margin-top: -8%; }
.o4 { grid-column: 8 / span 5; margin-top: 12%; }
.gal-cap { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .orbs { grid-template-columns: repeat(24, 1fr); }
  .o1 { grid-column: 1 / span 8; }
  .o2 { grid-column: 10 / span 5; margin-top: -30%; }
  .o3 { grid-column: 15 / span 6; margin-top: 10%; }
  .o4 { grid-column: 21 / span 4; margin-top: -40%; }
}

/* STATUS */
.status { padding: 4rem var(--pad); }
.st-card { border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.3rem, 4vw, 2.6rem); display: grid; gap: 1.8rem; background: radial-gradient(120% 80% at 100% 0%, rgba(62,110,142,.18), transparent 60%), var(--panel); }
.st-head { display: grid; gap: .6rem; }
.st-head h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
.st-ticket { font: 600 .86rem var(--f-disp); letter-spacing: .12em; color: var(--muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.track li { position: relative; padding: .5rem 0 .9rem 2.2rem; font-weight: 600; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: .35rem; top: .72rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--grey); background: var(--panel); z-index: 1; }
.track li::after { content: ""; position: absolute; left: calc(.35rem + 6px); top: 1.2rem; bottom: -.5rem; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track .done { color: var(--ink); }
.track .done::before { background: var(--brand); border-color: var(--brand); }
.track .done::after { background: var(--brand); }
.track .now { color: var(--ink); }
.track .now::before { border-color: #E2C07A; box-shadow: 0 0 0 0 rgba(226,192,122,.6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(226,192,122,0); } }
@media (min-width: 760px) {
  .st-card { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .track { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .track li { padding: 2rem .5rem 0 0; }
  .track li::before { left: 0; top: 0; }
  .track li::after { left: 14px; right: 0; top: 6px; bottom: auto; height: 2px; width: auto; }
  .st-form { grid-column: 2; grid-row: 1; }
}
.st-form { display: grid; gap: 1rem; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.radios legend { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; padding: 0; }
.radios label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: var(--brand); }

/* REQUEST */
.req { padding: 4rem var(--pad); background: linear-gradient(var(--surface), var(--panel)); }
.req-form { display: grid; gap: 1.1rem; max-width: 900px; }
.fld { display: grid; gap: .45rem; font-weight: 600; font-size: .95rem; }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: #0A0E14; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; min-height: 52px; transition: border-color .3s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(184,137,59,.3); }
.fld input::placeholder, .fld textarea::placeholder { color: #8C8A84; }
.photo-in input[type=file] { padding: .7rem; }
#f-prev { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--brand); }
.confirm { padding: 1rem 1.2rem; border-left: 3px solid var(--brand); background: rgba(184,137,59,.12); border-radius: 0 10px 10px 0; font-weight: 600; }
@media (min-width: 760px) { .req-form { grid-template-columns: 1fr 1fr; } .req-form .wide { grid-column: 1 / -1; } .req-form .btn { justify-self: start; } }

/* VISIT */
.visit { padding: 4.5rem var(--pad); display: grid; gap: 2.4rem; }
.v-main { display: grid; gap: 1.2rem; }
.visit h2 { font-weight: 800; font-size: clamp(2.4rem, 10vw, 5.4rem); letter-spacing: -.025em; line-height: .95; }
.v-city { display: block; font-weight: 400; font-size: .42em; letter-spacing: .02em; color: #D9D2C4; margin-top: .5rem; }
.v-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hours { border: 1px solid rgba(184,137,59,.6); border-radius: 22px; padding: 1.5rem; align-self: start; background: var(--panel); }
.hours-t { font: 600 .82rem/1.5 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: #D4B47A; margin-bottom: 1rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.5fr 1fr; align-items: end; } }

/* FOOTER */
.ft { padding: 3rem var(--pad) 2.5rem; background: #07090D; border-top: 1px solid var(--line); display: grid; gap: 1.4rem; color: #CFC8BA; }
.ft-top { display: grid; gap: .4rem; }
.ft-brand { font: 800 1.5rem var(--f-disp); letter-spacing: .3em; color: var(--ink); }
.ft-brand span { font-weight: 400; letter-spacing: .04em; font-size: .9rem; color: var(--muted); }
.ft .pv-note { color: #C9C2B4; max-width: 70ch; font-size: 13px; }
.photo-credits { font-size: .9rem; color: #B9B3A6; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink); }
.photo-credits ul { margin: .4rem 0 .8rem; padding-left: 1.1rem; display: grid; gap: .25rem; }
.photo-credits a { color: #E2C07A; }

/* DOCK — sticky actions on phones */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(13,17,23,.96); border-top: 1px solid var(--line); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; text-decoration: none; font: 700 1rem var(--f-disp); }
  .dock-call { background: #1B2430; color: var(--ink); border: 1px solid var(--line); }
  .dock-cta { background: var(--cta); color: #000; }
}

/* reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .crystal { animation: none; }
  .cx-ring circle { transform: none; }
  .aperture { height: auto; }
  .ap-pin { position: relative; height: 70vh; }
  .ap-fig { clip-path: none; }
  .ap-fig img { transform: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
