/* Ian Wallis Photography, "The Photo Day Yearbook"
   Palette from the client's own school-uniform photography:
   uniform navy + gold trim on a neutral off-white. Single gold accent. */

:root {
  --bg: #FBFBF9;
  --bg-dim: #F2F2EE;
  --ink: #16233F;          /* navy-black ink */
  --ink-soft: #3D4A66;
  --navy: #24407C;         /* uniform navy */
  --gold: #DFA321;         /* uniform gold trim: the single accent */
  --gold-deep: #B98413;    /* accent on light bg needs depth for contrast */
  --line: #DCDCD4;
  --paper-card: #FFFFFF;

  --font-display: "Crete Round", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --z-float: 30; --z-nav: 40; --z-skip: 50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { max-width: 65ch; text-wrap: pretty; }

a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.wordmark { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark b { color: var(--gold-deep); font-weight: 400; }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-call {
  background: var(--ink); color: #fff !important; text-decoration: none;
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .18s ease-out, background .18s ease-out;
  white-space: nowrap;
}
.nav-call:hover { background: var(--navy); }
.nav-call:active { transform: scale(.98); }
@media (max-width: 720px) {
  .nav-links li.hide-m { display: none; }
}

/* ---------- Hero: the Register (index/list hero) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.35rem);
  max-width: 15ch;
  letter-spacing: -0.015em;
}
.hero h1 .u { box-shadow: inset 0 -0.18em 0 color-mix(in srgb, var(--gold) 55%, transparent); }
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--ink-soft); max-width: 52ch; }
.hero-cta { margin-top: 1.75rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .18s ease-out, background .18s ease-out, color .18s ease-out;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); }
.btn-line { color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* The register rows */
.register { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); }
.register-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 1.25rem; align-items: center;
  padding-block: 1.15rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative;
}
.register-row:hover .register-name, .register-row:focus-visible .register-name { color: var(--navy); }
.register-thumb {
  width: 88px; height: 66px; object-fit: cover; border-radius: 6px;
  transition: transform .25s ease-out;
}
.register-row:hover .register-thumb { transform: rotate(-2.5deg) scale(1.06); }
.register-name { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); transition: color .18s ease-out; }
.register-desc { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: .15rem; max-width: 46ch; }
.register-price { font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--ink); }
.register-price small { display: block; font-weight: 400; color: var(--ink-soft); text-align: right; }
@media (max-width: 620px) {
  .register-row { grid-template-columns: 64px 1fr; }
  .register-thumb { width: 64px; height: 52px; }
  .register-price { grid-column: 2; justify-self: start; margin-top: .2rem; }
  .register-price small { text-align: left; display: inline; margin-left: .4rem; }
}

/* Scattered prints strip: a desk of photos across the top of the page.
   Stacked hero geometry (strip, then headline, then the register index).
   Deliberately NOT a text-left/object-right split. */
.hero-grid { display: block; }
.print-pile { position: relative; height: clamp(170px, 20vw, 250px); margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.print {
  position: absolute; width: clamp(120px, 13vw, 180px); background: #fff; padding: 7px 7px 26px;
  box-shadow: 0 10px 30px rgba(22, 35, 63, .18); border-radius: 3px;
}
.print img { border-radius: 2px; aspect-ratio: 4/5; object-fit: cover; }
.print figcaption { font-size: .74rem; color: var(--ink-soft); margin-top: 7px; text-align: center; }
.print-1 { top: 8%; left: 2%; transform: rotate(-5deg); }
.print-2 { top: -4%; left: 38%; transform: rotate(3.5deg); }
.print-3 { top: 14%; right: 3%; transform: rotate(-2deg); z-index: 2; }
@media (max-width: 620px) {
  .print-pile { height: 150px; }
  .print { width: 108px; }
  .print-2 { left: 34%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-dim { background: var(--bg-dim); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); max-width: 22ch; }
.section-lede { margin-top: .9rem; color: var(--ink-soft); }

/* Timetable (the day, a real sequence) */
.timetable { margin-top: 2.25rem; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper-card); }
.timetable-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.timetable-row:last-child { border-bottom: 0; }
.timetable-slot {
  background: var(--ink); color: var(--gold); font-family: var(--font-display);
  padding: 1.1rem 1.1rem; font-size: 1.02rem; display: flex; align-items: center;
}
.timetable-body { padding: 1.1rem 1.35rem; }
.timetable-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.timetable-body p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 560px) {
  .timetable-row { grid-template-columns: 1fr; }
  .timetable-slot { padding-block: .55rem; }
}

/* Report-card reviews */
.reports { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.report {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.35rem 1.35rem 1.15rem; position: relative;
  box-shadow: 0 6px 18px rgba(22, 35, 63, .06);
}
.report::before {
  content: "5.0"; position: absolute; top: -12px; right: 14px;
  font-family: var(--font-display); background: var(--gold); color: var(--ink);
  padding: .15rem .55rem; border-radius: 999px; font-size: .85rem;
}
.report blockquote { font-size: .98rem; }
.report cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.report:nth-child(odd) { transform: rotate(-.5deg); }
.report:nth-child(even) { transform: rotate(.5deg); }

/* Price board */
.priceboard { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.price-cell { padding: 1.5rem 1.5rem 1.35rem; background: var(--paper-card); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-cell strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; display: block; color: var(--navy); }
.price-cell span { color: var(--ink-soft); font-size: .95rem; }

/* Filmstrip (career, a real timeline) */
.filmstrip { margin-top: 2.25rem; display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x proximity; }
.frame {
  scroll-snap-align: start; flex: 0 0 200px; background: var(--ink); color: #fff;
  border-radius: 8px; padding: 1.1rem 1rem 1.2rem; border-top: 6px solid var(--gold);
}
.frame em { font-style: normal; color: var(--gold); font-family: var(--font-display); display: block; font-size: .85rem; margin-bottom: .35rem; }
.frame p { font-size: .92rem; color: #E4E8F2; }

/* Photo band */
.photo-band { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.photo-band img { border-radius: 8px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.photo-band figure:nth-child(2) { margin-top: 1.75rem; }
@media (max-width: 620px) { .photo-band { grid-template-columns: repeat(2, 1fr); } .photo-band figure:nth-child(3) { display: none; } }
.photo-band figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .4rem; }

/* Green note */
.green-note { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.25rem; background: var(--paper-card); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.5rem; max-width: 620px; }
.green-note svg { flex: 0 0 auto; margin-top: .2rem; }

/* Contact close */
.close-cta { text-align: left; }
.close-cta .phone {
  font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: var(--ink); text-decoration: none; display: inline-block; margin-top: 1rem;
}
.close-cta .phone:hover { color: var(--navy); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.25rem; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--ink-soft); border-radius: 6px;
  font: inherit; background: #fff; color: var(--ink); min-height: 44px;
}
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); }
.footer a { color: var(--ink-soft); }

/* Floating register preview (cursor follower, desktop only) */
.register-float {
  position: fixed; top: 0; left: 0; z-index: var(--z-float);
  width: 210px; pointer-events: none; opacity: 0; visibility: hidden;
  background: #fff; padding: 7px 7px 24px; border-radius: 3px;
  box-shadow: 0 14px 40px rgba(22, 35, 63, .28);
  transform: scale(.85);
}
.register-float img { aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }

/* The work reel (pinned horizontal pan on desktop, native scroll on mobile) */
.reel { background: var(--ink); color: #fff; overflow: hidden; }
.reel-head { padding-top: clamp(3rem, 6vw, 4.5rem); }
.reel-head h2 { color: #fff; }
.reel-head p { color: #C4CCDE; margin-top: .8rem; }
.reel-track { display: flex; gap: 1.25rem; align-items: center; padding: 2.5rem clamp(1.1rem, 4vw, 2.5rem) 3.5rem; }
.reel-track figure { flex: 0 0 auto; width: clamp(240px, 26vw, 380px); overflow: hidden; border-radius: 10px; }
.reel-track figure:nth-child(even) { margin-top: 3rem; }
.reel-track img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.reel-track figcaption { font-size: .82rem; color: #C4CCDE; margin-top: .5rem; }
@media (max-width: 779px) { .reel-track { overflow-x: auto; scroll-snap-type: x proximity; } .reel-track figure { scroll-snap-align: start; } }

/* ---------- Motion gating ----------
   Content is visible by default. The .js class (set inline in <head>)
   lets GSAP hide-and-reveal; if the CDN fails or reduced motion is on,
   everything simply shows. */
.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
