/* ==========================================================================
   SHEREEN TEX — PAPER & INK
   A minimal editorial system for a clothing fabric house.
   Palette: warm paper · near-black ink · burnt clay accent
   Type: Archivo (display) + Instrument Sans (body)
   ========================================================================== */

/* ── Tokens ────────────────────────────────────────────── */
:root {
    --paper: #F4F1EB;
    --paper-2: #EDE9E1;
    --white: #FBF9F5;
    --ink: #15150F;
    --ink-2: #4A4941;
    --muted: #6B685E;
    --line: #DAD5CA;
    --line-strong: #C4BEB0;
    --clay: #641a2a;

    --display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --gutter: clamp(1.25rem, 5vw, 3rem);
    --max-w: 1240px;
    --nav-h: 76px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t: all 0.45s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    background: var(--paper);
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Base type ─────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: clamp(3.2rem, 8.6vw, 6.6rem); line-height: 0.94; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.2; }

p { color: var(--ink-2); }
.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: var(--ink);
    max-width: 46ch;
}

.accent { color: var(--clay); }

/* ── Layout utilities ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    flex-shrink: 0;
}

.sec-head {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head h2 { margin-top: 1.1rem; max-width: 22ch; }

.sec-head--split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}
.sec-head--split h2 { max-width: 18ch; }
.sec-head__note {
    font-size: 0.98rem;
    color: var(--ink-2);
    max-width: 34ch;
    padding-bottom: 0.35rem;
}

/* ── Buttons & links ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.55rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover {
    background: var(--clay);
    border-color: var(--clay);
    transform: translateY(-1px);
}
.btn .arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--sm { padding: 0.58rem 1.05rem; font-size: 0.82rem; }
.btn--full { width: 100%; margin-top: 0.5rem; }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn--ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    padding-bottom: 2px;
}
.link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.link:hover { color: var(--clay); }
.link:hover::after { background: var(--clay); transform: scaleX(0); }

.skip {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 200;
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: top 0.25s var(--ease);
}
.skip:focus { top: 1rem; }

/* ── Navbar ────────────────────────────────────────────── */
/* ── Startup reveal: quiet signature ───────────────────── */
.startup {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
}
body:has(.startup:not(.is-done)) { overflow: hidden; }
.startup.is-done {
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s var(--ease);
}
.startup__signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: signatureIn .9s var(--ease) both;
}
.startup__mark {
    width: 92px;
    height: 92px;
    margin-bottom: 1.1rem;
}
.startup__name {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -.045em;
    color: var(--ink);
}
.startup__name span { color: var(--clay); }
.startup__rule {
    width: 34px;
    height: 1px;
    margin: .9rem 0 .75rem;
    background: var(--clay);
    transform: scaleX(0);
    animation: signatureRule .7s .45s var(--ease) forwards;
}
.startup__caption {
    color: var(--muted);
    font-size: .59rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
    animation: signatureCaption .6s .6s ease forwards;
}
.startup__skip {
    position: absolute;
    right: var(--gutter);
    bottom: 1.6rem;
    padding: .4rem;
    color: var(--muted);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: 0;
    animation: signatureCaption .4s .9s ease forwards;
}
.startup__skip:hover { color: var(--ink); }
.startup.is-closing { visibility: hidden; transition: visibility 0s .8s; }
@keyframes signatureIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes signatureRule { to { transform: scaleX(1); } }
@keyframes signatureCaption { to { opacity: 1; } }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(244, 241, 235, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    border-bottom-color: var(--line);
}

.nav__inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: height 0.4s var(--ease);
}
.nav.scrolled .nav__inner { height: 64px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.brand__mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 20px;
    height: 20px;
}
.brand__mark i { display: block; background: var(--ink); }
.brand__mark i:nth-child(2) { background: var(--clay); }
.brand__mark i:nth-child(3) { background: var(--clay); }
.brand__name {
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    margin-left: auto;
}
.nav__links a {
    position: relative;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 0.35rem 0;
    transition: color 0.25s ease;
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }

.nav__cta { flex-shrink: 0; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
}
.burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.burger.active span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.active span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--paper);
    padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.drawer__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.drawer__links a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 2.9rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, padding-left 0.3s var(--ease);
}
.drawer__links a span {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.drawer__links a:hover { color: var(--clay); padding-left: 0.4rem; }

.drawer__foot {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}
.drawer__foot a:hover { color: var(--clay); }

body.is-locked { overflow: hidden; }

@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .burger { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5.5rem));
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(90% 70% at 84% 0%, rgba(196, 175, 143, 0.22), transparent 62%);
    background-repeat: no-repeat;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__copy h1 { margin: 1.15rem 0 1.5rem; }
.hero__copy h1 > span { display: block; }
.dot { color: var(--clay); }

.hero__sub {
    max-width: 42ch;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

/* Swatch card */
.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.swatch {
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    padding: 0.7rem;
    box-shadow: 0 30px 70px -38px rgba(21, 21, 15, 0.45);
}
.swatch__row {
    position: relative;
    height: clamp(62px, 8.5vw, 92px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    overflow: hidden;
    color: var(--fg);
    background-color: var(--tone);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 4px);
}
.swatch__row + .swatch__row { margin-top: 0.5rem; }
.swatch__row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.22));
    pointer-events: none;
}
.swatch__label,
.swatch__spec {
    position: relative;
    z-index: 1;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}
.swatch__spec { font-size: 0.6rem; opacity: 0.75; letter-spacing: 0.12em; }

.swatch__caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Hero meta strip */
.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.hero__meta > div { padding: 1.4rem 0 1.6rem; }
.hero__meta > div + div {
    border-left: 1px solid var(--line);
    padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.hero__meta span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__meta p { font-size: 0.92rem; color: var(--ink); }

/* Hero load-in */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__visual { animation: rise 1s var(--ease) both; animation-delay: 0.12s; }
.hero__meta { animation: rise 1s var(--ease) both; animation-delay: 0.28s; }

/* ── Marquee ───────────────────────────────────────────── */
.marquee {
    overflow: hidden;
    padding: 1.05rem 0;
    background: var(--paper-2);
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex: none;
}
.marquee__group span {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.marquee__group i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clay);
    opacity: 0.65;
    flex-shrink: 0;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ── About ─────────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.about__text .lead { margin-bottom: 1.25rem; }
.about__text p + p { margin-top: 1rem; max-width: 52ch; }

.specs { border-top: 1px solid var(--line); }
.specs > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.specs dt {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.15rem;
}
.specs dd { font-size: 0.94rem; color: var(--ink); }

/* ── Offerings ─────────────────────────────────────────── */
.offerings {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: clamp(1.5rem, 2.6vw, 2.25rem);
    transition: transform 0.5s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 55px -34px rgba(21, 21, 15, 0.45);
}
.card.is-visible {
    transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.card__num {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--muted);
}
.card__swatch {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background-color: var(--tone);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 3px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.94rem; line-height: 1.65; flex-grow: 1; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.tags li {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 0.3rem 0.65rem;
    line-height: 1.3;
}

/* ── Process ───────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}
.steps li {
    padding: 2rem 1.75rem 0 0;
    border-right: 1px solid var(--line);
}
.steps li:not(:first-child) { padding-left: 1.75rem; }
.steps li:last-child { border-right: none; }

.step__num {
    display: block;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--clay);
}
.steps h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
.steps p { font-size: 0.9rem; line-height: 1.6; }

/* ── Contact ───────────────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.contact__intro h2 { margin: 1.1rem 0 1.15rem; }

.details {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--line);
}
.detail {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.detail span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.2rem;
}
.detail a, .detail p { font-size: 0.96rem; color: var(--ink); }
.detail a { transition: color 0.25s ease; }
.detail a:hover { color: var(--clay); }

/* Form */
.contact__form-wrap {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--line);
}
.form__head h3 { font-size: 1.15rem; }
.form__head p {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.field label {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.field input,
.field textarea {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 18, 30, 0.12);
}
.field textarea { resize: vertical; min-height: 108px; }

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(74, 18, 30, 0.12);
}

.form__note {
    min-height: 1.25em;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--clay);
}

/* Success panel */
.success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 1rem 0;
    text-align: center;
}
.success.open { display: flex; }
.success__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    color: var(--clay);
}
.success__icon svg { width: 24px; height: 24px; }
.success h3 { margin-bottom: 0.6rem; }
.success p { font-size: 0.92rem; max-width: 34ch; }
.success p + p { margin-top: 0.5rem; }
.success strong { color: var(--ink); letter-spacing: 0.06em; }
.success .btn { margin-top: 1.5rem; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--ink);
    color: #A9A69A;
    padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}
.footer__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__wordmark {
    font-family: var(--display);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--paper);
    transition: color 0.3s ease;
}
.footer__wordmark:hover { color: #d3cabdbd; }
.footer__top p {
    max-width: 28ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #8E8B80;
}
.footer__top-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}
.footer__top-actions > p {
    max-width: 28ch;
    text-align: right;
}
.footer__social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #B6B3A7;
    font-size: 0.78rem;
    font-weight: 500;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover {
    border-color: rgba(244, 241, 235, 0.55);
    background: rgba(244, 241, 235, 0.08);
    color: var(--paper);
    transform: translateY(-2px);
}
.footer__social svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 2rem;
    padding: 2.5rem 0 3.5rem;
}
.footer__col iframe {
    width: 100%;
    max-width: 250px;
}
.footer__col h4 {
    margin-bottom: 1rem;
    font-family: var(--sans);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8E8B80;
}
.footer__col a,
.footer__col p {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #B6B3A7;
    transition: color 0.25s ease;
}
.footer__col a:hover { color: var(--paper); }

.footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    color: #8E8B80;
}
.footer__bar p { color: inherit; }
.footer__bar a { transition: color 0.25s ease; }
.footer__bar a:hover { color: var(--paper); }

/* ── Reveal ────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr 0.85fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero__visual { max-width: 520px; width: 100%; }
    .sec-head--split { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
    .sec-head__note { max-width: 46ch; }
    .about__grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .card:last-child { grid-column: span 2; }
    .card:last-child p { max-width: 68ch; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li { border-right: none; padding: 1.75rem 1.5rem 1.75rem 0; }
    .steps li:not(:first-child) { padding-left: 0; }
    .steps li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
    .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero__meta { grid-template-columns: 1fr; }
    .hero__meta > div { padding: 1rem 0; }
    .hero__meta > div + div {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
    }
    .steps { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .card:last-child { grid-column: auto; }
    .card p { max-width: 62ch; }
    .steps li,
    .steps li:nth-child(even) { padding: 1.5rem 0; border-left: none; }
    .steps li + li { border-top: 1px solid var(--line); }
    .steps li:nth-child(-n+2) { border-bottom: none; }
    .step__num { margin-bottom: 1rem; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .detail { grid-template-columns: 6.5rem 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col:last-child { grid-column: span 2; }
}

@media (max-width: 420px) {
    .hero__actions { gap: 1.25rem; }
    .hero__actions .btn { width: 100%; }
    .footer__top { align-items: flex-start; }
    .footer__top-actions { align-items: flex-start; }
    .footer__top-actions > p { text-align: left; }
    .footer__social { flex-wrap: wrap; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__col:last-child { grid-column: auto; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
