/* Linea home page. Everything here is scoped to .hm so the rest of the site is untouched.
   The feel: a printed letter on warm paper. Photographs sit in a paper mount with a caption under them. */
.hm { --paper: #F4EFE6; --paper-2: #ECE5D8; --mount: #FBF8F2; --moss: #2B2F20; --moss-2: #3E422E; --sage: #8E9373; --sage-l: #C3C7A8; --ink: #1F1E1B;
  overflow-x: clip; background: var(--paper);
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hm-eyebrow, .hm-kicker { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; }
.hm-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; }
.hm-h2 em, .hm-title em { font-style: italic; color: var(--moss-2); }
.hm-sub { margin-top: 20px; max-width: 460px; font-size: 16px; color: var(--muted); }
.hm-link { font-size: 14px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.hm-link:hover { border-color: var(--moss-2); color: var(--moss-2); }

/* A photograph in a paper mount, with its caption underneath */
.hm-print { margin: 0; padding: clamp(10px, 1.2vw, 16px); background: var(--mount); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -36px rgba(43,47,32,.35); }
.hm-print-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.hm-print-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--o, center); }

/* ---------- 1. Hero ---------- */
.hm-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.hm-title em { display: block; }
.hm-stroke { display: block; width: min(300px, 60%); height: 22px; margin: 18px 0 0; overflow: visible; }
.hm-stroke path { fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: hm-draw 2.2s cubic-bezier(.6,.1,.2,1) .6s forwards; }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
.hm-lead { margin-top: 26px; max-width: 470px; font-size: 17px; line-height: 1.75; color: var(--body); }
.hm-soft { margin-top: 12px; max-width: 470px; font-size: 14px; color: var(--muted); }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.hm-actions .btn { min-height: 52px; padding: 0 32px; border-radius: 999px; }
.hm-count { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 470px; }
.hm-count-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.hm-count-cells { display: flex; gap: 18px; }
.hm-count-cells span { display: flex; flex-direction: column; align-items: center; }
.hm-count-cells b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-count-cells i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.hm-hero .hm-print { max-width: 520px; justify-self: end; width: 100%; }
.hm-slide { opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s ease-out; }
.hm-slide.is-on { opacity: 1; transform: scale(1); }
.hm-print-cap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 14px 4px 2px; }
.hm-cap { position: absolute; left: 4px; right: 64px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--body); opacity: 0; transform: translateY(4px); transition: opacity .9s ease, transform .9s ease; }
.hm-cap.is-on { opacity: 1; transform: none; transition-delay: .4s; }
.hm-print-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-cap { transition-duration: .6s; }
.hm-cap.is-on { transition-delay: .1s; }
/* Pause / play: two thin bars, or a small triangle when paused */
.hm-film-toggle { position: relative; width: 32px; height: 32px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; transition: border-color .3s; }
.hm-film-toggle:hover { border-color: var(--moss-2); }
.hm-film-toggle::before, .hm-film-toggle::after { content: ''; position: absolute; top: 11px; width: 2px; height: 10px; background: var(--moss-2); }
.hm-film-toggle::before { left: 12px; } .hm-film-toggle::after { left: 17px; }
.hm-film-toggle[aria-pressed="true"]::before { left: 13px; top: 10px; width: 0; height: 0; background: none; border-left: 9px solid var(--moss-2); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hm-film-toggle[aria-pressed="true"]::after { display: none; }
.hm-dots { display: flex; gap: 2px; margin-left: auto; }
.hm-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hm-dots button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .4s, transform .4s; }
.hm-dots button[aria-pressed="true"]::after { background: var(--moss-2); transform: scale(1.2); }

/* Hero entrance: slow and quiet */
.hm-hero-copy > *, .hm-hero .hm-print { animation: hm-rise 1.3s cubic-bezier(.2,.7,.2,1) both; }
.hm-hero-copy > :nth-child(2) { animation-delay: .08s; } .hm-hero-copy > :nth-child(4) { animation-delay: .2s; } .hm-hero-copy > :nth-child(5), .hm-hero-copy > :nth-child(6) { animation-delay: .3s; }
.hm-hero .hm-print { animation-delay: .15s; animation-duration: 1.6s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(18px); } }

/* Everything below eases in as it reaches the screen */
.hm-in { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hm-in.is-in { opacity: 1; transform: none; }

/* ---------- 2. Founder's note ---------- */
.hm-note { padding: clamp(72px, 10vw, 140px) 0; background: var(--paper-2); }
.hm-note-inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hm-note blockquote { margin: 0; position: relative; }
.hm-note blockquote::before { content: '“'; display: block; font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--sage-l); margin-bottom: 8px; }
.hm-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.2; color: var(--ink); }
.hm-note-body { margin: 28px auto 0; max-width: 560px; font-size: 16px; line-height: 1.9; color: var(--body); }
.hm-sign { display: flex; align-items: center; gap: 14px; margin: 36px 0 22px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hm-sign img { width: 40px; height: auto; opacity: .75; }

/* ---------- 3. Four pieces, lookbook spreads ---------- */
.hm-story { padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 6vw, 80px); }
.hm-story-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 96px); }
.hm-spread { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; margin-bottom: clamp(72px, 10vw, 140px); }
.hm-spread .hm-print { max-width: 460px; width: 100%; }
.hm-spread.is-flip .hm-print { order: 2; justify-self: end; }
.hm-spread:hover .hm-print-photo img { transform: scale(1.03); }
.hm-spread .hm-print-photo img { transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hm-spread-copy { max-width: 440px; }
.hm-code { font-size: 11px; letter-spacing: .34em; color: var(--sage); }
.hm-spread-copy h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; }
.hm-moment { margin: 18px 0 18px; padding-left: 18px; border-left: 1px solid var(--sage-l); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.35; color: var(--moss-2); }
.hm-spread-copy > p:not([class]) { font-size: 16px; line-height: 1.8; color: var(--body); }
.hm-cols { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.hm-cols i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hm-cols span { margin-left: 8px; }
/* No photo yet for this piece: its three colours, like fabric swatches pinned in a mount */
.hm-swatch .hm-print-photo { display: flex; }
.hm-swatch .hm-print-photo span { position: relative; flex: 1; }
.hm-swatch .hm-print-photo span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.18)); }

/* ---------- 4. Pieces on sale ---------- */
.hm-pieces { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 140px); }
.hm-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.hm-head .hm-eyebrow { grid-column: 1 / -1; margin: 0; }
.hm-head .hm-sub { margin: 0; max-width: 320px; }
.hm-piece-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.hm-piece { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--mount); padding: clamp(10px, 1.2vw, 14px); box-shadow: 0 30px 60px -40px rgba(43,47,32,.35); }
.hm-piece:hover { color: inherit; }
.hm-piece-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; transition: background .5s ease; }
.hm-piece-media > svg, .hm-piece-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .18s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.hm-piece:hover .hm-piece-media > svg, .hm-piece:hover .hm-piece-media > img { transform: scale(1.03); }
.hm-piece-media.is-swapping > svg, .hm-piece-media.is-swapping > img { opacity: 0; }
.hm-piece-code { position: absolute; left: 12px; bottom: 12px; font-size: 10px; letter-spacing: .3em; color: var(--ink); background: rgba(251,248,242,.9); padding: 5px 10px; }
.hm-piece-body { padding: 14px 2px 4px; }
.hm-piece-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.hm-piece-where { margin-top: 4px; font-size: 14px; color: var(--muted); }
.hm-piece-swatches { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.hm-sw { width: 28px; height: 28px; padding: 3px; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.hm-sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hm-sw[aria-pressed="true"] { border-color: var(--ink); }
.hm-sw-name { margin-left: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- 5. Launch ---------- */
.hm-launch { position: relative; color: #F1ECE2; background: linear-gradient(180deg, rgba(25,26,15,.55), rgba(25,26,15,.88)), url("/assets/img/brand/brand-drape.jpg") left top / 240% auto, #1E2015; padding: clamp(80px, 11vw, 150px) 0; }
.hm-launch .hm-eyebrow { color: var(--sage-l); }
.hm-launch .hm-h2 em { color: var(--sage-l); }
.hm-launch .hm-sub { color: #D9D4C7; }
.hm-launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-follow { margin-top: 26px; font-size: 14px; color: #D9D4C7; }
.hm-follow a { color: #F5F1EC; text-underline-offset: 4px; }
.hm-launch-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--mount); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hm-launch-card .hint { color: var(--muted); }
.hm-launch-card .btn-primary { border-radius: 999px; }
.hm-soon { display: flex; gap: 16px; align-items: flex-start; }
.hm-soon p { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.hm-soon-mark { flex: none; width: 9px; height: 9px; margin-top: 11px; border-radius: 50%; background: var(--sage); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hm-hero .hm-print { justify-self: center; max-width: 440px; }
  .hm-title { font-size: clamp(44px, 12.5vw, 72px); }
  .hm-lead { font-size: 16px; }
  .hm-spread { grid-template-columns: 1fr; gap: 28px; }
  .hm-spread .hm-print, .hm-spread.is-flip .hm-print { order: 0; justify-self: start; max-width: 380px; }
  .hm-head { grid-template-columns: 1fr; }
  .hm-piece-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 0 clamp(16px, 4vw, 48px) 8px; scrollbar-width: none; }
  .hm-piece-row::-webkit-scrollbar { display: none; }
  .hm-piece { flex: 0 0 76%; scroll-snap-align: start; }
  .hm-launch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hm-actions .btn { width: 100%; }
  .hm-cap { font-size: 16px; }
}

/* Chinese: the serif headlines switch to Songti in style.css */
html[lang="zh-Hans"] .hm-title { line-height: 1.3; }
html[lang="zh-Hans"] .hm-h2, html[lang="zh-Hans"] .hm-quote { line-height: 1.45; }
html[lang="zh-Hans"] .hm-cap, html[lang="zh-Hans"] .hm-moment { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
  .hm-stroke path { stroke-dashoffset: 0; }
  .hm-in { opacity: 1; transform: none; }
}
