/* amiré v2 - Rhode-inspired editorial layout on the amiré brand kit.
   Self-contained so the remaining pages keep using style.css until they are migrated. */

:root {
    --pink: #faedf1;
    --brown: #281915;
    --sage: #a0bddb;
    --slate: #22324a;
    --cream: #fffaf0;

    --ink: var(--brown);
    --ink-soft: rgba(40, 25, 21, 0.72);
    --line: rgba(40, 25, 21, 0.14);
    --surface: var(--cream);
    --surface-alt: var(--pink);

    --serif: 'Libre Baskerville', 'Baskerville', Georgia, serif;
    --sans: 'Outfit', system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1360px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1, h2, h3, blockquote { text-wrap: balance; }
h1, h2, h3 { line-height: 1.2; }

.label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

/* ---------- promo bar ---------- */
.promo {
    background: var(--brown);
    color: var(--pink);
    text-align: center;
    padding: 9px var(--gutter);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
}
.promo a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 250, 240, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 68px;
}
.site-nav { display: flex; gap: 2rem; }
.site-nav a, .header-cta {
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"], .header-cta:hover { border-color: var(--ink); }
.brand img { height: 34px; width: auto; }
.header-cta { justify-self: end; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--brown);
    color: var(--pink);
    border: 1px solid var(--brown);
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: transparent; color: var(--brown); }
.btn:active { transform: translateY(1px); }

.text-link {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ---------- hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: calc(100dvh - 104px);
    max-height: 780px;
    border-bottom: 1px solid var(--line);
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.6rem;
    padding: 4rem var(--gutter) 4.5rem;
}
.hero-copy h1 {
    font-size: clamp(2.3rem, 3.7vw, 3.6rem);
    line-height: 1.12;
    text-transform: lowercase;
    max-width: 14ch;
}
.hero-copy p { font-size: 1.05rem; max-width: 34ch; color: var(--ink-soft); }
.hero-media { position: relative; overflow: hidden; background: #eef0f2; }
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 30%;
}

/* ---------- founder note ---------- */
.note { padding-block: clamp(5rem, 11vw, 9rem) clamp(4rem, 8vw, 6rem); text-align: center; }
.note .label { display: block; margin-bottom: 2rem; }
.note blockquote {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    line-height: 1.32;
    max-width: 24ch;
    margin: 0 auto;
    text-transform: lowercase;
}

/* ---------- letter ---------- */
.letter {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding-bottom: clamp(5rem, 10vw, 8rem);
}
.letter-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--pink); }
.letter-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.letter-body h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 1.6rem; text-transform: lowercase; }
.letter-body p { font-size: 1.02rem; color: var(--ink-soft); max-width: 46ch; }
.letter-body p + p { margin-top: 1.1rem; }
.signoff { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 46ch; position: relative; }
.signoff-text { padding-right: 7rem; }
.signoff .sal { font-style: italic; font-family: var(--serif); font-size: 0.95rem; color: var(--ink-soft); }
.signoff .name { font-family: var(--serif); font-size: 2rem; line-height: 1.2; margin: 0.35rem 0 0.4rem; }
.signoff .role { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

/* ---------- philosophy tabs ---------- */
.values { background: var(--pink); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.values-head { text-align: center; margin-bottom: 3rem; }
.values-head h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); text-transform: lowercase; }
.values-head p { margin: 1rem auto 0; max-width: 52ch; color: var(--ink-soft); }

.tablist {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 2.2rem;
    border-bottom: 1px solid var(--line);
    margin: 0 auto 3rem;
    max-width: 920px;
}
.tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.9rem 0;
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--brown); }

.panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
.panel[hidden] { display: none; }
.panel-text h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.18; text-transform: lowercase; margin-bottom: 1.2rem; }
.panel-text p { color: var(--ink-soft); max-width: 44ch; font-size: 1.02rem; }
.panel-media { aspect-ratio: 5 / 4; background: var(--cream); overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media.contain img { object-fit: contain; padding: 8%; }
.panel-media.type {
    display: grid;
    place-items: center;
    background: var(--brown);
    color: var(--sage);
    text-align: center;
    padding: 2rem;
}
.panel-media.type span { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.3; }

@media (prefers-reduced-motion: no-preference) {
    .panel:not([hidden]) { animation: panelIn 0.6s var(--ease); }
    @keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- engineering spread ---------- */
.spread { padding-block: clamp(5rem, 10vw, 8rem); }
.spread h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); text-transform: lowercase; margin-bottom: 2.6rem; max-width: 20ch; }
.spread-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 14px;
    align-items: end;
}
.spread-grid figure { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.spread-grid .tall .frame { aspect-ratio: 4 / 3.3; }
.spread-grid .drawing .frame { aspect-ratio: 5 / 4; }
.spread-grid .frame { overflow: hidden; }
.spread-grid .tall .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.spread-grid .drawing .frame { background: #fff; border: 1px solid var(--line); }
.spread-grid .drawing .frame img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.spread-grid figcaption { padding-top: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- claims band ---------- */
.claims { background: var(--sage); padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.claims ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.6rem;
    max-width: 1240px;
    margin: 0 auto 2.4rem;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    text-transform: lowercase;
}
.claims li { display: inline-flex; align-items: center; gap: 1.6rem; }
.claims li + li::before { content: "\2726"; font-size: 0.7em; color: var(--slate); }
.claims p { max-width: 50ch; margin: 0 auto 2rem; color: var(--slate); }

/* ---------- newsletter ---------- */
.signup { padding-block: clamp(5rem, 10vw, 8rem); text-align: center; }
.signup h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); text-transform: lowercase; }
.signup .mantra { margin: 0.8rem 0 2.4rem; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.signup form { max-width: 480px; margin: 0 auto; text-align: left; }
.signup label { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.signup .row { display: flex; }
.signup input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--brown);
    border-right: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.95rem;
    border-radius: 0;
}
.signup input::placeholder { color: rgba(40, 25, 21, 0.6); }
.signup small { display: block; margin-top: 0.8rem; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: var(--pink); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo img { width: 150px; height: auto; }
.site-footer h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; color: var(--sage); }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; font-size: 0.92rem; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(250, 237, 241, 0.16); font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-base p { opacity: 0.75; }
.footer-base img { width: 46px; height: auto; }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
    .hero-media img { animation: heroIn 1.4s var(--ease) both; }
    @keyframes heroIn { from { transform: scale(1.05); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .site-header .wrap { grid-template-columns: auto 1fr; height: 60px; }
    .brand { order: -1; }
    .brand img { height: 28px; }
    .site-nav { justify-self: end; gap: 1.2rem; }
    .site-nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
    .header-cta { display: none; }

    .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
    .hero-media { order: -1; aspect-ratio: 4 / 3.4; }
    .hero-copy { padding: 2.4rem var(--gutter) 3.2rem; gap: 1.2rem; }

    .letter { grid-template-columns: 1fr; }
    .letter-photo { aspect-ratio: 4 / 4.2; }

    .panel { grid-template-columns: 1fr; }
    .panel-media { order: -1; }
    .tablist { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 1.6rem; scrollbar-width: none; }
    .tab { white-space: nowrap; }

    .spread-grid { grid-template-columns: 1fr; gap: 2rem; }
    .spread-grid .drawing .frame { aspect-ratio: 4 / 3; }

    .claims li { gap: 1rem; }
    .claims ul { gap: 0.5rem 1rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-logo { grid-column: 1 / 3; }
}

@media (max-width: 420px) {
    .site-nav { gap: 0.9rem; }
    .site-nav a { font-size: 0.62rem; letter-spacing: 0.06em; }
    .signup .row { flex-direction: column; gap: 10px; }
    .signup input { border-right: 1px solid var(--brown); }
}

/* =====================================================================
   LANDING PAGE
   ===================================================================== */

/* hero: tinted full-bleed panel with the product */
.l-hero { background: var(--pink); overflow: hidden; }
.l-hero .wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 2rem;
    min-height: min(calc(100dvh - 104px), 760px);
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.l-hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.l-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1.06; text-transform: lowercase; max-width: 11ch; }
.l-hero p { font-size: 1.08rem; color: var(--ink-soft); max-width: 36ch; }
.l-hero .actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.l-hero-media { position: relative; }
.l-hero-media img { width: 112%; max-width: none; margin-left: -4%; filter: drop-shadow(0 30px 40px rgba(40, 25, 21, 0.10)); }
@media (prefers-reduced-motion: no-preference) {
    .l-hero-media img { animation: floatIn 1.4s var(--ease) both; }
    @keyframes floatIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } to { opacity: 1; transform: none; } }
}

/* colorway product row */
.shades { padding-block: clamp(4.5rem, 9vw, 7rem); }
.shades-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.shades-head h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); text-transform: lowercase; }
.shade-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shade-card { display: flex; flex-direction: column; text-decoration: none; }
.shade-card .tile {
    aspect-ratio: 1 / 1;
    background: color-mix(in srgb, var(--pink) 70%, var(--cream));
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}
.shade-card .tile img { width: 100%; padding: 0 6%; transition: transform 0.7s var(--ease); }
.shade-card .chip {
    position: absolute; left: 14px; top: 14px;
    width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid rgba(40, 25, 21, 0.25);
    background-size: cover; background-position: center;
}
.shade-card:hover .tile img { transform: scale(1.05) rotate(-2deg); }
.shade-card .meta { padding-top: 0.9rem; }
.shade-card .name { font-family: var(--serif); font-size: 1.15rem; text-transform: lowercase; }
.shade-card .desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.2rem; }
.shade-card .status { display: inline-block; margin-top: 0.7rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* feature band: brand color-block */
.feature { background: var(--brown); color: var(--pink); }
.feature .wrap {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(4.5rem, 9vw, 7rem);
    padding-bottom: clamp(4.5rem, 9vw, 7rem);
}
.feature-media img { width: 100%; }
.feature h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); text-transform: lowercase; margin-bottom: 1.2rem; }
.feature h2 em { font-style: italic; color: var(--sage); }
.feature p { color: rgba(250, 237, 241, 0.78); max-width: 42ch; font-size: 1.04rem; }
.tips { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 2rem; margin: 2rem 0 2.4rem; }
.tips li { font-family: var(--serif); font-size: 1.3rem; text-transform: lowercase; }
.tips li span { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.2rem; }
.btn-light { background: var(--pink); color: var(--brown); border-color: var(--pink); }
.btn-light:hover { background: transparent; color: var(--pink); }

/* founder teaser */
.teaser { padding-block: clamp(5rem, 10vw, 8rem); }
.teaser .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.teaser blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.3; text-transform: lowercase; margin-bottom: 1.4rem; }
.teaser cite { display: block; font-style: normal; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 2rem; }
.teaser-photo { aspect-ratio: 5 / 4; overflow: hidden; }
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* signup variant on pink */
.signup.on-pink { background: var(--pink); max-width: none; }

@media (max-width: 900px) {
    .l-hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 1.5rem; gap: 0.5rem; }
    .l-hero-media { order: -1; }
    .l-hero-media img { width: 100%; margin: 0; }
    .shades-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .shade-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 68%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .shade-card { scroll-snap-align: start; }
    .feature .wrap { grid-template-columns: 1fr; }
    .teaser .wrap { grid-template-columns: 1fr; }
    .teaser-photo { order: -1; }
}

/* =====================================================================
   PRODUCT PAGE (Sarafina Shades)
   ===================================================================== */
.pdp { display: grid; grid-template-columns: 7fr 5fr; border-bottom: 1px solid var(--line); }
.pdp-media {
    position: sticky;
    top: 68px;
    height: calc(100dvh - 68px);
    min-height: 520px;
    background: var(--pink);
}
.pdp-stage { position: relative; width: 100%; height: 100%; }
#stage { width: 100%; height: 100%; outline: none; }
#stage canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }

.stage-hint {
    position: absolute; left: 20px; top: 18px; z-index: 5;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    color: var(--ink-soft); pointer-events: none;
}
.sarafina-active-tag {
    position: absolute; right: 20px; top: 14px; z-index: 5;
    font-family: var(--serif); font-size: 1.05rem; text-transform: lowercase;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    pointer-events: none;
}
.sarafina-active-tag.visible { opacity: 1; transform: none; }

.sarafina-3d-controls {
    position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 10;
    display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
    overflow-x: auto; scrollbar-width: none;
}
.sarafina-3d-controls::-webkit-scrollbar { display: none; }
.sarafina-3d-controls > * { flex: none; white-space: nowrap; }
.cew-3d-btn {
    appearance: none;
    background: rgba(255, 250, 240, 0.92);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 8px 12px;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cew-3d-btn:hover { border-color: var(--brown); }
.cew-3d-btn:disabled { opacity: 0.45; cursor: default; }
.cew-3d-btn[aria-pressed="false"]:not([data-ctype]) { color: var(--ink-soft); }
.cew-3d-play-btn { background: var(--brown); color: var(--pink); border-color: var(--brown); }
.cew-3d-play-btn:hover { background: var(--slate); border-color: var(--slate); }
.sarafina-tip-toggle { display: inline-flex; border: 1px solid var(--line); background: rgba(255, 250, 240, 0.92); }
.sarafina-tip-toggle .cew-3d-btn { border: 0; background: transparent; }
.sarafina-tip-toggle .cew-3d-btn[aria-pressed="true"] { background: var(--sage); color: var(--brown); }

.pdp-info { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 4rem clamp(2rem, 4vw, 4rem); }
.pdp-info .kicker { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.pdp-info h1 { font-size: clamp(2.4rem, 3.6vw, 3.4rem); text-transform: lowercase; margin: 0.5rem 0 1.2rem; }
.pdp-info .tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 0.8rem; }
.sarafina-copy { color: var(--ink-soft); font-size: 1.02rem; max-width: 44ch; transition: opacity 0.4s var(--ease); }

.colorway-label { margin-top: 2.4rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.colorway-label span { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: lowercase; font-weight: 400; margin-left: 0.4rem; }
.swatches-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1rem; }
.shade-item {
    appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--sans); color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.color-swatch {
    width: 46px; height: 46px; border-radius: 50%;
    background-size: cover; background-position: center;
    box-shadow: inset 0 0 0 1px rgba(40, 25, 21, 0.18);
    outline: 1px solid transparent; outline-offset: 3px;
    transition: outline-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.shade-item:hover .color-swatch { transform: scale(1.06); }
.shade-item.active .color-swatch { outline-color: var(--brown); }
.shade-name { font-size: 0.72rem; color: var(--ink-soft); text-transform: lowercase; }
.shade-item.active .shade-name { color: var(--ink); font-weight: 500; }
.shade-description {
    min-height: 3.2em; margin-top: 1.2rem; max-width: 44ch;
    font-family: var(--serif); font-style: italic; color: var(--ink-soft);
    opacity: 0; transition: opacity 0.4s var(--ease);
}
.shade-description.visible { opacity: 1; }

.pdp-cta { margin-top: 1.6rem; display: grid; gap: 0.8rem; max-width: 420px; }
.pdp-cta .btn { width: 100%; }
.pdp-cta small { font-size: 0.82rem; color: var(--ink-soft); }

.accordion { margin-top: 2.6rem; border-top: 1px solid var(--line); max-width: 520px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
    list-style: none; cursor: pointer; padding: 1.1rem 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.1rem; font-weight: 300; transition: transform 0.3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .body { padding-bottom: 1.3rem; color: var(--ink-soft); font-size: 0.98rem; }
.accordion .body ul { padding-left: 1.1rem; display: grid; gap: 0.3rem; }

/* engineering two-up */
.build { padding-block: clamp(5rem, 10vw, 8rem); }
.build h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); text-transform: lowercase; max-width: 22ch; }
.build > p { color: var(--ink-soft); max-width: 52ch; margin: 1rem 0 2.6rem; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.build-grid .frame { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); }
.build-grid img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.build-grid figcaption { padding-top: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 900px) {
    .pdp { grid-template-columns: 1fr; }
    .pdp-media { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 1 / 1.05; }
    .stage-hint { left: 12px; top: 12px; font-size: 0.64rem; }
    .sarafina-active-tag { right: 12px; top: 8px; }
    .sarafina-3d-controls { left: 0; right: 0; bottom: 10px; padding: 0 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .sarafina-3d-controls::-webkit-scrollbar { display: none; }
    .cew-3d-btn, .sarafina-tip-toggle { flex: none; white-space: nowrap; }
    .pdp-info { padding: 2rem var(--gutter) 3rem; }
    .build-grid { grid-template-columns: 1fr; }
}

/* lettermark accents (from the amiré brand kit) */
.signup-mark { width: 74px; height: auto; margin: 0 auto 1.4rem; }
.signoff-mark { position: absolute; right: 0; bottom: 0; height: calc(100% - 1.6rem); width: auto; max-width: none; }
.panel-media.type .panel-mark { width: 58%; height: auto; object-fit: contain; }

/* =====================================================================
   PHONE LAYOUT
   Everything below only changes screens 900px and narrower,
   apart from the small global helpers in the first group.
   ===================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.menu-btn, .mobile-menu { display: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } }
/* 16px stops iPhone zooming in when the email field is tapped */
.signup input { font-size: 16px; }

@media (max-width: 900px) {
    :root { --gutter: clamp(20px, 5.4vw, 32px); --section-y: 3.75rem; }
    body { font-size: 1rem; }

    /* promo + header */
    .promo { font-size: 0.64rem; letter-spacing: 0.1em; padding: 9px var(--gutter); }
    .promo-full { display: none; }

    .site-header .wrap { grid-template-columns: 1fr auto 1fr; height: 56px; }
    .site-nav { display: none; }
    .brand { order: 0; justify-self: center; }
    .brand img { height: 26px; }
    .header-cta { display: inline-block; justify-self: end; font-size: 0.68rem; letter-spacing: 0.14em; padding: 12px 0; }
    .cta-long { display: none; }

    .menu-btn {
        display: inline-flex; align-items: center; justify-self: start;
        width: 44px; height: 44px; margin-left: -10px; padding: 0 10px;
        background: none; border: 0; cursor: pointer; color: var(--ink);
    }
    .menu-lines, .menu-lines::before, .menu-lines::after {
        display: block; width: 22px; height: 1.5px; background: currentColor;
        transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    }
    .menu-lines { position: relative; }
    .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
    .menu-lines::before { top: -6px; }
    .menu-lines::after { top: 6px; }
    .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
    .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

    .mobile-menu {
        display: block;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        padding: 1.2rem var(--gutter) 1.6rem;
        box-shadow: 0 24px 40px rgba(40, 25, 21, 0.08);
    }
    .mobile-menu[hidden] { display: none; }
    .mobile-menu nav { display: grid; }
    .mobile-menu nav a {
        font-family: var(--serif); font-size: 1.6rem; text-transform: lowercase;
        text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line);
    }
    .mobile-menu nav a[aria-current="page"] { font-style: italic; }
    .mobile-menu-foot { display: flex; gap: 1.6rem; padding-top: 1.2rem; }
    .mobile-menu-foot a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
    @media (prefers-reduced-motion: no-preference) {
        .mobile-menu:not([hidden]) { animation: menuIn 0.35s var(--ease); }
        @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
    }

    /* type scale */
    .serif { letter-spacing: -0.015em; }
    .values-head h2, .shades-head h2, .spread h2, .signup h2, .build h2 { font-size: 1.85rem; line-height: 1.18; }
    .feature h2 { font-size: 2rem; }

    /* buttons go full width on phones, labels stay on one line */
    .hero-copy .btn, .l-hero .btn, .feature .btn, .claims .btn, .pdp-cta .btn { width: 100%; }

    /* even vertical rhythm between sections */
    .note { padding-block: var(--section-y) 2.5rem; }
    .letter { padding-bottom: var(--section-y); }
    .values, .spread, .claims, .signup, .shades, .teaser, .build { padding-block: var(--section-y); }
    .feature .wrap { padding-block: var(--section-y); }

    /* ---------- landing ---------- */
    .l-hero .wrap { padding-top: 0.25rem; padding-bottom: 2.75rem; gap: 0.25rem; }
    .l-hero-media img { width: 112%; max-width: none; margin-left: -6%; }
    .l-hero h1 { font-size: 2.55rem; line-height: 1.08; max-width: 12ch; }
    .l-hero-copy { gap: 1.1rem; }
    .l-hero p { font-size: 1rem; }
    .l-hero .actions { flex-direction: column; align-items: stretch; gap: 1.1rem; margin-top: 0.3rem; }
    .l-hero .actions .text-link { align-self: center; padding: 6px 0; }

    .shades-head { margin-bottom: 1.6rem; }
    .shade-grid {
        grid-auto-columns: 76%;
        gap: 12px;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
    .shade-card .meta { padding-top: 0.8rem; }
    .shade-card .name { font-size: 1.1rem; }

    .feature .wrap { gap: 1.25rem; }
    .feature-media img { width: 108%; max-width: none; margin-left: -4%; }
    .tips { gap: 0 1.6rem; margin: 1.6rem 0 2rem; }

    .teaser .wrap { gap: 1.75rem; }
    .teaser-photo { aspect-ratio: 4 / 3.4; }
    .teaser blockquote { font-size: 1.45rem; margin-bottom: 1rem; }
    .teaser cite { margin-bottom: 1.4rem; }

    /* ---------- founder ---------- */
    .hero-media { aspect-ratio: 1 / 0.92; }
    .hero-media img { object-position: 50% 20%; }
    .hero-copy { padding: 1.9rem var(--gutter) 2.75rem; gap: 1.05rem; }
    .hero-copy h1 { font-size: 2.3rem; line-height: 1.12; max-width: none; }
    .hero-copy p { font-size: 1rem; }

    .note .label { margin-bottom: 1.2rem; }
    .note blockquote { font-size: 1.5rem; max-width: 20ch; }

    .letter { gap: 1.9rem; }
    .letter-photo { aspect-ratio: 1 / 1; }
    .letter-body h2 { font-size: 1.75rem; margin-bottom: 1.1rem; }
    .letter-body p { font-size: 1rem; }
    .signoff { margin-top: 2rem; padding-top: 1.4rem; }
    .signoff-text { padding-right: 0; max-width: calc(100% - 10.5rem); }
    .signoff .name { font-size: 1.85rem; margin: 0.2rem 0 0.3rem; }
    .signoff .role { font-size: 0.64rem; letter-spacing: 0.14em; line-height: 1.6; }
    .role-2 { display: block; }
    .signoff-mark { height: calc(100% - 1.4rem); }

    .values-head { margin-bottom: 1.8rem; }
    .values-head p { margin-top: 0.7rem; }
    .tablist { justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
    .tab { padding: 0.95rem 0; font-size: 0.68rem; letter-spacing: 0.12em; }
    .panel { gap: 1.4rem; }
    .panel-media { aspect-ratio: 4 / 3; }
    .panel-text h3 { font-size: 1.75rem; margin-bottom: 0.7rem; }
    .panel-text p { font-size: 1rem; }

    .spread h2 { margin-bottom: 1.6rem; }
    .spread-grid { gap: 1.75rem; }
    .spread-grid .tall .frame { aspect-ratio: 4 / 3.6; }
    .spread-grid figcaption { font-size: 0.82rem; }

    .claims ul { flex-direction: column; align-items: center; gap: 0.35rem; font-size: 1.15rem; margin-bottom: 1.6rem; }
    .claims li + li::before { content: none; }
    .claims p { font-size: 0.95rem; margin-bottom: 1.6rem; }

    /* ---------- signup + footer ---------- */
    .signup-mark { width: 60px; margin-bottom: 1rem; }
    .signup .mantra { margin: 0.5rem 0 1.8rem; }
    .site-footer { padding: 3rem 0 1.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .footer-logo img { width: 124px; }
    .footer-grid > div:last-child { display: none; }
    .site-footer ul { gap: 0.2rem; }
    .site-footer ul a { display: inline-block; padding: 6px 0; }
    .footer-base { margin-top: 2.4rem; }

    /* ---------- sarafina shades ---------- */
    .pdp-media { aspect-ratio: auto; height: auto; }
    .pdp-stage { height: auto; display: flex; flex-direction: column; }
    #stage { height: auto; aspect-ratio: 1 / 0.92; }
    .stage-hint { left: var(--gutter); top: 14px; font-size: 0.62rem; }
    .sarafina-active-tag { right: var(--gutter); top: 9px; }
    .sarafina-3d-controls {
        position: static;
        flex-wrap: wrap; justify-content: center;
        overflow: visible;
        gap: 6px;
        padding: 0 var(--gutter) 18px;
    }
    .cew-3d-btn { padding: 10px 12px; font-size: 0.64rem; }

    .pdp-info { padding: 1.9rem var(--gutter) 3rem; }
    .pdp-info h1 { font-size: 2.3rem; margin: 0.35rem 0 0.9rem; }
    .pdp-info .tagline { font-size: 1.05rem; margin-bottom: 0.6rem; }
    .colorway-label { margin-top: 1.9rem; }
    .swatches-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 0.9rem; }
    .color-swatch { width: 44px; height: 44px; }
    .shade-name { font-size: 0.66rem; text-align: center; line-height: 1.3; }
    .shade-description { min-height: 0; margin-top: 1rem; }
    .shade-description:empty { margin-top: 0; }
    .pdp-cta { margin-top: 1.6rem; max-width: none; }
    .accordion { margin-top: 2.2rem; max-width: none; }
    .accordion summary { padding: 1.05rem 0; }

    .build > p { margin: 0.8rem 0 1.8rem; }
    .build-grid { gap: 1.75rem; }
}

/* narrow phones (iPhone mini / SE) */
@media (max-width: 380px) {
    .l-hero h1 { font-size: 2.3rem; }
    .hero-copy h1, .pdp-info h1 { font-size: 2.1rem; }
    .tab { font-size: 0.62rem; letter-spacing: 0.1em; }
    .signoff-text { max-width: calc(100% - 9.5rem); }
    .signoff .name { font-size: 1.65rem; }
}
