/* ------------------------------------------------------------------
   The TimeKeeper — Cabanatuan
   v4 · maison edition · white, Helvetica, photo tiles, pill buttons
   ------------------------------------------------------------------ */

:root {
  --white: #ffffff;
  --grey-1: #f8f8f8;
  --grey-2: #f0f0f0;
  --grey-3: #e4e4e4;
  --ink: #212121;
  --ink-2: #5c5c5c;
  --muted: #8a8a8a;
  --line: rgba(33, 33, 33, 0.1);
  --accent: #1f4d3a;
  --plate: linear-gradient(180deg, #fafafa 0%, #ececec 100%);

  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --r: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--white); }
.container { width: min(var(--w), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 4.8vw, 64px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.01em; }
b, strong { font-weight: 700; }
.lead { font-size: clamp(17px, 1.3vw, 20px); font-weight: 300; line-height: 1.5; color: var(--ink); max-width: 56ch; }
p { margin: 0; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .35s var(--ease), transform .35s var(--ease); }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: var(--grey-2); }
.more { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.more i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .35s, color .35s; }
.more i svg { width: 14px; height: 14px; }
.more:hover i { background: var(--ink); color: var(--white); }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--white); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__word { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: 0; animation: fade 1s var(--ease) .1s forwards; }
.loader__rule { width: 0; height: 2px; background: var(--ink); margin: 14px auto 0; animation: rule 1.1s var(--ease-io) .3s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes rule { to { width: 100%; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 24px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav__links a { font-size: 14px; color: var(--ink); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.wordmark { justify-self: center; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.wordmark svg { width: 16px; height: 24px; }
.wordmark svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock b { color: var(--ink); font-weight: 400; margin-left: 6px; }
.nav .btn { padding: 10px 18px; font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); } .burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 890; background: var(--white); display: grid; align-content: center; padding: 0 var(--gutter); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.menu.is-open { clip-path: inset(0); }
.menu a { font-size: clamp(32px, 8vw, 52px); font-weight: 300; line-height: 1.3; display: block; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: .06s } .menu.is-open a:nth-child(3) { transition-delay: .12s } .menu.is-open a:nth-child(4) { transition-delay: .18s } .menu.is-open a:nth-child(5) { transition-delay: .24s }
.menu__foot { margin-top: 36px; font-size: 13px; color: var(--muted); display: flex; gap: 24px; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 0; }
.hero__copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero__copy .eyebrow { opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s; }
.hero h1 { margin-top: 14px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero .lead { margin: 22px auto 0; opacity: 0; transition: opacity 1s var(--ease) .8s; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; opacity: 0; transition: opacity 1s var(--ease) .95s; }
.is-ready .hero .eyebrow, .is-ready .hero .lead, .is-ready .hero__actions { opacity: 1; transform: none; }
.is-ready .hero h1 .line:nth-child(1) > span { transform: none; transition-delay: .25s; }
.is-ready .hero h1 .line:nth-child(2) > span { transform: none; transition-delay: .38s; }

/* ---------- tiles (Rolex-style two-up) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.tile { display: block; position: relative; border-radius: var(--r); overflow: hidden; background: var(--grey-2); cursor: pointer; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { padding: 28px 32px 32px; background: var(--white); }
.tile__body .eyebrow { font-size: 14px; }
.tile__body h3 { margin-top: 6px; }
.tile__body p { margin-top: 8px; color: var(--ink-2); font-weight: 300; max-width: 48ch; }
.tile__body .more { margin-top: 18px; }
.tile--tall .tile__media { aspect-ratio: 3 / 2; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 8vw, 128px) 0; }
.section--grey { background: var(--grey-1); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); }
.section__head h2 { margin-top: 10px; }
.section__head .lead { margin: 16px auto 0; }
.section__head--left { text-align: left; margin-left: 0; max-width: 820px; }
.section__head--left .lead { margin-left: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s } .reveal[data-delay="3"] { transition-delay: .3s }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 36px; }
.seg { display: inline-flex; background: var(--grey-2); border-radius: 999px; padding: 4px; }
.seg button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background .35s, color .35s, box-shadow .35s; }
.seg button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--grey-3); transition: all .3s; }
.chips button:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chips button.is-active { background: var(--ink); color: var(--white); box-shadow: none; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.toggle i { width: 38px; height: 22px; border-radius: 999px; background: var(--grey-3); position: relative; transition: background .35s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.toggle.is-on i { background: var(--accent); }
.toggle.is-on i::after { transform: translateX(16px); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { cursor: pointer; opacity: 0; transform: translateY(16px); animation: cardIn .8s var(--ease) forwards; border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--plate); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card.is-sold .card__media img { filter: grayscale(1) opacity(.55); }
.card.is-sold .card__media::after { content: "Sold"; position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--white); }
.card__body { padding: 18px 20px 22px; }
.card__brand { font-size: 13px; color: var(--muted); }
.card__name { font-size: 18px; font-weight: 700; line-height: 1.25; margin-top: 4px; letter-spacing: -0.01em; }
.card__meta { margin-top: 6px; font-size: 13px; color: var(--ink-2); font-weight: 300; }
.card__type { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--accent); }
.card__type.reserved { color: #9a6b1f; }
.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted); font-size: 20px; font-weight: 300; }
.grid-note { margin-top: 28px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; transition: visibility .7s; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(33,33,33,.45); opacity: 0; transition: opacity .5s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(620px, calc(100% - 24px)); background: var(--white); border-radius: 16px; transform: translateX(calc(100% + 24px)); transition: transform .7s var(--ease-io); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: background .3s, color .3s; }
.drawer__close:hover { background: var(--ink); color: var(--white); }
.drawer__close svg { width: 14px; height: 14px; }
.drawer__media { aspect-ratio: 1 / 1; background: var(--plate); }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; }
.drawer__body { padding: clamp(24px, 3.5vw, 40px); }
.drawer__body .eyebrow { font-size: 14px; }
.drawer__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.15; margin-top: 6px; letter-spacing: -0.015em; }
.drawer__ref { font-size: 14px; color: var(--muted); margin-top: 8px; }
.drawer__desc { font-size: 17px; font-weight: 300; line-height: 1.5; margin-top: 18px; }
.spec { margin: 24px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.drawer__actions .btn { flex: 1; }
.drawer__note { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- feature (image + text, alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { margin-top: 10px; }
.feature .lead { margin-top: 16px; }
.feature .btn, .feature .more { margin-top: 26px; }
.feature--flip .feature__media { order: 2; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.checks li svg { width: 22px; height: 22px; color: var(--accent); }
.checks li b { display: block; }
.checks li span { color: var(--ink-2); font-weight: 300; font-size: 14px; }

/* ---------- dark band ---------- */
.band { background: var(--ink); color: var(--white); border-radius: var(--r); padding: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band .eyebrow { color: #9fd3b8; }
.band .lead { color: rgba(255,255,255,.8); }
.band h2 { margin-top: 10px; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- details / about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about h2 { margin-top: 10px; }
.about .lead { margin-top: 16px; }
.about__seal { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.about__seal img { width: 72px; height: 72px; border-radius: 50%; }
.about__seal span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.details li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 20px; border-radius: 10px; background: var(--grey-1); }
.details li span:first-child { font-size: 13px; color: var(--muted); padding-top: 2px; }
.details li span:last-child { font-size: 16px; }
.details a { border-bottom: 1px solid var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); flex: none; transition: background .3s, color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); color: var(--white); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 52px 22px 0; color: var(--ink-2); font-weight: 300; max-width: 66ch; }

/* ---------- contact tiles ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ctile { display: block; padding: 28px 24px; border-radius: var(--r); background: var(--grey-1); transition: background .35s, transform .4s var(--ease); }
.ctile:hover { background: var(--grey-2); transform: translateY(-3px); }
.ctile svg { width: 26px; height: 26px; }
.ctile b { display: block; font-size: 18px; margin-top: 18px; }
.ctile small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.map { margin-top: 16px; position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--grey-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }
.map__pin { position: absolute; left: 16px; bottom: 16px; padding: 14px 18px; border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.map__pin b { display: block; font-size: 16px; }
.map__pin span { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--grey-1); padding: 56px 0 28px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); }
.footer .wordmark { justify-self: start; }
.footer__tag { font-size: 18px; font-weight: 300; margin-top: 14px; max-width: 26ch; line-height: 1.4; }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 880; display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } .footer__grid { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .nav__inner { grid-template-columns: auto 1fr; height: 64px; }
  .nav nav, .clock, .nav .btn { display: none; }
  .wordmark { justify-self: start; }
  .burger { display: block; }
  .hero { padding-top: 120px; }
  .tiles { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature, .about, .band { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .band__cta { justify-content: flex-start; }
  .details li { grid-template-columns: 1fr; gap: 4px; }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .contact-grid, .footer__grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: flex-start; }
  .drawer__actions .btn { flex: 1 1 100%; }
  .tile__body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- iOS / touch ---------- */
.sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); }
.drawer__panel { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.menu { padding-bottom: env(safe-area-inset-bottom); }
.nav { padding-top: env(safe-area-inset-top); }
@media (hover: none) {
  .card:hover { transform: none; box-shadow: 0 0 0 1px var(--line); }
  .card:hover .card__media img, .tile:hover .tile__media img { transform: none; }
  .btn:hover { transform: none; }
}
@media (max-width: 560px) {
  .chips button, .seg button { padding: 11px 16px; }
  .nav .wordmark { font-size: 12px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .drawer__panel { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
  .drawer__body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .tile__media { aspect-ratio: 1 / 1; }
}
