@font-face { font-family: "Big Shoulders"; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #E7E5DF;
  --ground-2: #DBD9D2;
  --ink: #16171B;
  --muted: #4A4B52;
  --sign: #E2BF2E;
  --char: #7A2A1E;
  --night: #121318;
  --night-ink: #E8E6E0;
  --night-muted: #A9A8A4;
  --pad: clamp(18px, 3vw, 32px);
  --gap: clamp(88px, 12vw, 200px);
  --nav-h: 64px;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Public Sans", system-ui, sans-serif;
  --zh: "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Microsoft YaHei", sans-serif;
  --settle: cubic-bezier(.22, 1, .36, 1);
  --inout: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--sign); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(44px, 6vw, 88px); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 30; background: var(--ink); color: var(--ground); padding: 12px 16px; }
.skip:focus { top: 8px; }
.need { background: var(--sign); color: var(--ink); padding: 0 4px; font-weight: 600; }

/* Buttons: flat, square */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font: 600 16px/1 var(--text); text-decoration: none; border: 0; transition: background-color .2s ease, transform .16s var(--settle); }
.btn:active { transform: scale(.97); }
.btn--call { background: var(--sign); color: var(--ink); }
.btn--quiet { background: rgba(232, 230, 224, .14); color: var(--night-ink); }
.btn--onlight { background: var(--ground-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: #EDCB3F; }
  .btn--quiet:hover { background: rgba(232, 230, 224, .24); }
  .btn--onlight:hover { background: #D0CEC6; }
}

/* Nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); color: var(--night-ink); }
.nav__name { font: 800 26px/1 var(--display); text-transform: uppercase; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 0; }
.nav__links a:hover { text-decoration: underline; }
.nav__motion { background: none; border: 0; color: inherit; font: 600 14px/1 var(--text); min-height: 44px; padding: 0 4px; cursor: pointer; transition: transform .16s var(--settle); }
.nav__motion:active { transform: scale(.97); }
.nav__call { min-height: 44px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--night-ink); overflow: hidden; background: var(--night); }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 40%; transform-origin: 60% 50%; transition: transform 1.2s var(--settle), opacity 1.2s var(--settle); }
.is-loading .hero__photo img { transform: scale(1.04); opacity: .6; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66%; background: linear-gradient(to top, rgba(18, 19, 24, .92) 0%, rgba(18, 19, 24, .55) 50%, rgba(18, 19, 24, 0) 100%); pointer-events: none; } /* taste-skill-ignore: scrim from the BMW's black paint, over the text area only */
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 1; background: linear-gradient(to bottom, rgba(18, 19, 24, .6), rgba(18, 19, 24, 0)); pointer-events: none; } /* taste-skill-ignore: neutral scrim under the nav only */
.hero__text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(40px, 7vh, 80px); max-width: 1100px; }
.hero__name { font-size: clamp(56px, 7.6vw, 128px); }
.hero__name span { display: block; }
.hero__name .hero__sub { font-size: .52em; line-height: 1; margin-top: .12em; }
.hero__line { margin-top: 32px; font-size: clamp(18px, 1.6vw, 22px); max-width: 44ch; }
.hero__facts { margin-top: 12px; font-size: 15px; color: #CFCCC4; font-variant-numeric: tabular-nums; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cap { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(40px, 7vh, 80px); max-width: 26ch; font-size: 13px; color: #CFCCC4; text-align: right; }

/* The sign: yellow field */
.sign { background: var(--sign); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 96px); padding: var(--gap) var(--pad); align-items: center; }
.sign__intro { margin-top: 28px; max-width: 52ch; font-size: 18px; }
.sign__pairs { margin-top: 48px; display: grid; gap: 28px; }
.sign__pair { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.sign__zh { font: 700 clamp(96px, 13vw, 210px)/1 var(--zh); color: var(--char); letter-spacing: 0; }
.sign__en { font-size: clamp(18px, 1.6vw, 22px); max-width: 24ch; font-weight: 600; }
.sign__photo { margin: 0; justify-self: end; width: min(100%, 340px); }
.sign__photo img { width: 100%; aspect-ratio: 340 / 420; object-fit: cover; }
.sign__photo figcaption, .visit__photo figcaption, .view figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sign__photo figcaption { color: #3B3420; }

/* Before and after: dark band */
.work { background: var(--night); color: var(--night-ink); padding: var(--gap) var(--pad); }
.work__head { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px 64px; align-items: end; }
.work__head p { max-width: 50ch; color: var(--night-ink); }
.switch { display: inline-flex; background: #24252B; }
.switch button { min-width: 104px; min-height: 48px; border: 0; background: none; color: var(--night-muted); font: 600 16px/1 var(--text); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .16s var(--settle); }
.switch button:active { transform: scale(.97); }
.switch button[aria-pressed="true"] { background: var(--sign); color: var(--ink); }
.work__views { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(16px, 2vw, 32px); align-items: end; }
.view { margin: 0; }
.view__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.view__pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.view figcaption { color: var(--night-muted); }
.view__tag { display: none; color: var(--night-ink); font-weight: 600; margin-right: 6px; }
.js-switch .view__pair { display: block; position: relative; }
.js-switch .view__after { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .24s var(--inout), filter .24s var(--inout); }
.js-switch .is-after .view__after { opacity: 1; }
.js-switch .view__tag { display: inline; }
.work__quote { margin: 0; align-self: center; padding-left: clamp(0px, 2vw, 32px); }
.work__quote p { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; max-width: 22ch; }
.work__quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 15px; color: var(--night-muted); max-width: 34ch; }
.work__quote .btn { margin-top: 32px; }

/* Reviews */
.reviews { padding: var(--gap) var(--pad); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 48px; }
.reviews__score { font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reviews__score span { font: 800 clamp(56px, 6vw, 88px)/1 var(--display); color: var(--ink); margin-right: 10px; }
.reviews__list { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.reviews__list blockquote { margin: 0; }
.reviews__list p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.reviews__list li:first-child p { font: 800 clamp(36px, 3.6vw, 56px)/1 var(--display); text-transform: uppercase; }
.reviews__list cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--muted); max-width: 36ch; }
.reviews__more { margin-top: 48px; }
.reviews__more a { font-weight: 600; display: inline-block; padding: 12px 0; }

/* Visit */
.visit { background: var(--ground-2); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 96px); padding: var(--gap) var(--pad) var(--gap) 0; align-items: center; }
.visit__photo { margin: 0; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.visit__photo figcaption { padding-left: var(--pad); }
.visit__addr { margin-top: 24px; font: 800 clamp(64px, 9vw, 150px)/.9 var(--display); text-transform: uppercase; }
.visit__find { margin-top: 28px; max-width: 48ch; }
.visit__status { margin-top: 32px; font-weight: 600; }
.visit__status.is-open::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2F7A3E; margin-right: 8px; }
.hours { margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: min(100%, 360px); }
.hours th, .hours td { text-align: left; padding: 8px 0; font-weight: 400; }
.hours td { padding-left: 32px; }
.hours tr + tr th, .hours tr + tr td { border-top: 0; }
.hours .is-today th, .hours .is-today td { font-weight: 600; }
.hours .is-today th::after { content: " · today"; color: var(--muted); font-weight: 400; }
.visit__note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.visit__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { background: var(--night); color: var(--night-ink); padding: clamp(72px, 9vw, 140px) var(--pad) 120px; }
.foot__name { font: 800 clamp(72px, 15.4vw, 300px)/.85 var(--display); text-transform: uppercase; white-space: nowrap; }
.foot__line { margin-top: 40px; }
.foot__concept { margin-top: 16px; font-size: 14px; color: var(--night-muted); max-width: 70ch; }

/* Phone call bar */
.bar { display: none; }

/* Reveals (JS adds the hidden start state) */
.js-reveal [data-reveal].is-pending img { clip-path: inset(0 0 100% 0); }
.js-reveal [data-reveal] img { transition: clip-path 1s var(--settle); clip-path: inset(0); }
.js-reveal [data-rise].is-pending { opacity: 0; transform: translateY(16px); }
.js-reveal [data-rise] { transition: opacity .9s var(--settle), transform .9s var(--settle); }

.still *, .still *::before, .still *::after { transition-duration: .01ms !important; }
.still .hero__photo img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__photo img, .js-reveal [data-reveal] img, .js-reveal [data-rise] { transition: opacity .4s ease !important; transform: none !important; clip-path: none !important; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .work__head { grid-template-columns: 1fr; align-items: start; }
  .work__views { grid-template-columns: 1fr 1fr; }
  .work__quote { grid-column: 1 / -1; padding: 24px 0 0; }
  .reviews__list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --gap: 88px; }
  .nav { gap: 12px; }
  .nav__call { display: none; }
  .hero__text { padding-bottom: 104px; }
  .hero__name { font-size: clamp(56px, 17vw, 72px); }
  .hero__line { margin-top: 24px; }
  .hero__cap { left: var(--pad); right: auto; bottom: 24px; text-align: left; }
  .hero::after { height: 74%; }
  .sign { grid-template-columns: 1fr; }
  .sign__photo { justify-self: start; width: 64%; }
  .sign__zh { font-size: 96px; }
  .work__views { grid-template-columns: 1fr; gap: 40px; }
  .view:nth-child(2) { width: 82%; margin-left: auto; }
  .visit { grid-template-columns: 1fr; padding: 0 0 var(--gap); }
  .visit__photo img { aspect-ratio: 4 / 3; }
  .visit__text { padding: 0 var(--pad); order: -1; }
  .visit__addr { font-size: 15vw; }
  .visit__photo { width: 88%; }
  .foot { padding-bottom: 112px; }
  .bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; min-height: 56px; align-items: center; justify-content: center; background: var(--sign); color: var(--ink); font: 600 17px/1 var(--text); text-decoration: none; transition: transform .25s var(--settle), opacity .25s var(--settle); }
  .bar:active { transform: scale(.97); }
  .bar.is-away { transform: translateY(140%); opacity: 0; }
}
