:root {
  --ground: #111210;
  --ground-alt: #171815;
  --line: #232420;
  --cream: #e8e4d8;
  --cream-dim: #6b6a60;
  --cream-faint: #38372f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  overflow-x: hidden;
}

.wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  transform: scaleY(0.85);
  transform-origin: left center;
  display: inline-block;
}

.eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(17,18,16,0.9), transparent);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .nav-mark {
  font-size: 14px;
  letter-spacing: 0.35em;
  text-decoration: none;
  color: var(--cream);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover, nav a:focus-visible { color: var(--cream); }
nav a.active { color: var(--cream); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav ul { display: none; }
  .nav-inner { position: relative; }
  .nav-toggle {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream);
    background: none;
    border: 0.5px solid var(--line);
    padding: 10px 16px;
  }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    right: 0;
    background: var(--ground-alt);
    border: 0.5px solid var(--line);
    padding: 20px 28px;
    gap: 18px;
  }
}

section { position: relative; }

/* PAGE HERO — used on non-home pages as a quiet title band */
.page-hero {
  border-bottom: 0.5px solid var(--line);
  padding: 120px 48px 40px;
}

.page-hero-inner {
  max-width: 100%;
}

.page-hero h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 5vw, 50px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 14px;
  transform: scaleY(0.9);
  transform-origin: left center;
}

/* HOME / HERO */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  background-image: linear-gradient(to top, rgba(17,18,16,0.95) 5%, rgba(17,18,16,0.2) 55%, rgba(17,18,16,0.55)), url('images/index-01.jpg');
  background-size: cover;
  background-position: center 20%;
}

#home .hero-inner { max-width: 720px; }

#home .wordmark {
  font-size: clamp(32px, 6vw, 58px);
  letter-spacing: 0.4em;
  margin-bottom: 18px;
}

#home .hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--cream-dim);
  line-height: 1.7;
  max-width: 480px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 48px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* HOME PREVIEW STRIP — quiet links into the other four pages */
.home-links {
  border-top: 0.5px solid var(--line);
  background: var(--ground);
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-links-grid a {
  display: block;
  padding: 64px 32px;
  text-decoration: none;
  color: var(--cream);
  border-right: 0.5px solid var(--line);
  transition: background 0.3s ease;
}

.home-links-grid a:last-child { border-right: none; }
.home-links-grid a:hover { background: var(--ground-alt); }

.home-links-grid .link-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: scaleY(0.9);
  transform-origin: left center;
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .home-links-grid { grid-template-columns: 1fr; }
  .home-links-grid a { border-right: none; border-bottom: 0.5px solid var(--line); }
  .home-links-grid a:last-child { border-bottom: none; }
}

/* SECTION HEADERS */
.section-head {
  padding: 100px 48px 48px;
  max-width: 1400px;
}

.section-head h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 14px;
  transform: scaleY(0.9);
  transform-origin: left center;
}

.rule {
  width: 48px;
  height: 0.5px;
  background: var(--line);
  margin: 24px 0;
}

/* FRAMED IMAGE TREATMENT */
.framed {
  position: relative;
  padding: 18px;
  border: 0.5px solid var(--line);
}

.framed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framed .frame-caption {
  position: absolute;
  bottom: -10px;
  left: 18px;
  background: var(--ground);
  padding: 0 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ROSA-style spaced divider */
.rosa-divider {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(20px, 3.5vw, 34px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
  padding: 90px 24px;
  transform: scaleY(0.9);
}

/* ABOUT */
#about-content { background: var(--ground); }

.about-grid {
  max-width: 1400px;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid .framed { height: 620px; }
.about-grid .framed img { height: 100%; filter: grayscale(15%); }

.about-copy p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cream-dim);
  margin-bottom: 24px;
}

.about-copy p:first-child {
  color: var(--cream);
  font-style: italic;
  font-size: 19px;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .framed { height: 420px; }
}

/* PORTFOLIO */
#portfolio-content { background: var(--ground-alt); }

.portfolio-grid {
  max-width: 1400px;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.portfolio-grid figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.portfolio-grid figure:nth-child(3n+2) { aspect-ratio: 4/5; }

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(10%);
}

.portfolio-grid figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* REVIEWS */
#reviews-content { background: var(--ground); }

.reviews-inner {
  max-width: 700px;
  padding: 0 48px 140px;
}

.reviews-inner p {
  font-size: 18px;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.8;
}

/* CONTACT */
#contact-content {
  background: var(--ground-alt);
  padding-bottom: 100px;
}

.contact-grid {
  max-width: 1400px;
  padding: 72px 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-copy p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cream-dim);
  margin-bottom: 24px;
}

form { display: flex; flex-direction: column; gap: 22px; }

label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
  display: block;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--line);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus { border-color: var(--cream-dim); }

input::placeholder, textarea::placeholder { color: var(--cream-faint); }

select {
  appearance: none;
  cursor: pointer;
  border-radius: 0;
}

select option {
  background: var(--ground-alt);
  color: var(--cream);
}

/* Process list on booking page */
.process-list {
  list-style: none;
  counter-reset: none;
}

.process-list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-dim);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.process-list li:last-child { border-bottom: none; }

.process-list li span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--cream-faint);
  flex-shrink: 0;
}

textarea { resize: vertical; min-height: 80px; }

button {
  margin-top: 12px;
  align-self: flex-start;
  background: transparent;
  border: 0.5px solid var(--cream-dim);
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover, button:focus-visible {
  background: var(--cream);
  color: var(--ground);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--line);
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .wordmark { font-size: 12px; letter-spacing: 0.3em; color: var(--cream-dim); }

footer .foot-links { display: flex; gap: 28px; }

footer a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-decoration: none;
}

footer a:hover { color: var(--cream-dim); }

/* ENTRY — curtain, home page only */
#entry {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
}

#entry .curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  overflow: visible;
}

#entry .curtain.left { left: 0; }
#entry .curtain.right { right: 0; }

/* Each strip is a length of fabric. JS drives transform; CSS gives it body. */
#entry .strip {
  position: absolute;
  top: -2%;
  height: 104%;
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0) 22%,
      rgba(255,255,255,0.028) 50%,
      rgba(0,0,0,0) 78%,
      rgba(0,0,0,0.42) 100%
    ),
    #0b0c0a;
  will-change: transform;
  transform-origin: top center;
}

/* Centre seam — the join reads as a gap in the fabric, not a border */
#entry .curtain.left::after,
#entry .curtain.right::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 2;
  pointer-events: none;
}
#entry .curtain.left::after { right: 0; }
#entry .curtain.right::after { left: 0; }

#entry.open .curtain::after { opacity: 0; transition: opacity 0.4s ease; }

#entry.grabbing { cursor: grabbing; }
#entry { cursor: grab; }

#entry .entry-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#entry.open .entry-content { opacity: 0; pointer-events: none; }

#entry .wordmark {
  font-size: clamp(26px, 5vw, 46px);
  letter-spacing: 0.4em;
  transform-origin: center;
}

#entry .entry-cue {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 0.5px solid var(--line);
  padding: 14px 36px 12px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

#entry:hover .entry-cue {
  color: var(--cream);
  border-color: var(--cream-dim);
}

#entry.done { display: none; }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  #entry .curtain { transition: opacity 0.5s ease !important; }
  #entry .strip { transform: none !important; }
  #entry.open .curtain { opacity: 0; }
  #entry.open .entry-content { opacity: 0; }
}
