/* ==========================================================================
   Arcolabs — site.css
   Dark, warm editorial theme built around the logo's red/orange droplet.
   ========================================================================== */

:root {
    --ink: #0f0c0b;
    --ink-2: #181412;
    --ink-3: #221c19;
    --paper: #f5efe7;
    --paper-dim: #cfc6bc;
    --muted: #9a9089;
    --line: rgba(245, 239, 231, 0.12);
    --red: #e3201b;
    --red-deep: #b5110f;
    --orange: #ff8a3d;
    --gold: #ffc65c;

    --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;

    --wrap: min(1320px, 100% - 2 * var(--gutter));
    --gutter: clamp(20px, 4vw, 56px);
    --radius: 18px;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--display);
    font-size: clamp(16px, 1.05vw, 18px);
    font-optical-sizing: auto;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* clip, not hidden: hidden would make body a scroll container and break the sticky header */
    overflow-x: clip;
}

/* film grain over everything */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: var(--paper); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; top: 12px; left: 12px; z-index: 200;
    padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 999px;
    transform: translateY(-150px); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- small type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 22px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--paper-dim);
}
.eyebrow .dot {
    width: 10px; height: 10px; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, var(--orange), var(--red));
}
.eyebrow .num {
    font-family: var(--serif); font-style: italic; font-size: 1.5rem; font-weight: 400;
    letter-spacing: 0; text-transform: none; color: var(--orange);
}
.accent { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600; font-size: 0.98rem;
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--paper); box-shadow: 0 10px 30px -10px rgba(227, 32, 27, 0.7); }
.btn-red:hover { background: var(--orange); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(245, 239, 231, 0.35); color: var(--paper); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(245, 239, 231, 0.08); }
.btn-ghost .fa { font-size: 0.8em; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Rebrand notice (top bar) — scrolls away; the header below stays pinned
   ========================================================================== */
.rebrand-bar {
    position: relative; z-index: 51;
    display: flex; align-items: center; gap: 16px;
    min-height: 48px; padding: 10px var(--gutter);
    background: var(--red); color: var(--paper);
    font-size: 0.88rem; line-height: 1.45;
}
.rebrand-bar p { margin: 0; flex: 1; }
.rebrand-bar b { font-weight: 700; }
.rebrand-bar__tag {
    flex: none; padding: 3px 8px;
    border: 1px solid rgba(245, 239, 231, 0.55); border-radius: 3px;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.rebrand-bar__link {
    flex: none; border-bottom: 1px solid currentColor;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    transition: opacity 0.2s;
}
.rebrand-bar__link::after { content: " →"; }
.rebrand-bar__link:hover { opacity: 0.8; }
@media (max-width: 640px) {
    .rebrand-bar { flex-wrap: wrap; gap: 8px 12px; }
    .rebrand-bar p { flex-basis: 100%; order: 2; }
    .rebrand-bar__link { order: 3; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    display: flex; align-items: center; gap: 28px;
    padding-inline: var(--gutter);
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(15, 12, 11, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--line);
}
.brand img { height: 44px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
    position: relative; display: block; padding: 8px 14px;
    font-size: 0.95rem; font-weight: 500; color: var(--paper-dim);
    transition: color 0.25s;
}
.site-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); }

.lang-switch {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.lang-switch:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--paper);
    cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
    display: block; width: 18px; height: 2px; margin: auto; background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        background: rgba(15, 12, 11, 0.96); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 28px;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.35s;
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .nav-open .site-header { background: rgba(15, 12, 11, 0.96); }
    .site-nav ul { flex-direction: column; }
    .site-nav a { font-size: 1.6rem; font-weight: 600; padding: 10px 0; color: var(--paper); }
    .site-nav a::after { display: none; }
    .lang-switch { margin-left: auto; }
    .brand img { height: 38px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
}
.hero-media {
    position: absolute; inset: -4%; z-index: -3;
    background-size: cover; background-position: center;
    animation: slowzoom 22s ease-out both;
}
.hero-video {
    position: absolute; top: 50%; left: 50%; z-index: -2;
    width: max(100vw, 177.78vh); height: max(56.25vw, 100vh);
    /* scaled up so YouTube's title bar and edge chrome fall outside the hero */
    transform: translate(-50%, -50%) scale(1.25);
    border: 0; pointer-events: none;
    opacity: 0; transition: opacity 1.2s;
}
.hero-video.is-ready { opacity: 1; }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(15, 12, 11, 0.55) 0%, rgba(15, 12, 11, 0.15) 35%, rgba(15, 12, 11, 0.85) 82%, var(--ink) 100%),
        linear-gradient(90deg, rgba(15, 12, 11, 0.7) 0%, transparent 65%);
}
.hero-drop {
    position: absolute; z-index: -1;
    right: -10vw; top: 12vh;
    width: min(62vw, 760px); aspect-ratio: 1;
    border-radius: 50% 50% 50% 4%;
    transform: rotate(-45deg);
    background: radial-gradient(circle at 30% 30%, var(--gold) 0%, var(--orange) 30%, var(--red) 62%, var(--red-deep) 100%);
    filter: blur(70px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: drift 14s ease-in-out infinite alternate;
}
.hero-content { padding: calc(var(--header-h) + 8vh) 0 clamp(90px, 14vh, 150px); }
.hero-title {
    font-size: clamp(3rem, 9.5vw, 9.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    max-width: 14ch;
}
.hero-title-project { font-size: clamp(2.8rem, 8vw, 7.5rem); }
.rotator { display: inline-grid; }
.rotator .word {
    grid-area: 1 / 1;
    opacity: 0; transform: translateY(0.35em); filter: blur(8px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s;
}
.rotator .word.is-active { opacity: 1; transform: none; filter: none; }
.rotator .word.is-leaving { opacity: 0; transform: translateY(-0.35em); filter: blur(8px); }
.rotator .word::after { content: "."; color: var(--red); }
.hero-sub {
    margin: 26px 0 0;
    max-width: 52ch;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3;
    color: var(--paper-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-project { min-height: 82svh; }
.back {
    display: inline-flex; gap: 10px; align-items: center; margin-bottom: 28px;
    font-size: 0.92rem; font-weight: 500; color: var(--paper-dim);
    transition: color 0.2s, gap 0.3s var(--ease);
}
.back:hover { color: var(--paper); gap: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-badge img { width: 170px; height: auto; transition: transform 0.3s var(--ease); }
.store-badge:hover img { transform: translateY(-3px); }

/* ticker */
.ticker {
    position: absolute; left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
    background: rgba(15, 12, 11, 0.4);
    backdrop-filter: blur(4px);
}
.ticker-track {
    display: flex; gap: 28px; width: max-content;
    font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
}
.ticker-track i { font-style: normal; color: var(--red); }

/* page-load stagger */
.load { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.12s + 0.15s); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--ink-2); }
.section-alt::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    opacity: 0.5;
}
.section-head { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; }
.section-head-row .eyebrow { order: 2; margin: 0; }
.section-head-spaced { margin-top: clamp(64px, 9vw, 120px); }
.section-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.04em; }
.section-lead {
    margin: 22px 0 0; max-width: 46ch;
    font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.3;
    color: var(--paper-dim);
}

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--paper-dim);
    font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--paper-dim); color: var(--paper); }
.chip.is-active { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.cards {
    display: grid; gap: clamp(18px, 2.4vw, 32px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }
.card.is-hidden { display: none; }
.card a { display: block; }
.card-media {
    position: relative; margin: 0;
    aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink-3);
}
.card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.6s;
    filter: saturate(0.9);
}
.card-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(200deg, transparent 40%, rgba(227, 32, 27, 0.55) 100%);
    opacity: 0; transition: opacity 0.5s;
}
.card-arrow {
    position: absolute; right: 16px; top: 16px; z-index: 1;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper); color: var(--ink); font-size: 1.2rem; font-weight: 700;
    transform: scale(0.4) rotate(-45deg); opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.3s;
}
.card a:hover .card-media img,
.card a:focus-visible .card-media img { transform: scale(1.06); filter: saturate(1.1); }
.card a:hover .card-media::after { opacity: 1; }
.card a:hover .card-arrow { transform: none; opacity: 1; }
.card-body { padding: 18px 4px 0; }
.card-body h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.card-body p { margin: 6px 0 12px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--paper-dim);
}
.tags-light { margin-bottom: 18px; }
.tags-light li { border-color: rgba(245, 239, 231, 0.3); background: rgba(15, 12, 11, 0.3); backdrop-filter: blur(4px); }

/* ---------- services ---------- */
.services {
    position: relative;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
    position: relative;
    padding: clamp(28px, 3.5vw, 48px);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: background 0.4s;
    overflow: hidden;
}
.service::before {
    content: ""; position: absolute; width: 220px; height: 220px; right: -80px; bottom: -80px;
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(0.4);
    background: radial-gradient(circle at 30% 30%, var(--orange), var(--red));
    filter: blur(30px); opacity: 0;
    transition: transform 0.7s var(--ease), opacity 0.5s;
}
.service:hover { background: rgba(245, 239, 231, 0.03); }
.service:hover::before { opacity: 0.45; transform: rotate(-45deg) scale(1); }
.service-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--orange); }
.service-icon {
    width: 60px; height: 60px; margin: 26px 0 22px;
    border-radius: 50%; box-shadow: 0 12px 30px -12px rgba(227, 32, 27, 0.8);
    transition: transform 0.5s var(--ease);
}
.service:hover .service-icon { transform: rotate(-12deg) scale(1.08); }
.service h3 { position: relative; font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: 12px; }
.service p { position: relative; margin: 0; color: var(--muted); max-width: 34ch; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about {
    position: relative; isolation: isolate;
    padding: clamp(110px, 16vw, 220px) 0;
    overflow: hidden;
}
.about-media {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center; background-attachment: fixed;
}
.about::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%),
        linear-gradient(100deg, rgba(15, 12, 11, 0.9) 20%, rgba(15, 12, 11, 0.35) 100%);
}
.about-text p {
    max-width: 30ch;
    font-size: clamp(1.7rem, 3.6vw, 3.4rem);
    font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
}
.about-text p::first-line { color: var(--paper); }
@supports (-webkit-touch-callout: none) { .about-media { background-attachment: scroll; } }

/* ---------- logo walls ---------- */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.logo-tile {
    display: grid; place-items: center;
    aspect-ratio: 16 / 9;
    position: relative; min-width: 0; overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.logo-tile img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    padding: clamp(14px, 2.2vw, 30px); object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.05); opacity: 0.8;
    transition: filter 0.4s, opacity 0.4s;
}
.logo-tile:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 20px 40px -20px rgba(227, 32, 27, 0.6); }
.logo-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Project page
   ========================================================================== */
.project-grid {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 110px); align-items: start;
}
.prose { font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.7; color: var(--paper-dim); }
.prose p:first-child { font-size: 1.3em; line-height: 1.45; color: var(--paper); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.details {
    position: sticky; top: calc(var(--header-h) + 24px);
    padding: 30px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.details dl { margin: 0; }
.details dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.details dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 4px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.details dd a { color: var(--orange); border-bottom: 1px solid rgba(255, 138, 61, 0.4); transition: border-color 0.2s; }
.details dd a:hover { border-color: var(--orange); }
@media (max-width: 860px) {
    .project-grid { grid-template-columns: 1fr; }
    .details { position: static; }
}

.videos { display: grid; gap: 24px; }
.videos.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .videos.count-2 { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 22vw, 320px); }
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; }
/* fill the last row: n images + 3 extra cells from the 2x2 lead image */
.gallery.fill-2 .shot:last-child { grid-column: span 2; }
.gallery.fill-1 .shot:last-child { grid-column: span 3; }
.gallery.count-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gallery.count-1 .shot:first-child { grid-column: auto; grid-row: auto; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; grid-auto-rows: clamp(260px, 40vw, 600px); }
.gallery.count-2 .shot:first-child { grid-column: auto; grid-row: auto; }
.shot {
    position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
    border-radius: var(--radius); background: var(--ink-3);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
    .gallery, .gallery.count-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
    .gallery .shot:first-child { grid-column: span 2; grid-row: span 1; }
    .gallery .shot:last-child:not(:first-child) { grid-column: auto; }
    .gallery.odd-rest .shot:last-child { grid-column: span 2; }
}

.lightbox {
    max-width: 94vw; max-height: 92vh; padding: 0; border: 0;
    background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 12, 11, 0.92); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: -18px; right: -18px;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

.next-project { border-top: 1px solid var(--line); }
.next-link {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    padding: clamp(56px, 8vw, 110px) 0;
}
.next-text { display: flex; flex-direction: column; gap: 8px; }
.next-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.next-title {
    font-size: clamp(2.4rem, 6.5vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    transition: color 0.3s;
}
.next-sub { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); }
.next-link img {
    flex: none; width: clamp(140px, 24vw, 340px); aspect-ratio: 4 / 3; height: auto; object-fit: cover;
    border-radius: var(--radius);
    transform: rotate(3deg); transition: transform 0.6s var(--ease);
}
.next-link:hover .next-title { color: var(--red); }
.next-link:hover img { transform: rotate(-2deg) scale(1.05); }
@media (max-width: 600px) { .next-link img { display: none; } }

/* ==========================================================================
   Footer + Unlimited Studio notice
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
    padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.footer-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 36px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.contact-list .label { min-width: 11ch; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list a {
    font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease), color 0.3s;
}
.contact-list a:hover { color: var(--orange); background-size: 100% 1px; }
.footer-meta { align-self: end; }
.footer-meta address { font-style: normal; color: var(--paper-dim); }
.footer-meta address p { display: flex; gap: 14px; }
.footer-meta .fa { width: 14px; margin-top: 6px; color: var(--red); }
.socials { display: flex; gap: 10px; margin: 26px 0; }
.socials a {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); font-size: 1.05rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.bni { opacity: 0.85; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.notice {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 0 var(--gutter);
    padding: clamp(56px, 8vw, 110px) 0;
    border-radius: calc(var(--radius) * 1.6);
    background: linear-gradient(120deg, var(--red-deep) 0%, var(--red) 45%, var(--orange) 100%);
    color: var(--paper);
}
.notice-drop {
    position: absolute; z-index: -1; right: -6%; top: -40%;
    width: min(60vw, 620px); aspect-ratio: 1;
    border-radius: 50% 50% 50% 4%; transform: rotate(-45deg);
    background: radial-gradient(circle at 30% 30%, var(--gold), transparent 65%);
    filter: blur(40px); opacity: 0.7;
    animation: drift 12s ease-in-out infinite alternate;
}
.notice-inner { width: min(1320px, 100% - 2 * clamp(24px, 5vw, 72px)); }
.notice .eyebrow { color: rgba(245, 239, 231, 0.85); }
.notice .eyebrow .dot { background: var(--paper); }
.notice-title { font-size: clamp(2.2rem, 5.6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; }
.notice-title em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.notice-body { max-width: 52ch; margin: 22px 0 34px; font-size: 1.12rem; color: rgba(245, 239, 231, 0.9); }

.copyright {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 36px 0 44px; color: var(--muted); font-size: 0.88rem;
}
.copyright p { margin: 0; }
.copyright .fa-heart { color: var(--red); }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: rotate(-45deg) translate(0, 0); } to { transform: rotate(-38deg) translate(-6%, 8%); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .rotator .word { transition: none; }
}
