/* The Hype Department
   Palette comes straight from the logo: its pink, its deep magenta shadow,
   the cream of the dial and the blush background the logo was drawn on.
   Type: Bodoni Moda (the logo tagline is a didone italic) with Jost, a
   Futura-style geometric from the same era as the rotary phone. */

:root {
  --blush: #fbeaf2;
  --blush-deep: #f8dbe7;
  --panel: #fcdde2;
  --white: #fff;
  --pink: #d81b78;
  --pink-deep: #a90c50;
  --ink: #3b0f26;
  --ink-soft: #6d4257;
  --gold: #b0803f;
  --rule: rgba(169, 12, 80, 0.16);

  --serif: "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: Jost, "Century Gothic", Futura, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --section-y: clamp(72px, 10vw, 136px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 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: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h2, h3, .hero__line, .directory__name { font-variation-settings: "opsz" 30; }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--ink); }
.label { font-weight: 600; color: var(--pink); margin-bottom: 14px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 4px; }

/* The phone is a Cycles render played as short films with real transparency
   (see js/site.js). The still images are the same frames flattened onto the
   blush, feathered at the edges, for the first paint and as the fallback. */
.phone {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  padding: 0; margin: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.phone__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* the source films stay "on screen" (some browsers pause hidden video) but invisible:
   tiny, nearly transparent, and tucked behind the phone's body (at the box's corner
   they showed as a faint dot) */
.phone__src { position: absolute; left: 50%; top: 62%; z-index: -1; width: 2px; height: 3px; opacity: 0.01; pointer-events: none; }
.phone__still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.phone.has-film .phone__still { visibility: hidden; }

/* the logo sparkles, rendered in 3D: one canvas behind the phone, one in front */
.phone__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* hero entrance: the copy arrives after the camera has pulled back */
.intro .hero__mark, .intro .hero__line, .intro .hero__sub, .intro .hero__actions, .intro .nav { opacity: 0; }
.intro .hero__mark { clip-path: inset(0 100% 0 0); transform: translateY(10px); }
.intro .hero__line, .intro .hero__sub, .intro .hero__actions { transform: translateY(14px); }
.intro-run .hero__mark, .intro-run .hero__line, .intro-run .hero__sub, .intro-run .hero__actions, .intro-run .nav {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease, transform 1.1s var(--ease), clip-path 1.3s cubic-bezier(0.6, 0, 0.2, 1);
}
.intro-run .hero__mark { clip-path: inset(0 0 0 0); transition-delay: 0.85s; }
.intro-run .hero__line { transition-delay: 1.45s; }
.intro-run .hero__sub { transition-delay: 1.6s; }
.intro-run .hero__actions { transition-delay: 1.75s; }
.intro-run .nav { transition-delay: 1.95s; }

/* ---- buttons and links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--pink); color: #fff;
  font-weight: 600; text-decoration: none; line-height: 1.1; white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn--small { padding: 11px 20px; font-size: 0.94rem; }
.btn--large { padding: 18px 34px; font-size: clamp(1.02rem, 1.6vw, 1.25rem); }
.link {
  font-weight: 600; color: var(--pink-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link:hover { color: var(--pink); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 0 var(--pad);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav__brand { margin-right: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav__links a:hover { color: var(--pink); }
.nav--solid { background: rgba(251, 234, 242, 0.94); box-shadow: 0 1px 0 var(--rule); }
@supports (backdrop-filter: blur(10px)) {
  .nav--solid { background: rgba(251, 234, 242, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav--solid .nav__brand { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 719px) {
  .nav__links { display: none; }
  .nav__brand img { height: 30px; }
}

/* ---- hero ---- */
/* Where one section's colour meets the next, the colour above dips into the empty
   space at the top of the section below as a soft swash, swelling as the meeting line
   crosses the screen and lying flat again at either end. It stays inside that top
   padding, so it never touches the content (js/site.js draws it). */
[data-edge] { position: relative; isolation: isolate; }
[data-edge] > :not(.edge) { position: relative; z-index: 1; }
.edge { position: absolute; left: 0; top: -1px; z-index: 0; display: block; width: 100%; pointer-events: none; }
.hero {
  background: var(--blush);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: var(--nav-h) var(--pad) clamp(28px, 5vh, 56px);
  overflow: hidden;
}
/* the film frame has generous blank margins, so it may overhang the stage;
   the copy sits above it */
.hero__stage { position: relative; flex: 1 1 auto; min-height: clamp(240px, 40vh, 600px); }
.hero__stage .phone, .cta__stage .phone { position: absolute; left: 50%; top: 50%; height: min(122%, 92vw, 760px); transform: translate(-50%, -53%); }
/* a touch smaller on phones, so the lifted handset clears the screen edge */
.hero__stage .phone { height: min(122%, 86vw, 760px); }
.hero__copy { position: relative; z-index: 1; text-align: center; }
.hero__mark { width: min(100%, 820px, 60vw + 120px, 100vh); margin: 0 auto; }
.hero__mark img { width: 100%; }
.hero__line {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__sub { margin-top: 8px; color: var(--ink-soft); }
.hero__actions { margin-top: clamp(18px, 3vh, 30px); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }

/* ---- about ---- */
.about { padding: var(--section-y) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; }
.about__text h2 { margin-bottom: clamp(18px, 2.4vw, 30px); }
.about__text p + p { margin-top: 1em; color: var(--ink-soft); }
.about__facts {
  margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 44px);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--pink-deep);
}

/* ---- directory: her photo's own pink panel carries the list ---- */
.directory { padding: 0 0 var(--section-y); }
.directory__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.directory__text h2 { margin-bottom: clamp(14px, 2vw, 22px); }
.directory__card { position: relative; container-type: inline-size; border-radius: 4px; overflow: hidden; background: var(--panel); }
.directory__card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.directory__list {
  position: absolute; inset: 0 auto 0 0; width: 57.5%;
  display: flex; flex-direction: column; justify-content: center; gap: 5cqw;
  padding: 0 3cqw 0 7cqw;
}
.directory__list a {
  display: block; text-decoration: none; color: var(--ink);
  transition: color 0.2s ease, transform 0.3s var(--ease);
}
.directory__name {
  display: block; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; font-size: clamp(15px, 4.5cqw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em;
}
.directory__kind {
  display: block; margin-top: 0.9cqw;
  font-weight: 600; font-size: clamp(11px, 2.3cqw, 0.95rem); line-height: 1.2; color: var(--pink-deep);
}
.directory__list a:hover { color: var(--pink-deep); transform: translateX(4px); }

/* ---- services: three columns, each led by its desk object standing on a shared line ---- */
.services { background: var(--blush); padding: var(--section-y) 0; }
.services .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.service__art { width: clamp(150px, 14vw, 190px); aspect-ratio: 1; }
.service__icon { display: block; width: 100%; height: auto; transition: translate 0.6s var(--ease); }
.service:hover .service__icon { translate: 0 -6px; }
.service__text { margin-top: clamp(18px, 2vw, 26px); padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--rule); }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.35vw, 2.35rem); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.service__kind { text-wrap: balance; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--pink-deep); }
.service__body { margin-top: clamp(14px, 1.6vw, 20px); }
.service__body p + p { margin-top: 0.9em; color: var(--ink-soft); }

/* ---- events ---- */
.events { --cover: var(--pink); background: var(--pink); color: #fff; padding: var(--section-y) 0; }
.events__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.events__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.events .label { color: #fff; }
.events__list { margin-top: clamp(24px, 3.4vw, 44px); border-top: 1px solid rgba(255, 255, 255, 0.4); }
.events__list li {
  padding: clamp(12px, 1.5vw, 18px) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.15;
}

/* ---- contact ---- */
.cta {
  background: var(--blush);
  /* room above for the lifted handset */
  padding: clamp(72px, 11vw, 150px) var(--pad) var(--section-y);
  text-align: center;
  overflow: hidden;
}
.cta__stage { position: relative; height: clamp(260px, 50vh, 560px); }
.cta__copy { position: relative; z-index: 1; }
.cta__copy h2 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1; }
.cta__copy .lead { max-width: 30em; margin: 18px auto 30px; color: var(--ink-soft); }

/* ---- footer ---- */
.foot { background: var(--white); padding: 34px 0; font-size: 0.94rem; color: var(--ink-soft); }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot__mark { height: 34px; width: auto; }
.foot__legal { margin-left: auto; text-align: right; }
.foot__by { margin-top: 2px; font-size: 0.86rem; }
.foot__by a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot__by a:hover { color: var(--pink-deep); }

/* ---- narrow layouts ---- */
/* below 1100 px the three columns get too narrow for the names: one under another,
   the object beside its text */
@media (max-width: 1099px) {
  .services .wrap { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 56px); max-width: 860px; }
  .service { display: grid; grid-template-columns: clamp(110px, 18vw, 160px) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
  .service__art { width: 100%; }
  .service__text { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 899px) {
  .about__grid, .directory__grid, .events__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo, .events__photo { max-width: 520px; }
  .directory__card { max-width: 620px; }

  .foot__legal { margin-left: 0; text-align: left; }
}
@media (max-width: 899px) and (min-width: 600px) {
  .about__photo, .events__photo, .directory__card { margin: 0 auto; }
}


@media (max-width: 559px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .service__art { width: 128px; }
  .service__text { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .service h3 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
}

/* ---- scroll reveals (html.sr is set in the head when motion is welcome; js/site.js adds .is-in
   as each piece comes into view, with --d staggering pieces that arrive together) ---- */
.sr [data-reveal] { transition-delay: var(--d, 0s); }
.sr [data-reveal="fade"] { opacity: 0; transform: translateY(20px); transition-property: opacity, transform; transition-duration: 0.9s, 1.1s; transition-timing-function: ease, var(--ease); }
.sr [data-reveal="words"] .w {
  display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); transform-origin: 0 100%;
  transition: opacity 0.7s ease, transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms);
}
/* photos: a cover in the section colour drops away like a blind, top to bottom, while the photo settles
   (a cover rather than a clip, so the lazy-loaded photo is free to load as it nears) */
.sr [data-reveal="photo"] { position: relative; overflow: hidden; border-radius: 4px; }
.sr [data-reveal="photo"]::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; background: var(--cover, var(--white));
  transform-origin: 50% 100%; transition: transform 1.3s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s);   /* shrinks downward: the photo shows from the top */
}
.sr [data-reveal="photo"] img { transform: scale(1.14); transition: transform 1.9s var(--ease) var(--d, 0s); }
.sr .directory__card [data-reveal="list"] > * { transition-delay: calc(var(--d, 0s) + 0.75s + var(--i) * 90ms); }
.sr [data-reveal="icon"] {
  opacity: 0; transform: translateY(56px) scale(0.84) rotate(-6deg);
  transition: opacity 0.8s ease var(--d, 0s), transform 1.5s cubic-bezier(0.34, 1.4, 0.5, 1) var(--d, 0s), translate 0.6s var(--ease);
}
.sr [data-reveal="list"] > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease, transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + 0.15s + var(--i) * 80ms);
}
.sr .is-in[data-reveal="fade"], .sr .is-in[data-reveal="icon"], .sr .is-in[data-reveal="list"] > *, .sr .is-in[data-reveal="words"] .w { opacity: 1; transform: none; }
.sr .is-in[data-reveal="photo"]::after { transform: scaleY(0); }
.sr .is-in[data-reveal="photo"] img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
