/* ==========================================================================
   Qurmoz (قرمز) — the scarlet brand
   Colour comes from the dye bath: one family, from pale alum to oxblood.
     --alum     #FFF4F1  the undyed cloth; page ground and light text
     --rose     #F4B4B8  madder rose; the first, lightest dip
     --scarlet  #DF1329  qurmoz scarlet; the brand colour
     --crimson  #8C0B22  crimson; depth, hover and shadow
     --oxblood  #2B0811  oxblood; dark ground and body text on light
   Type: Bodoni Moda (display), Hanken Grotesk (text), Amiri (Arabic)
   ========================================================================== */

:root {
    --alum: #FFF4F1;
    --alum-2: #FBE6E3;
    --rose: #F4B4B8;
    --scarlet: #DF1329;
    --crimson: #8C0B22;
    --oxblood: #2B0811;
    --oxblood-2: #1E050B;
    --ink-soft: #6E3A42;        /* secondary text on alum */
    --alum-soft: #E9C7C9;       /* secondary text on oxblood */
    --rule: rgba(43, 8, 17, .16);
    --rule-dark: rgba(255, 244, 241, .16);

    --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

    /* type scale: perfect fourth from 17px */
    --t-0: 1.0625rem;
    --t-1: 1.25rem;
    --t-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    --t-3: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
    --t-4: clamp(3rem, 1rem + 6vw, 7.25rem);

    --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6.5rem;
    --radius-s: 999px; --radius-m: 20px; --radius-l: 32px;

    --wrap: min(1240px, 100% - clamp(2.5rem, 8vw, 8rem));
    --ease: cubic-bezier(.22, .8, .2, 1);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--alum);
    color: var(--oxblood);
    font-family: var(--sans);
    font-size: var(--t-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
    overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[lang="ar"] { font-family: var(--arabic); }
::selection { background: var(--scarlet); color: var(--alum); }
:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 4px; border-radius: 4px; }
.work :focus-visible, .contact :focus-visible, .footer :focus-visible, .scarlet :focus-visible { outline-color: var(--alum); }

.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; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--scarlet); color: var(--alum); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Bodoni hairlines vanish on 1x screens at large optical sizes, so the
   optical size is capped by role. Bigger text may carry finer hairlines. */
.display {
    font-family: var(--serif); font-weight: 460; font-size: var(--t-3);
    line-height: 1.02; letter-spacing: -.015em; font-variation-settings: "opsz" 22;
    text-wrap: balance;
}
.lede { color: var(--ink-soft); font-size: var(--t-1); line-height: 1.55; max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
    --mx: 0px; --my: 0px;
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 52px; padding: 0 1.6rem; border-radius: var(--radius-s);
    font: 600 .975rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
    cursor: pointer; border: 1px solid transparent;
    transform: translate(var(--mx), var(--my));
    transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
    position: relative; isolation: isolate; overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn--scarlet { background: var(--scarlet); color: var(--alum); }
.btn--scarlet::before {
    /* crimson wells up from the bottom like dye soaking into cloth */
    content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 0; z-index: 0;
    background: var(--crimson); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    transition: height .5s var(--ease), border-radius .5s var(--ease);
}
.btn--scarlet:hover::before { height: 130%; border-radius: 0; }
.btn--scarlet:hover { box-shadow: 0 14px 34px -14px rgba(223, 19, 41, .8); }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--oxblood); color: var(--alum); border-color: var(--oxblood); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.text-link {
    color: var(--rose); text-decoration: none; font-weight: 500;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 90; background: var(--alum); transition: opacity .7s ease, visibility .7s; }
html:not(.js) .intro { display: none; }
.intro-drop {
    position: absolute; left: 50%; top: -60px; width: 26px; height: 26px;
    margin-left: -13px; background: var(--scarlet);
    border-radius: 0 50% 50% 50%; transform: rotate(45deg);
    animation: fall .75s cubic-bezier(.55, 0, .9, .45) .25s forwards;
}
@keyframes fall { to { top: calc(50% - 13px); } }
.intro-flood {
    position: absolute; inset: 0; background: var(--scarlet);
    display: grid; place-items: center;
    clip-path: circle(0 at 50% 50%);
    animation: flood 1s var(--ease) .98s forwards;
}
@keyframes flood { to { clip-path: circle(75% at 50% 50%); } }
.intro-word {
    color: var(--alum); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: .14em; font-variation-settings: "opsz" 18;
    opacity: 0; transform: translateY(10px);
    animation: rise .7s var(--ease) 1.3s forwards;
    display: flex; align-items: baseline; gap: .6em;
}
.intro-word span { letter-spacing: 0; font-size: .9em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro.is-done { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h);
    display: flex; align-items: center; gap: 2rem;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    color: var(--oxblood);
    transition: background-color .4s, transform .5s var(--ease), color .3s;
}
.nav.is-scrolled { background: rgba(255, 244, 241, .82); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 1px 0 var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--scarlet); }
.nav-brand .mark { width: 34px; height: 34px; transition: transform .8s var(--ease); }
.nav-brand:hover .mark { transform: rotate(-20deg) scale(1.05); }
.nav-word { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .14em; color: var(--oxblood); font-weight: 500; font-variation-settings: "opsz" 14; }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .95rem; position: relative; color: inherit; opacity: .8; transition: opacity .25s; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--scarlet);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 1.2rem; font-size: .9rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
    .nav-cta { display: none; }
    .nav-toggle {
        display: grid; place-content: center; gap: 7px; margin-left: auto;
        width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor;
        background: transparent; color: inherit; cursor: pointer;
    }
    .nav-toggle i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
    .nav-toggle[aria-expanded="true"] { color: var(--alum); }
    .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
    .nav-links {
        position: fixed; inset: 0; z-index: -1; margin: 0;
        flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
        background: var(--scarlet); color: var(--alum);
        clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .8s var(--ease);
    }
    .nav-links.is-open { clip-path: circle(150% at calc(100% - 46px) 38px); }
    .nav-links a { font-family: var(--serif); font-size: 2.3rem; opacity: 1; font-variation-settings: "opsz" 18; }
    .nav-links a::after { background: var(--alum); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh; display: grid; align-items: center;
    overflow: hidden; isolation: isolate;
    background: var(--alum);
}
.dye { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.hero.no-fluid .dye { display: none; }
.hero.no-fluid {
    background:
        radial-gradient(34% 44% at 78% 42%, rgba(223, 19, 41, .9), transparent 70%),
        radial-gradient(26% 32% at 68% 70%, rgba(140, 11, 34, .7), transparent 70%),
        radial-gradient(55% 65% at 85% 40%, var(--rose), transparent 75%),
        var(--alum);
}
.hero-copy {
    position: relative; z-index: 2; width: var(--wrap); margin-inline: auto;
    padding: calc(var(--nav-h) + 6vh) 0 14vh; pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.hero-note { display: flex; align-items: center; gap: .8rem; color: var(--crimson); font-size: 1rem; margin-bottom: 1.8rem; }
.hero-note .ar { font-size: 1.9rem; line-height: 1; color: var(--scarlet); font-weight: 700; }
.hero-title {
    font-family: var(--serif); font-size: var(--t-4); font-weight: 430;
    line-height: .96; letter-spacing: -.025em; font-variation-settings: "opsz" 40;
    max-width: 8.6em; text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero-title .w > span { transform: none; }
.hero-sub { max-width: 31em; margin-top: 2rem; font-size: var(--t-1); line-height: 1.55; color: var(--oxblood); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.js .hero-sub, .js .hero-actions, .js .hero-note, .js .hero-hint { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s var(--ease); }
.is-ready .hero-note { opacity: 1; transform: none; transition-delay: .15s; }
.is-ready .hero-sub { opacity: 1; transform: none; transition-delay: .6s; }
.is-ready .hero-actions { opacity: 1; transform: none; transition-delay: .8s; }
.is-ready .hero-hint { opacity: 1; transform: none; transition-delay: 1.8s; }
.hero-hint {
    position: absolute; z-index: 2; right: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.25rem, 4vh, 2.5rem);
    font-size: .875rem; color: var(--crimson); display: flex; align-items: center; gap: .6rem; pointer-events: none;
}
.hint-drop { width: 9px; height: 9px; background: var(--scarlet); border-radius: 0 50% 50% 50%; transform: rotate(45deg); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 50% { transform: rotate(45deg) translate(2px, 2px) scale(1.3); } }
.hero-hint.is-used { opacity: 0 !important; transition-delay: 0s !important; }
@media (max-width: 700px) {
    .hero-copy { padding-bottom: 18vh; }
    .hero-hint { left: 50%; right: auto; translate: -50% 0; white-space: nowrap; }
}

/* ---------- Services: dye swatches ---------- */
.services { padding: clamp(6rem, 14vh, 10rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 8vh, 5rem); }
.section-head .lede { justify-self: end; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.swatch {
    --level: 0%;
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--alum-2);
    min-height: 34rem;
    display: flex; flex-direction: column;
    transition: color .5s ease .1s;
}
.swatch-bath {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
    height: calc(var(--level) + 28px);
    background: var(--dye);
    /* the wavy surface of the dye, drawn as a mask that drifts sideways */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14 T180 14 T240 14 V28 H0Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x,
                  linear-gradient(#000, #000) 0 27px / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14 T180 14 T240 14 V28 H0Z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x,
                  linear-gradient(#000, #000) 0 27px / 100% 100% no-repeat;
    animation: tide 4s linear infinite;
    transition: height 1.4s var(--ease);
}
@keyframes tide { to { -webkit-mask-position: 240px 0, 0 27px; mask-position: 240px 0, 0 27px; } }
.swatch.is-seen { --level: 4.5rem; }
.swatch:hover, .swatch:focus-within { --level: 100%; color: var(--on-dye); }
.swatch-body { padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.25rem) 8.5rem; display: flex; flex-direction: column; flex: 1; }
.swatch-shade { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--crimson); margin-bottom: 4.5rem; font-variation-settings: "opsz" 11; transition: color .5s ease .1s; }
.swatch:hover .swatch-shade, .swatch:focus-within .swatch-shade { color: inherit; }
.swatch h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-2); line-height: 1.15; margin-bottom: 1rem; font-variation-settings: "opsz" 11; }
.swatch-body > p:not(.swatch-shade) { max-width: 30em; opacity: .85; }
.swatch ul { margin-top: auto; padding-top: 1.75rem; display: grid; gap: .5rem; }
.swatch li { padding-left: 1.3rem; position: relative; font-size: .975rem; }
.swatch li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: currentColor; opacity: .7; }
@media (max-width: 960px) { .swatches { grid-template-columns: 1fr; } .swatch { min-height: 26rem; } .swatch-shade { margin-bottom: 2.5rem; } }

/* ---------- Work ---------- */
.work { position: relative; height: 420vh; background: var(--oxblood); color: var(--alum); }
.work .lede { color: var(--alum-soft); }
.work-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-top: var(--nav-h); margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.work-head .lede { max-width: 26em; font-size: var(--t-0); }
.work-track { display: flex; gap: 6vw; padding-inline: calc((100vw - min(1240px, 100vw - clamp(2.5rem, 8vw, 8rem))) / 2); will-change: transform; }
.project { flex: 0 0 auto; width: min(1000px, 78vw); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.project-lens {
    --r: 34%; --wash: 1;
    display: block; position: relative; isolation: isolate;
    height: min(62vh, 560px); border-radius: 28px; overflow: hidden;
    clip-path: circle(var(--r) at 50% 50%);
    background: var(--scarlet);
}
.project-lens img {
    width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top;
    filter: grayscale(var(--wash)) contrast(calc(1 + var(--wash) * .15));
    transition: transform 6s cubic-bezier(.45, 0, .2, 1);
}
.project-lens::after {
    /* scarlet dye bath over the screenshot; it rinses out as the project reaches the centre */
    content: ""; position: absolute; inset: 0; background: var(--scarlet);
    mix-blend-mode: multiply; opacity: var(--wash); pointer-events: none;
}
.project-lens:hover img { transform: translateY(calc(-100% + min(62vh, 560px))); }
.project-lens--empty { display: grid; place-items: center; color: var(--alum); }
.project-lens--empty::after { display: none; }
.project-lens--empty svg { width: 34%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.project-field { color: var(--rose); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: .5rem; font-variation-settings: "opsz" 11; }
.project h3 { font-family: var(--serif); font-weight: 460; font-size: var(--t-3); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1.2rem; font-variation-settings: "opsz" 22; }
.project-copy > p:not(.project-field) { color: var(--alum-soft); max-width: 26em; margin-bottom: 1.6rem; }
.work-progress { width: var(--wrap); margin: clamp(1.5rem, 5vh, 3rem) auto 0; height: 2px; background: var(--rule-dark); position: relative; border-radius: 2px; }
.work-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--scarlet); border-radius: 2px; }
@media (max-width: 900px), (max-height: 560px) {
    .work { height: auto; padding: 6rem 0; }
    .work-pin { position: static; height: auto; overflow: visible; }
    .work-head { flex-direction: column; align-items: start; padding-top: 0; }
    .work-track { flex-direction: column; gap: 4.5rem; padding-inline: 0; width: var(--wrap); margin-inline: auto; transform: none !important; }
    .project { width: 100%; grid-template-columns: 1fr; }
    .project-lens { height: 64vw; max-height: 420px; }
    .project-lens:hover img { transform: none; }
    .work-progress { display: none; }
}

/* ---------- Why scarlet ---------- */
.scarlet { position: relative; overflow: hidden; background: var(--scarlet); color: var(--alum); padding: clamp(7rem, 18vh, 12rem) 0 clamp(6rem, 14vh, 9rem); }
.scarlet-glyph {
    position: absolute; right: -4vw; top: 50%;
    font-size: clamp(16rem, 42vw, 44rem); line-height: 1; font-weight: 700;
    color: var(--crimson); opacity: .5; pointer-events: none; user-select: none;
    transform: translateY(calc(-50% + var(--gy, 0px)));
}
.scarlet-inner { position: relative; }
.scarlet-title { font-family: var(--serif); font-style: italic; font-weight: 460; font-size: var(--t-2); margin-bottom: 2rem; font-variation-settings: "opsz" 14; }
.manifesto {
    font-family: var(--serif); font-weight: 460; font-variation-settings: "opsz" 22;
    font-size: clamp(1.9rem, 1rem + 3vw, 3.9rem); line-height: 1.16; letter-spacing: -.01em; max-width: 21em;
}
.manifesto .mw { color: rgba(255, 244, 241, .32); transition: color .6s ease; }
.manifesto .mw.is-lit { color: var(--alum); }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(4rem, 10vh, 6rem); }
.tenets div { border-top: 1px solid rgba(255, 244, 241, .45); padding-top: 1.25rem; }
.tenets dt { font-family: var(--serif); font-size: var(--t-1); margin-bottom: .4rem; font-weight: 500; font-variation-settings: "opsz" 11; }
.tenets dd { max-width: 22em; }
@media (max-width: 800px) { .tenets { grid-template-columns: 1fr; } }

/* ---------- Process: the colour deepens ---------- */
.process { position: relative; height: 420vh; }
.process-pin {
    --bg: #FFF4F1; --fg: #2B0811; --fg-2: rgba(43, 8, 17, .72);
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    background: var(--bg); color: var(--fg);
    display: flex; align-items: center;
}
.process-inner { display: grid; grid-template-columns: minmax(160px, .6fr) 1.4fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-top: var(--nav-h); }
.cloth { position: relative; height: min(68vh, 620px); }
.cloth svg { width: 100%; height: 100%; overflow: visible; }
.cloth-raw { fill: #FFFAF8; }
.cloth-rod { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.cloth svg g[clip-path] { filter: drop-shadow(0 18px 30px rgba(43, 8, 17, .2)); }
.cloth-wave { animation: wave 3.2s linear infinite; }
@keyframes wave { to { transform: translateX(220px); } }
.process-copy .display { max-width: 11em; margin-bottom: 2.25rem; }
.steps { position: relative; display: grid; }
.steps::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: currentColor; opacity: .25; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 1.25rem; padding: .7rem 0; opacity: .5; transition: opacity .6s; }
.step-num {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--serif); font-size: 1.15rem; font-variation-settings: "opsz" 11;
    border: 1px solid currentColor; position: relative; z-index: 1; background: var(--bg);
    transition: background-color .5s, color .5s, border-color .5s;
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-2); line-height: 1.15; padding-top: .45rem; font-variation-settings: "opsz" 11; }
.step > div > p, .step ul { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); }
.step ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.step li { border: 1px solid currentColor; border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; }
.step.is-active { opacity: 1; }
.step.is-active .step-num { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.step.is-active > div > p { max-height: 8em; opacity: 1; margin-top: .5rem; color: var(--fg-2); max-width: 32em; }
.step.is-active ul { max-height: 6em; opacity: 1; margin-top: 1rem; }
@media (max-width: 900px) {
    .process-inner { grid-template-columns: 80px 1fr; gap: 1.25rem; align-items: start; }
    .cloth { height: 60vh; margin-top: 5.5rem; }
    .process-copy .display { font-size: 2rem; margin-bottom: 1.25rem; }
    .step { grid-template-columns: 36px 1fr; gap: .8rem; padding: .45rem 0; }
    .step-num { width: 36px; height: 36px; font-size: 1rem; }
    .steps::before { left: 17.5px; }
    .step h3 { font-size: 1.2rem; padding-top: .3rem; }
    .step.is-active > div > p { font-size: .95rem; }
}

/* ---------- Contact ---------- */
.contact { background: var(--oxblood); color: var(--alum); padding: clamp(6rem, 14vh, 9rem) 0; }
.contact .lede { color: var(--alum-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-intro .display { max-width: 11em; margin-bottom: 1.5rem; }
.contact-lines { margin-top: 3rem; display: grid; gap: 1.25rem; }
.contact-lines div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule-dark); }
.contact-lines dt { color: var(--alum-soft); }
.contact-lines a { text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-variation-settings: "opsz" 11; transition: color .25s; }
.contact-lines a:hover { color: var(--rose); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-lines div { grid-template-columns: 1fr; gap: .2rem; } }

.contact-form {
    position: relative; padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--radius-l);
    background: radial-gradient(120% 80% at 100% 0%, rgba(223, 19, 41, .35), transparent 60%), rgba(255, 244, 241, .04);
    border: 1px solid var(--rule-dark); display: grid; gap: 1.6rem;
}
.hp { position: absolute; left: -9999px; }
.field { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea {
    width: 100%; border: 0; border-bottom: 1px solid rgba(255, 244, 241, .3); background: transparent; color: var(--alum);
    font: 400 1.1rem/1.4 var(--sans); padding: 1.4rem 0 .6rem; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.field textarea { min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 1px 0 0 var(--rose); }
.field label { position: absolute; left: 0; top: 1.35rem; color: var(--alum-soft); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.25rem) scale(.8); color: var(--rose); }
.field--choice legend { color: var(--alum-soft); margin-bottom: .8rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 244, 241, .3); font-size: .95rem; transition: background-color .3s, color .3s, border-color .3s; }
.chips input:hover + span { border-color: var(--rose); }
.chips input:checked + span { background: var(--scarlet); border-color: var(--scarlet); color: var(--alum); }
.chips input:focus-visible + span { outline: 2px solid var(--alum); outline-offset: 3px; }
.form-status { min-height: 1.5em; font-size: .95rem; color: var(--rose); }
.form-status.is-error { color: #FFB8B0; }

/* ---------- Footer ---------- */
.footer { background: var(--oxblood-2); color: var(--alum-soft); padding-top: 5rem; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-note { max-width: 28em; }
.footer-links, .footer-legal { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--alum); }
.footer-word {
    --fx: 50%; --fy: 60%;
    font-family: var(--serif); font-size: clamp(5rem, 24vw, 26rem); line-height: .8; letter-spacing: -.02em;
    text-align: center; margin: 3rem 0 -.04em; font-weight: 500; font-variation-settings: "opsz" 60;
    color: transparent;
    background: radial-gradient(circle 24vw at var(--fx) var(--fy), var(--scarlet), rgba(223, 19, 41, .55) 40%, transparent 72%), rgba(255, 244, 241, .06);
    -webkit-background-clip: text; background-clip: text; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule-dark); font-size: .9rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .intro { display: none; }
    .hero-title .w > span, .js .hero-sub, .js .hero-actions, .js .hero-note, .js .hero-hint { transform: none; opacity: 1; }
    .manifesto .mw { color: var(--alum); }
}
.hero-note, .hero-actions { width: fit-content; }
.nav:has(.nav-links.is-open) .nav-brand, .nav:has(.nav-links.is-open) .nav-word { color: var(--alum); }
.nav:has(.nav-links.is-open) { background: transparent; box-shadow: none; }

/* ---------- Privacy choices link and form note ---------- */
.footer-choices { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color .25s; }
.footer-choices:hover { color: var(--alum); }
.form-note { font-size: .9rem; color: var(--alum-soft); margin-top: -.6rem; }
.form-note a { color: var(--rose); }
