/* =====================================================================
   DEV IN THE HOOD — theme 2026
   Paper-light, editorial, brand-red. Data-driven markup + GSAP.
   ===================================================================== */

/* ------------------------------------------------------------------ *
   1. Tokens
 * ------------------------------------------------------------------ */
:root {
    /* Brand — taken straight from the logo SVG */
    --red: #ea1d0f;          /* large type, fills, marks */
    --red-ink: #c2160a;      /* small text + small fills (contrast on paper) */
    --rose: #e97381;

    /* Surfaces — paper */
    --bg: #f4f1ea;
    --bg-2: #eae6dd;
    --bg-3: #ded8cc;

    /* Ink — solid greys, so contrast holds on paper */
    --ink: #16130f;
    --ink-2: #4a443c;
    --ink-3: #6f685d;
    --line: rgba(22, 19, 15, .14);
    --line-2: rgba(22, 19, 15, .06);

    /* Type */
    --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

    --fs-mono: .6875rem;
    --fs-body: clamp(.9375rem, .35vw + .85rem, 1.0625rem);
    --fs-lead: clamp(1.2rem, 1.3vw + .9rem, 1.85rem);
    --fs-h3: clamp(1.5rem, 2vw + 1rem, 2.75rem);
    --fs-hero: clamp(3rem, 12.4vw, 13.5rem);

    /* Space */
    --gut: clamp(1.25rem, 3.4vw, 4.5rem);
    --sec: clamp(4.5rem, 11vh, 9.5rem);
    --max: 1680px;
    --radius: 12px;

    /* Screenshots are often near-white; on paper they need an edge and a
       little lift, otherwise the frame looks empty. */
    --frame-line: rgba(22, 19, 15, .22);
    --frame-shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 14px 30px -14px rgba(22, 19, 15, .28);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);

    --head-h: 5.25rem;
}

/* ------------------------------------------------------------------ *
   2. Reset / base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.55;
    font-variation-settings: 'wdth' 100, 'wght' 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }

h1, h2, h3, h4, h5, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
}

button { cursor: pointer; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 4px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #c9c2b4; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ------------------------------------------------------------------ *
   3. Type helpers
 * ------------------------------------------------------------------ */
.display {
    font-variation-settings: 'wdth' 112, 'wght' 760;
    line-height: .84;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

/* The accent word — same family, hairline weight, exactly like the
   thin "IN" of the logo. */
.thin {
    font-variation-settings: 'wdth' 100, 'wght' 200;
    letter-spacing: -.02em;
    text-transform: lowercase;
    color: var(--ink-3);
}

.mono {
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 400;
}

.accent { color: var(--red); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* ------------------------------------------------------------------ *
   4. Layout
 * ------------------------------------------------------------------ */
.shell {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.section { position: relative; padding-block: var(--sec); }
.section--flush { padding-block: 0; }

.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 1.15rem;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sec-head__label { display: flex; gap: .75rem; color: var(--ink-3); }
.sec-head__label b { color: var(--red-ink); font-weight: 400; }

/* Decorative vertical hairlines */
.grid-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gut);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.grid-lines span { border-left: 1px solid var(--line-2); }
.grid-lines span:last-child { border-right: 1px solid var(--line-2); }

@media (max-width: 800px) { .grid-lines { grid-template-columns: repeat(2, 1fr); } }

/* Paper grain */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 9;
    pointer-events: none;
    opacity: .05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
    will-change: transform;
}

/* ------------------------------------------------------------------ *
   5. Loader + page veil
 * ------------------------------------------------------------------ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: grid;
    place-items: center;
}

.loader__mark { width: clamp(84px, 11vw, 132px); }
/* Hidden before DrawSVG takes over, so the outline never flashes in
   fully-drawn for one frame. */
.loader__mark path { fill: none; stroke-width: 6; stroke-dasharray: 0 999; }
.loader__mark .mark-l { stroke: var(--red); }
.loader__mark .mark-r { stroke: var(--rose); }

.loader__count {
    position: absolute;
    bottom: var(--gut);
    right: var(--gut);
    font-family: var(--mono);
    font-size: clamp(1.75rem, 6vw, 4rem);
    letter-spacing: -.04em;
    color: var(--ink);
}

.loader__count sup { font-size: .3em; vertical-align: super; color: var(--red-ink); }

.loader__word {
    position: absolute;
    bottom: var(--gut);
    left: var(--gut);
    color: var(--ink-3);
}

/* The page-to-page veil: a sheet of paper sliding over the content,
   with a hairline of brand red on its edge. No colour flood. */
.veil {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: var(--bg-2);
    pointer-events: none;
    transform: translateY(100%);
    display: grid;
    place-items: center;
}

.veil::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--red);
}

.veil__mark { width: 52px; opacity: 0; }
.veil__mark .mark-l { fill: var(--red); }
.veil__mark .mark-r { fill: var(--rose); }

/* ------------------------------------------------------------------ *
   6. Header + menu
 * ------------------------------------------------------------------ */
.head {
    position: fixed;
    inset: 0 0 auto;
    /* Above .menu, so the burger and logo stay usable while it is open. */
    z-index: 46;
    height: var(--head-h);
    display: flex;
    align-items: center;
}

.head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg) 40%, rgba(244, 241, 234, 0));
    opacity: 0;
    transition: opacity .45s var(--ease);
}

.head.is-stuck::before { opacity: 1; }

.head__inner {
    position: relative;
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gut);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
}

.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }

.brand__mark { width: 2.1rem; }
.brand__mark path { transition: fill .4s var(--ease); }
.brand__mark .mark-l { fill: var(--red); }
.brand__mark .mark-r { fill: var(--rose); }
.brand:hover .brand__mark .mark-l { fill: var(--rose); }
.brand:hover .brand__mark .mark-r { fill: var(--red); }

.brand__word { width: clamp(100px, 8.5vw, 126px); }

.head__nav { margin-left: auto; }
.head__nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.75rem); }

.navlink {
    position: relative;
    display: inline-block;
    padding-block: .35rem;
    color: var(--ink-2);
    transition: color .35s var(--ease);
}

.navlink::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: .1rem;
    width: 100%;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}

.navlink:hover, .navlink[aria-current='page'] { color: var(--ink); }
.navlink:hover::after, .navlink[aria-current='page']::after { transform: scaleX(1); }

.head__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink-3);
    padding-left: clamp(1rem, 2.4vw, 2.75rem);
    border-left: 1px solid var(--line);
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f9e52;
    box-shadow: 0 0 0 0 rgba(31, 158, 82, .55);
}

/* Burger */
.burger {
    display: none;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    position: relative;
}

.burger span {
    position: absolute;
    left: 25%;
    width: 50%;
    height: 1.5px;
    background: var(--ink);
    transition: transform .5s var(--ease), top .35s var(--ease);
}

.burger span:nth-child(1) { top: 42%; }
.burger span:nth-child(2) { top: 58%; }
.burger.is-open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 50%; transform: rotate(-45deg); }

.menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--head-h) var(--gut) var(--gut);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
}

.menu__list li { overflow: hidden; }

.menu__list a {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding-block: .08em;
    font-size: clamp(2.5rem, 11vw, 4.5rem);
    transition: color .4s var(--ease);
}

.menu__list a:hover { color: var(--red); }

.menu__foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: var(--ink-3);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
    .head__nav, .head__meta { display: none; }
    .burger { display: block; }
}

/* Scroll progress */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    height: 2px;
    width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
}

/* ------------------------------------------------------------------ *
   7. Cursor
 * ------------------------------------------------------------------ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 95;
    pointer-events: none;
}

.cursor__dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
    transform: translate(-50%, -50%);
}

.cursor__ring {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(22, 19, 15, .35);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(.6);
    display: grid;
    place-items: center;
}

.cursor__label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
}

@media (hover: none), (max-width: 860px) { .cursor { display: none; } }

/* ------------------------------------------------------------------ *
   8. Hero
 * ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--head-h) + 4vh);
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: 45%;
    left: 55%;
    width: 80vmax;
    height: 80vmax;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(233, 115, 129, .22), rgba(233, 115, 129, 0) 60%);
    pointer-events: none;
    will-change: transform;
}

.hero__mark {
    position: absolute;
    top: 15%;
    right: 4%;
    width: clamp(110px, 19vw, 290px);
    opacity: .13;
    will-change: transform;
}

.hero__mark .mark-l { fill: var(--red); }
.hero__mark .mark-r { fill: var(--rose); }

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink-3);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__kicker i { flex: 1 1 auto; height: 1px; background: var(--line); max-width: 11rem; }

.hero__title { font-size: var(--fs-hero); position: relative; z-index: 2; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__foot {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: clamp(2rem, 5vh, 3.5rem);
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.hero__pitch {
    max-width: 46ch;
    font-size: var(--fs-lead);
    line-height: 1.32;
    letter-spacing: -.015em;
    color: var(--ink-2);
}

.hero__scroll { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); white-space: nowrap; }
.hero__scroll svg { width: 1rem; stroke: var(--red); }

@media (max-width: 720px) {
    .hero__foot { grid-template-columns: 1fr; }
    .hero__scroll { display: none; }
}

/* ------------------------------------------------------------------ *
   9. Marquee
 * ------------------------------------------------------------------ */
.marquee {
    position: relative;
    overflow: hidden;
    padding-block: clamp(.85rem, 2vw, 1.6rem);
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    display: flex;
    white-space: nowrap;
}

.marquee__row { display: flex; flex: 0 0 auto; will-change: transform; }

.marquee__item {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
    padding-inline: clamp(.6rem, 1.3vw, 1.25rem);
    font-size: clamp(1.25rem, 2.8vw, 2.5rem);
    font-variation-settings: 'wdth' 108, 'wght' 600;
    text-transform: uppercase;
    letter-spacing: -.02em;
    color: var(--ink);
}

.marquee__item i {
    width: .4em;
    height: .4em;
    background: var(--red);
    border-radius: 50%;
    flex: 0 0 auto;
}

.marquee__item:nth-child(even) {
    color: transparent;
    -webkit-text-stroke: 1px var(--ink-3);
}

/* ------------------------------------------------------------------ *
   10. Horizontal showcase — pinned, scrolls sideways while you
       scroll down (used on the home page and for phone strips).
 * ------------------------------------------------------------------ */
.hshow {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    overflow: hidden;
    padding-block: clamp(2rem, 6vh, 4rem);
}

.hshow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.hshow__head p { color: var(--ink-3); display: flex; gap: .75rem; }
.hshow__head b { color: var(--red-ink); font-weight: 400; }

.hshow__wrap { overflow: hidden; }

.hshow--tight { min-height: 76svh; }

.hshow__track {
    display: flex;
    align-items: stretch;
    gap: clamp(1rem, 2.2vw, 2.25rem);
    padding-inline: var(--gut);
    width: max-content;
    will-change: transform;
}

.hcard { width: clamp(240px, 27vw, 420px); flex: 0 0 auto; display: block; }

.hcard__media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    background: var(--bg-2);
    box-shadow: var(--frame-shadow);
}

.hcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.hcard:hover .hcard__media img { transform: scale(1.04); }

.hcard__foot {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
    padding-top: .9rem;
    margin-top: .9rem;
    border-top: 1px solid var(--line);
}

.hcard__num { display: block; color: var(--ink-3); }

.hcard__title {
    display: block;
    margin-top: .3rem;
    font-size: clamp(1.15rem, 1.7vw, 1.85rem);
    font-variation-settings: 'wdth' 104, 'wght' 660;
    line-height: 1.04;
    letter-spacing: -.03em;
    text-transform: uppercase;
    transition: color .4s var(--ease);
}

.hcard:hover .hcard__title { color: var(--red); }
.hcard__meta { display: block; text-align: right; color: var(--ink-3); white-space: nowrap; }

.hcard__award {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    color: var(--red-ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hcard__award::before {
    content: '';
    width: .5rem;
    height: .5rem;
    background: var(--rose);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* Closing panel of the strip */
.hcard--end {
    width: clamp(220px, 20vw, 300px);
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: clamp(1.25rem, 2vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
}

.hcard--end span:first-child {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-variation-settings: 'wdth' 104, 'wght' 660;
    line-height: 1;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.hcard--end:hover { border-color: var(--red); }

.hshow__hint {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink-3);
}

.hshow__hint i { width: 2.5rem; height: 1px; background: var(--red); }

/* Without pinning (touch, narrow, reduced motion) it becomes a
   plain swipeable strip. */
.hshow--static { min-height: 0; }
.hshow--static .hshow__wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.hshow--static .hshow__track { transform: none !important; }

/* While pinned the section owns the screen, so nothing shows underneath. */
.hshow--pinned { min-height: 100svh; }

.hshow--nohint .hshow__hint { display: none; }

/* ------------------------------------------------------------------ *
   11. About
 * ------------------------------------------------------------------ */
.about__lead {
    font-size: clamp(1.4rem, 3.2vw, 2.9rem);
    line-height: 1.18;
    letter-spacing: -.03em;
    font-variation-settings: 'wdth' 100, 'wght' 420;
    max-width: 34ch;
}

.about__cols {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.about__body { display: grid; gap: 1.15rem; max-width: 42ch; color: var(--ink-2); }

.facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.facts li { background: var(--bg); padding: clamp(1.1rem, 2.2vw, 1.9rem); display: grid; gap: .3rem; }

.facts b {
    display: block;
    font-size: clamp(1.85rem, 4.4vw, 3.4rem);
    font-variation-settings: 'wdth' 108, 'wght' 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.facts span { color: var(--ink-3); }

@media (max-width: 860px) { .about__cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
   12. Services
 * ------------------------------------------------------------------ */
.svc { border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }

.svc__head {
    width: 100%;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 1rem;
    padding-block: clamp(1.15rem, 2.4vw, 2rem);
    text-align: left;
}

.svc__num { display: block; color: var(--ink-3); }

.svc__title {
    font-size: var(--fs-h3);
    font-variation-settings: 'wdth' 104, 'wght' 620;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-transform: uppercase;
    transition: color .4s var(--ease);
}

.svc__item:hover .svc__title, .svc__item.is-open .svc__title { color: var(--red); }

.svc__plus { display: block; position: relative; justify-self: end; width: 1.25rem; height: 1.25rem; }

.svc__plus::before, .svc__plus::after {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: var(--ink-2);
    transition: transform .5s var(--ease);
}

.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0deg); }

.svc__panel { overflow: hidden; height: 0; }

.svc__panel-in {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: clamp(1.35rem, 2.6vw, 2.25rem);
}

.svc__desc { max-width: 52ch; color: var(--ink-2); }
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

.svc__tags span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red-ink);
    border: 1px solid rgba(194, 22, 10, .28);
    border-radius: 100px;
    padding: .25rem .6rem;
}

@media (max-width: 720px) {
    .svc__head { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; }
    .svc__panel-in { grid-template-columns: 1fr; }
    .svc__panel-in > :first-child { display: none; }
}

/* ------------------------------------------------------------------ *
   13. Buttons + pills
 * ------------------------------------------------------------------ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.75rem;
    border: 1px solid var(--ink);
    border-radius: 100px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    isolation: isolate;
    transition: color .35s var(--ease), border-color .35s var(--ease);
    will-change: transform;
}

.btn__fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: translateY(101%);
}

.btn:hover { color: #fff; border-color: var(--red); }
.btn svg { width: .8rem; fill: currentColor; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid { border-color: var(--red); color: #fff; }
.btn--solid .btn__fill { transform: translateY(0); }
.btn--solid:hover { color: var(--ink); border-color: var(--ink); }

.pill {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: .25rem .6rem;
}

/* ------------------------------------------------------------------ *
   14. CTA + footer
 * ------------------------------------------------------------------ */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__title { font-size: clamp(2.5rem, 10.5vw, 10rem); white-space: pre-line; }

.cta__mail {
    display: inline-block;
    margin-top: clamp(1.25rem, 3.5vw, 2.5rem);
    font-size: clamp(1rem, 1.9vw, 1.4rem);
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding-bottom: .25rem;
    transition: color .4s var(--ease), border-color .4s var(--ease);
}

.cta__mail:hover { color: var(--red); border-color: var(--red); }

.foot { border-top: 1px solid var(--line); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }

.foot__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.foot__mail {
    font-size: var(--fs-lead);
    letter-spacing: -.02em;
    margin-top: .45rem;
    margin-bottom: .45rem;
}

.foot__mark { width: 3rem; }
.foot__mark .mark-l { fill: var(--red); }
.foot__mark .mark-r { fill: var(--rose); }

.foot__socials { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: flex-end; }

.foot__socials a { position: relative; color: var(--ink-2); transition: color .35s var(--ease); }

.foot__socials a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.foot__socials a:hover { color: var(--ink); }
.foot__socials a:hover::after { transform: scaleX(1); }

.foot__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
}

.to-top { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); white-space: nowrap; }
.to-top svg { width: .7rem; fill: currentColor; transform: rotate(-90deg); }
.to-top:hover { color: var(--red); }

@media (max-width: 860px) {
    .foot__top { grid-template-columns: 1fr; }
    .foot__socials { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ *
   15. Page head (work / contact / project)
 * ------------------------------------------------------------------ */
.page-head {
    padding-top: calc(var(--head-h) + clamp(2.5rem, 8vh, 6.5rem));
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-head__title { font-size: clamp(2.75rem, 10.5vw, 10rem); }

.page-head__sub {
    max-width: 46ch;
    margin-top: 1.4rem;
    font-size: var(--fs-lead);
    line-height: 1.32;
    letter-spacing: -.015em;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------ *
   16. Work grid (work.html)
 * ------------------------------------------------------------------ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-block: 1.35rem;
    border-block: 1px solid var(--line);
}

.filters button {
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: .5rem 1rem;
    transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}

.filters button:hover { color: var(--ink); border-color: var(--ink-3); }

.filters button.is-active { color: #fff; background: var(--red-ink); border-color: var(--red-ink); }

.filters span { margin-left: auto; align-self: center; color: var(--ink-3); }

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
    padding-top: clamp(2.25rem, 4.5vw, 4rem);
}

.card { display: block; }
.card.is-hidden { display: none; }

/* A paper mat around the screenshot: the image sits *in* the page
   instead of dominating it. */
.card__media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--bg-2);
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    box-shadow: var(--frame-shadow);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
    will-change: transform;
}

.card:hover .card__media img { transform: scale(1.04); }

.card__cta {
    position: absolute;
    inset: auto 1rem 1rem auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--red-ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .5rem .85rem;
    border-radius: 100px;
    transform: translateY(260%);
    transition: transform .55s var(--ease);
}

.card:hover .card__cta { transform: translateY(0); }

.card__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.card__title {
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    font-variation-settings: 'wdth' 104, 'wght' 650;
    line-height: 1.05;
    letter-spacing: -.03em;
    text-transform: uppercase;
    transition: color .4s var(--ease);
}

.card:hover .card__title { color: var(--red); }
.card__meta { color: var(--ink-3); text-align: right; white-space: nowrap; }

@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
   17. Project detail
 * ------------------------------------------------------------------ */
.pj-head {
    padding-top: calc(var(--head-h) + clamp(2.5rem, 8vh, 6.5rem));
    padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}

.pj-head__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.1rem;
    color: var(--ink-3);
    margin-bottom: 1.1rem;
}

.pj-head__kicker i { width: 2.5rem; height: 1px; background: var(--red); }
.pj-head__title { font-size: clamp(2.5rem, 9vw, 8.5rem); max-width: 22ch; }
.pj-head__title .line { display: block; overflow: hidden; }
.pj-head__title .line > span { display: block; }

/* Contained cover — no full-bleed hero. */
.pj-cover { position: relative; }

.pj-cover figure {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    aspect-ratio: 16 / 8;
    background: var(--bg-2);
    box-shadow: var(--frame-shadow);
}

.pj-cover img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.pj-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.pj-meta div { background: var(--bg); padding: clamp(.85rem, 1.5vw, 1.25rem); display: grid; gap: .35rem; }

.pj-meta dt {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pj-meta dd { margin: 0; font-variation-settings: 'wght' 500; }
.pj-meta dd a { border-bottom: 1px solid var(--red); }
.pj-meta dd a:hover { color: var(--red); }

@media (max-width: 780px) { .pj-meta { grid-template-columns: repeat(2, 1fr); } }

/* Lead */
.pj-lead { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.pj-lead__text {
    font-size: clamp(1.05rem, 1.1vw + .8rem, 1.5rem);
    line-height: 1.44;
    letter-spacing: -.01em;
}

.pj-lead__side { display: grid; gap: 1.75rem; }
.pj-stack { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 860px) { .pj-lead { grid-template-columns: 1fr; } }

/* Content blocks — images stay inside a comfortable measure */
.pj-block { padding-block: clamp(1.75rem, 4vw, 3.25rem); }

.pj-figure { position: relative; margin-inline: auto; max-width: 58rem; }

.pj-figure__frame {
    display: block;
    overflow: hidden;
    /* Reserve a box before the image lands. Without a height, a lazy image
       occupies 0px and the document grows as it arrives, which leaves every
       ScrollTrigger measured against a shorter page. Once loaded, the image
       (height: auto) sets the real height and this ratio stops applying. */
    aspect-ratio: 16 / 9;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    background: var(--bg-2);
    box-shadow: var(--frame-shadow);
}

.pj-figure img { width: 100%; will-change: transform; }

.pj-figure--wide { max-width: 100%; }

.pj-figure figcaption { display: flex; gap: .7rem; padding-top: .8rem; color: var(--ink-3); }
.pj-figure figcaption::before { content: '↳'; color: var(--red); }

.pj-text h3 {
    font-size: clamp(1.6rem, 3.8vw, 3.25rem);
    font-variation-settings: 'wdth' 104, 'wght' 640;
    line-height: 1.03;
    letter-spacing: -.035em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    white-space: pre-line;
}

.pj-text p {
    max-width: 66ch;
    color: var(--ink-2);
    font-size: var(--fs-lead);
    line-height: 1.42;
    letter-spacing: -.01em;
}

.pj-text p + p { margin-top: 1rem; }
.pj-text--center { text-align: center; }
.pj-text--center p { margin-inline: auto; }

/* Phone strip — pinned horizontal, same engine as the home showcase */
.pj-shots__item { width: clamp(150px, 15vw, 240px); flex: 0 0 auto; }

.pj-shots__item .frame {
    display: block;
    overflow: hidden;
    aspect-ratio: 12 / 25;   /* same reservation, phone-capture ratio */
    border: 1px solid var(--frame-line);
    border-radius: 18px;
    background: var(--bg-2);
    box-shadow: var(--frame-shadow);
}

.pj-shots__item img { width: 100%; }

.pj-shots__item figcaption {
    padding-top: .7rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Quote */
.pj-quote {
    max-width: 28ch;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-variation-settings: 'wdth' 100, 'wght' 300;
    line-height: 1.14;
    letter-spacing: -.03em;
}

.pj-quote::before {
    content: '';
    display: block;
    width: 2.25rem;
    height: 1px;
    background: var(--red);
    margin: 0 auto clamp(1.35rem, 2.6vw, 2.25rem);
}

.pj-quote cite {
    display: block;
    margin-top: 1.35rem;
    font: 400 var(--fs-mono)/1.6 var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--ink-3);
}

/* Next project */
.pj-next { display: block; border-top: 1px solid var(--line); }

.pj-next__in {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.pj-next__label { display: block; color: var(--ink-3); margin-bottom: .7rem; }

.pj-next__title {
    display: block;
    font-size: clamp(1.85rem, 6vw, 5.5rem);
    transition: color .4s var(--ease);
}

.pj-next:hover .pj-next__title { color: var(--red); }

.pj-next__thumb {
    display: block;
    width: clamp(120px, 18vw, 260px);
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--frame-line);
    border-radius: var(--radius);
    box-shadow: var(--frame-shadow);
}

.pj-next__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pj-next:hover .pj-next__thumb img { transform: scale(1.05); }

@media (max-width: 640px) {
    .pj-next__in { grid-template-columns: 1fr; }
    .pj-next__thumb { width: 100%; }
}

/* ------------------------------------------------------------------ *
   18. Contact
 * ------------------------------------------------------------------ */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
    padding-bottom: var(--sec);
}

.contact__intro { display: grid; gap: 1.85rem; }

.contact__hello {
    font-size: var(--fs-lead);
    line-height: 1.32;
    letter-spacing: -.015em;
}
.contact__q { display: grid; gap: .8rem; }

.contact__q li {
    counter-increment: list-item;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .5rem;
    color: var(--ink-2);
}

.contact__q li::before {
    content: counter(list-item, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--red-ink);
    padding-top: .35rem;
}

.info {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.info div { background: var(--bg); padding: 1.05rem 1.25rem; display: grid; gap: .3rem; }

.info dt {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.info dd { margin: 0; font-variation-settings: 'wght' 500; }
.info dd a:hover { color: var(--red); }

.form { display: grid; gap: clamp(1.35rem, 2.6vw, 2.25rem); }
.field { position: relative; display: grid; gap: .6rem; }
.field label { color: var(--ink-2); }

.field input, .field textarea {
    width: 100%;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    letter-spacing: -.01em;
    transition: border-color .4s var(--ease);
    resize: vertical;
}

.field textarea { min-height: 8.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--red); }

.field__line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.form__note { color: var(--ink-3); }
.form__note.is-ok { color: #157f3e; }
.form__note.is-err { color: var(--red-ink); }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
   18b. Touch / narrow: the pinned strips travel sideways here too. They
        should fill the phone screen rather than float in the middle of it,
        so the items are sized from the viewport HEIGHT — a width-derived
        size leaves a third of the screen used and the rest empty.
        Declared after the base rules on purpose: same specificity, last
        one wins. Desktop is untouched.
 * ------------------------------------------------------------------ */
@media (max-width: 860px) {
    .hshow--tight { min-height: 100svh; }

    .hshow {
        padding-block: clamp(1rem, 2.5vh, 1.75rem);
        gap: clamp(.75rem, 2vh, 1.25rem);
    }

    /* Project cards: taller media, near full-width, next card still peeking */
    .hcard { width: min(88vw, 380px); }
    .hcard__media { aspect-ratio: 1 / 1; }
    .hcard--end { width: min(62vw, 250px); }

    /* Phone screenshots: sized from the viewport HEIGHT so the strip stays
       centred whatever the mobile browser chrome is doing. Both numbers are
       svh-based (28/58 ≈ the 0.48 ratio of the captures), which keeps the
       track width deterministic — deriving it from the images would make it
       depend on their load order, and the pin decision happens before that. */
    .pj-shots__item { width: 28svh; }

    .pj-shots__item .frame { height: 58svh; }

    .pj-shots__item .frame img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/* ------------------------------------------------------------------ *
   19. Small screens — the display type is very wide, so it gets its
       own scale to stay inside the gutters.
 * ------------------------------------------------------------------ */
@media (max-width: 560px) {
    .hero__kicker { flex-wrap: wrap; gap: .35rem 1.25rem; }
    .hero__kicker i { display: none; }
    .hero__title { font-size: 11vw; }
    .page-head__title { font-size: 10vw; }
    .pj-head__title { font-size: 9.5vw; }
    .cta__title { font-size: 9vw; }
    .pj-next__title { font-size: 9vw; }
    .display { font-variation-settings: 'wdth' 105, 'wght' 760; }
}

/* ------------------------------------------------------------------ *
   20. Reveal primitives (GSAP drives them; CSS holds the start state)
 * ------------------------------------------------------------------ */
.js [data-reveal='up'] { opacity: 0; transform: translateY(2.25rem); }
.js [data-reveal='fade'] { opacity: 0; }
.js [data-reveal='clip'] { clip-path: inset(0 0 100% 0); }
.js [data-reveal='scale'] img { transform: scale(1.1); }

/* ------------------------------------------------------------------ *
   21. Reduced motion / no-JS
 * ------------------------------------------------------------------ */
.no-js .loader, .no-js .cursor, .no-js .grain, .no-js .veil { display: none; }

@media (prefers-reduced-motion: reduce) {
    .grain { display: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .js [data-reveal='scale'] img { transform: none !important; }
}
