/* ==========================================================================
   HURU LINEN: Components
   Reusable section and content blocks shared across pages.
   ========================================================================== */

/* ---------- Media (image frames) ---------- */
.media { position: relative; overflow: hidden; background: var(--color-linen); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--tall { aspect-ratio: 2 / 3; }
.media--slim { aspect-ratio: 9 / 14; }
.media--square { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 16 / 9; }
.media--native { aspect-ratio: auto; }
.media--native img { height: auto; }
.media-caption { margin-top: 14px; }

/* Gentle zoom on hover for interactive image frames */
.hover-zoom .media img { transition: transform 1.6s var(--ease-out); }
.hover-zoom:hover .media img, .hover-zoom:focus-visible .media img { transform: scale(1.04); }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 1200px;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-brown);
}
.hero__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero__panel { position: relative; overflow: hidden; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel--sea img { object-position: 50% 32%; }
.hero__panel--shadow img { object-position: 50% 30%; }
.js .hero__panel img { animation: hero-settle 9s var(--ease-out) both; }
.js .hero__panel--shadow img { animation-delay: 0.25s; }
@keyframes hero-settle { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(28, 22, 16, 0.55) 0%, rgba(28, 22, 16, 0.12) 42%, rgba(28, 22, 16, 0) 60%),
    rgba(40, 30, 20, 0.08);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__title { display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 30px); font-weight: 300; }
.hero__mark { width: clamp(200px, 26vw, 420px); color: var(--color-white); }
.hero__tagline {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.2;
}
.hero__meta { margin-top: 18px; opacity: 0.85; }
.hero__cta { margin-top: clamp(28px, 4vh, 44px); }
.js .hero__content > * { animation: rise 1.6s var(--ease-out) both; }
.js .hero__content > *:nth-child(2) { animation-delay: 0.5s; }
.js .hero__content > *:nth-child(3) { animation-delay: 0.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: cue 2.8s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro .eyebrow { margin-bottom: 36px; }
.intro__title { max-width: 14ch; margin-inline: auto; }
.intro__text { max-width: 30ch; margin: 40px auto 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.45; color: var(--color-ink-soft); font-style: italic; }
.intro .leaf { margin: 56px auto 0; }

/* ---------- Section heading ---------- */
.section-heading { display: grid; gap: 22px; margin-bottom: clamp(56px, 8vw, 110px); }
.section-heading--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.section-heading--center { justify-items: center; text-align: center; }
.section-heading p { max-width: 30em; color: var(--color-ink-soft); }

/* ---------- Collection editorial (homepage) ---------- */
.collection-editorial { row-gap: clamp(72px, 9vw, 140px); }
.collection-card { display: block; }
.collection-card__text { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 24px; }
.collection-card__title { font-family: var(--font-serif); font-weight: 300; font-size: var(--text-h3); line-height: 1; margin-top: 8px; }
.collection-card--women { grid-column: 1 / span 7; }
.collection-card--men { grid-column: 9 / span 4; align-self: center; }
.collection-card--key { grid-column: 3 / span 8; }

/* ---------- Story band (Born on the island) ---------- */
.story-band { position: relative; height: 88vh; min-height: 520px; max-height: 980px; overflow: hidden; }
.story-band img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.story-band__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(40, 30, 20, 0.34), rgba(40, 30, 20, 0) 55%); }
.story-band__title {
  position: absolute; left: var(--gutter); bottom: clamp(40px, 8vw, 96px);
  color: var(--color-white); max-width: 11ch;
}
.story-content { padding-top: clamp(64px, 8vw, 120px); align-items: start; }
.story-content__text { grid-column: 2 / span 5; padding-top: 20px; }
.story-content__text .body-copy { margin-top: 32px; }
.story-content__text .serif-close { margin-top: 36px; font-family: var(--font-serif); font-size: var(--text-h3); font-style: italic; line-height: 1.2; }
.story-content__text .link-arrow { margin-top: 40px; }
.story-content__image { grid-column: 8 / span 4; margin-top: calc(clamp(64px, 8vw, 120px) * -2.2); position: relative; z-index: 1; }

/* ---------- Pillars (Natural by nature) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); }
.pillar { padding: 44px clamp(16px, 2.4vw, 36px) 12px 0; }
.pillar + .pillar { border-left: 1px solid var(--color-rule); padding-left: clamp(16px, 2.4vw, 36px); }
.pillar__number { font-family: var(--font-serif); font-size: 1rem; font-style: italic; color: var(--color-ink-soft); }
.pillar__icon { width: 40px; height: 40px; margin: 40px 0 32px; color: var(--color-palm); }
.pillar__title { margin-bottom: 14px; }
.pillar p { color: var(--color-ink-soft); font-size: 0.9375rem; max-width: 22ch; }

/* ---------- Linen in the tropics ---------- */
.tropics { align-items: center; }
.tropics__media { grid-column: 1 / span 5; }
.tropics__text { grid-column: 7 / span 5; }
.tropics__text .body-copy { margin-top: 32px; }
.quality-list { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--color-rule); }
.quality-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--color-rule); font-size: 0.9375rem; }
.quality-list strong { font-weight: 400; font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; padding-top: 4px; }
.quality-list span { color: var(--color-ink-soft); }
.video-frame { position: relative; }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: rgba(245, 241, 232, 0.85); color: var(--color-ink);
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- Details (craft) ---------- */
.details-grid { align-items: end; row-gap: 48px; }
.details-grid__intro { grid-column: 1 / span 4; align-self: start; position: sticky; top: 120px; }
.details-grid__intro .body-copy { margin-top: 28px; }
.details-grid__a { grid-column: 6 / span 3; }
.details-grid__b { grid-column: 9 / span 4; margin-bottom: 18%; }
.details-grid__c { grid-column: 2 / span 5; }
.details-grid__d { grid-column: 8 / span 3; margin-top: -14%; }

/* ---------- Packaging ---------- */
.packaging { align-items: center; }
.packaging__images { grid-column: 1 / span 6; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.packaging__images .media:nth-child(2) { margin-bottom: 22%; }
.packaging__text { grid-column: 8 / span 4; }
.packaging__text .body-copy { margin-top: 28px; }
.packaging__words { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.packaging__words li { font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-brown); }

/* ---------- Editorial rhythm (magazine spread) ---------- */
.editorial { row-gap: clamp(48px, 7vw, 120px); align-items: start; }
.editorial__large { grid-column: 1 / span 6; }
.editorial__note { grid-column: 8 / span 4; align-self: center; }
.editorial__note .heading-3 { margin-bottom: 20px; }
.editorial__detail { grid-column: 8 / span 3; }
.editorial__statement { grid-column: 2 / span 10; text-align: center; padding-block: clamp(40px, 6vw, 100px); }
.editorial__environment { grid-column: 1 / span 12; }
.editorial__environment .media { aspect-ratio: 21 / 9; }
.editorial__pair-a { grid-column: 2 / span 4; }
.editorial__pair-b { grid-column: 7 / span 5; margin-top: 18%; }

.statement { font-family: var(--font-serif); font-weight: 300; font-size: var(--text-h2); line-height: 1.12; }
.statement em { font-style: italic; }
.statement__cite { display: block; margin-top: 28px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2.4vw, 40px); }
.product-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; }
.product-card__link { display: block; }
.product-card__body { display: grid; gap: 6px; margin-top: 20px; }
.product-card__name { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.product-card__desc { font-size: 0.875rem; color: var(--color-ink-soft); }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.product-card .link-arrow { padding-block: 6px; }
.product-card__price {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brown);
}

/* Second image crossfade, when a product has one */
.product-card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease-soft); }
.product-card:hover .product-card__alt, .product-card:focus-within .product-card__alt { opacity: 1; }

/* Plinth: concept product cut-outs presented small, on linen, like objects on a table */
/* --color-plinth matches the backdrop of the concept-board cut-outs; the edge mask hides any seam. */
.plinth { --color-plinth: #F2E9E0; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--color-plinth); overflow: hidden; }
.plinth img, .category-index__item img {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.plinth img { width: auto; height: 58%; max-width: 78%; object-fit: contain; transition: transform 1.4s var(--ease-out); }
.product-card:hover .plinth img { transform: translateY(-6px) scale(1.03); }

/* Offset rhythm for the women's edit */
.edit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 7vw, 120px) clamp(16px, 2.4vw, 40px); align-items: start; }
.edit-grid > :nth-child(6n + 1) { grid-column: 1 / span 5; }
.edit-grid > :nth-child(6n + 2) { grid-column: 7 / span 4; margin-top: 30%; }
.edit-grid > :nth-child(6n + 3) { grid-column: 2 / span 4; }
.edit-grid > :nth-child(6n + 4) { grid-column: 7 / span 5; margin-top: -12%; }
.edit-grid > :nth-child(6n + 5) { grid-column: 1 / span 4; }
.edit-grid > :nth-child(6n + 6) { grid-column: 6 / span 3; margin-top: 20%; }
.edit-grid > .edit-grid__wide { grid-column: 1 / -1; margin-top: 0; }

/* ---------- Category index (from the concept board) ---------- */
.category-index { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.category-index--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.category-index__item { display: grid; justify-items: center; gap: 18px; padding: 28px 12px 24px; background: #F2E9E0; text-align: center; }
.category-index__item img { width: auto; height: 150px; max-width: 100%; object-fit: contain; }

/* ---------- Closing statement ---------- */
.closing { text-align: center; }
.closing .logo-mark { width: clamp(120px, 14vw, 190px); margin: 0 auto 48px; color: var(--color-leaf); }
.closing__title { font-family: var(--font-serif); font-weight: 300; font-size: var(--text-h1); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; max-width: 12ch; margin-inline: auto; }
.closing__text { margin-top: 36px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); color: var(--color-ink-soft); line-height: 1.4; }
.closing .button { margin-top: 52px; }

/* ---------- Instagram strip ---------- */
.follow { align-items: end; row-gap: 40px; }
.follow__text { grid-column: 1 / span 4; }
.follow__text .heading-3 { margin: 18px 0 24px; }
.follow__images { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.detail-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); }

/* ---------- Page heroes ---------- */
.page-top { padding-top: calc(var(--header-height) + clamp(48px, 7vw, 110px)); }
.breadcrumbs { margin-bottom: 40px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs .breadcrumbs__current { color: var(--color-ink); }

.page-intro { display: grid; gap: 28px; max-width: 46rem; }
.page-intro .lead { color: var(--color-ink-soft); max-width: 30em; }

.split-hero { align-items: end; row-gap: 48px; }
.split-hero__text { grid-column: 1 / span 5; padding-bottom: 20px; }
.split-hero__media { grid-column: 7 / span 6; }

.triptych { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(8px, 1vw, 16px); align-items: end; }
.triptych .media:nth-child(1) { aspect-ratio: 3 / 4.2; }
.triptych .media:nth-child(2) { aspect-ratio: 3 / 4.4; }
.triptych .media:nth-child(3) { aspect-ratio: 3 / 4.2; margin-bottom: 8%; }
.women-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }

.image-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; max-height: 1100px; overflow: hidden; color: var(--color-white); }
.image-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.js .image-hero img { animation: hero-settle 9s var(--ease-out) both; }
.image-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 22, 16, 0.5), rgba(28, 22, 16, 0) 55%); }
.image-hero__content { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 110px); }
.image-hero__content .heading-1 { max-width: 12ch; }

/* ---------- Our Story chapters ---------- */
.chapter { align-items: start; }
.chapter__label { grid-column: 1 / span 3; padding-top: 12px; }
.chapter__label .serif { display: block; font-size: 3rem; font-style: italic; line-height: 1; color: var(--color-sand); margin-bottom: 16px; }
.chapter__body { grid-column: 5 / span 6; }
.chapter__body .body-copy { margin-top: 32px; max-width: 36em; }
.chapter-image-pair { align-items: end; }
.chapter-image-pair > :first-child { grid-column: 2 / span 5; }
.chapter-image-pair > :last-child { grid-column: 8 / span 4; margin-bottom: 10%; }
.mission { text-align: center; }
.mission .statement { max-width: 22ch; margin-inline: auto; }

/* ---------- Collections page ---------- */
.collection-row { align-items: center; padding-block: clamp(56px, 7vw, 110px); border-top: 1px solid var(--color-rule); }
.collection-row__index { grid-column: 1 / span 1; font-family: var(--font-serif); font-style: italic; color: var(--color-ink-soft); align-self: start; padding-top: 8px; }
.collection-row__text { grid-column: 2 / span 4; }
.collection-row__text .body-copy { margin: 24px 0 32px; color: var(--color-ink-soft); }
.collection-row__media { grid-column: 7 / span 6; }
.collection-row--reverse .collection-row__text { grid-column: 8 / span 4; grid-row: 1; }
.collection-row--reverse .collection-row__index { grid-column: 7 / span 1; grid-row: 1; }
.collection-row--reverse .collection-row__media { grid-column: 1 / span 5; grid-row: 1; }
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.media-duo > :last-child { margin-bottom: 14%; }

/* ---------- Journal ---------- */
.journal-feature { align-items: center; row-gap: 40px; }
.journal-feature__media { grid-column: 1 / span 7; }
.journal-feature__text { grid-column: 9 / span 4; }
.journal-feature__text .heading-2 { margin: 18px 0 24px; }
.journal-feature__text p { color: var(--color-ink-soft); margin-bottom: 32px; }
.journal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 40px); }
.journal-card { display: block; }
.journal-card__body { display: grid; gap: 12px; margin-top: 22px; }
.journal-card__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.journal-card__excerpt { font-size: 0.9375rem; color: var(--color-ink-soft); }
.journal-card:hover .journal-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.article-header { text-align: center; }
.article-header .heading-1 { max-width: 14ch; margin: 24px auto 0; }
.article-header .lead { max-width: 32em; margin: 32px auto 0; color: var(--color-ink-soft); }
.article-hero-image { margin-top: clamp(56px, 7vw, 100px); }
.article-body { font-size: 1.0625rem; line-height: 1.85; }
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 { font-family: var(--font-serif); font-weight: 300; font-size: var(--text-h3); line-height: 1.2; margin-top: 2.4em; }
.article-body blockquote { margin-block: 2.2em; padding-left: 28px; border-left: 1px solid var(--color-sand); font-family: var(--font-serif); font-style: italic; font-size: 1.75rem; line-height: 1.35; }
.article-body figure { margin-block: 3em; }
.article-body figure.article-wide { margin-inline: calc(var(--gutter) * -1); }
.article-body ul { padding-left: 1.1em; }
.article-body li + li { margin-top: 0.5em; }
.article-body strong { font-weight: 500; }
.article-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--color-rule); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-rule); }
.contact-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; align-items: center; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--color-rule); }
.contact-row__value { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.15; word-break: break-word; }
a.contact-row__value:hover { color: var(--color-leaf); }
.contact-note { display: flex; gap: 18px; align-items: flex-start; max-width: 40em; margin-top: 56px; font-size: 0.9375rem; color: var(--color-ink-soft); }
.contact-note svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--color-palm); }
.contact-aside { align-items: center; }
.contact-aside__media { grid-column: 1 / span 5; }
.contact-aside__text { grid-column: 7 / span 5; }
.contact-aside__text .body-copy { margin: 28px 0 36px; }

/* Links still waiting for real contact details */
.is-pending { cursor: default; }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.section--flush-top { padding-top: 0; }
.media img { object-position: var(--focus, 50% 50%); }

/* "Swipe" hint above the phone carousel (hidden on larger screens) */
.swipe-hint { display: none; align-items: center; gap: 12px; margin: -24px 0 22px; font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-ink-soft); }
.swipe-hint::after { content: ""; width: 40px; height: 1px; background: currentColor; }

/* ---------- Founder (Our Story) ---------- */
.founder { align-items: center; row-gap: 72px; }
.founder__portrait { grid-column: 2 / span 4; position: relative; }
.founder__portrait::before {             /* offset linen mat behind the portrait */
  content: ""; position: absolute; z-index: 0;
  inset: 32px -32px 64px 32px;
  background: var(--color-linen);
}
.founder__portrait .media { position: relative; z-index: 1; }
.founder__caption { position: relative; z-index: 1; margin-top: 52px; }
.founder__text { grid-column: 7 / span 5; }
.founder__name { margin-top: 22px; }
.founder__role { margin-top: 18px; color: var(--color-brown); }
.founder__text .body-copy { margin-top: 40px; }
.founder__sign { display: flex; align-items: center; gap: 14px; margin-top: 44px; font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; color: var(--color-ink-soft); }
.founder__sign .leaf { flex: none; }
