/* Tic Toc Jewelers & Watch, Clock Repair — "Pendulum": heirloom time. Mobile first. */
:root {
  --surface: #F4EDE1;  /* parchment */
  --ink: #2A1F18;
  --brand: #3B2A20;    /* walnut */
  --brass: #C49A4A;
  --garnet: #7B2D26;
  --cta: #1F5F8B;      /* reserved: primary action */
  --paper: #FBF6EC;
  --muted: #5E4C3E;
  --rule: #CDBBA0;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(1.15rem, 5vw, 3.5rem);
  --f-disp: "Playfair Display SC", "Playfair Display", Georgia, serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 1rem/1.65 var(--f-body); overflow-x: hidden;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 400; margin: 0; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand); color: var(--surface); padding: .7rem 1rem; }
.skip:focus { top: 3.2rem; }

/* HEADER */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .55rem var(--pad); background: var(--surface); border-bottom: 1px solid var(--brand); }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; min-height: 44px; justify-content: center; }
.brand-name { font: 900 1.65rem/1 var(--f-disp); letter-spacing: .01em; color: var(--brand); }
.brand-sub { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-clock, .hd-clock { color: var(--brand); }
.mini-clock { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 .4rem 0 .2rem; background: none; border: 0; font: 600 .82rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.mini-clock svg, .hd-clock svg { width: 40px; height: 40px; }
.mc-m, .mc-h { transform-origin: 0 0; }
.mc-m { transform: rotate(calc(var(--scroll, 0) * 360deg)); }
.mc-h { transform: rotate(calc(var(--scroll, 0) * 30deg)); }
.hd-clock, .hd-call { display: none; }
.idx-nav { display: none; }
html.menu-open .idx-nav { display: block; position: fixed; inset: 0; top: 0; z-index: -1; padding: 7.5rem var(--pad) 2rem; background: var(--surface); overflow-y: auto; animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.idx-nav ol { list-style: none; margin: 0; padding: 0; }
.idx-nav li { border-bottom: 1px solid var(--rule); }
.idx-nav li a { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; text-decoration: none; font: 400 1.7rem/1.1 var(--f-disp); }
.idx-nav i { font-style: normal; font-weight: 900; color: var(--garnet); min-width: 3.2rem; font-family: var(--f-disp); }
.menu-call { display: inline-flex; margin-top: 1.6rem; min-height: 48px; align-items: center; font-weight: 600; }
@media (min-width: 1000px) {
  .mini-clock { display: none; }
  .hd-clock { display: inline-flex; }
  .idx-nav { display: block; }
  .idx-nav ol { display: flex; gap: 1.6rem; }
  .idx-nav li { border: 0; }
  .idx-nav li a { font: 500 .95rem var(--f-body); padding: .6rem 0; gap: .4rem; min-height: 44px; align-items: center; }
  .idx-nav li a:hover { color: var(--garnet); }
  .idx-nav i { min-width: 0; font-size: 1.05rem; }
  .menu-call { display: none; }
  .hd-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 600; }
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .6rem 1.5rem; border-radius: 2px; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .35s var(--ease), background-color .3s, color .3s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: #184C70; }
.btn-quiet { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-quiet:hover { background: var(--brand); color: var(--surface); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* HERO + PENDULUM */
.hero { position: relative; display: grid; gap: 2.2rem; padding: 2.4rem var(--pad) 3.5rem; overflow: clip; }
.pendulum { position: absolute; top: 0; right: clamp(16px, 6vw, 40px); width: 46px; height: 190px; transform-origin: 50% 0; animation: swing 2.2s ease-in-out infinite alternate; pointer-events: none; z-index: 2; }
.pendulum::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 7px; transform: translateX(-50%); background: var(--brand); border-radius: 0 0 2px 2px; }
.rod { position: absolute; top: 6px; bottom: 40px; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(90deg, #8E6A2A, #E3C27E, #8E6A2A); }
.bob { position: absolute; bottom: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4DDA4 0 12%, #C49A4A 38%, #8A6526 72%, #5E4318 100%); box-shadow: inset 0 0 0 3px rgba(59,42,32,.45), 0 10px 18px rgba(42,31,24,.25); }
.bob::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; border: 1.5px solid rgba(59,42,32,.5); }
@keyframes swing { from { transform: rotate(7deg); } to { transform: rotate(-7deg); } }
.hero-copy { display: grid; gap: 1.1rem; position: relative; z-index: 1; max-width: 40rem; }
.overline { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--garnet); font-weight: 600; }
.hero h1 { display: grid; gap: .5rem; }
.h1-big { font-weight: 900; font-size: clamp(4rem, 19vw, 9.5rem); line-height: .86; letter-spacing: -.01em; color: var(--brand); }
.h1-sub { font-size: clamp(1.35rem, 5.4vw, 2.3rem); line-height: 1.12; max-width: 16em; padding-right: 3.5rem; }
.lede { font-size: 1.08rem; max-width: 36ch; color: #3E2F25; }
.arch { margin: 0; position: relative; }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 4px 4px; border: 1px solid var(--brand); outline: 1px solid var(--brass); outline-offset: 7px; filter: sepia(.18) saturate(.9); }
.arch figcaption { margin-top: 1.1rem; font: 400 1rem var(--f-disp); letter-spacing: .06em; text-align: center; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) 150px minmax(0, .85fr); align-items: center; gap: 0; min-height: calc(100vh - 100px); padding-top: 3rem; }
  .hero-copy { grid-column: 1; }
  .arch { grid-column: 3; max-width: 470px; justify-self: end; width: 100%; }
  .pendulum { right: auto; left: calc(var(--pad) + (100% - 2 * var(--pad) - 150px) * .575 + 27px); width: 96px; height: min(64vh, 560px); animation-duration: 2.6s; }
  .pendulum .rod { bottom: 90px; width: 3px; }
  .pendulum .bob { width: 96px; height: 96px; }
  .h1-sub { padding-right: 0; }
}

/* CLOCK-FACE INDEX */
.dial-idx { padding: 3.5rem var(--pad) 4.5rem; display: grid; justify-items: center; gap: 1.8rem; border-top: 1px solid var(--rule); }
.face { position: relative; width: min(92vw, 560px); aspect-ratio: 1; }
.face-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(42,31,24,.18)); }
.ih, .im { transform-origin: 0 0; transition: transform 1s var(--ease); }
.ih { transform: rotate(var(--hh, 300deg)); }
.im { transform: rotate(calc(var(--scroll, 0) * 1080deg)); transition: none; }
.face-links { list-style: none; margin: 0; padding: 0; }
.face-links li { position: absolute; transform: translate(-50%, -50%); }
.face-links a { display: grid; justify-items: center; gap: .1rem; min-width: 64px; min-height: 64px; padding: .3rem .4rem; text-decoration: none; text-align: center; border-radius: 6px; transition: background-color .3s; }
.face-links a:hover, .face-links a:focus-visible { background: rgba(196,154,74,.18); }
.face-links i { font: normal 900 clamp(1.7rem, 7vw, 2.6rem)/1 var(--f-disp); color: var(--brand); }
.face-links span { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--garnet); white-space: nowrap; }
.p12 { left: 50%; top: 20%; }
.p1 { left: 67%; top: 25%; }
.p3 { left: 79%; top: 50%; }
.p6 { left: 50%; top: 79%; }
.p9 { left: 21%; top: 50%; }
.idx-note { text-align: center; font: 400 1.15rem/1.4 var(--f-disp); max-width: 30ch; }
.idx-note span { display: block; font: .9rem var(--f-body); color: var(--muted); margin-top: .4rem; }

/* CHAPTERS */
section { scroll-margin-top: 72px; }
.ch { position: relative; display: grid; gap: 2rem; padding: 4.5rem var(--pad); border-top: 1px solid var(--rule); }
.ch-num { font: 900 clamp(6.5rem, 34vw, 15rem)/.8 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px var(--brass); position: absolute; top: 2.2rem; right: var(--pad); pointer-events: none; user-select: none; }
.ch-num-sm { position: static; font-size: clamp(4.5rem, 20vw, 8rem); transform: none !important; }
.ch-text { position: relative; display: grid; gap: 1rem; max-width: 36rem; }
.ch-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--garnet); }
.ch h2, .est h2, .visit h2 { font-size: clamp(2.6rem, 11vw, 5rem); color: var(--brand); }
.ch-intro { font-size: 1.05rem; color: #3E2F25; max-width: 40ch; }
.tag { justify-self: start; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .7rem; border: 1px solid var(--garnet); color: var(--garnet); border-radius: 999px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--brand); }
.ledger li { display: flex; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.ledger span { flex: 1; display: flex; align-items: baseline; }
.ledger span::after { content: ""; flex: 1; border-bottom: 1.5px dotted #A08A72; margin: 0 .6rem; transform: translateY(-.25em); }
.ledger b { font: 400 1.05rem var(--f-disp); white-space: nowrap; }
.kinds { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem 1rem; flex-wrap: wrap; font: 400 1.3rem var(--f-disp); }
.kinds li + li::before { content: "·"; color: var(--brass); margin-right: 1rem; }
.ch-fig { margin: 0; }
.ch-fig img { width: 100%; height: auto; object-fit: cover; border: 1px solid var(--brand); filter: sepia(.12); }
.ch-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.ch-pair .ch-fig-wide { grid-column: 1 / -1; width: 84%; justify-self: end; margin-top: -3rem; position: relative; outline: 8px solid var(--surface); }
@media (min-width: 900px) {
  .ch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 5vw; padding: 7rem var(--pad); }
  .ch-num { top: 3rem; right: auto; left: 46%; transform: translateX(-50%); }
  .ch-alt .ch-text { order: 2; }
  .ch-alt .ch-num { left: 54%; }
  .ch-fig { max-width: 520px; }
  .ch-alt .ch-fig { justify-self: start; }
  .ch:not(.ch-alt) .ch-fig, .ch-pair { justify-self: end; width: 100%; max-width: 560px; }
}

/* BENCH */
.bench { background: var(--brand); color: var(--surface); padding: 4rem 0 4.5rem; }
.bench-head { padding: 0 var(--pad) 1.8rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.bench h2 { font-size: clamp(2.2rem, 9vw, 4rem); }
.bench-head p { color: #E7DCCB; font-size: .95rem; }
.strip { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip li:first-child { width: 86vw; }
.strip li:not(:first-child) { width: 62vw; }
.strip img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; border: 1px solid var(--brass); cursor: zoom-in; }
@media (min-width: 900px) {
  .strip { overflow: visible; display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .strip li:first-child, .strip li:not(:first-child) { width: auto; }
  .strip li:nth-child(3) { transform: translateY(-2.5rem); }
}

/* ESTIMATE */
.est { padding: 4.5rem var(--pad); background: #EFE5D3; border-top: 1px solid var(--rule); }
.est-head { display: grid; gap: .6rem; margin-bottom: 2.2rem; }
.est-head > div { display: grid; gap: .8rem; }
@media (min-width: 760px) { .est-head, .v-head { grid-template-columns: auto 1fr; align-items: end; gap: 2rem; } }
.est-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 1100px; }
.est-form > *, .est-bottom > *, .fields > * { min-width: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--brand); }
.tabs [role=tab] { min-width: 0; padding: 0 .3rem; min-height: 56px; border: 0; border-right: 1.5px solid var(--brand); background: var(--paper); color: var(--brand); font: 400 1.25rem var(--f-disp); cursor: pointer; transition: background-color .3s, color .3s; }
.tabs [role=tab]:last-child { border-right: 0; }
.tabs [role=tab][aria-selected="true"] { background: var(--brand); color: var(--surface); }
.panel { display: grid; gap: .9rem; }
.pl { font-weight: 600; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips button, .seg button { min-height: 46px; padding: .4rem 1.05rem; border: 1.5px solid var(--brand); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 .95rem var(--f-body); cursor: pointer; transition: background-color .3s, color .3s; }
.chips button[aria-pressed="true"] { background: var(--garnet); border-color: var(--garnet); color: #fff; }
.seg { display: inline-flex; gap: 0; }
.seg button { border-radius: 0; margin-left: -1.5px; }
.seg button:first-child { border-radius: 999px 0 0 999px; margin-left: 0; }
.seg button:last-child { border-radius: 0 999px 999px 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--surface); }
.est-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.ticket { position: relative; align-self: start; background: var(--paper); border: 1.5px solid var(--brand); padding: 1.4rem 1.4rem 1.4rem 3.4rem; clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem), 0 1.6rem); transform: rotate(-1.5deg); box-shadow: 0 14px 30px rgba(42,31,24,.12); display: grid; gap: .5rem; min-height: 200px; }
.hole { position: absolute; left: 1.15rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid var(--brand); background: #EFE5D3; }
.tk-h { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--garnet); font-weight: 600; }
.tk-piece { font: 400 2rem/1.05 var(--f-disp); color: var(--brand); }
.tk-issues { font-size: 1rem; color: #3E2F25; }
.tk-photo img { width: 110px; height: 110px; object-fit: cover; border: 1px solid var(--brand); margin-top: .4rem; }
.ticket.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: rotate(1deg) translateY(-4px); } }
.fields { display: grid; gap: 1.1rem; }
.fld { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.fld input, .fld textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--brand); padding: .7rem .1rem; min-height: 48px; border-radius: 0; }
.fld textarea { border: 1.5px solid var(--brand); padding: .7rem; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 2px 0 var(--cta); }
.file { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; padding: 1rem; border: 1.5px dashed var(--brand); background: var(--paper); }
.file small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.file input { font: 400 1rem var(--f-body); min-height: 44px; max-width: 100%; width: 100%; }
.fields .btn { justify-self: start; }
.confirm { padding: 1rem 1.2rem; background: var(--paper); border-left: 4px solid var(--cta); font-weight: 600; }
@media (min-width: 900px) { .est-bottom { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } }

/* VISIT */
.visit { padding: 4.5rem var(--pad) 5rem; border-top: 1px solid var(--rule); }
.v-head { display: grid; gap: .6rem; margin-bottom: 2.4rem; }
.v-head > div { display: grid; gap: .8rem; }
.v-grid { display: grid; gap: 2.2rem; }
.v-addr { display: grid; gap: 1rem; }
.addr-big { font: 900 clamp(2.7rem, 12vw, 6rem)/.95 var(--f-disp); color: var(--brand); }
.addr-city { font: 400 1.5rem var(--f-disp); }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--garnet); background: var(--paper); max-width: 46ch; }
.notice b { color: var(--garnet); }
.street { width: 100%; max-width: 360px; height: auto; display: block; }
.hours { border: 3px double var(--brand); padding: 1.4rem 1.5rem; background: var(--paper); align-self: start; }
.hours-t { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--garnet); margin-bottom: .9rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; margin: 0; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .v-grid { grid-template-columns: 1.4fr 1fr; } .street { grid-row: span 2; grid-column: 2; justify-self: end; } .hours { grid-column: 1; max-width: 420px; } }

/* FOOTER */
.ft { background: var(--brand); color: var(--surface); padding: 3rem var(--pad) 2.5rem; display: grid; gap: 1rem; }
.ft-brand { font: 900 1.8rem var(--f-disp); }
.ft-brand span { display: block; font: 400 1rem var(--f-disp); color: #E7DCCB; }
.ft .pv-note { color: #EDE3D3; max-width: 72ch; font-size: 13px; }
.photo-credits { color: #E7DCCB; font-size: .9rem; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--surface); }
.photo-credits ul { margin: .3rem 0 .8rem; padding-left: 1.1rem; display: grid; gap: .25rem; }

/* DOCK */
.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.6fr; 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: var(--surface); border-top: 1px solid var(--brand); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; font-weight: 600; border-radius: 2px; }
  .dock-call { border: 1.5px solid var(--brand); color: var(--brand); }
  .dock-cta { background: var(--cta); color: #fff; }
}

/* REVEAL */
html.js [data-reveal] { opacity: 0; clip-path: inset(0 0 12% 0); transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
html.js [data-reveal].is-in { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pendulum { animation: none; transform: none; }
  html.js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
