/* ============================================================
   LINNEBEL — main.css
   Layout + components. Depends on tokens.css.
   ============================================================ */

/* ---- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:root { --nav-h: 4rem; }
@media (max-width: 760px) { :root { --nav-h: 3.5rem; } }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

::selection { background: var(--flame); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--flame-deep);
  outline-offset: 3px;
}

/* ---- Primitives --------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typewriter-mono label — the archive stamp voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.on-ink .eyebrow { color: var(--bone); }
.on-flame .eyebrow { color: rgba(38, 22, 13, 0.85); }

.display {
  font-family: var(--font-display);
  font-weight: 520;
  font-optical-sizing: auto;
  line-height: var(--leading-display);
  letter-spacing: -0.015em;
}
.display em {
  font-style: italic;
  font-weight: 420;
  color: var(--flame);
}
.on-ink .display em { color: var(--rose); }
.on-flame .display em { color: var(--flame-deep); }

/* Mixed-scale statement: flowing CAPS with small italic connectives */
.mixed {
  font-family: var(--font-display);
  font-weight: 540;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.mixed i {
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 0.62em;
  letter-spacing: 0;
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--clay);
  max-width: 34em;
}
.on-ink .lede { color: var(--bone); }

.spark { color: var(--flame); font-style: normal; }

/* Film-grain texture overlay — apply to any section */
.texture { position: relative; isolation: isolate; }
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Stamp emblem — small ✦ sealed in a circle */
.stamp {
  width: 3.25rem;
  height: 3.25rem;
  border: 1.5px solid var(--flame);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--flame);
  font-size: 1.15rem;
  transform: rotate(-8deg);
}
.on-ink .stamp { border-color: var(--rose); color: var(--rose); }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05em 2em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--speed-micro) var(--ease-out),
              background var(--speed-micro) var(--ease-out),
              color var(--speed-micro) var(--ease-out);
}
.btn:hover { background: var(--flame-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .btn-star { transition: transform 400ms var(--ease-out); }
.btn:hover .btn-star { transform: rotate(90deg); }

.btn--flame { background: var(--flame-deep); }
.btn--flame:hover { background: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: var(--ink); color: var(--cream); }

.link-quiet {
  font-weight: 600;
  font-size: var(--text-small);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color var(--speed-micro), color var(--speed-micro);
}
.link-quiet:hover { color: var(--flame-deep); border-color: var(--flame-deep); }

/* ---- Nav ------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}
.nav-left {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
}
.nav-left a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--speed-micro);
}
.nav-left a:hover { color: var(--flame-deep); }
.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.wordmark .spark { letter-spacing: 0; }
.nav-right { display: flex; justify-content: flex-end; }
.nav .btn { padding: 0.6em 1.3em; font-size: 0.8125rem; }
@media (max-width: 760px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .wordmark { text-align: left; letter-spacing: 0.24em; font-size: 0.85rem; }
}

/* ---- Hero: two full-bleed photos, type laid over the image ----- */
.hero {
  position: relative;
  height: calc(100svh - var(--nav-h));
  min-height: 42rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-photo {
  overflow: hidden;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  will-change: transform;
}
.hero-photo--left img { object-position: 62% 30%; }
.hero-photo--right img { object-position: 45% 20%; }

/* Scrim: melts the type into the photos — deep at the baseline,
   clear by the upper third so the imagery stays luminous */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(38, 22, 13, 0.84) 0%,
    rgba(38, 22, 13, 0.52) 30%,
    rgba(38, 22, 13, 0.14) 58%,
    rgba(38, 22, 13, 0) 76%
  );
}
.hero-caption {
  position: absolute;
  bottom: 1.1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(38, 22, 13, 0.55);
}
.hero-photo--left .hero-caption { left: 1.25rem; }
.hero-photo--right .hero-caption { right: 1.25rem; }

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--cream);
  padding: 1.5rem clamp(0.75rem, 2vw, 2rem) clamp(3rem, 6vh, 4.5rem);
}
.hero-content .stamp {
  border-color: rgba(251, 244, 234, 0.85);
  color: var(--cream);
  margin-bottom: clamp(1.25rem, 3vh, 2.25rem);
}
/* On short desktop viewports the bottom-justified hero pushes the stamp under the nav — hide it there */
@media (min-width: 761px) and (max-height: 1000px) {
  .hero-content .stamp { display: none; }
}
.hero-title {
  width: 100%;
  text-shadow: 0 2px 50px rgba(38, 22, 13, 0.45);
}
.hero-title .line { display: block; }
.hero-title .pre {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(251, 244, 234, 0.94);
  margin-bottom: 0.5em;
}
.hero-title .big {
  font-family: var(--font-display);
  font-weight: 410;
  font-optical-sizing: auto;
  font-size: clamp(4.2rem, 16.5vw, 17rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.88;
}
.hero-title .duo {
  font-size: clamp(2.9rem, 11vw, 11.5rem);
  margin-top: 0.08em;
}
.hero-title .duo em {
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 0.58em;
  letter-spacing: 0;
  color: var(--rose);
  margin-right: 0.14em;
}
.hero-foot {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 244, 234, 0.85);
  max-width: 56ch;
  line-height: 1.9;
}
.hero-begin {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 244, 234, 0.5);
  padding-bottom: 3px;
  transition: border-color var(--speed-micro), color var(--speed-micro);
}
.hero-begin:hover { border-color: var(--cream); }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 38rem;
  }
  .hero-photo--left img { object-position: 62% 22%; }
  .hero::after {
    background: linear-gradient(
      to top,
      rgba(38, 22, 13, 0.86) 0%,
      rgba(38, 22, 13, 0.58) 36%,
      rgba(38, 22, 13, 0.2) 64%,
      rgba(38, 22, 13, 0) 82%
    );
  }
  .hero-title .big { font-size: clamp(4.2rem, 18.5vw, 17rem); }
  .hero-title .duo { font-size: clamp(2.9rem, 12.5vw, 11.5rem); }
  .hero-label { max-width: 34ch; }
  .hero-caption { display: none; }
}

/* ---- Marquee ---------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding-block: 1.15rem;
  background: var(--cream);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee .spark { font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---- Sections ----------------------------------------------------- */
.section { padding-block: var(--space-section); }
.on-ink { background: var(--ink); color: var(--cream); }
.on-sand { background: var(--sand); }
.on-blush { background: var(--blush); }

/* Soft rose moment — baby-pink cousin of the ESSENTIA dawn */
.on-rose {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(244, 212, 178, 0.75) 0%, rgba(244, 212, 178, 0) 55%),
    radial-gradient(100% 90% at 0% 100%, rgba(212, 137, 132, 0.38) 0%, rgba(212, 137, 132, 0) 60%),
    var(--rose-soft);
  color: var(--ink);
}
.on-rose .stamp { border-color: var(--rose-deep); color: var(--rose-deep); }

/* ESSENTIA dawn — the logo's own watercolor canvas */
.on-dawn {
  background:
    url("../assets/img/essentia-watercolor.jpg") center / cover no-repeat,
    var(--dawn);
  color: var(--ink);
}
.on-dawn .eyebrow { color: var(--dawn-deep); }

/* ---- Statement (the transmission) ---------------------------------- */
.statement {
  padding-top: clamp(8rem, 18vh, 14rem);
  padding-bottom: clamp(10rem, 26vh, 18rem);
  text-align: center;
}
.statement .mixed {
  font-size: clamp(1.2rem, 6.45vw, 6.4rem);
  color: var(--ink);
  margin-inline: auto;
}
.statement .mixed i { color: var(--rose-deep); }
/* Each line stays whole and scales with the viewport instead of wrapping */
.statement .mixed .ln { display: block; white-space: nowrap; line-height: 1; }
.statement .mixed .ln + .ln { margin-top: 0.16em; }
/* Size the italic lines at the block level so their line boxes match their glyphs */
.statement .mixed .ln-i { font-size: 0.62em; }
.statement .mixed .ln-i i { font-size: 1em; }
.statement-stamp { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.statement-whisper {
  margin-top: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ---- The Summons (editorial collage) -------------------------------- */
.summons-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) var(--gutter);
}
.summons-photos {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  position: relative;
  padding-bottom: 4rem;
}
.summons-photos .p1 { width: 82%; border-radius: var(--radius-photo); }
.summons-photos .p2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border: 5px solid var(--cream);
  border-radius: var(--radius-photo);
  box-shadow: 0 20px 40px -20px rgba(38, 22, 13, 0.4);
  transform: rotate(3deg);
}
.summons-label {
  grid-column: 11 / 13;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  text-align: right;
  line-height: 2;
}
.summons-copy { grid-column: 4 / 11; grid-row: 2; }
.summons-copy h2 {
  font-size: var(--text-giant);
  max-width: 15em;
  margin-bottom: 2rem;
}
.summons-copy p {
  max-width: 33em;
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--clay);
}
.summons-copy p + p { margin-top: 1.1em; }
.summons-copy p strong { color: var(--ink); }
@media (max-width: 860px) {
  .summons-photos { grid-column: 3 / 11; grid-row: auto; }
  .summons-label { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .summons-copy { grid-column: 1 / -1; grid-row: auto; }
}

/* Giant italic transition line */
.turn {
  padding-block: clamp(5rem, 12vh, 9rem);
  text-align: center;
}
.turn p {
  font-family: var(--font-display);
  font-size: var(--text-giant);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14em;
  margin-inline: auto;
}
.turn em { font-style: italic; font-weight: 400; color: var(--flame); }

/* ---- The Work ------------------------------------------------------ */
.work-head { margin-bottom: var(--space-group); max-width: 46rem; }
.work-head .lede { margin-top: 1.4rem; }
.work-rows { border-top: 1px solid var(--hairline); }
.work-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem var(--gutter);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  transition: background var(--speed-micro);
}
.work-num {
  grid-column: 1 / 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--flame);
  padding-top: 0.9em;
}
.work-title-wrap { grid-column: 2 / 7; }
.work-title {
  font-family: var(--font-display);
  font-weight: 530;
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.work-sub {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--flame-deep);
}
.work-copy {
  grid-column: 8 / 13;
  color: var(--clay);
  max-width: 30em;
  padding-top: 0.6em;
}
@media (max-width: 860px) {
  .work-row { grid-template-columns: 3rem 1fr; }
  .work-num { grid-column: 1; padding-top: 0.5em; }
  .work-title-wrap { grid-column: 2; }
  .work-copy { grid-column: 2; margin-top: 1rem; padding-top: 0; }
}

/* ---- ESSENTIA ------------------------------------------------------- */
.essentia { position: relative; overflow: hidden; }
.essentia-photo {
  position: relative;
  margin: 0 calc(-1 * var(--gutter)) var(--space-group);
  height: clamp(22rem, 64vh, 40rem);
  overflow: hidden;
}
@media (min-width: 84rem) {
  .essentia-photo { margin-inline: calc((100vw - var(--container)) / -2 - var(--gutter)); }
}
.essentia-photo img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: sepia(32%) hue-rotate(-16deg) saturate(50%) brightness(1.03);
  will-change: transform;
}
/* Soft corner vignette so the white logo mark reads against the photo */
.essentia-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    34% 52% at 88% 12%,
    rgba(38, 22, 13, 0.34) 0%,
    rgba(38, 22, 13, 0) 100%
  );
  pointer-events: none;
}
.essentia-name {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 1.6rem;
}
.essentia-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  color: var(--flame-deep);
  margin-top: 0.9rem;
}
.essentia-photo img.essentia-photo-logo {
  position: absolute;
  top: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2.25rem);
  z-index: 2;
  width: clamp(9.75rem, 16.5vw, 14.25rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(38, 22, 13, 0.45));
  pointer-events: none;
}
.essentia-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-group) var(--gutter);
  margin-top: var(--space-group);
}
.essentia-main { grid-column: 1 / 8; }
.essentia-main p { color: var(--dawn-deep); max-width: 36em; font-size: var(--text-lede); line-height: 1.6; }
.essentia-main p + p { margin-top: 1em; }
.essentia-cta { margin-top: 2.6rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.essentia-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dawn-deep);
}
.essentia-facts {
  grid-column: 9 / 13;
  align-self: end;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.essentia-facts li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-small);
  color: var(--dawn-deep);
  display: flex;
  gap: 0.8em;
  align-items: baseline;
}
.essentia-facts .spark { color: var(--flame-deep); flex-shrink: 0; }
@media (max-width: 860px) {
  .essentia-main, .essentia-facts { grid-column: 1 / -1; }
}

/* ---- About ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-group) var(--gutter);
  align-items: center;
}
.about-photos {
  grid-column: 1 / 6;
  position: relative;
  padding-bottom: 3.5rem;
}
.about-photos .photo-main {
  border-radius: var(--radius-photo);
  width: 88%;
}
.about-photos .photo-overlap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: 6px solid var(--cream);
  border-radius: var(--radius-photo);
  box-shadow: 0 24px 48px -24px rgba(38, 22, 13, 0.45);
  transform: rotate(-2deg);
}
.about-copy { grid-column: 7 / 13; }
.about-copy h2 { font-size: var(--text-h2); margin: 1.4rem 0 1.6rem; max-width: 11em; }
.about-copy p { max-width: 34em; }
.about-copy p + p { margin-top: 1em; }
.about-chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.about-chips li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55em 1.1em;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(251, 244, 234, 0.6);
}
.about-cta { margin-top: 2.2rem; }
@media (max-width: 860px) {
  .about-photos { grid-column: 2 / 12; }
  .about-copy { grid-column: 1 / -1; }
}

/* ---- Love notes (testimonials) ------------------------------------------ */
.notes-head { margin-bottom: var(--space-group); }
.notes-head h2 { font-size: var(--text-h2); margin-top: 1.2rem; }
.note {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem var(--gutter);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.note + .note { border-top: 1px solid var(--hairline); }
.note blockquote {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-indent: -0.45em;
}
.note blockquote::before { content: "“"; color: var(--flame); }
.note blockquote::after { content: "”"; color: var(--flame); }
.note figcaption { align-self: end; }
.note cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.note:nth-child(odd) blockquote { grid-column: 1 / 9; }
.note:nth-child(odd) figcaption { grid-column: 9 / 13; text-align: right; }
.note:nth-child(even) blockquote { grid-column: 4 / 12; }
.note:nth-child(even) figcaption { grid-column: 1 / 4; grid-row: 1; }
@media (max-width: 860px) {
  .note blockquote, .note figcaption {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    text-align: left !important;
  }
}

/* ---- Instagram ------------------------------------------------------------ */
.ig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-group);
}
.ig-head h2 { font-size: var(--text-h2); margin-top: 1.2rem; max-width: 13em; }
.ig-handle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  text-decoration: none;
  color: var(--flame-deep);
  white-space: nowrap;
  transition: color var(--speed-micro);
}
.ig-handle:hover { color: var(--ink); }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.ig-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-photo);
  aspect-ratio: 4 / 5;
  position: relative;
}
.ig-grid a:nth-child(1) { transform: rotate(-1.2deg); }
.ig-grid a:nth-child(2) { transform: translateY(clamp(1rem, 3vw, 2.5rem)) rotate(0.8deg); }
.ig-grid a:nth-child(3) { transform: rotate(0.6deg); }
.ig-grid a:nth-child(4) { transform: translateY(clamp(1rem, 3vw, 2.5rem)) rotate(-0.9deg); }
.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.ig-grid a:hover img { transform: scale(1.045); }
.ig-grid a::after {
  content: "↗";
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  color: var(--cream);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--speed-micro);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.ig-grid a:hover::after { opacity: 1; }
.ig-foot { margin-top: calc(var(--space-group) + 1.5rem); }
@media (max-width: 700px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Newsletter (the sunset moment) ----------------------------------------- */
.on-flame {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(250, 219, 183, 0.65) 0%, rgba(250, 219, 183, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(178, 96, 50, 0.32) 0%, rgba(178, 96, 50, 0) 60%),
    var(--terracotta);
  color: var(--ink);
}
.on-flame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}
.newsletter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-group) var(--gutter);
  align-items: center;
}
.newsletter { max-width: 48rem; }
.newsletter-photo {
  justify-self: end;
  width: min(100%, 23rem);
  transform: rotate(2.4deg);
  margin: 0;
}
.newsletter-photo img {
  border: 6px solid var(--cream);
  border-radius: var(--radius-photo);
  box-shadow: 0 30px 60px -28px rgba(38, 22, 13, 0.55);
}
.newsletter-photo figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(38, 22, 13, 0.8);
}
@media (max-width: 860px) {
  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-photo {
    justify-self: start;
    width: min(72%, 19rem);
    margin-left: 1rem;
  }
}
.newsletter h2 { font-size: var(--text-giant); margin: 1.4rem 0 1.4rem; color: var(--ink); }
.newsletter h2 em { color: var(--flame-deep); }
.newsletter .lede { color: rgba(38, 22, 13, 0.92); }
.newsletter-form {
  margin-top: 2.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 14rem;
  padding: 1.05em 1.4em;
  border: 1px solid rgba(38, 22, 13, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(251, 244, 234, 0.28);
  color: var(--ink);
  transition: border-color var(--speed-micro), background var(--speed-micro);
}
.newsletter-form input::placeholder { color: rgba(38, 22, 13, 0.55); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(251, 244, 234, 0.45);
}
.newsletter-form .btn { flex-shrink: 0; background: var(--ink); }
.newsletter-form .btn:hover { background: var(--cream); color: var(--ink); }
.newsletter-micro {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(38, 22, 13, 0.8);
}
.newsletter-success {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  display: none;
}
.newsletter.sent .newsletter-form { display: none; }
.newsletter.sent .newsletter-success { display: block; }

/* ---- Footer -------------------------------------------------------------------- */
.footer {
  background: var(--black);
  color: var(--bone);
  padding-top: var(--space-section);
  overflow: hidden;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: var(--space-group);
}
.footer-note {
  max-width: 22em;
  font-size: var(--text-small);
}
.footer-note .display {
  display: block;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.footer nav ul { list-style: none; display: grid; gap: 0.7rem; }
.footer nav a {
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 600;
  opacity: 0.85;
  transition: opacity var(--speed-micro), color var(--speed-micro);
}
.footer nav a:hover { opacity: 1; color: var(--rose); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline-inv);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(4rem, 14.5vw, 13.5rem);
  line-height: 0.72;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--black-soft);
  user-select: none;
  transform: translateY(0.14em);
}

/* ---- Reveal animations ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--speed-reveal) var(--ease-out),
              transform var(--speed-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

.hero-title .line {
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.hero-title.in .line { opacity: 1; transform: none; }
.hero-title.in .line:nth-child(1) { transition-delay: 150ms; }
.hero-title.in .line:nth-child(2) { transition-delay: 300ms; }
.hero-title.in .line:nth-child(3) { transition-delay: 480ms; }

.hero-content .stamp,
.hero-foot {
  opacity: 0;
  transition: opacity 900ms var(--ease-out) 800ms;
}
.hero-title.in ~ .hero-foot { opacity: 1; }
.hero-content:has(.hero-title.in) .stamp { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero-title .line,
  .hero-content .stamp, .hero-foot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
