:root {
    --ink: #0d0d0d;
    --dark: #0f0f0f;
    --gutter: 40px;
    --cols: repeat(4, 1fr);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Scrollbar: thin, square, black thumb to match the boxy buttons */
@supports (-moz-appearance: none) { html { scrollbar-width: auto; scrollbar-color: #0d0d0d #f2f2f2; } }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: #0d0d0d; border: 3px solid #f2f2f2; border-radius: 0; min-height: 60px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
::-webkit-scrollbar-button { display: none; }
body { font-family: Inter, system-ui, sans-serif; background: var(--dark); color: #fff; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; letter-spacing: -.01em; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Shared 4-column grid: nav, guides and hero all line up on it */
.guides, .nav, .hero__grid { padding: 0 var(--gutter); display: grid; grid-template-columns: var(--cols); }

/* Guide lines sit on each column edge */
.guides { position: fixed; inset: 0; z-index: 3; pointer-events: none; grid-template-columns: var(--cols); }
.guides span { border-left: 1px solid rgba(160,160,160,.22); }
.guides span:last-child { position: absolute; right: var(--gutter); top: 0; bottom: 0; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 46px; align-items: center; font-weight: 500; font-size: 14px; }
.nav__logo { font-size: 20px; font-weight: 500; letter-spacing: -.05em; }
.nav__meta { padding-left: 2px; }
.nav__toggle { justify-self: end; display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.plus { width: 15px; height: 15px; border: 1.5px solid currentColor; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%,-50%); transition: transform .3s; }
.plus::before { width: 7px; height: 1.5px; }
.plus::after { width: 1.5px; height: 7px; }
.menu-open .plus::after { transform: translate(-50%,-50%) rotate(90deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--dark); display: flex; align-items: flex-end; padding: 0 var(--gutter) 6vh; clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.menu-open .menu { clip-path: inset(0); }
.menu ul { position: relative; z-index: 1; }
.menu a { display: block; font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; color: #fff; opacity: .6; transition: opacity .2s; }
.menu a:hover { opacity: 1; }
/* Photo carousel behind the menu links, kept dim so the links stay readable */
.menu__bg { position: absolute; inset: 0; overflow: hidden; }
.menu__bg img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.menu__bg img.is-active { opacity: 1; transform: scale(1); }
.menu__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.85) 30%, rgba(10,10,10,.35) 65%, rgba(10,10,10,0) 100%); }
/* While the menu is open: white nav, and only the logo + Menu button stay */
.menu-open .nav { color: #fff; }
.menu-open .nav__meta { opacity: 0; }

/* Button: label block + square arrow block */
.btn { display: flex; height: 52px; gap: 4px; font-weight: 500; font-size: 16px; }
.btn__label { flex: 1; background: #fff; color: var(--ink); padding: 0 20px; display: flex; align-items: center; }
.btn__arrow { width: 52px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 20px; transition: background .25s, color .25s; }
.btn:hover .btn__arrow { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); filter: grayscale(.35); transition: opacity 1.2s ease, transform 6s ease-out; }
.hero__bg img.is-active { opacity: 1; transform: scale(1); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.45) 100%); }

.hero__grid { position: relative; z-index: 2; height: 100%; padding-top: 120px; padding-bottom: 40px; grid-template-rows: 1fr auto; }

.hero__main { grid-column: 1 / 4; }
.hero__word { font-size: clamp(110px, 15.5vw, 300px); font-weight: 500; letter-spacing: -.075em; line-height: .78; margin-left: -.05em; }
.hero__word sup { font-size: .72em; vertical-align: top; position: relative; top: -.02em; margin-left: .02em; }
.hero__tagline { margin-top: 40px; max-width: 440px; font-size: clamp(17px, 1.15vw, 20px); font-weight: 500; line-height: 1.3; }

.hero__side { grid-column: 4; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 0; padding-left: 1px; }
.hero__list { font-size: 14px; font-weight: 500; line-height: 1.6; padding-top: 4px; }
.hero__list span { opacity: .6; }
.hero__side > .reveal:nth-child(2) { margin-top: 160px; }

.slider { margin-top: auto; }
.slider__head { display: flex; justify-content: space-between; font-weight: 500; font-size: 16px; margin-bottom: 8px; }
.slider__count { font-size: 13px; opacity: .8; }
.slider__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slider__thumbs button { aspect-ratio: 4/3; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; opacity: .6; transition: opacity .3s, outline-color .3s; }
.slider__thumbs button.is-active, .slider__thumbs button:hover { opacity: 1; outline-color: #fff; }

.hero__trust { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; line-height: 1.35; }
.hero__trust p { max-width: 180px; }
.avatars { display: flex; flex: none; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -14px; }
.avatars img:first-child { margin-left: 0; }

.logos { grid-column: 2 / 4; grid-row: 2; align-self: center; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; gap: 56px; width: max-content; animation: logos 28s linear infinite; }
.logos__track span { font-size: 26px; font-weight: 600; letter-spacing: -.04em; font-style: italic; opacity: .9; white-space: nowrap; }
@keyframes logos { to { transform: translateX(-50%); } }

/* Light sections */
.light { background: #fff; color: var(--ink); position: relative; z-index: 2; }
.nav { transition: color .3s; }
.nav--dark { color: var(--ink); }
.grid4 { padding: 0 var(--gutter); display: grid; grid-template-columns: var(--cols); }
.link-arrow { font-weight: 500; font-size: 16px; display: inline-flex; gap: 6px; }
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(4px); }
.eyebrow { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; height: fit-content; }
.eyebrow::before { content: ""; width: 5px; height: 5px; background: #bbb; }

/* About */
.about { padding-top: 85px; min-height: 100svh; }
.about .grid4 { min-height: calc(100svh - 85px); grid-template-rows: auto auto 1fr; }
.about .grid4 { row-gap: 0; }
.about .eyebrow { grid-column: 1; padding-top: 0; }
.about__copy { grid-column: 2 / 5; padding-bottom: 80px; }
.about__lead { font-size: clamp(36px, 4.4vw, 82px); font-weight: 500; letter-spacing: -.045em; line-height: 1; max-width: 1150px; margin-top: -4px; }
.about__body { margin-top: 32px; max-width: 545px; font-size: 19px; line-height: 1.38; color: #777; }
.stat { background: #f5f5f5; min-height: 260px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.about__copy + .stat { grid-column: 2; }
.nav__meta { transition: opacity .3s; }
.nav--past-hero .nav__meta { opacity: 0; }
.stat__num { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat__suffix { color: #888; font-weight: 400; }
.stat__label { font-size: 18px; color: #777; }
.about__more { grid-column: 2; align-self: end; padding: 80px 0 16px; }
.about__copyright { grid-column: 4; align-self: end; padding: 80px 0 16px; font-size: 14px; color: #777; }

/* Banner */
.banner { padding: 0 var(--gutter); }
.banner__frame { position: relative; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.banner__img { position: absolute; inset: -8% 0; height: 116%; filter: grayscale(1) contrast(1.05); will-change: transform; }
.banner__text { position: relative; display: flex; align-items: center; gap: 48px; white-space: nowrap; color: #fff; mix-blend-mode: difference; will-change: transform; }
.banner__text span { font-size: clamp(64px, 7.5vw, 150px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.banner__text i { width: 30px; height: 30px; background: currentColor; transform: rotate(45deg); flex: none; }

/* Projects */
.projects { padding: 150px 0 120px; }
.projects__title { text-align: center; font-size: clamp(56px, 7.2vw, 140px); font-weight: 500; letter-spacing: -.055em; line-height: 1; margin-bottom: 100px; }
.projects__grid { row-gap: 120px; align-items: start; }
.project { display: block; }
.project__img { overflow: hidden; aspect-ratio: 16 / 9; }
.project:hover .project__img img { transform: scale(1.05); }

/* Curtain: image is unveiled top → bottom as it scrolls into view */
.project.reveal { opacity: 1; transform: none; }
.project__img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.76,0,.24,1); }
.project__img img { --s: 1.25; transition: scale 1.6s cubic-bezier(.2,.7,.2,1); scale: var(--s); }
.project.is-in .project__img { clip-path: inset(0); }
.project.is-in .project__img img { --s: 1; }
.project.is-in:hover .project__img img { --s: 1.05; }

/* Scroll parallax: images are taller than their frame and drift inside it (--py set in JS) */
[data-parallax] { overflow: hidden; }
[data-parallax] img { height: 120%; transform: translate3d(0, var(--py, -8.33%), 0); will-change: transform; }
.project__meta { opacity: 0; transform: translateY(12px); transition: opacity .8s ease .7s, transform .8s ease .7s; }
.project.is-in .project__meta { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .project__img { clip-path: none; }
    .project__img img { scale: 1; }
    [data-parallax] img { height: 100%; transform: none; }
    .project__meta { opacity: 1; transform: none; }
}
.project__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-size: 16px; font-weight: 500; }
.project__meta span:last-child { font-size: 14px; font-weight: 400; color: #888; }
.project--1 { grid-column: 2 / 4; grid-row: 1; }
.project--2 { grid-column: 1; grid-row: 2; }
.project--3 { grid-column: 3 / 5; grid-row: 2; }
.project--4 { grid-column: 1 / 3; grid-row: 3; }
.project--5 { grid-column: 4; grid-row: 3; align-self: end; }

/* Dark sections */
.dark { background: var(--dark); color: #fff; position: relative; z-index: 2; --line: #262626; --muted: #8a8a8a; }
.dark .eyebrow::before { background: #666; }
.section-title { font-size: clamp(52px, 4.6vw, 88px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-top: 30px; }
.section-desc { margin-top: 32px; max-width: 470px; font-size: 18px; line-height: 1.3; color: var(--muted); }

/* Services */
.services__head { padding-top: 34px; padding-bottom: 80px; border-bottom: 1px solid var(--line); align-items: end; }
.services__intro { grid-column: 1; }
.services__intro .section-title { white-space: nowrap; }
.services__cta { grid-column: 3; padding-bottom: 6px; }
.services__mark { grid-column: 4; font-size: 14px; color: var(--muted); padding-bottom: 6px; }
/* Stacked cards: each service pins, the next slides up over it (--cover set in JS, 0 → 1) */
.service { display: grid; grid-template-columns: 1fr 1fr; margin: 0 var(--gutter); border-top: 1px solid var(--line);
    position: sticky; top: 0; height: 100svh; background: var(--dark); overflow: hidden; }
.service__text { position: relative; }
.service__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; max-width: 700px;
    opacity: calc(1 - var(--cover, 0) * .9); translate: 0 calc(var(--cover, 0) * -60px); }
.service__img img { filter: brightness(calc(1 - var(--cover, 0) * .6)); scale: calc(1 + var(--cover, 0) * .08); }
.service__num { font-size: 24px; color: var(--muted); }
.service__title { font-size: clamp(32px, 2.3vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-top: 10px; }
.service__desc { margin-top: 24px; max-width: 500px; font-size: 18px; line-height: 1.3; color: var(--muted); }
.bullets { margin-top: 30px; }
.bullets li { font-size: 14px; font-weight: 500; color: #ddd; padding: 2px 0 2px 10px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; background: #777; }
.service__img { height: 100%; overflow: hidden; }

/* Process */
.process { padding-top: 270px; }
.process__head { align-items: end; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.process__head .eyebrow { grid-column: 1; align-self: start; margin-top: 4px; }
.process__intro { grid-column: 2 / 4; }
.process__intro .section-title { margin-top: -6px; }
.process__cta { grid-column: 4; }
.steps { border-bottom: 1px solid var(--line); }
.step { min-height: 320px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.step__head { display: flex; justify-content: space-between; align-items: baseline; }
.step__head h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.step__head span { font-size: 15px; color: var(--muted); }
.step p { font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 380px; }
.process { padding-bottom: 120px; }

/* Client stories */
.stories { padding: 130px 0 120px; min-height: 100svh; --muted: #777; }
.stories__head { align-items: end; padding-bottom: 20px; }
.stories__head .eyebrow { grid-column: 1; align-self: start; margin-top: 4px; }
.stories__intro { grid-column: 2 / 5; }
.stories__title { font-size: clamp(40px, 4.1vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; max-width: 1400px; margin-top: -8px; }
.stories__nav { grid-column: 4; justify-self: end; display: flex; gap: 6px; margin-top: 40px; }
.stories__btn { width: 28px; height: 28px; background: var(--ink); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: opacity .2s; }
.stories__btn:disabled { opacity: .25; cursor: default; }
.stories__viewport { margin: 0 var(--gutter); overflow: hidden; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.stories__track { display: flex; transition: transform .8s cubic-bezier(.76,0,.24,1); }
.story { flex: 0 0 25%; min-height: 400px; background: #f5f5f5; border-right: 1px solid #e8e8e8; padding: 32px; display: flex; flex-direction: column; }
.story__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; padding-bottom: 16px; border-bottom: 1px solid #e2e2e2; }
.stars { color: #999; font-size: 12px; letter-spacing: 1px; }
.story blockquote { margin-top: 24px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; flex: 1; }
.story figcaption { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
.story figcaption img { width: 46px; height: 46px; flex: none; }
.story figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.story figcaption strong { font-weight: 500; font-size: 16px; }
.story figcaption small { font-size: 14px; color: #888; }

/* FAQ */
.faq { padding: 100px 0 120px; min-height: 100svh; }
.faq__intro { grid-column: 1 / 3; }
.faq__title { font-size: clamp(48px, 4.3vw, 82px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-top: 30px; }
.faq__desc { margin-top: 32px; max-width: 460px; font-size: 18px; line-height: 1.3; color: #777; }
.faq__desc a { color: var(--ink); }
.faq__intro .link-arrow { margin-top: 30px; }
.faq__list { grid-column: 3 / 5; border-top: 1px solid #e8e8e8; }
.faq__item { border-bottom: 1px solid #e8e8e8; transition: background .4s; }
.faq__item.is-open { background: #f5f5f5; }
.faq__q { width: 100%; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 2px; padding: 24px 28px 24px 4px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq__num { font-size: 16px; font-weight: 400; color: #888; }
.faq__icon { width: 14px; height: 14px; position: relative; justify-self: end; transition: transform .4s cubic-bezier(.76,0,.24,1); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.3px; background: #555; translate: -50% -50%; }
.faq__icon::after { rotate: 90deg; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
/* Smooth height: 0fr → 1fr */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.76,0,.24,1); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 140px 24px 40px; font-size: 16px; line-height: 1.45; color: #777; opacity: 0; transition: opacity .4s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transition-delay: .15s; }

/* Blog */
.blog { padding: 60px 0 120px; min-height: 100svh; --muted: #777; }
.blog__head { align-items: end; padding-bottom: 80px; }
.blog__head .eyebrow { grid-column: 1; align-self: start; margin-top: 6px; }
.blog__intro { grid-column: 2 / 4; }
.blog__intro .section-title { margin-top: 0; }
.blog__all { grid-column: 4; padding-bottom: 4px; }
.blog__grid { align-items: start; }
.article { position: relative; display: block; overflow: hidden; color: #fff; }
.article--1, .article--3 { aspect-ratio: 3 / 4; }
.article--2 { aspect-ratio: 1; }
.article--4 { aspect-ratio: 3 / 2; }
.article img { position: absolute; inset: 0; transition: scale 1s cubic-bezier(.2,.7,.2,1); }
.article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 25%, transparent 60%, rgba(0,0,0,.45)); }
.article:hover img { scale: 1.06; }
.article__date, .article__title { position: absolute; left: 16px; right: 16px; z-index: 1; }
.article__date { top: 14px; font-size: 14px; font-weight: 500; }
.article__title { bottom: 14px; font-size: clamp(18px, 1.3vw, 24px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }

/* Footer */
.footer { min-height: 100svh; padding: 120px 0 24px; display: flex; flex-direction: column; }
.footer__top { align-items: start; }
.footer__cta { grid-column: 1 / 3; }
.footer__title { font-size: clamp(48px, 4.3vw, 82px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.footer__desc { margin-top: 30px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.footer__btn { margin-top: 34px; max-width: calc((100vw - 2 * var(--gutter)) / 4); }
.footer__links { display: flex; flex-direction: column; gap: 6px; margin-top: 130px; font-size: 15px; font-weight: 500; }
.footer__links p { color: var(--muted); font-weight: 400; font-size: 14px; }
.footer__links a { width: fit-content; transition: opacity .2s; }
.footer__links a:hover { opacity: .6; }
.footer__mid { margin-top: auto; align-items: end; padding-top: 80px; }
.footer__word { grid-column: 1 / 3; font-size: clamp(110px, 15.5vw, 300px); font-weight: 500; letter-spacing: -.075em; line-height: .78; margin-left: -.05em; color: #4d4d4d; }
.footer__word sup { font-size: .72em; vertical-align: top; position: relative; top: -.02em; }
.footer__img { grid-column: 4; aspect-ratio: 2 / 1; overflow: hidden; }
.footer__bottom { padding-top: 30px; font-size: 14px; color: var(--muted); align-items: center; }
.footer__copy { grid-column: 4; }
.footer__social { display: flex; gap: 10px; color: #fff; }
.footer__social svg { width: 15px; height: 15px; display: block; }

/* Upload page */
.upload { min-height: 100svh; padding: 130px 0 120px; --muted: #777; }
.upload .grid4 { row-gap: 60px; }
.upload__intro { grid-column: 1 / 3; padding-right: 40px; }
.upload__title { font-size: clamp(44px, 4.3vw, 82px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-top: 30px; }
.upload__steps { margin-top: 48px; border-top: 1px solid #e8e8e8; max-width: 520px; }
.upload__steps li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid #e8e8e8; font-size: 16px; font-weight: 500; }
.upload__steps span { color: #999; font-weight: 400; }
.upload__panel { grid-column: 3 / 5; }
.upload__errors { background: #fff1f0; border: 1px solid #f3c3bf; color: #a3261c; padding: 14px 18px; font-size: 14px; margin-bottom: 16px; }
.upload__errors p + p { margin-top: 4px; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; padding: 32px; background: #f5f5f5; border: 1.5px dashed #c9c9c9; text-align: center; cursor: pointer; transition: background .25s, border-color .25s; }
.drop:hover, .drop.is-over { background: #ececec; border-color: var(--ink); }
.drop.is-full { opacity: .5; pointer-events: none; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 26px; font-weight: 300; line-height: 1; margin-bottom: 6px; }
.drop__title { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.drop__hint { font-size: 14px; color: #888; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: #f5f5f5; border: 1px solid #ececec; overflow: hidden; display: grid; place-items: center; }
.thumb__empty { font-size: 14px; color: #bbb; }
.thumb img { position: absolute; inset: 0; }
.thumb__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb__remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; background: var(--ink); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.thumb__remove:hover { background: #a3261c; }
.upload__count { margin-top: 10px; font-size: 14px; color: #888; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field em { color: #999; font-style: normal; font-weight: 400; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1px solid #ddd; background: #fff; color: var(--ink); resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.upload__submit { margin-top: 28px; width: 100%; border: 0; cursor: pointer; padding: 0; font: inherit; }
.upload__submit:disabled { opacity: .35; cursor: not-allowed; }

.upload__done { background: #f5f5f5; padding: 48px 40px; }
.upload__done-num { font-size: 18px; color: #999; }
.upload__done h2 { font-size: clamp(36px, 3vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-top: 12px; }
.upload__done .link-arrow { margin-top: 28px; }

@media (max-width: 1024px) {
    .upload__intro, .upload__panel { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 640px) {
    .fields { grid-template-columns: 1fr; }
    .thumbs { gap: 6px; }
}

/* Logo (PNG wordmark used as a mask, painted in the current text colour) */
.logo {
    display: block; width: 100%; aspect-ratio: 1269 / 167; background: currentColor;
    -webkit-mask: url('../images/enretouch-logo.png') center / contain no-repeat;
    mask: url('../images/enretouch-logo.png') center / contain no-repeat;
}
.nav__logo .logo { width: 128px; }
.hero__word .logo { width: 100%; }
.loader__word .logo { width: calc((100vw - 2 * var(--gutter)) * .75); }
.footer__word .logo { width: 100%; }
@media (max-width: 1024px) { .loader__word .logo { width: calc(100vw - 2 * var(--gutter)); } }

/* Preloader */
.loader {
    position: fixed; inset: 0; z-index: 100; background: #fff; color: var(--ink);
    display: flex; align-items: center; overflow: hidden; padding: 0 var(--gutter);
    animation: loader-lift 1s cubic-bezier(.76,0,.24,1) 2.2s forwards;
}
.loader .guides { position: absolute; }
.loader .guides span { border-color: rgba(0,0,0,.12); }
.loader__word { overflow: hidden; font-size: clamp(110px, 15.5vw, 300px); font-weight: 500; margin-left: -.05em; letter-spacing: -.075em; line-height: .9; padding: .06em .12em .05em 0;
    transform: translateX(calc(50vw - var(--gutter) - 50%));
    animation: loader-left 1s cubic-bezier(.76,0,.24,1) 1.1s forwards; }
.loader__word span { display: block; transform: translateY(105%); animation: loader-rise .9s cubic-bezier(.2,.7,.2,1) .15s forwards; }
.loader__word sup { font-size: .72em; vertical-align: top; position: relative; top: -.02em; }
@keyframes loader-rise { to { transform: none; } }
@keyframes loader-left { to { transform: translateX(0); } }
@keyframes loader-lift { to { transform: translateY(-100%); visibility: hidden; } }
.is-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .logos__track { animation: none; }
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    :root { --gutter: 24px; --cols: repeat(2, 1fr); }
    .guides span:nth-child(n+3):not(:last-child), .nav__meta { display: none; }
    .nav { grid-template-columns: 1fr 1fr; }
    .hero { height: auto; min-height: 100svh; }
    .hero__grid { grid-template-rows: auto; row-gap: 40px; padding-top: 100px; }
    .hero__main, .logos { grid-column: 1 / -1; grid-row: auto; }
    .hero__side { grid-column: 2; grid-row: auto; }
    .hero__side > .reveal:nth-child(2) { margin-top: 24px; }
    .slider { margin-top: 32px; }
    .hero__trust { grid-row: auto; align-self: end; }
    .about .eyebrow { grid-column: 1 / -1; margin-bottom: 24px; }
    .about__copy { grid-column: 1 / -1; }
    .about__copy + .stat, .stat { grid-column: auto; min-height: 180px; }
    .about__more { grid-column: 1; }
    .about__copyright { grid-column: 2; justify-self: end; }
    .projects__grid { row-gap: 60px; }
    .services__intro, .process__intro, .process__head .eyebrow { grid-column: 1 / -1; }
    .services__cta, .process__cta { grid-column: 1; margin-top: 32px; }
    .services__mark { grid-column: 2; justify-self: end; }
    .service { grid-template-columns: 1fr; position: static; height: auto; }
    .service__inner { height: auto; padding: 60px 0; opacity: 1; translate: none; }
    .service__img { height: 70svh; }
    .process { padding-top: 120px; }
    .step { min-height: 240px; padding: 24px 0; }
    .stories__head .eyebrow, .stories__intro { grid-column: 1 / -1; }
    .stories__nav { grid-column: 2; }
    .story { flex-basis: 50%; }
    .faq__intro, .faq__list { grid-column: 1 / -1; }
    .faq__list { margin-top: 48px; }
    .faq__a p { padding-right: 28px; }
    .blog__head .eyebrow, .blog__intro { grid-column: 1 / -1; }
    .blog__all { grid-column: 1; margin-top: 32px; }
    .blog__grid { gap: 16px 0; }
    .article[class*="article--"] { aspect-ratio: 3 / 4; }
    .footer__cta, .footer__word { grid-column: 1 / -1; }
    .footer__btn { max-width: none; }
    .footer__links { margin-top: 60px; }
    .footer__img { grid-column: 1 / -1; margin-top: 40px; }
    .footer__bottom { row-gap: 12px; }
    .footer__copy { grid-column: auto; }
}
@media (max-width: 640px) {
    .story { flex-basis: 100%; }
    .project--1, .project--3, .project--4 { grid-column: 1 / -1; grid-row: auto; }
    .project--2, .project--5 { grid-column: auto; grid-row: auto; align-self: start; }
}
@media (max-width: 640px) {
    .project[class*="project--"] { grid-column: 1; }
}

/* Phone: 1 column */
@media (max-width: 640px) {
    :root { --gutter: 16px; --cols: 1fr; }
    .guides span:nth-child(2) { display: none; }
    .hero__side, .hero__trust { grid-column: 1; }
    .hero__word { font-size: 27vw; }
}
