/* THE CLINIC STANDARD: COMING SOON.
   One screen. The film across the whole of it, a dark scrim, the name set large
   bottom left. Self-hosted faces, no third-party requests, no cookies. */

@font-face { font-family: 'Cormorant'; src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/assets/fonts/cormorant-garamond-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1A1A17;
  --ink-deep: #121210;
  --ink-warm: #2B2528;
  --paper: #FBFAF7;
  --linen: #E8DDD0;
  --oxblood-tint: #BBA6A8;
  --brass: #C6A15B;
  --gutter: clamp(24px, 6vw, 112px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: grid; grid-template-rows: 1fr;
  background: var(--ink-deep); color: var(--paper);
  font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── the film: the whole screen, on every device ── */
/* It opens from black, slowly, like the first shot of a film. */
.window { position: fixed; inset: 0; z-index: 0; margin: 0; overflow: hidden; background: #000; opacity: 0; animation: fade 3.6s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
.film {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; display: block;
  filter: saturate(.86) contrast(1.08) brightness(.9) sepia(.06);   /* a quiet cinematic grade */
  transform: scale(1.06); animation: drift 14s var(--ease) .2s forwards;
}
body::before {           /* dark scrim: the card stays clear, the words sit on shadow */
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 60% 38%, transparent 42%, rgba(10, 10, 9, .38) 72%, rgba(10, 10, 9, .78) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, .5) 0%, rgba(10, 10, 9, 0) 20%, rgba(10, 10, 9, 0) 44%, rgba(14, 14, 12, .62) 68%, rgba(14, 14, 12, .93) 88%, #0E0E0C 100%),
    linear-gradient(90deg, rgba(10, 10, 9, .48) 0%, rgba(10, 10, 9, 0) 50%);
}
.grain {                 /* film grain, barely there */
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}
.hairline {              /* a printer's frame round the whole page */
  position: fixed; inset: clamp(10px, 1.6vw, 22px); z-index: 4; pointer-events: none;
  border: 1px solid rgba(251, 250, 247, .16);
  opacity: 0; animation: fade 2s ease 1.6s forwards;
}

/* ── the words, bottom left ── */
.stage {
  position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; max-width: 1560px; margin-inline: auto; min-height: 100%;
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(44px, 8vh, 96px);
}
.words { max-width: 760px; }
.brand {
  position: fixed; z-index: 3; top: calc(env(safe-area-inset-top) + clamp(34px, 5vh, 56px)); left: var(--gutter);
  display: flex; align-items: center; gap: 16px; opacity: 0; animation: rise 1.6s var(--ease) 1.3s forwards;
}
.mark { width: clamp(30px, 2.6vw, 40px); height: auto; display: block; }
.name {
  margin: 0; padding-left: 16px; border-left: 1px solid rgba(251, 250, 247, .3);
  font-size: 10.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: rgba(251, 250, 247, .86);
}
.headline {
  margin: 0;
  font-family: 'Cormorant', 'Cormorant Garamond', Garamond, 'Times New Roman', serif; font-weight: 300;
  font-size: clamp(54px, 9.4vw, 176px); line-height: .88; letter-spacing: -.025em; color: var(--paper);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
}
.headline .w1, .headline .w2 { display: block; white-space: nowrap; }
.headline .w2 { padding-left: .5em; }
/* "big": italic, in the brass of the bag's hardware. A solid colour, not a gradient clipped to the
   letters: the clipped gradient cut off the italic g's tail and flickered in Safari as it animated. */
.headline .big { font-style: italic; font-weight: 400; color: #D7B676; }
/* Each letter's box is padded (and the padding cancelled by margins) so the tails of g, the italic
   overhangs and the blur all stay inside it: Safari paints a filtered element only within its box,
   and with this tight line height the g's tail hung outside and was cut off. */
.ch {
  display: inline-block; opacity: 0; transform: translateY(.32em); filter: blur(12px);
  padding: .14em .08em .34em; margin: -.14em -.08em -.34em;
  animation: letter 1.6s var(--ease) forwards; animation-delay: calc(1.6s + var(--i) * 60ms);
}
.by {
  margin: clamp(16px, 2.6vh, 28px) 0 0;
  font-family: 'Cormorant', Garamond, serif; font-style: italic; font-size: clamp(19px, 1.6vw, 25px); font-weight: 400;
  color: var(--oxblood-tint); letter-spacing: .01em;
  opacity: 0; animation: rise 1.4s var(--ease) 2.6s forwards;
}
.rule {
  display: block; width: 88px; height: 1px; margin: clamp(20px, 3vh, 32px) 0 clamp(14px, 2vh, 20px);
  background: linear-gradient(90deg, var(--brass), transparent);
  transform: scaleX(0); transform-origin: left; animation: draw 1.6s var(--ease) 2.8s forwards;
}
.contact {
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: lowercase;
  color: rgba(251, 250, 247, .78); text-decoration: none;
  border-bottom: 1px solid rgba(251, 250, 247, .24); padding-bottom: 4px;
  transition: color .4s ease, border-color .4s ease;
  opacity: 0; animation: rise 1.4s var(--ease) 2.95s forwards;
}
.contact:hover, .contact:focus-visible { color: var(--paper); border-color: var(--brass); }
.contact:focus-visible { outline: 1px solid var(--brass); outline-offset: 6px; }

/* ── phones ── */
@media (max-width: 899.98px) {
  .film { object-position: 50% 50%; }
  body::before {
    background:
      radial-gradient(140% 90% at 50% 40%, transparent 50%, rgba(10, 10, 9, .45) 100%),
      linear-gradient(180deg, rgba(10, 10, 9, .55) 0%, rgba(10, 10, 9, 0) 18%, rgba(10, 10, 9, 0) 50%, rgba(14, 14, 12, .8) 72%, rgba(14, 14, 12, .96) 90%, #0E0E0C 100%);
  }
  .stage { padding: 0 28px calc(env(safe-area-inset-bottom) + 40px); }
  .brand { left: 28px; top: calc(env(safe-area-inset-top) + 30px); gap: 12px; }
  .mark { width: 28px; }
  .name { padding-left: 12px; font-size: 9px; letter-spacing: .34em; }
  .headline { font-size: clamp(48px, 14vw, 86px); }
  .by { margin-top: 14px; font-size: 19px; }
  .rule { margin: 20px 0 14px; }
  .contact { font-size: 11px; letter-spacing: .14em; }
}
@media (max-width: 899.98px) and (max-height: 640px) {
  .headline { font-size: clamp(42px, 12vw, 64px); }
}

/* ── motion ── */
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes window-in { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: scale(1.02); } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .grain { animation: none; }
  .ch { filter: none; }
}
