@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500&display=swap");

:root {
  --ink: #0c1610;
  --moss: #1c3326;
  --leaf: #3d5c45;
  --cream: #f3eee4;
  --paper: #e8e0d0;
  --gold: #c9a36a;
  --gold-dim: #a8844a;
  --mute: rgba(243, 238, 228, 0.62);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(12, 22, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 238, 228, 0.08);
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  opacity: 0.85;
}

.nav a[aria-current="page"] {
  color: var(--gold);
  opacity: 1;
}

.sms-chip {
  appearance: none;
  border: 1px solid rgba(243, 238, 228, 0.45);
  background: transparent;
  color: var(--cream);
  font: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.sms-chip .chip-bits {
  display: inline-flex;
  gap: 0;
}

.sms-chip .chip-bits b {
  font-weight: 400;
}

.site-footer {
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid rgba(243, 238, 228, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--mute);
}

.site-footer a {
  color: var(--gold);
}

/* —— Home scroll composition —— */

.hero-chapter {
  height: 220vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(to bottom, rgba(12, 22, 16, 0.15), rgba(12, 22, 16, 0.55)),
    url("../images/work/ew-01.jpg") center / cover no-repeat;
  animation: ken 28s linear infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-content: end start;
  padding: 0 8vw 14vh;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.86;
  margin: 0 0 1.2rem;
  max-width: 12ch;
}

.hero-copy p {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mute);
}

.side-year {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
}

.license-chapter {
  height: 160vh;
  position: relative;
}

.license-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--moss);
  overflow: hidden;
}

.license-sticky::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border: 1px solid rgba(201, 163, 106, 0.35);
  pointer-events: none;
}

.license-card {
  text-align: center;
  max-width: 42rem;
}

.license-card em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0.6rem 0 1.2rem;
}

.license-card a {
  color: var(--gold);
}

.gold-year {
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.story-chapter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

.story-photo {
  min-height: 70vh;
  background: url("../images/work/ew-02.jpg") center / cover no-repeat;
  animation: ken-slow 36s linear infinite alternate;
}

.story-text {
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
}

.story-text h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.05;
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

.town-chapter {
  position: relative;
}

.town-pin {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 5.5rem 1.5rem 0.8rem;
  background: linear-gradient(to bottom, var(--ink) 70%, transparent);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

.town-pin small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.gallery {
  padding: 1rem 1.5rem 5rem;
  display: grid;
  gap: 1.25rem;
}

.shot {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
}

.shot img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  animation: rise-in linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(transparent, rgba(12, 22, 16, 0.88));
}

.shot h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 0.2rem;
  font-weight: 500;
}

.shot p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.shot:nth-child(even) {
  width: min(86%, 920px);
  margin-left: auto;
}

.shot:nth-child(odd) {
  width: min(92%, 1080px);
}

.faq {
  padding: 5rem 8vw 6rem;
  max-width: 46rem;
}

.faq h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
}

.faq a {
  color: var(--gold);
}

.cta-band {
  margin: 0 1.5rem 4rem;
  padding: 3.5rem 8vw;
  border: 1px solid rgba(201, 163, 106, 0.35);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.cta-band .sms-chip {
  mix-blend-mode: normal;
}

/* —— Contact —— */

.contact-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem 4rem;
  background:
    linear-gradient(rgba(12, 22, 16, 0.72), rgba(12, 22, 16, 0.82)),
    url("../images/work/ew-05.jpg") center / cover no-repeat;
}

.contact-panel {
  width: min(36rem, 100%);
  background: rgba(12, 22, 16, 0.72);
  border: 1px solid rgba(243, 238, 228, 0.12);
  padding: 2.2rem 1.8rem 2rem;
  backdrop-filter: blur(10px);
}

.contact-panel h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 0.8rem;
}

.contact-panel > p {
  color: var(--mute);
  line-height: 1.55;
}

label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 1.1rem 0 0.4rem;
}

input,
select,
textarea,
.sms-submit {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 238, 228, 0.28);
  padding: 0.55rem 0;
  border-radius: 0;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.sms-submit {
  margin-top: 1.8rem;
  border: 1px solid var(--gold);
  padding: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.75rem;
}

.note {
  font-size: 0.8rem;
  color: var(--mute);
  margin-top: 1.2rem;
}

@keyframes ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2%, 1.5%, 0);
  }
}

@keyframes ken-slow {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes rise-in {
  from {
    transform: scale(1.12);
    clip-path: inset(12% 8% 18% 8%);
    filter: saturate(0.7);
  }
  to {
    transform: scale(1);
    clip-path: inset(0);
    filter: saturate(1);
  }
}

@supports (animation-timeline: view()) {
  .hero-photo {
    animation: ken linear both;
    animation-timeline: scroll();
    animation-range: 0 220vh;
  }
}

@media (max-width: 800px) {
  .nav .hide-sm {
    display: none;
  }

  .story-chapter {
    grid-template-columns: 1fr;
  }

  .story-photo {
    min-height: 42vh;
  }

  .shot,
  .shot:nth-child(even),
  .shot:nth-child(odd) {
    width: 100%;
    min-height: 48vh;
  }

  .shot img {
    height: 52vh;
  }

  .hero-chapter,
  .license-chapter {
    height: 140vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .story-photo,
  .shot img {
    animation: none;
  }
}
