:root {
  --bg: #0b0a08;
  --bg-raised: #13110d;
  --text: #ece4d2;
  --text-soft: rgba(236, 228, 210, .72);
  --gold: #d9b76e;
  --gold-deep: #a8853f;
  --gold-line: rgba(217, 183, 110, .45);
  --gold-faint: rgba(217, 183, 110, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IM Fell English', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: var(--gold); }
button { font: inherit; color: inherit; }

/* black ground with a faint laid texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(217,183,110,.018) 0 1px, transparent 1px 4px),
    radial-gradient(110% 80% at 50% 0%, rgba(217,183,110,.07), transparent 60%),
    var(--bg);
}

.sheet { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.smallcaps { font-variant: small-caps; letter-spacing: .22em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(11, 10, 8, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-faint);
}
.brand { font-family: 'Pinyon Script', cursive; font-size: 1.6rem; color: var(--text); text-decoration: none; line-height: 1; }
.toplinks { display: flex; gap: 22px; margin-left: auto; }
.toplinks a { color: var(--text-soft); text-decoration: none; font-variant: small-caps; letter-spacing: .18em; font-size: .95rem; }
.toplinks a:hover { color: var(--gold); }
.langs { display: flex; gap: 6px; align-items: center; font-variant: small-caps; letter-spacing: .18em; font-size: .9rem; color: var(--gold); }
.langs a { text-decoration: none; padding: 4px 2px; border-bottom: 1px solid transparent; opacity: .55; color: var(--text); }
.langs a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); color: var(--gold); }
.langs a:hover { opacity: 1; }
@media (max-width: 640px) { .toplinks { display: none; } .langs { margin-left: auto; } }

/* ---------- hero ---------- */
header.frontis { padding-top: 56px; padding-bottom: 8px; text-align: center; }
.rule { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 12px auto; max-width: 520px; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.rule svg { flex: none; }
header .est { font-size: .95rem; font-style: italic; color: var(--gold); }
h1.title {
  font-family: 'Pinyon Script', cursive; font-variant-ligatures: none; font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7rem); line-height: 1.08; margin: .05em 0 0;
  background: linear-gradient(180deg, #f3dfa8 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .1em;
}
header .subtitle { font-variant: small-caps; letter-spacing: .3em; font-size: clamp(.85rem, 1.6vw, 1.05rem); margin-top: 6px; }
header .motto { font-style: italic; font-size: 1.1rem; margin: 18px auto 0; max-width: 560px; color: var(--text-soft); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  padding: .75em 1.7em; font-variant: small-caps; letter-spacing: .18em; font-size: 1rem;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--gold-faint); }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: #ecd08f; }
@media (max-width: 520px) {
  header .est { font-size: .8rem; }
  .smallcaps { letter-spacing: .14em; }
  header .subtitle { letter-spacing: .16em; }
}

/* ---------- section headings ---------- */
h2.section-head {
  font-family: 'Pinyon Script', cursive; font-variant-ligatures: none; font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem); text-align: center; line-height: 1.15; color: var(--gold);
}
h2.section-head--small { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-sub { text-align: center; font-variant: small-caps; letter-spacing: .24em; font-size: .9rem; margin-top: 4px; color: var(--text-soft); }

/* ---------- the bout ---------- */
section.play { padding-top: 64px; padding-bottom: 8px; }
.play-head { margin-bottom: 22px; }
figure.plate { margin: 0 auto; max-width: 980px; }
.plate-mat {
  position: relative; border: 1px solid var(--gold-line); padding: 10px; background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold-faint), 0 30px 80px rgba(0,0,0,.6);
}
.plate-mat .corner { position: absolute; font-size: 12px; line-height: 1; color: var(--gold); opacity: .7; user-select: none; }
.corner.tl { top: 3px; left: 5px; } .corner.tr { top: 3px; right: 5px; }
.corner.bl { bottom: 3px; left: 5px; } .corner.br { bottom: 3px; right: 5px; }
#plateWrap { position: relative; aspect-ratio: 16 / 10; outline: none; cursor: none; touch-action: manipulation; overflow: hidden; background: var(--bg); }
@media (max-width: 640px) { #plateWrap { aspect-ratio: 4 / 5; } }
@media (hover: none) { #plateWrap { cursor: auto; } }
#plateWrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#finder { position: absolute; left: 0; top: 0; width: 96px; height: 72px; margin: -36px 0 0 -48px; pointer-events: none; z-index: 4; display: none; will-change: transform; color: var(--gold); }
#plateWrap.mouse #finder { display: block; }
#roundNum { position: absolute; top: 14px; left: 18px; z-index: 2; font-variant: small-caps; letter-spacing: .2em; font-size: .9rem; color: var(--gold); pointer-events: none; }
#stampNum {
  position: absolute; top: 50%; left: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: 3.4rem; line-height: 1; white-space: nowrap; opacity: 0; color: var(--gold);
  font-variant: small-caps; letter-spacing: .12em;
}
#stampNum.show { animation: stampIn 1s ease-out; }
@keyframes stampIn {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.5); }
  18% { opacity: .85; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  70% { opacity: .6; }
  100% { opacity: 0; }
}
#flash { position: absolute; inset: 0; z-index: 3; background: #fff7e2; opacity: 0; pointer-events: none; }
#flash.fire { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #stampNum.show, #flash.fire { animation: none; } }
figcaption { text-align: center; margin-top: 16px; }
#cueLine { display: block; min-height: 1.9em; font-style: italic; font-size: 1.2rem; }
#cueLine strong { font-style: normal; font-variant: small-caps; letter-spacing: .12em; color: var(--gold); }
#scoreLine { display: block; margin-top: 2px; font-size: .95rem; letter-spacing: .12em; font-variant: small-caps; min-height: 1.5em; color: var(--gold); }
.plate-instructions { max-width: 640px; margin: 10px auto 0; text-align: center; font-size: .95rem; font-style: italic; color: var(--text-soft); }
kbd { font-family: inherit; font-style: normal; border: 1px solid var(--gold-line); border-radius: 2px; padding: 0 .35em; font-size: .85em; color: var(--gold); }

/* the visitor's own photos */
.shots { max-width: 980px; margin: 30px auto 0; border: 1px solid var(--gold-faint); background: var(--bg-raised); padding: 20px 22px 22px; }
.shots-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.shots-head h3 { font-weight: 400; font-variant: small-caps; letter-spacing: .2em; font-size: 1.1rem; color: var(--gold); }
.shots-head p { font-size: .92rem; font-style: italic; color: var(--text-soft); }
.cs-frames { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cs-empty { grid-column: 1 / -1; padding: 22px 0; text-align: center; font-style: italic; color: var(--text-soft); border: 1px dashed var(--gold-faint); }
.cs-frame { border: 1px solid var(--gold-line); padding: 4px 4px 3px; background: var(--bg); animation: develop .9s ease-out; }
.cs-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cs-frame span { display: block; font-size: .72rem; font-style: italic; margin-top: 3px; color: var(--text-soft); line-height: 1.3; }
@keyframes develop { from { opacity: 0; transform: translateY(8px); filter: brightness(2.2) contrast(.5); } }
@media (max-width: 760px) { .cs-frames { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .cs-frames { grid-template-columns: repeat(2, 1fr); } }

/* ---------- portfolio ---------- */
section.portfolio { padding-top: 90px; padding-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.card { border: 1px solid var(--gold-line); background: var(--bg-raised); display: flex; flex-direction: column; transition: transform .4s ease, box-shadow .4s ease; }
.card:hover { box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px var(--gold-faint); }
.sport-anim { position: relative; aspect-ratio: 5 / 4; border-bottom: 1px solid var(--gold-faint); overflow: hidden; background: var(--bg); }
.sport-anim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card-body { padding: 18px 18px 20px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-weight: 400; font-variant: small-caps; letter-spacing: .2em; font-size: 1.25rem; color: var(--gold); }
.card-desc { font-size: .98rem; font-style: italic; margin-top: 6px; color: var(--text-soft); }
.card-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.card-thumbs:empty { display: none; }
.card-thumbs button { padding: 0; border: 1px solid var(--gold-faint); background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.card-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card-thumbs button:hover img { transform: scale(1.06); }
.card-btn {
  margin-top: auto; align-self: center; margin-top: 18px;
  background: none; border: 1px solid var(--gold); color: var(--gold); cursor: pointer;
  padding: .55em 1.3em; font-variant: small-caps; letter-spacing: .16em; font-size: .95rem;
  transition: background .3s, color .3s;
}
.card-btn:hover:not(:disabled) { background: var(--gold); color: var(--bg); }
.card-btn:disabled { border-color: var(--gold-faint); color: var(--text-soft); cursor: default; font-style: italic; font-variant: normal; letter-spacing: .02em; }

/* ---------- services ---------- */
section.services { padding-top: 90px; padding-bottom: 10px; }
.intro { max-width: 680px; margin: 30px auto 0; text-align: center; font-size: 1.12rem; color: var(--text-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.service { border-top: 1px solid var(--gold-line); padding-top: 18px; }
.service-num { font-family: 'Pinyon Script', cursive; font-size: 2rem; color: var(--gold); line-height: 1; }
.service h3 { font-weight: 400; font-variant: small-caps; letter-spacing: .14em; font-size: 1.12rem; margin-top: 8px; }
.service p { font-size: .98rem; color: var(--text-soft); margin-top: 6px; }

/* ---------- booking ---------- */
section.book { padding-top: 90px; padding-bottom: 10px; }
.book-box {
  max-width: 760px; margin: 0 auto; text-align: center; padding: 44px 28px;
  border: 1px solid var(--gold-line); background: radial-gradient(120% 120% at 50% 0%, rgba(217,183,110,.09), transparent 60%), var(--bg-raised);
}
.book-text { max-width: 560px; margin: 16px auto 26px; font-size: 1.08rem; color: var(--text-soft); }

/* ---------- footer ---------- */
footer { padding-top: 70px; padding-bottom: 44px; text-align: center; }
.footline { font-size: .85rem; letter-spacing: .12em; font-variant: small-caps; margin-top: 8px; color: var(--text-soft); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(6, 5, 4, .97); }
.lightbox.open { display: flex; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; flex-shrink: 0; }
.lb-title { font-family: 'Pinyon Script', cursive; font-size: 2rem; line-height: 1; color: var(--gold); }
.lb-count { font-variant: small-caps; letter-spacing: .18em; font-size: .9rem; margin-left: .6em; color: var(--text-soft); }
.lb-btn { background: var(--bg); border: 1px solid var(--gold-line); color: var(--gold); width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--gold); color: var(--bg); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.lb-frame { max-width: 100%; max-height: 100%; display: flex; border: 1px solid var(--gold-line); padding: 6px; background: var(--bg); }
.lb-frame img { max-width: 100%; max-height: calc(100vh - 200px); object-fit: contain; display: block; transition: opacity .3s; }
.lb-frame img.loading { opacity: .25; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lightbox.single .lb-nav, .lightbox.single .lb-thumbs { visibility: hidden; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 24px 18px; flex-shrink: 0; justify-content: safe center; }
.lb-thumb { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .5; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.active, .lb-thumb:hover { opacity: 1; border-color: var(--gold); }
@media (max-width: 640px) {
  .lb-stage { padding: 0 12px; }
  .lb-nav { display: none; }
  .lb-frame img { max-height: calc(100vh - 180px); }
}

/* ---------- about ---------- */
section.about { padding-top: 90px; padding-bottom: 10px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; max-width: 460px; } }
.about-photo { position: relative; margin: 0; border: 1px solid var(--gold-line); padding: 10px; background: var(--bg-raised); }
.about-photo::after { content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid var(--gold-faint); z-index: -1; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) sepia(.3) contrast(1.06) brightness(.95); transition: filter .6s ease; }
.about-photo:hover img { filter: none; }
.about-text .about-head { text-align: left; }
.about-sub { font-variant: small-caps; letter-spacing: .22em; font-size: .9rem; color: var(--text-soft); margin: 2px 0 22px; }
.about-text p:not(.about-sub):not(.about-sign) { font-size: 1.06rem; color: var(--text-soft); margin-bottom: 1em; }
.about-sign { font-family: 'Pinyon Script', cursive; font-size: 2.4rem; color: var(--gold); line-height: 1; margin-top: 10px; }
@media (max-width: 760px) { .about-text .about-head { text-align: center; } .about-sub, .about-sign { text-align: center; } }
