/* A28 hospitality site (a28.ca/hospitality). Light theme only (house rule): no dark-mode block. */
:root {
  color-scheme: light;
  --bg: #F0EEE9;
  --ink: #2B2B2D;
  --muted: rgba(43, 43, 45, .62);
  --line: rgba(43, 43, 45, .14);
  --olive: #343426;
  --gold: #BD9A4D;
  --white: #FFFFFF;
  --serif: 'The One', serif;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.statement-text, .lede, .svc-text p, .cta-copy p { text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Split text: each word sits in a mask so it can rise into view */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi { display: inline-block; will-change: transform; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 22px;
  background: rgba(240, 238, 233, .74);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid rgba(43, 43, 45, .08);
  border-radius: 999px;
}
.nav .brand { font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: .01em; }
.nav .links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav .links a { text-decoration: none; }
.nav .links a:not(.pill):hover { color: var(--muted); }
.pill {
  background: var(--olive); color: var(--white) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 13px;
  transition: transform .25s ease, background .25s ease;
}
.pill:hover { transform: translateY(-1px); background: #45452f; }
@media (max-width: 640px) {
  .nav { padding-left: 18px; }
  .nav .links a:not(.pill) { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-copy {
  position: relative; z-index: 2;
  padding: calc(96px + 3vh) var(--gutter) 0;
  max-width: 1280px; margin: 0 auto; text-align: center;
}
.hero-title {
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: 1.0;
  margin: 18px auto 18px;
  max-width: 20ch;
}
.lede { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); max-width: 46ch; margin: 0 auto; }
.hero-media {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(56% 6% 4% 6% round var(--radius));
  background: #1d1d1b;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-tag {
  position: absolute; left: var(--gutter); bottom: 28px;
  color: rgba(255, 255, 255, .86); font-size: 13px; letter-spacing: .04em; opacity: 0;
}

/* ---------- 2. Statement ---------- */
.statement { padding: 22vh var(--gutter) 24vh; }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 70px);
  line-height: 1.12;
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
}
.statement-text .w { overflow: visible; }

/* ---------- 3. The pour ---------- */
.pour { position: relative; height: 100vh; height: 100svh; background: var(--olive); color: var(--white); overflow: hidden; }
.pour-frame { position: absolute; inset: 0; clip-path: inset(9% 10% 9% 10% round var(--radius)); }
.pour-canvas { width: 100%; height: 100%; }
.pour-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 14, .62) 0%, rgba(20, 20, 14, .15) 55%, rgba(20, 20, 14, 0) 100%); }
.pour-lines {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(38px, 6vw, 96px); line-height: 1.04; z-index: 2;
}
.pour-line { opacity: 0; }
.pour-credit { position: absolute; left: var(--gutter); bottom: 28px; font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); z-index: 2; }
/* Phones: the pour sits in a tall card under the words, which shows far more of a wide shot than a full-screen crop */
@media (max-width: 699px) {
  .pour-frame { inset: 31% 16px 8% 16px; border-radius: 18px; overflow: hidden; clip-path: none; }
  .pour-shade { display: none; }
  .pour-lines { top: 10%; transform: none; right: var(--gutter); font-size: 32px; }
  .pour-credit { bottom: 22px; }
}

/* ---------- 4. Work ---------- */
.work { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.work-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  height: 100%; padding: 0 var(--gutter); width: max-content; will-change: transform;
}
.work-intro { width: clamp(240px, 26vw, 380px); flex: none; }
.work-intro h2 { font-size: clamp(48px, 6vw, 92px); line-height: .98; margin: 14px 0 22px; }
.hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hint::after { content: ''; width: 46px; height: 1px; background: currentColor; }
.work-card { flex: none; }
.work-card.tall { width: clamp(250px, 26vw, 400px); }
.work-card.wide { width: clamp(300px, 44vw, 700px); }
.work-img { position: relative; overflow: hidden; border-radius: 16px; background: #d9d5cc; }
.work-card.tall .work-img { aspect-ratio: 4 / 5; }
.work-card.wide .work-img { aspect-ratio: 16 / 10; }
.work-img img, .work-loop { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; }
/* The picture is a button: tapping it plays the film */
button.work-img { display: block; width: 100%; padding: 0; border: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.work-img:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.work-loop { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.work-loop.on { opacity: 1; }
.watch {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; line-height: 1;
  transition: transform .35s ease, background .35s ease;
}
.watch svg { width: 11px; height: 11px; fill: currentColor; }
.watch .dur { font-weight: 400; color: var(--muted); }
.work-img img, .work-loop { transition: scale .6s ease; }
button.work-img:hover img, button.work-img:hover .work-loop { scale: 1.04; }
button.work-img:hover .watch { transform: translateY(-2px); background: #fff; }

/* ---------- Film player ---------- */
.player { position: fixed; inset: 0; z-index: 100; }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(24, 24, 18, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); touch-action: none; }
.player-frame { position: fixed; overflow: hidden; border-radius: 16px; background: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.player-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.player.ready .player-video { object-fit: contain; }
/* The card's own picture rides on top while the player grows, so it looks like the card itself opening */
.player-still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; transition: opacity .45s ease; }
.player.ready .player-still { opacity: 0; }
.player-meta { position: fixed; left: 0; right: 0; text-align: center; color: #fff; padding: 0 var(--gutter); pointer-events: none; }
.player-client { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.player-title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); margin-top: 6px; line-height: 1.1; }
.player-close {
  position: fixed; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s ease, transform .25s ease;
}
.player-close:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.player-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.work-client { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work-card h3 { font-size: clamp(26px, 2.4vw, 38px); margin-top: 6px; line-height: 1.1; }
.work-kind { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) {
  .work-card.tall, .work-card.wide { width: 76vw; }
  .work-card.wide .work-img { aspect-ratio: 4 / 5; }
  .work-intro { width: 70vw; }
}

/* ---------- 5. Services ---------- */
.services { padding: 18vh var(--gutter) 10vh; max-width: 1280px; margin: 0 auto; }
.services-head { text-align: center; margin-bottom: 10vh; }
.services-head h2 { font-size: clamp(38px, 5vw, 76px); margin-top: 14px; line-height: 1.05; }
.svc {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: clamp(24px, 5vw, 80px); margin-bottom: 14vh;
}
.svc.flip .svc-media { order: 2; }
.svc-media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 5 / 4; background: #d9d5cc; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-num { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.svc-text h3 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; margin: 10px 0 14px; }
.svc-text p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 30ch; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; margin-bottom: 11vh; }
  .svc.flip .svc-media { order: 0; }
}

/* ---------- 6. Mosaic ---------- */
.mosaic { position: relative; padding: 12vh 0 18vh; overflow: hidden; }
.mosaic-head { text-align: center; padding: 0 var(--gutter); margin-bottom: 8vh; }
.mosaic-head h2 { font-size: clamp(38px, 5.4vw, 84px); line-height: 1.04; }
.mosaic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px);
  padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto;
}
.mosaic-col { display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 22px); will-change: transform; }
.mosaic-col img { width: 100%; height: auto; border-radius: 14px; object-fit: cover; background: #d9d5cc; }
.mosaic-col img[width="1080"] { aspect-ratio: 4 / 5; }
.mosaic-col img:not([width="1080"]) { aspect-ratio: 4 / 3; }

/* ---------- 7. Contact ---------- */
.cta { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.cta-aside {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(44vw, 520px); z-index: 1;
}
.cta-aside-text { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 64px); line-height: 1.06; margin-top: 12px; }
.cta-media { position: absolute; inset: 0; z-index: 2; clip-path: inset(28% 58% 28% 6% round var(--radius)); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; background: rgba(18, 18, 14, .5); opacity: 0; }
.cta-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--white); padding: 0 var(--gutter);
}
.cta-copy > * { opacity: 0; }
.cta-copy h2 { font-size: clamp(42px, 6.6vw, 104px); line-height: 1.02; max-width: 14ch; }
.cta-copy p { font-size: clamp(16px, 1.4vw, 20px); margin: 18px 0 32px; color: rgba(255, 255, 255, .86); }
.btn {
  display: inline-block; background: var(--white); color: var(--ink); text-decoration: none;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
@media (max-width: 700px) {
  .cta-aside { top: 12%; transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .cta-media { clip-path: inset(46% 34% 10% 6% round 18px); }
}

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 36px var(--gutter) 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.foot .brand { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Reduced motion: everything visible, nothing pinned ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-media { clip-path: none; position: relative; height: 56vh; margin: 32px var(--gutter) 0; border-radius: var(--radius); overflow: hidden; }
  .hero { height: auto; padding-bottom: 40px; }
  .hero-media video { transform: none; }
  .pour-frame, .cta-media { clip-path: none; }
  .pour-line, .hero-tag, .cta-copy > * { opacity: 1; }
  .cta-shade { opacity: 1; }
  .work { height: auto; overflow-x: auto; padding: 10vh 0; }
  .work-track { height: auto; }
}
