/* ---------------------------------------------------------
   Tamabo — tokens
   Palette drawn from the actual material world: pale plaster
   walls, bleached driftwood, raw linen, and the walnut-brown
   line-ink of the atelier's own mark.
--------------------------------------------------------- */
:root {
  --plaster: #F7F4EC;
  --linen: #ECE4D3;
  --driftwood: #B6A484;
  --walnut: #33241A;
  --bark: #6B4630;
  --ember: #B9754A;

  --line: rgba(51,36,26,0.14);

  --font-display: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --font-accent: "Cormorant Garamond", ui-serif, Georgia, serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--walnut);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; color: inherit; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------------------------------------------------------
   Structural type: uppercase, wide-tracked Josefin line
   Accent type: lowercase Cormorant italic line
   Repeated across every major heading in the page.
--------------------------------------------------------- */
.heading { display: block; }
.heading__struct {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.14;
}
.heading__accent {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--bark);
  letter-spacing: 0.002em;
  line-height: 1.2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--bark);
}

/* hollow ring — the recurring signature mark, borrowed from the
   circle of the atelier's own monogram */
.ring-bullet {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

/* twig mark — a sober line-drawn branch, standing in for the
   material itself. Crisp and small in ember at strategic points,
   huge and near-invisible as a filigree elsewhere. */
.icon-twig {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------
   Section divider — echoes the logo's own "— JF —" tagline
   treatment: hairline / mark / hairline
--------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(2.6rem, 6vw, 4rem) 0;
}
.divider__line {
  width: clamp(36px, 6vw, 72px);
  height: 1px;
  background: var(--line);
}
.divider__mark {
  width: 15px;
  height: 15px;
  color: var(--ember);
  stroke-width: 8;
}
.divider--linen { background: var(--linen); }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 1px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(.22,1,.36,1);
}
.btn--fill {
  background: var(--walnut);
  color: var(--plaster);
}
.btn--fill:hover { background: var(--bark); transform: translateY(-2px); }

.btn--line {
  border-color: var(--walnut);
  color: var(--walnut);
}
.btn--line:hover { background: var(--walnut); color: var(--plaster); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(247,244,236,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  padding-block: 0.75rem;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(51,36,26,0.35);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__mark {
  height: 58px;
  width: auto;
  transition: height 0.4s ease, transform 0.6s ease;
}
.nav.is-scrolled .nav__mark { height: 46px; }
.nav__brand:hover .nav__mark { transform: rotate(24deg); }
.nav__word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--walnut);
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-bottom: 3px;
  color: var(--walnut);
  opacity: 0.78;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  transition: right 0.3s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { right: 0; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  max-width: calc(var(--wrap) + 4rem);
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
}
.hero__intro { max-width: 46ch; }
.hero__title { margin-bottom: 1.6rem; }
.hero__title .heading__struct { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.hero__title .heading__accent { font-size: clamp(1.7rem, 3.3vw, 2.6rem); margin-top: 0.15rem; }
.hero__lede {
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--walnut);
  opacity: 0.82;
  margin-bottom: 2.4rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero__note {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--driftwood);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.hero__frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--linen);
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 70% center;
}
.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--driftwood);
}

.hero__scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--driftwood);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: var(--line);
}

/* ---------------------------------------------------------
   Atelier / savoir-faire
--------------------------------------------------------- */
.atelier {
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--wrap);
  margin: 0 auto;
  align-items: center;
}
.atelier__text .heading__struct { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.atelier__text .heading__accent { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 1.6rem; }
.atelier__text p {
  max-width: 52ch;
  color: var(--walnut);
  opacity: 0.82;
  margin-bottom: 1.1rem;
}
.materials {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.6rem;
  row-gap: 0.7rem;
  margin-top: 1.8rem;
}
.materials li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
}
.materials li .ring-bullet { color: var(--bark); }

.atelier__gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: end;
}
.atelier__frame {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--linen);
}
.atelier__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atelier__gallery .atelier__frame:first-child img { aspect-ratio: 4/5; }
.atelier__gallery .atelier__frame:last-child img { aspect-ratio: 3/4; }
.atelier__gallery .atelier__frame:last-child { align-self: start; margin-top: 2.5rem; }

/* ---------------------------------------------------------
   Collection
--------------------------------------------------------- */
.collection {
  background: var(--linen);
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 6vw, 4rem);
}
.collection__intro {
  max-width: var(--wrap);
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
}
.collection__intro .heading__struct { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.collection__intro .heading__accent { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.product {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  position: relative;
}
.product + .product { border-top: 1px solid var(--line); }
.product--reverse { grid-template-columns: 1fr 1.1fr; }
.product--reverse .product__gallery { order: 2; }
.product--reverse .product__info { order: 1; }

.product__gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.8rem;
}
.product--reverse .product__gallery { grid-template-columns: 1fr 1.3fr; }
.product--reverse .product__gallery .product__main { order: 2; }
.product--reverse .product__gallery .product__thumbs { order: 1; }

.product__frame {
  border: 1px solid var(--line);
  background: var(--plaster);
  padding: 8px;
}
.product__main.product__frame { grid-row: span 2; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs {
  grid-row: span 2;
  display: grid;
  gap: 0.8rem;
  grid-auto-rows: 1fr;
}
.product__thumbs .product__frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.product__info { max-width: 44ch; position: relative; padding-left: 1.7rem; }
.product__mark {
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ember);
}
.product__mark::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 1px;
  height: calc(100% + 3.4rem);
  background: linear-gradient(to bottom, var(--driftwood), transparent 85%);
  opacity: 0.5;
}
.product:last-of-type .product__mark::after { display: none; }

.product h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.product__info > p:not(.eyebrow):not(.specs) {
  color: var(--walnut);
  opacity: 0.82;
  margin-bottom: 1.3rem;
}
.specs {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 0.8rem;
}
.price {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ember);
  margin-bottom: 1.7rem;
}

/* ---------------------------------------------------------
   Founder — a quiet quote, plus a glimpse of other work,
   not a full bio page
--------------------------------------------------------- */
.founder {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  overflow: hidden;
}
.founder .eyebrow { justify-content: center; }
.founder__content { position: relative; z-index: 1; }
.founder__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(420px, 60vw, 640px);
  height: clamp(420px, 60vw, 640px);
  transform: translate(-50%, -50%);
  color: var(--walnut);
  opacity: 0.05;
  stroke-width: 1.6;
  z-index: 0;
}
.founder__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--walnut);
  margin-bottom: 1.3rem;
}
.founder__name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--driftwood);
}
.founder__name span { opacity: 0.75; }

/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */
.contact {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}
.contact .eyebrow { justify-content: center; }
.contact h2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--walnut);
  margin-bottom: 1.5rem;
}
.contact p {
  max-width: 50ch;
  margin: 0 auto 2.3rem;
  color: var(--walnut);
  opacity: 0.82;
}
.contact__actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Footer — the one deep, grounding surface on the page
--------------------------------------------------------- */
.footer {
  background: var(--walnut);
  color: var(--driftwood);
  padding: 2.6rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.footer__mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__word {
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--plaster);
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer__badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--driftwood);
}
.footer__flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.footer__social {
  display: flex;
  color: var(--driftwood);
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__social svg { width: 20px; height: 20px; }
.footer__social:hover { color: var(--plaster); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Scroll reveal
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .hero__visual { max-width: 380px; margin: 0 auto; }
  .hero__scroll { display: none; }

  .atelier { grid-template-columns: 1fr; padding-top: 4rem; }
  .atelier__gallery { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .atelier__gallery .atelier__frame:last-child { margin-top: 0; }

  .founder__watermark { width: clamp(320px, 80vw, 460px); height: clamp(320px, 80vw, 460px); }

  .product,
  .product--reverse { grid-template-columns: 1fr; }
  .product--reverse .product__gallery,
  .product--reverse .product__info,
  .product .product__gallery,
  .product .product__info { order: initial; }
  .product--reverse .product__gallery .product__main,
  .product--reverse .product__gallery .product__thumbs { order: initial; }
  .product__info { padding-left: 1.5rem; }
}

@media (max-width: 640px) {
  .nav__links { gap: 0.9rem; font-size: 0.68rem; }
  .nav__word { display: none; }
  .product__gallery { grid-template-columns: 1fr 1fr; }
  .product__main img { aspect-ratio: 3/4; }
}
