/* 444 Wedding & Executive: shared styles. Tokens and rules from _work/design-plan.md */

@font-face {
  font-family: 'Marcellus';
  src: url('../fonts/marcellus.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* metric-matched fallbacks so text does not reflow when the web fonts arrive */
@font-face { font-family: 'Marcellus Fallback'; src: local('Georgia'); size-adjust: 102.7%; ascent-override: 97%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'); font-weight: 100 549; size-adjust: 101%; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 550 900; size-adjust: 94.6%; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --graphite: #121519;
  --graphite-2: #1b2026;
  --graphite-3: #252b33;
  --pearl: #eceeec;
  --pearl-2: #e1e4e3;
  --ribbon: #1aa9ae;
  --ribbon-hi: #5fd3d4;
  --ribbon-deep: #0b6f74;
  --chrome: #b9c0c8;
  --chrome-dim: #8d959f;
  --dusk: #1d2b3b;
  --ivory: #f6f6f3;
  --ink: #15191e;
  --ink-soft: #3d454f;

  --display: 'Marcellus', 'Marcellus Fallback', Georgia, serif;
  --body: 'Hanken Grotesk', 'Hanken Fallback', Arial, sans-serif;

  --r: 32px;                   /* one corner only: top-left (19 mod 5 = 4) */
  --corner: var(--r) 0 0 0;
  --gutter: clamp(20px, 5vw, 80px);
  --head-h: 104px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --media-cap: min(76vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--graphite); color: var(--ivory);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ribbon); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ribbon-hi); outline-offset: 3px; }
.lede { font-size: clamp(1.06rem, 1.2vw, 1.2rem); line-height: 1.6; }
.on-pearl { background: var(--pearl); color: var(--ink); }
.on-pearl .lede, .on-pearl p { color: var(--ink-soft); }
.on-pearl :focus-visible { outline-color: var(--ribbon-deep); }

/* masked line reveals: padded masks so descenders never clip (frontend-design) */
[data-split] { display: flow-root; }
.js [data-split]:not(.is-split) { visibility: hidden; animation: failsafe-show 0s 3.6s forwards; }
@keyframes failsafe-show { to { visibility: visible; } }
.split-mask { margin: -.2em -.15em -.7em; padding: .2em .15em .5em; overflow: clip; }
.split-mask:last-child { margin-bottom: -.5em; }

/* ---------- header ---------- */
body:not(.page-home) main { padding-top: var(--head-h); }
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h); transition: height .45s var(--ease); }
.site-head::before {
  content: ''; position: absolute; inset: 0; background: rgba(18, 21, 25, .82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .45s var(--ease);
}
.page-home .site-head::before { opacity: 0; }
body:not(.page-home) .site-head::before, .site-head.is-scrolled::before { opacity: 1; }
.site-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(26, 169, 174, .55), transparent); transform: scaleX(0); transition: transform .8s var(--ease); }
.site-head.is-scrolled::after, body:not(.page-home) .site-head::after { transform: scaleX(1); }
.site-head.is-small { height: 78px; }
.site-head__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; height: 100%; padding: 10px 0; }
.brand__crest { height: 74px; width: auto; transition: height .45s var(--ease); }
.is-small .brand__crest { height: 56px; }
.brand__word { width: 220px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(14px, 1.8vw, 30px); margin: 0; padding: 0; }
.nav__link { position: relative; display: inline-block; padding: 10px 0; line-height: 24px; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ivory); white-space: nowrap; }
.nav__link span { position: relative; }
.nav__link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ribbon); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover span::after, .nav__link.is-current span::after { transform: scaleX(1); transform-origin: left; }
.head-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 52px; height: 52px; background: transparent; border: 1px solid rgba(185, 192, 200, .45); border-radius: 0; cursor: pointer; position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 14px; width: 22px; height: 2px; background: var(--ivory); transition: transform .4s var(--ease), opacity .3s; }
.burger__lines { top: 25px; }
.burger__lines::before, .burger__lines::after { content: ''; left: 0; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: -1; background: var(--graphite); padding: calc(var(--head-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__link { display: block; font-family: var(--display); font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.2; padding: 8px 0; text-decoration: none; border-bottom: 1px solid rgba(185, 192, 200, .14); }
.menu__link[aria-current] { color: var(--ribbon-hi); }
.menu__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 4px; color: var(--chrome); }
.menu__foot a { color: var(--ivory); font-weight: 600; font-size: 1.15rem; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 1180px) {
  .site-head .nav, .site-head .head-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 1320px) and (min-width: 1181px) { .brand__word { width: 170px; } }
@media (max-width: 600px) {
  :root { --head-h: 84px; }
  .brand__crest { height: 60px; }
  .brand__word { width: 168px; }
  .site-head.is-small { height: 70px; }
  .is-small .brand__crest { height: 50px; }
}
@media (max-width: 380px) { .brand__word { width: 140px; } }

/* ---------- buttons (square: "444" = 3, 3 mod 3 = 0) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 0; border: 1px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before { content: ''; position: absolute; inset: -2px; z-index: 0; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn--ribbon { background: var(--ribbon); color: var(--ink); }
.btn--ribbon::before { background: var(--ivory); }
.btn--ghost { background: rgba(18, 21, 25, .55); color: var(--ivory); border-color: rgba(246, 246, 243, .55); }
.btn--ghost::before { background: var(--ivory); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--dark { background: var(--graphite); color: var(--ivory); }
.btn--dark::before { background: var(--ribbon-deep); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line::before { background: var(--graphite); }
.btn--line:hover, .btn--line:focus-visible { color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- framed media: one rounded corner, a ribbon line offset along the edge ---------- */
.frame { position: relative; border-radius: var(--corner); overflow: clip; background: var(--graphite-2); }
.frame > img, .frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.framed { position: relative; }
.framed::after { content: ''; position: absolute; right: -14px; top: 28px; bottom: -14px; width: 2px; background: var(--ribbon); transform-origin: top; transform: scaleY(var(--line, 1)); }
.cap { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--graphite); color: var(--chrome); font-size: .9rem; padding: 8px 14px; }

/* pointer glare on tilt cards (site.js [data-tilt]) */
.glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; }

/* ---------- ribbon divider drawn on scroll ---------- */
.ribbon-rule { display: block; width: 100%; height: 40px; overflow: visible; }
.ribbon-rule path { fill: none; stroke: var(--ribbon); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- section basics ---------- */
.section { position: relative; padding: clamp(80px, 11vh, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 5vh, 56px); }
.section-head h2 { flex: 1 1 520px; }
.section-head p { flex: 1 1 360px; max-width: 560px; }

/* ---------- bow call to action ---------- */
.bow-cta { position: relative; overflow: clip; padding: clamp(40px, 7vh, 80px) 0 clamp(90px, 13vh, 150px); background: var(--graphite); isolation: isolate; }
.bow-cta__photo { position: absolute; inset: -12% 0; z-index: -2; }
.bow-cta__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.bow-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 40%, rgba(18, 21, 25, .35), rgba(18, 21, 25, .92) 70%); }
.bow-cta__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bow-cta__ribbon { position: relative; display: block; width: 100%; height: clamp(130px, 15vw, 210px); overflow: visible; pointer-events: none; margin-bottom: clamp(6px, 2vh, 20px); }
.bow-cta__knot { fill: var(--ribbon-hi); transform-box: fill-box; transform-origin: center; }
.bow-cta__line { fill: none; stroke: var(--ribbon); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(26, 169, 174, .35)); }
.bow-cta__title { font-size: clamp(2.2rem, 4.4vw, 4rem); width: 100%; }
.bow-cta__line-text { font-size: 1.15rem; color: var(--chrome); }
.bow-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: #0d0f12; color: var(--chrome); overflow: clip; }
.foot-marquee { border-top: 1px solid rgba(185, 192, 200, .12); border-bottom: 1px solid rgba(185, 192, 200, .12); overflow: clip; padding: 18px 0; }
.foot-marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.foot-marquee__track span { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: var(--ivory); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.foot-marquee__track span::after { content: ''; width: 34px; height: 2px; background: var(--ribbon); }
@keyframes marquee { to { transform: translateX(-50%); } }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.foot-crest { height: 110px; width: auto; }
.foot-word { width: 260px; margin: 18px 0 20px; }
.foot-col p { max-width: 520px; }
.foot-title { font-family: var(--display); font-size: 1.4rem; color: var(--ivory); margin-bottom: 16px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--chrome); transition: color .3s; }
.foot-links a:hover { color: var(--ribbon-hi); }
.foot-hours { margin-top: 16px; color: var(--ivory); }
.foot-credit { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; font-size: .95rem; }
.foot-credit__line { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, var(--ribbon), rgba(185, 192, 200, .2) 40%, rgba(185, 192, 200, .2)); transform-origin: left; }
.foot-credit a { color: var(--ivory); }
@media (max-width: 900px) {
  .site-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- holding pages ---------- */
.hold-open { position: relative; isolation: isolate; min-height: 52vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(48px, 8vh, 88px); max-width: 1520px; margin: 0 auto; }
.hold-open__text h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin-bottom: 18px; }
.hold-open__text .lede { color: var(--chrome); margin-bottom: 28px; }
.hold-open__media { height: clamp(260px, 44vh, 460px); }
.hold-open__media .frame { height: 100%; }
.hold-open__bg { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.hold-open__bg svg { position: absolute; left: -5%; width: 110%; bottom: 8%; height: 60%; }
.hold-open__bg path { fill: none; stroke: rgba(26, 169, 174, .35); stroke-width: 1.5; }
.hold-soon { padding: clamp(64px, 10vh, 120px) 0; }
.hold-soon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hold-soon__note h2 { margin-bottom: 18px; }
.hold-soon__note ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hold-soon__note li { display: flex; gap: 12px; align-items: baseline; }
.hold-soon__note li::before { content: ''; flex: none; width: 18px; height: 2px; background: var(--ribbon-deep); transform: translateY(-4px); }
.hold-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hold-link { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 300px; padding: 22px; border-radius: var(--corner); overflow: clip; color: var(--ivory); text-decoration: none; isolation: isolate; }
.hold-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.hold-link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 21, 25, 0) 30%, rgba(18, 21, 25, .9)); }
.hold-link:hover img { transform: scale(1.06); }
.hold-link strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.hold-link span { color: var(--chrome); font-size: .98rem; margin-top: 4px; }
@media (max-width: 960px) {
  .hold-open { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hold-open__media { height: clamp(220px, 34vh, 340px); }
  .hold-soon__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) { .hold-links { grid-template-columns: minmax(0, 1fr); } .hold-link { min-height: 220px; } }

/* reduced motion: no marquee travel */
@media (prefers-reduced-motion: reduce) {
  .foot-marquee__track { animation: none; }
  .btn::before { transition: none; }
}
