/* Polaris Photobooths
   Layout concept: dark, left-aligned pages in a 1160px column. The Polaris star is the one large
   graphic (hero), cyan is reserved for actions and small markers, everything else is black, slate and white. */

:root {
  --black: #0E1013;
  --slate: #1A1E24;
  --cool: #4A525E;
  --mist: #A9B0BA;
  --white: #FFFFFF;
  --cyan: #14BDEC;

  --line: rgba(169, 176, 186, 0.16);
  --card-border: rgba(74, 82, 94, 0.55);
  --cyan-soft: rgba(20, 189, 236, 0.12);
  --error: #FF8A80;

  --display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1160px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the phone's top safe area in the page color when the header is stuck. Zero height elsewhere. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--black);
  z-index: 60;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--white);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--mist); max-width: 32em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--cyan); color: #000; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body);
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--cyan); color: #000; }
.btn-primary:hover { box-shadow: 0 0 0 4px var(--cyan-soft), 0 10px 32px rgba(20, 189, 236, 0.28); }
.btn-primary:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--cool); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(14, 16, 19, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 38px; height: auto; aspect-ratio: 240 / 236; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.05rem/1 var(--display); letter-spacing: .14em; }
.brand-sub { font: 500 .6rem/1 var(--display); letter-spacing: .3em; color: var(--mist); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  position: relative; color: var(--mist); text-decoration: none;
  font-weight: 500; font-size: .95rem; padding: 8px 2px; transition: color .2s ease;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  background: var(--cyan); border-radius: 2px;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--cool); border-radius: var(--radius-sm);
  color: var(--white); cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease, top .2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 240 / 236; }
.hero-art::before {
  content: ""; position: absolute; inset: -22%;
  background: radial-gradient(closest-side, rgba(20, 189, 236, 0.30), rgba(20, 189, 236, 0.08) 55%, transparent 74%);
}
.hero-art img { position: relative; width: 100%; height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: star-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art::before { animation: star-glow 1.8s ease-out .15s both; }
}
@keyframes star-rise { from { opacity: .15; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes star-glow { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.band { background: var(--slate); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 14px 0 0; color: var(--mist); }

.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(8px, 2vw, 24px); }
.page-hero + .section { padding-top: clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Booth cards (home) ---------- */
.booths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.booth {
  display: flex; flex-direction: column;
  background: var(--slate); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.booth:hover { border-color: rgba(20, 189, 236, 0.6); box-shadow: 0 0 0 1px rgba(20, 189, 236, 0.22), 0 24px 60px -32px rgba(20, 189, 236, 0.45); }
.booth-icon { width: 56px; height: 56px; color: var(--cyan); margin-bottom: 22px; }
.booth h3 { margin-bottom: 6px; }
.descriptor { color: var(--mist); margin-bottom: 18px; }
.booth .desc { margin-bottom: 26px; }
.booth .includes { margin-top: auto; }
.booth .btn { align-self: flex-start; }

/* ---------- Photo moments (home) ---------- */
.moments {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(180px, 22vw, 300px));
}
.moment {
  position: relative; margin: 0; overflow: hidden;
  background: var(--slate); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.moment img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.moment::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(14, 16, 19, 0.35), transparent 45%); }
.moment-tall { grid-row: 1 / span 2; }
.moment-wide { grid-column: 2 / span 2; }
.moment-glasses img { object-position: 50% 40%; }
.moment-hearts img { object-position: 50% 10%; }
.moment-props img { object-position: 72% 50%; }
.moment-neon img { object-position: 42% 50%; }

/* Where subgrid is supported, both cards share rows so their dividers and buttons line up. */
@supports (grid-template-rows: subgrid) {
  .booths { row-gap: 0; }
  .booth { display: grid; grid-template-rows: subgrid; grid-row: span 6; justify-items: start; }
  .booth .includes { margin-top: 0; justify-self: stretch; }
  .booth .btn { justify-self: start; }
}

.nw { white-space: nowrap; }

.includes { padding-top: 20px; border-top: 1px solid var(--line); }
.includes h4 { font: 600 .92rem/1.3 var(--body); color: var(--mist); margin-bottom: 12px; }
.includes ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 12px; align-items: baseline; }
.includes li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); transform: translateY(-2px); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center; position: relative; z-index: 1;
  width: 44px; height: 44px; margin-bottom: 18px;
  border: 1px solid var(--cool); border-radius: 50%; background: var(--black);
  font: 600 1rem/1 var(--display); color: var(--cyan);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: -16px; height: 1px;
  background: linear-gradient(90deg, var(--cool), transparent);
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--mist); font-size: .98rem; }

/* ---------- Call to action ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--mist); }

/* ---------- Services page ---------- */
.service-list .wrap { display: grid; gap: clamp(56px, 8vw, 104px); }
.service { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.service.reverse .service-visual { order: -1; }
.service h2 { margin-bottom: 8px; }
.service .desc { max-width: 34em; margin-bottom: 26px; }
.service .includes { max-width: 30rem; }
.service-visual {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3; color: var(--cyan);
  background: var(--slate); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.service-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 50%, rgba(20, 189, 236, 0.16), transparent 70%); }
.service-visual svg { position: relative; width: clamp(96px, 16vw, 148px); height: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: clamp(28px, 6vw, 80px); }
.prose p { max-width: 38rem; margin-bottom: 1.3em; }
.prose .big { font: 500 clamp(1.3rem, 2.5vw, 1.8rem)/1.4 var(--display); letter-spacing: -0.015em; }
.prose .btn { margin-top: 10px; }
.about-art { position: relative; justify-self: center; width: min(100%, 320px); aspect-ratio: 240 / 236; }
.about-art::before { content: ""; position: absolute; inset: -24%; background: radial-gradient(closest-side, rgba(20, 189, 236, 0.20), transparent 72%); }
.about-art img { position: relative; width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.info dl { display: grid; gap: 24px; margin: 0; }
.info dt { color: var(--mist); font-size: .92rem; margin-bottom: 4px; }
.info dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.info a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--cool); transition: border-color .2s ease; }
.info a:hover { border-color: var(--cyan); }

.form, .success {
  background: var(--slate); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
}
.form { display: grid; gap: 22px; }
.form[hidden], .success[hidden] { display: none; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label, .legend { font-weight: 500; font-size: .95rem; padding: 0; }
.opt { color: var(--mist); font-weight: 400; }

.input, .select, .textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--white);
  background: var(--black); border: 1px solid var(--cool); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder, .textarea::placeholder { color: #7D8693; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: var(--error); }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23A9B0BA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.textarea { min-height: 132px; resize: vertical; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--black); border: 1px solid var(--cool); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.choice { font-size: .95rem; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--cyan); }
.choice:has(input:checked) { border-color: var(--cyan); background: rgba(20, 189, 236, 0.08); }
.choice:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; font-size: .95rem; color: var(--mist); }
.form-status.is-error { color: var(--error); }
.form-status a { color: var(--white); }
.form .btn { justify-self: start; }
.success h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.success p { margin: 0; color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; color: var(--mist); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 22rem; }
.site-footer h2 { font: 600 .92rem/1.3 var(--body); letter-spacing: 0; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--mist); text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.site-footer a:hover { color: var(--white); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero .wrap, .booths, .service, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .booth + .booth { margin-top: 24px; }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .moment { aspect-ratio: 1 / 1; }
  .moment-tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .moment-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .hero-art { width: min(78%, 360px); justify-self: start; margin-top: 8px; }
  .service-visual, .service.reverse .service-visual { order: -1; aspect-ratio: 16 / 9; }
  .about-art { justify-self: start; width: min(60%, 240px); order: -1; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; gap: 8px 20px; }
  .nav ul { flex-wrap: wrap; gap: 4px 20px; }

  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px));
    background: var(--black); border-bottom: 1px solid var(--line);
  }
  .js .nav[data-open="true"] { display: flex; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav a:not(.btn) { display: block; padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .js .nav a[aria-current="page"]::after { display: none; }
  .js .nav a[aria-current="page"] { color: var(--cyan); }
  .js .nav .btn { margin-top: 18px; }
}

@media (max-width: 600px) {
  .steps, .row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta .btn, .form .btn { width: 100%; }
  .form .btn { justify-self: stretch; }
  .legal { flex-direction: column; }
}
