/* Small Conferences, classic recreation. Engine tokens first, then the page.
   Robert's live palette, with one darker blue where white text has to pass contrast. */
:root {
  --sc-canvas: #fff;  --sc-surface: #fff;
  --sc-ink: #000;     --sc-ink-soft: #333;
  --sc-accent: #FACF0E; --sc-accent-ink: #000;
  --sc-font-display: "Jost", system-ui, sans-serif;
  --sc-font-text: "Open Sans", system-ui, sans-serif;

  --blue: #1192DC;      /* hero wash and decoration only */
  --blue-ink: #0B79B8;  /* 4.7:1 with white: panels, footer, blue text */
  --yellow: #FACF0E;
  --mist: #F2F8FC;
  --rule: #e6e6e6;
  --g: clamp(1rem, 4vw, 3rem);
  --pw: max(100vw, 140svh);          /* cloud plane width */
  --ph: calc(var(--pw) * .5546);     /* cloud plane height, from the 2400x1331 mask */
  --tail: clamp(6rem, 12vw, 11rem);  /* how much of the footer the page lifts off */
}
@media (max-aspect-ratio: 3/4) { :root { --pw: max(100vw, 162svh); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; color: #333; font: 400 1rem/1.7 var(--sc-font-text); -webkit-font-smoothing: antialiased; }
.wrap { width: min(71.25rem, 100% - 2 * var(--g)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid #000; outline-offset: 0; box-shadow: 0 0 0 6px #fff; }
#intro:focus { outline: none; box-shadow: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem; padding: .55rem 1.5rem; background: var(--yellow); color: #000; font: 700 .9375rem/1.2 var(--sc-font-text); letter-spacing: .03em; text-align: center; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.btn:hover { background: #fff; color: #000; }
.btn--blue { background: var(--blue-ink); color: #fff; }
.btn--blue:hover { background: #000; color: #fff; }
.btn--white { background: #fff; color: var(--blue-ink); }
.btn--white:hover { background: var(--yellow); color: #000; }
@media (max-width: 699px), (pointer: coarse) { .btn { min-height: 2.9rem; } }

main { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ hero -- */
/* The window opens. --o runs 0 to 1 between p .06 and .82. The solid cloud scales
   fastest, the ghost slower, the photo slowest, so the three planes come apart. */
.hero { --o: clamp(0, calc((var(--sc-p, 0) - .06) / .76), 1); --lift: clamp(0, calc(var(--sc-p, 0) / .22), 1); }
.hero__stage { background: #fff; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.04 + var(--o) * .16)); transform-origin: 70% 40%; will-change: transform; }
.hero__wash { position: absolute; inset: 0; background: linear-gradient(275deg, rgba(153, 210, 255, 0) 16%, var(--blue) 82%); opacity: calc(1 - var(--o) * .8); }
.plane { position: absolute; top: 0; left: calc(50% - var(--pw) / 2); width: var(--pw); height: var(--ph); transform-origin: 50% 45%; pointer-events: none; will-change: transform; }
.plane img { display: block; width: 100%; height: 100%; }
.plane--solid { transform: scale(calc(1 + var(--o) * var(--o) * 1.6)); }
.plane--solid::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 2px); height: 100svh; background: #fff; }
.plane--ghost { transform: scale(calc(1 + var(--o) * var(--o) * 1.05)); }

.hero__fore { position: absolute; inset: 0; z-index: 3; }
/* Robert's header rides the stage, then lifts off the top as the window opens. */
.top { padding-top: 1.5rem; transform: translateY(calc(var(--lift) * -110%)); }
.top__row { display: flex; align-items: center; justify-content: space-between; }
.top__logo img { display: block; width: 9.5rem; height: auto; }
.top__social { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--blue-ink); color: #fff; }
.top__social svg { width: 1.3rem; height: 1.3rem; }

.pill { position: relative; display: flex; align-items: stretch; height: 4.8rem; margin-top: 2.25rem; background: var(--yellow); border-radius: 999px 0 0 999px; color: #000; }
.pill__phone { display: flex; align-items: center; margin-right: auto; padding: 0 1.5rem 0 3.6rem; color: #000; font: 700 1.0625rem/1 var(--sc-font-display); text-decoration: none; white-space: nowrap; }
.pill__phone:hover { text-decoration: underline; text-underline-offset: .3em; }
.pill__short { display: none; }
.nav { display: flex; align-items: center; gap: .25rem; padding-right: 1.75rem; }
.nav > a, .nav__group > a { display: flex; align-items: center; padding: .75rem .9rem; color: #000; font: 500 1.0625rem/1 var(--sc-font-display); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav__group { position: relative; display: flex; align-items: center; }
.nav__group > a { padding-right: .15rem; }
.nav__toggle { display: grid; place-items: center; width: 2rem; height: 2.75rem; margin: 0; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
.nav__toggle svg { width: .8rem; height: .8rem; transition: transform .2s; }
.nav__group.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 1rem); left: 0; z-index: 10; min-width: 16rem; padding: .5rem 0; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-.4rem); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1.1rem; }
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) { .nav__group:hover .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; } }
.nav__menu a { display: block; padding: .7rem 1.25rem; color: #000; font: 500 1rem/1.3 var(--sc-font-display); text-decoration: none; }
.nav__menu a:hover { background: var(--mist); color: var(--blue-ink); text-decoration: none; }
.pill__cta { display: flex; align-items: center; justify-content: center; width: 12.5rem; background: #fff; color: var(--blue-ink); font: 700 .9375rem/1 var(--sc-font-text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.pill__cta:hover { background: var(--blue-ink); color: #fff; }
.menu-btn, .drawer { display: none; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; width: 3.5rem; margin: 0; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
  .menu-btn svg { width: 1.6rem; height: 1.6rem; }
  .drawer { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 10; display: flex; flex-direction: column; width: min(20rem, 100%); padding: .6rem 0; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-.4rem); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
  .drawer a { padding: .75rem 1.5rem; color: #000; font: 500 1.125rem/1.3 var(--sc-font-display); text-decoration: none; }
  .drawer a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
  .drawer .drawer__sub { padding-left: 2.5rem; color: #333; font-size: 1rem; }
}

.hero__copy { padding-top: 2.6rem; color: #fff; text-align: center; text-shadow: 0 1px 18px rgba(0, 45, 80, .35); }
.eyebrow { width: fit-content; margin: 0 auto .55rem; font: 700 .875rem/1.5 var(--sc-font-text); letter-spacing: .2em; text-transform: uppercase; }
/* The headline box hugs its widest line, and a soft navy pool sits under it only, so the
   bright stage screens on the right of the photo cannot wash the white type out. It fades
   on the same window as the headline's cue. */
.hero__headwrap { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.hero__scrim { position: absolute; inset: -55% -24%; background: radial-gradient(closest-side, rgba(4, 40, 74, .5) 68%, rgba(4, 40, 74, 0)); opacity: clamp(0, calc((.3 - var(--sc-p, 0)) / .15), 1); pointer-events: none; }
.hero__head { position: relative; }
.hero h1 { margin: 0; color: #fff; font: 700 clamp(2.4rem, 4.86vw, 4.375rem)/1.1 var(--sc-font-display); }
.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4.2rem; }
.hero__ctas .btn { justify-self: center; width: min(21.875rem, 100%); text-shadow: none; }

@media (max-width: 699px) {
  .top { padding-top: 1rem; }
  .top__logo img { width: 7rem; }
  .pill { height: 3.5rem; margin-top: 1rem; }
  .pill__long { display: none; }
  .pill__short { display: inline; }
  .pill__phone { padding: 0 .75rem 0 1.4rem; font-size: 1rem; }
  .pill__cta { width: auto; padding: 0 1rem; font-size: .8125rem; }
  .hero__copy { padding-top: 2rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .14em; }
  .hero__ctas { grid-template-columns: 1fr; gap: .75rem; margin-top: 2rem; }
}

/* The window closes: a second copy of the cloud rides up over the pinned hall. */
.cap { position: relative; z-index: 5; height: var(--ph); margin-top: calc(-1 * var(--ph)); overflow: clip; pointer-events: none; }
.cap__plane { position: absolute; top: 0; left: calc(50% - var(--pw) / 2); display: block; width: var(--pw); max-width: none; height: var(--ph); }
.cap__ghost img { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------- welcome -- */
.welcome { position: relative; z-index: 5; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 9vw, 8rem); background: #fff; }
.split { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .split__head { position: sticky; top: 3rem; }
}
.welcome h2 { margin: 0 0 1.25rem; color: #000; font: 700 clamp(2.25rem, 4.2vw, 3.75rem)/1.1 var(--sc-font-display); }
.sub { margin: 0 0 1.25rem; color: #333; font: 500 clamp(1.15rem, 1.6vw, 1.375rem)/1.45 var(--sc-font-text); }
.welcome p { margin-top: 0; }
.services-h { margin: .4rem 0 1.5rem; color: var(--blue-ink); font: 600 1.5rem/1.3 var(--sc-font-display); }
.services { margin: 0; padding: 0; list-style: none; }
.services li { padding: 1.15rem 0; border-top: 1px solid var(--rule); color: #333; line-height: 1.65; }
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services strong { display: block; margin-bottom: .3rem; color: #000; font: 600 1.125rem/1.3 var(--sc-font-display); }

/* ---------------------------------------------------------------- unlock -- */
.unlock { --cs: clamp(8rem, 20vw, 20rem); position: relative; z-index: 5; overflow: hidden; padding-block: max(6rem, calc(var(--cs) * .85)); background: var(--blue-ink); color: #fff; }
@media (min-width: 960px) { .unlock { padding-block: clamp(6rem, 11vw, 10rem); } }
.unlock .corner { width: var(--cs); }
.corner { position: absolute; aspect-ratio: 1; pointer-events: none; }
.corner img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.corner__ghost { position: absolute; inset: 0; }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--br { right: 0; bottom: 0; transform: rotate(180deg); }
.unlock__text { position: relative; z-index: 1; max-width: 46rem; margin-left: auto; }
.unlock h2 { margin: 0 0 1.5rem; color: #fff; font: 700 clamp(2rem, 3.6vw, 3.125rem)/1.15 var(--sc-font-display); }
.unlock p { margin: 0 0 1.1rem; font-size: 1.0625rem; line-height: 1.75; }
.unlock a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.unlock a:hover { color: var(--yellow); }

/* ----------------------------------------------------------------- words -- */
.words { position: relative; z-index: 5; background: #fff; }
.words__stage { display: flex; align-items: center; background: #fff; }
.rail { align-items: stretch; gap: 2rem; padding-inline: max(var(--g), (100vw - 71.25rem) / 2); }
.rail > * { flex: 0 0 auto; }
.rail__lead { display: flex; align-items: center; max-width: 80vw; }
.rail__lead h2 { margin: 0; color: #000; font: 700 clamp(2.5rem, 5vw, 4.5rem)/1 var(--sc-font-display); }
.quote { display: flex; flex-direction: column; width: min(29rem, 82vw); margin: 0; padding: 2.25rem 2rem 2.5rem; background: var(--mist); }
.quote__mark { width: 2.75rem; height: auto; margin-bottom: 1.25rem; fill: var(--yellow); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; color: #000; font: 500 clamp(1.125rem, 1.6vw, 1.5rem)/1.5 var(--sc-font-display); }
.rail__note { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; width: min(24rem, 80vw); }
.rail__tel { color: var(--blue-ink); font: 700 clamp(1.75rem, 2.8vw, 2.5rem)/1.2 var(--sc-font-display); text-decoration: none; }
.rail__tel:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer -- */
/* Curtain: main ends in a transparent tail with two cloud corners, and the footer
   sits under it, held at the bottom of the screen where there is room for it. */
.tail { position: relative; height: var(--tail); overflow: clip; pointer-events: none; }
.tail .corner { width: calc(var(--tail) * 1.25); }
.foot { position: relative; z-index: 0; margin-top: calc(-1 * var(--tail)); padding-top: calc(var(--tail) + 2.5rem); background: var(--blue-ink); color: #fff; }
@media (min-width: 900px) and (min-height: 700px) { .foot { position: sticky; bottom: 0; } }
.foot__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1fr 1.5fr 1.1fr; } }
.foot__brand img { display: block; width: 10rem; height: auto; }
.foot__brand p { margin: .75rem 0 0; font: 600 1.125rem/1.3 var(--sc-font-display); }
.foot__links { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.foot__links li { padding-block: .3rem; break-inside: avoid; }
.foot__links a, .foot__tel { color: #fff; text-decoration: none; }
.foot__links a:hover, .foot__tel:hover { text-decoration: underline; }
.foot__h { margin: 0 0 .5rem; color: #fff; font: 700 1.5rem/1.2 var(--sc-font-display); }
.foot__contact p { margin: 0; }
.foot__tel { font-size: 1.125rem; font-weight: 700; }
.foot__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.foot__bar { background: var(--yellow); color: #000; }
.foot__bar p { margin: 0 auto; padding-block: 1rem; font-size: .875rem; line-height: 1.6; }
.foot__bar a { color: #000; }
.foot__bar .foot__credit { padding-block: 0 1rem; font-size: .75rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .plane { transform: none; opacity: calc(1 - var(--o)); }
  .hero__photo img { transform: none; }
}
