/* ═══════════════════════════════════════════════════════════════════════════
   Kayspective Media — landing page
   ───────────────────────────────────────────────────────────────────────────
   Design note: the logo is cream, gold foil, and blush marble. Rendering the
   *page* in those proportions would read bridal, not luxury. So the emphasis is
   inverted — a quiet cream ground, near-black serif type, and gold restricted to
   hairlines, small-caps eyebrows, and rules. Nothing on the page is allowed to
   out-saturate the logo. Blush appears exactly once, as the closing CTA wash.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/cormorant-garamond-var.woff2') format('woff2-variations');
  font-weight: 300 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-var.woff2') format('woff2-variations');
  font-weight: 300 500; font-style: normal; font-display: swap;
}

:root {
  /* Kay's four canonical brand colors */
  --cream:      #F8EEE4;
  --blush:      #F3D2C0;
  --gold:       #C19359;
  --gold-deep:  #AB7937;

  /* Kay's deep gold is 3.1:1 on cream -- correct for rules and large display
     type, but short of the 4.5:1 small text needs. This is the same hue taken
     down in value until it passes on both cream and sand grounds. */
  --gold-text:  #89602A;

  /* derived neutrals the brand palette doesn't specify but the page needs */
  --cream-lift: #FCF7F1;
  --sand:       #F2E6DA;
  --blush-deep: #E0AC93;
  --ink:        #2B231C;
  --ink-soft:   #62533F;
  --hairline:   rgba(171, 121, 55, .28);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell:   1240px;
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(5.5rem, 11vw, 9.5rem);
  --measure: 62ch;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;           /* a print-inspired cream brand must not invert */
}

/* ── reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

/* anchor links must clear the fixed header */
section[id], #top { scroll-margin-top: 84px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 50%; translate: -50% -140%;
  z-index: 100; background: var(--ink); color: var(--cream);
  padding: .75rem 1.5rem; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; transition: translate .2s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ── shared type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.06; letter-spacing: -.005em; }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.5rem); }
em { font-style: italic; }

.eyebrow {
  font-size: clamp(.66rem, 1.4vw, .74rem);
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-wrap: balance;          /* stops "Austin, Texas" orphaning on narrow screens */
}

.star { fill: var(--gold); flex: none; }

.rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.25rem auto; max-width: 340px; }
.rule span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-solid  { background: var(--ink); color: var(--cream); }
.btn-solid:hover  { background: var(--gold-text); }
.btn-outline { border-color: var(--gold); color: var(--gold-text); }
.btn-outline:hover { background: var(--gold-text); border-color: var(--gold-text); color: var(--cream-lift); }
.btn-quiet {
  padding-inline: 0; color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}
.btn-quiet:hover { color: var(--gold-text); border-bottom-color: var(--gold-text); }
.btn-sm { padding: .7rem 1.4rem; font-size: .68rem; }
.btn-lg { padding: 1.2rem 2.8rem; }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 247, 241, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { border-radius: 50%; }
.brand-name {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 400; color: var(--ink); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav > a:not(.btn) {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding-block: .35rem;
  position: relative; transition: color .3s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold-deep); transition: width .35s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--gold-text); }
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .6rem; width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; height: 1px; width: 22px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 92svh;
  display: grid; place-items: center;
  padding-block: clamp(7rem, 16vh, 11rem) clamp(4rem, 10vh, 7rem);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('assets/img/hero.webp') center/cover no-repeat;
}
/* scrim: keeps display type legible and fades the marble into the page below */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(252,247,241,.86), rgba(252,247,241,.35) 60%, transparent),
    linear-gradient(180deg, rgba(248,238,228,.55) 0%, transparent 28%, transparent 62%, var(--cream) 100%);
}
.hero-inner { max-width: 940px; }
.hero-title {
  font-size: clamp(3.1rem, 9.4vw, 6.9rem);
  line-height: .98;
  letter-spacing: -.015em;
}
.hero-title em { display: block; color: var(--gold-deep); }
.hero-sub {
  max-width: 46ch; margin-inline: auto;
  color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.15rem);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem 2.25rem;
  align-items: center; justify-content: center;
  margin-top: 2.75rem;
}

/* ── positioning statement ───────────────────────────────────────────────── */
.statement { padding-block: clamp(4.5rem, 9vw, 7.5rem); text-align: center; }
.statement-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.32; letter-spacing: -.005em;
  max-width: 30ch; margin-inline: auto; text-wrap: balance;
}

/* ── generic section ─────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: clamp(3rem, 6vw, 4.75rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }

/* ── services ────────────────────────────────────────────────────────────── */
.services { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service { border-top: 1px solid var(--hairline); padding-top: 1.75rem; }
.service .num {
  font-size: .72rem; letter-spacing: .24em; color: var(--gold-text); margin-bottom: 1.25rem;
}
.service h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: .85rem; }
.service p { color: var(--ink-soft); max-width: 34ch; }

/* ── selected work: 9:16 reel frames, the studio's actual deliverable ────── */
.reels { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); grid-template-columns: repeat(4, 1fr); }
.reel { position: relative; }
.reel picture { display: block; overflow: hidden; position: relative; }
/* hairline frame: reads as a deliberately placed piece rather than a swatch */
.reel picture::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(171, 121, 55, .22);
}
.reel img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  /* one shared grade across every image so they read as a single art direction */
  filter: saturate(.94) contrast(1.02);
  transition: transform .8s var(--ease);
}
.reel:hover img { transform: scale(1.03); }
.reel figcaption {
  margin-top: 1.1rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
/* editorial rhythm: lift alternating frames rather than lining them up flat */
.reel:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.25rem); }

.note {
  margin-top: clamp(3rem, 5vw, 4rem);
  max-width: 52ch; color: var(--ink-soft); font-size: .95rem;
  padding-top: 1.5rem; border-top: 1px solid var(--hairline);
}

/* ── process ─────────────────────────────────────────────────────────────── */
.process {
  list-style: none; padding: 0;
  display: grid; gap: clamp(2.25rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  position: relative;
}
.step { position: relative; padding-top: 2.5rem; }
/* the hairline the star nodes sit on */
.step::before {
  content: ''; position: absolute; top: 5px; left: 0; right: 0;
  height: 1px; background: var(--hairline);
}
.step .star { position: absolute; top: 0; left: 0; background: var(--sand); padding-right: .5rem; }
.step h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); margin-bottom: .7rem; }
.step h3 span {
  display: block; font-family: var(--sans); font-size: .7rem;
  letter-spacing: .24em; color: var(--gold-text); margin-bottom: .6rem;
}
.step p { color: var(--ink-soft); font-size: .97rem; }

/* ── about ───────────────────────────────────────────────────────────────── */
.about {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* gold rule offset behind the portrait — a quiet framing device */
.about-media::before {
  content: ''; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--gold); z-index: -1;
}
.about-body .eyebrow { margin-bottom: 1.1rem; }
.about-body h2 { margin-bottom: 1.75rem; }
.about-body p { color: var(--ink-soft); max-width: var(--measure); }
.about-body p + p { margin-top: 1.25rem; }
.signature {
  font-family: var(--serif); font-size: 1.6rem; font-style: italic;
  color: var(--ink) !important; margin-top: 2rem !important;
}

/* ── closing CTA ─────────────────────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7rem) clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  background: var(--blush);
}
.cta-band {
  position: absolute; inset: 0; z-index: -1;
  background: url('assets/img/band.webp') center/cover no-repeat;
  opacity: .5;
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.cta-inner { max-width: 690px; }
.cta .star-lg { margin: 0 auto 1.75rem; }
.cta h2 { margin-bottom: 1.25rem; }
/* direct children only: `.cta p` also matched the form's <p class="field">
   wrappers, and an auto inline margin stops a grid item stretching. */
.cta-inner > p { color: var(--ink-soft); margin-inline: auto; max-width: 44ch; }
.cta .btn { margin-top: 2.5rem; }
.cta-alt { margin-top: 1.75rem !important; font-size: .92rem; }
.cta-alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.cta-alt a:hover { border-bottom-color: var(--gold-text); }   /* ink stays: gold fails on blush */


/* ── intake form ─────────────────────────────────────────────────────────── */
/* Sits on the blush band, so inputs get a cream ground of their own: blush is
   the one surface where none of the golds clear AA, and text needs --ink. */
.intake { margin-top: clamp(2.25rem, 4vw, 3rem); text-align: left; }

.field-row { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }
.field { margin: 0 0 1.15rem; max-width: none; margin-inline: 0; }

.field label {
  display: block; margin-bottom: .5rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); font-weight: 400;
}
.field .opt { text-transform: none; letter-spacing: .04em; color: var(--ink-soft); }

.field input, .field select, .field textarea {
  width: 100%; display: block;
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  background: var(--cream-lift);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.6; }

/* native select arrow, drawn to match the gold hairlines */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AB7937' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.field select:invalid { color: var(--ink-soft); }

.field :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 2px rgba(171, 121, 55, .28);
}

.field-error {
  display: block; margin-top: .4rem;
  font-size: .82rem; letter-spacing: .02em; color: #8C2F1E;
}
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #8C2F1E; }

/* honeypot: off-canvas rather than display:none, which some bots skip */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; margin: 0;
}

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}
.form-foot .btn { margin-top: 0 !important; }
/* no max-width: the flex row already bounds it, and a cap forced a two-line
   wrap in space that fits one. */
.form-note { font-size: .84rem; color: var(--ink-soft); margin: 0 !important; text-align: left; flex: 1 1 14rem; }

.intake[data-sending] { opacity: .6; pointer-events: none; }

.form-status {
  margin-top: 1.5rem !important; padding: 1rem 1.25rem;
  border: 1px solid var(--hairline); background: var(--cream-lift);
  font-size: .95rem; color: var(--ink) !important; text-align: left;
}
.form-status[data-state="error"] { border-color: #8C2F1E; }

/* success replaces the form outright — nothing left to re-submit */
.form-done { text-align: center; margin-top: clamp(2rem, 4vw, 2.75rem); }
.form-done h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .75rem; }
.form-done p { color: var(--ink-soft); margin-inline: auto; max-width: 40ch; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}


/* ── city type-ahead ─────────────────────────────────────────────────────── */
.field-combo { position: relative; }

.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
  margin: -1px 0 0; padding: 0; list-style: none;
  background: var(--cream-lift);
  border: 1px solid var(--gold-deep);
  max-height: 15rem; overflow-y: auto;
  box-shadow: 0 12px 28px rgba(43, 35, 28, .12);
}
.combo-list[hidden] { display: none; }

.combo-option {
  padding: .7rem 1rem;
  font-size: .95rem; color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
}
.combo-option:last-child { border-bottom: 0; }
/* aria-selected drives the visual state so pointer and keyboard agree */
.combo-option[aria-selected="true"] { background: var(--blush); }

.combo-empty { padding: .7rem 1rem; font-size: .9rem; color: var(--ink-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--cream); padding-block: clamp(3rem, 5vw, 4.25rem); }
.footer-inner { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.footer-brand img { border-radius: 50%; margin: 0 auto .9rem; }
.footer-name { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-text); margin-top: .35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; justify-content: center; }
.footer-links a {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding-block: .25rem;
  border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-links a:hover { color: var(--gold-text); border-bottom-color: var(--gold-text); }
.footer-legal { font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }

/* ── reveal-on-scroll ────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); }   /* no-JS keeps everything visible */
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .reels { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; }
}

/* hero and band are CSS backgrounds, so they need their own art-direction
   switch -- the <picture> srcsets elsewhere can't reach them */
@media (max-width: 700px) {
  .hero-bg { background-image: url('assets/img/hero@half.webp'); }
  .cta-band { background-image: url('assets/img/band@half.webp'); }
}

@media (max-width: 900px) {   /* nav wraps below this, so switch to the drawer */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-lift);
    padding: 5.5rem var(--gutter) 2rem;
    box-shadow: 0 1px 0 var(--hairline);
    translate: 0 -100%;
    transition: translate .45s var(--ease);
  }
  .nav.is-open { translate: 0; }
  .nav > a:not(.btn) { padding-block: 1.05rem; border-bottom: 1px solid var(--hairline); font-size: .8rem; }
  .nav > .btn { margin-top: 1.75rem; text-align: center; }
  .hero-actions { flex-direction: column; gap: 1.25rem; }
  .reel:nth-child(even) { margin-top: 0; }
}

@media (max-width: 460px) {
  .reels { grid-template-columns: 1fr; gap: 2.25rem; }
  .reel img { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
