/* Molly Stacey — client preview, built from the Figma HTML export */

@font-face { font-family: 'Roca Two'; src: url('fonts/RocaTwo-Thin.ttf') format('truetype'); font-weight: 100 400; }
@font-face { font-family: 'Roca Two'; src: url('fonts/RocaTwo-Bold.ttf') format('truetype'); font-weight: 500 900; }

:root {
  --ink: #1E1818;
  --text: #333333;
  --blush: #F4D6E0;
  --pink: #FCC9DE;
  --cream: #EFE5E6;
  --muted: #767676;
  --footer-text: #CDBDBF;

  --roca: 'Roca Two', 'DM Serif Display', Georgia, serif;
  --cormorant: 'Cormorant Garamond', Georgia, serif;
  --dmserif: 'DM Serif Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;

  --pad: 56px;
  --gap: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
figure, blockquote, h1, h2, p { margin: 0; }
section { scroll-margin-top: 96px; }
a:focus-visible, button:focus-visible, .field:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.container { padding-left: var(--pad); padding-right: var(--pad); }

.caption {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em; line-height: 1.25; text-transform: uppercase; color: var(--text);
}
.caption-pink { color: var(--pink); }
.caption-ink { color: var(--ink); }

/* ---------- Intro screen: holds 0.5s, then fades out (CSS only, no JS needed) ---------- */
.intro {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 100; background: #FFFFFF;
  animation: intro-out .7s ease .5s forwards;
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* Logo + locations. The intro and the hero both fill the first screen and centre
   this block the same way, so it sits in the identical spot in both. */
.lockup {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 0 var(--pad); text-align: center;
}
h1.lockup { margin: 0; font: inherit; }
.lockup img { width: min(720px, 100%); height: auto; }
.lockup .areas { font-size: 13px; font-weight: 500; letter-spacing: 0.3em; line-height: 1.8; text-transform: uppercase; color: var(--text); }
.lockup-light img { filter: invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, .35)); }
.lockup-light .areas { color: #FFFFFF; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- Nav ---------- */
/* Nav: a subtle dark gradient fades down from the top of the screen. Each nav item is black by
   default; the script adds .on-dark (white) when it sits over a photo or a dark background. */
.nav {
  position: sticky; top: 0; z-index: 20; height: 88px;
  padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between;
}
.nav::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 14, 14, .22) 0%, rgba(20, 14, 14, .1) 50%, rgba(20, 14, 14, 0) 100%);
}
.nav-logo img { height: 40px; width: auto; transition: filter .3s ease; }
.nav-logo.on-dark img { filter: invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.nav-links { display: flex; align-items: center; gap: 44px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, text-shadow .3s ease;
}
.nav-links a.on-dark { color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-links .nav-cta { padding: 12px 22px; border: 1px solid currentColor; }
.nav-links .nav-cta:hover { text-decoration: none; background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.nav-links .nav-cta.on-dark:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); text-shadow: none; }

/* ---------- Hero ---------- */
/* Three photos joined edge to edge, filling the first screen, with the white lockup on top */
.hero { position: relative; margin-top: -88px; height: 100vh; height: 100svh; }
/* z-index: 0 keeps the slideshow's layering inside the photo layer, so the logo stays on top */
.hero-grid { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid::after { content: ""; position: absolute; inset: 0; background: rgba(20, 14, 14, .28); }

/* ---------- Bands ---------- */
.band { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px var(--pad); }
.band figure { max-width: 1080px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.band-dark { background: var(--ink); padding-bottom: 110px; gap: 44px; }
.band-quote {
  font-family: var(--roca); font-weight: 700; text-transform: uppercase;
  font-size: 46px; line-height: 1.1; color: var(--blush);
}
.scroll-arrow { display: flex; padding: 12px; transition: transform .3s ease; }
.scroll-arrow:hover { transform: translateY(6px); }

.band-pink { background: var(--blush); }
.band-pink figure { max-width: 1040px; gap: 36px; }
.band-pink blockquote { font-family: var(--cormorant); font-size: 62px; line-height: 1.12; color: var(--ink); }
.vrule { width: 1px; height: 80px; background: var(--ink); }

/* ---------- Work ---------- */
.work { padding-top: 104px; display: flex; flex-direction: column; gap: var(--gap); }
.work img { display: block; width: 100%; height: auto; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }
.h-roca { font-family: var(--roca); font-weight: 400; font-size: 96px; line-height: 1; color: var(--ink); }
.work-head p { font-size: 15px; line-height: 1.8; color: var(--text); }

/* Photo rows that show every photo whole. Each item's --r is its width / height; giving items
   widths in proportion to --r makes every photo in the row come out the same height, uncropped. */
.row { display: flex; align-items: flex-start; gap: var(--gap); }
.row > * { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); }
.row > img { height: auto; }
/* Two photos stacked in one column: the column's --r is their combined shape including the 24px
   gap between them, and each photo takes a share of the height matching its own shape */
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack > img { flex: calc(1 / var(--r)) 1 0; min-height: 0; height: auto; object-fit: cover; }

/* Quote left (indented 25px, vertically centred), photo right — 398 / 835 */
.grid-b { display: grid; grid-template-columns: 398fr 835fr; gap: 80px; align-items: center; }
.grid-b .side-quote { padding-left: 25px; }

.side-quote { display: flex; flex-direction: column; gap: 28px; }
.side-quote .rule { width: 56px; height: 1px; background: var(--ink); }
.side-quote blockquote { font-family: var(--cormorant); font-style: italic; font-size: 40px; line-height: 1.18; color: var(--ink); }


.big-quote { margin: 72px 0 56px auto; max-width: 820px; display: flex; flex-direction: column; align-items: flex-end; gap: 28px; text-align: right; }

.big-quote blockquote { display: flex; flex-direction: column; gap: 8px; font-family: var(--cormorant); color: var(--ink); }
.big-quote .big { font-size: 96px; line-height: 1; }
.big-quote .small { font-size: 34px; line-height: 1.3; }


/* ---------- About (full-width dark band) ---------- */
.about { margin-top: var(--gap); } /* same gap as between the photo rows above */
.about-card {
  background: var(--ink);
  display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 72px;
  padding: 64px; align-items: center;
}
.about-card > img { width: 100%; height: auto; }
.about-text { max-width: 640px; display: flex; flex-direction: column; gap: 26px; }
.about-text h2 { font-family: var(--dmserif); font-weight: 400; text-transform: uppercase; font-size: 68px; line-height: 0.98; color: var(--blush); }
.about-text p { font-size: 16px; line-height: 1.85; color: var(--cream); }
.arrow-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 16px; text-decoration: none; align-self: flex-start; }
.arrow-link svg { transition: transform .3s ease; }
.arrow-link:hover svg { transform: translateX(6px); }


/* ---------- Contact ---------- */
.enquire { padding-top: 160px; }
.enquire h2 { margin-bottom: 72px; font-family: var(--cormorant); font-weight: 400; font-size: 104px; line-height: 1; color: var(--ink); }
.enquire-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 96px; align-items: start; }
.enquire-grid > div { display: flex; flex-direction: column; gap: 64px; }
.enquire-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.form { display: flex; flex-direction: column; gap: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text); }
.field {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: 12px 0 14px; font-family: var(--sans); font-size: 16px; color: #111111; outline: none; appearance: none;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-bottom-width: 2px; padding-bottom: 13px; }
select.field { background: 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' stroke='%231E1818' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
textarea.field { resize: vertical; }
.btn {
  align-self: flex-start; min-height: 52px; padding: 0 40px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--blush); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.form-msg { min-height: 1.5em; font-size: 15px; line-height: 1.6; color: var(--ink); }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #9B2C2C; }
.field[aria-invalid="true"] { border-bottom-color: #9B2C2C; }
.btn:disabled { opacity: .6; cursor: progress; }
/* Spam honeypot: kept off-screen (not display:none, which some bots skip) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-lines { display: flex; flex-direction: column; gap: 22px; font-size: 18px; letter-spacing: 0.18em; }
.contact-lines a { color: var(--text); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-lines .ig { color: #222222; font-weight: 700; text-transform: uppercase; }

/* ---------- Enquiry pop-up ---------- */
.enquiry-modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 0; background: #FFFFFF; color: var(--text);
  box-shadow: 0 30px 80px rgba(20, 14, 14, .35); overflow: auto; overscroll-behavior: contain;
}
.enquiry-modal::backdrop { background: rgba(30, 24, 24, .62); backdrop-filter: blur(3px); }
html:has(.enquiry-modal[open]) { overflow: hidden; } /* stop the page scrolling behind it */
.modal-panel { position: relative; padding: 56px 56px 48px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .2s ease;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.modal-title { font-family: var(--cormorant); font-weight: 400; font-size: 56px; line-height: 1; color: var(--ink); outline: none; }
.modal-title:focus { outline: none; }
.modal-intro { margin: 14px 0 36px; font-size: 15px; line-height: 1.7; color: var(--text); max-width: 520px; }

@media (prefers-reduced-motion: no-preference) {
  .enquiry-modal[open] { animation: modal-in .35s cubic-bezier(.2, .7, .2, 1); }
  .enquiry-modal[open]::backdrop { animation: backdrop-in .35s ease; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes backdrop-in { from { opacity: 0; } }

/* ---------- Footer ---------- */
.footer { margin-top: 180px; padding: 64px var(--pad); background: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer img { height: 44px; width: auto; filter: invert(1); }
.footer p { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--footer-text); }
.footer a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); text-underline-offset: 6px; }

/* ---------- Cursor ring trail (built in JS) ---------- */
.ring-trail { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.ring-trail span { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 .5px 1px rgba(30, 24, 24, .22)); }
.ring-trail svg { display: block; }

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Smaller screens (not in the Figma file) ---------- */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .h-roca, .big-quote .big { font-size: 72px; }
  .enquire h2 { font-size: 80px; }
  .about-card { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; padding: 48px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --gap: 12px; }
  .nav { height: 72px; }
  .nav-logo img { height: 32px; }
  .nav-links { gap: 20px; }
  .nav-links a { letter-spacing: 0.2em; font-size: 11px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { margin-top: -72px; }
  /* Hero slideshow: photos stacked on top of each other; the script moves .is-active along */
  .hero-grid { display: block; }
  .hero-grid img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s cubic-bezier(.45, 0, .25, 1); will-change: opacity; }
  .hero-grid img.was-active { opacity: 1; z-index: 1; transition: none; }
  .hero-grid img.is-active { opacity: 1; z-index: 2; }
  .hero-grid::after { z-index: 3; }
  .lockup { gap: 20px; }
  .lockup .areas { font-size: 11px; }

  .band { padding: 96px var(--pad); }
  .band-dark { padding-bottom: 72px; }
  .band-quote { font-size: 28px; }
  .band-pink blockquote { font-size: 36px; }

  .work { padding-top: 96px; }
  .work-head { flex-direction: column; gap: 16px; }
  .h-roca, .big-quote .big { font-size: 56px; }
  /* Photo rows: one whole photo per line, full width */
  .row { flex-direction: column; align-items: stretch; }
  .row > * { flex: none; width: 100%; }
  .stack { display: contents; }
  .stack > img { flex: none; width: 100%; aspect-ratio: var(--r); }
  /* Even spacing: 12px between every photo; 56px above and below each quote */
  .grid-b { grid-template-columns: 1fr; gap: 56px; margin: 44px 0 0; }
  .big-quote { margin: 44px 0; }
  .side-quote blockquote { font-size: 30px; }
  .big-quote .small { font-size: 26px; }

  .about-card { grid-template-columns: 1fr; padding: 24px var(--pad) 48px; gap: 32px; }
  .about-text h2 { font-size: 48px; }
  .grid-b .side-quote { padding-left: 0; }

  .enquire { padding-top: 120px; }
  .enquire h2 { font-size: 56px; margin-bottom: 48px; }
  .enquire-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-lines { font-size: 15px; letter-spacing: 0.12em; }

  .enquiry-modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; box-shadow: none; }
  .modal-panel { padding: 64px var(--pad) 40px; }
  .modal-close { top: 12px; right: 8px; }
  .modal-title { font-size: 42px; }

  .footer { margin-top: 120px; flex-direction: column; text-align: center; padding: 48px var(--pad); }
}
