/* office.css — Studio v4 “cinematic” · hidden trial page */

:root {
    --bg: #0B0B0F;
    --bg-2: #101018;
    --ink: #F2F0EA;
    --ink-dim: #9A9AA8;
    --ink-faint: #5B5B6B;
    --line: #23232F;
    --blue: #3B6BFF;
    --blue-soft: #6C90FF;
    --amber: #FFB86B;
    --violet: #8A5CFF;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', Consolas, monospace;
    --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: radial-gradient(ellipse 90% 55% at 50% -8%, rgba(59, 107, 255, 0.07), transparent 62%), var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }

/* Lenis: take over smoothing when it's active (index), leave native smooth for office */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
    body { scroll-behavior: smooth; }
}

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

img { display: block; max-width: 100%; }

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

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

.kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

/* ---------- backdrop: soft dot field, flat and quiet ---------- */
.grid-bg-flat::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.1px, transparent 1.2px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* ---------- floating topnav ---------- */
.topnav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(11, 11, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topnav-logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    overflow: hidden;
    flex: none;
}

.topnav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.topnav-links {
    display: flex;
    gap: 2px;
}

.topnav-links a {
    padding: 7px 13px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.topnav-links a:hover { color: var(--ink); }

.topnav-links a.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
}

/* ---------- side dots ---------- */
.dots {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dots span.is-on {
    background: var(--blue);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(59, 107, 255, 0.7);
}

/* ---------- reveal system ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.btn i { font-style: normal; }

.btn-fill {
    background: var(--ink);
    color: var(--bg);
    font-weight: 700;
}

.btn-fill:hover {
    box-shadow: 0 0 0 4px rgba(59, 107, 255, 0.35), 0 12px 40px rgba(59, 107, 255, 0.35);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--ink);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

.magnetic { will-change: transform; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 40px) 24px 90px;
    overflow: hidden;
    z-index: 1;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: orb-drift 14s ease-in-out infinite alternate;
}

.orb-a {
    width: 52vw;
    height: 52vw;
    max-width: 640px;
    max-height: 640px;
    top: -18%;
    left: -12%;
    background: radial-gradient(circle, rgba(59, 107, 255, 0.55), transparent 65%);
}

.orb-b {
    width: 44vw;
    height: 44vw;
    max-width: 540px;
    max-height: 540px;
    bottom: -14%;
    right: -10%;
    background: radial-gradient(circle, rgba(138, 92, 255, 0.45), transparent 65%);
    animation-delay: -5s;
}

.orb-c {
    width: 26vw;
    height: 26vw;
    max-width: 340px;
    max-height: 340px;
    top: 34%;
    right: 22%;
    background: radial-gradient(circle, rgba(255, 184, 107, 0.16), transparent 65%);
    animation-delay: -9s;
}

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(40px, 26px) scale(1.08); }
}

.hero-spot {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 107, 255, 0.14), transparent 60%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 40%;
    transition: opacity 0.4s;
}

.hero-inner {
    position: relative;
    max-width: 1080px;
    width: 100%;
    text-align: center;
}

.hero-kicker { margin-bottom: 26px; }

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.2rem, 11vw, 8.4rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: word-up 0.9s var(--ease) forwards;
}

.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.34s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.44s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.58s; }

@keyframes word-up { to { transform: translateY(0); } }

.word-italic, .line-italic em { font-style: italic; }

.grad { color: var(--ink); }

.dot-ink { color: var(--ink); }

.hero-sub {
    max-width: 560px;
    margin: 30px auto 0;
    color: var(--ink-dim);
    font-size: 1.05rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 6vw, 72px);
    margin-top: 44px;
}

.hstat { text-align: center; }

.hstat-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--ink);
}

.hstat-num.is-live { color: var(--amber); }

.hstat-label {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.scroll-cue-line {
    display: block;
    width: 1px;
    height: 34px;
    background: linear-gradient(var(--ink-faint), transparent);
    animation: cue-drop 1.6s ease-in-out infinite;
}

@keyframes cue-drop {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-dim);
    white-space: nowrap;
}

.marquee-track b {
    color: var(--blue);
    font-weight: 400;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(56px, 6vw, 88px) 24px;
}

.sec-head { max-width: 640px; margin-bottom: clamp(36px, 4vw, 54px); }

.sec-kicker { color: var(--blue-soft); margin-bottom: 16px; }

.sec-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.sec-title em { font-style: italic; color: var(--ink-dim); }

.sec-sub {
    margin-top: 18px;
    color: var(--ink-dim);
    font-weight: 300;
    max-width: 480px;
}

/* ============================================================
   WORK — project panels
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: clamp(64px, 7vw, 104px); }

.proj {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.proj:nth-child(even) { direction: rtl; }
.proj:nth-child(even) > * { direction: ltr; }

.proj-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--bg-2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.proj-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(59, 107, 255, 0.14), transparent 45%);
    pointer-events: none;
}

.proj-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.proj-media:hover img { transform: scale(1.045); }

.proj-media:hover {
    box-shadow: 0 0 0 1px rgba(59, 107, 255, 0.45), 0 0 60px rgba(59, 107, 255, 0.28), 0 30px 80px rgba(0, 0, 0, 0.55);
}

.proj-num {
    position: absolute;
    top: -0.18em;
    left: -0.05em;
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

.proj-body { position: relative; }

.proj-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.proj-cat {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-soft);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--ink-dim);
}

.pill-live {
    border-color: rgba(255, 184, 107, 0.35);
    color: var(--amber);
}

.pill-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: pulse 1.8s ease-in-out infinite;
}

.pill-wip { border-color: rgba(59, 107, 255, 0.35); color: var(--blue-soft); }

@keyframes pulse { 50% { opacity: 0.35; } }

.proj-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 12px;
}

.proj-note { color: var(--ink-dim); font-weight: 300; max-width: 420px; }

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.proj-tags span {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--ink-dim);
}

.proj-links { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; }

.proj-links a, .proj-links button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3px;
    transition: border-color 0.25s, color 0.25s;
}

.proj-links a:hover, .proj-links button:hover {
    border-color: var(--blue);
    color: var(--blue-soft);
}

/* placeholder monogram (no screenshot) */
.proj-mono {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 30% 30%, rgba(59, 107, 255, 0.25), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(138, 92, 255, 0.2), transparent 55%),
        var(--bg-2);
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 6rem);
    color: rgba(242, 240, 234, 0.85);
}

/* ============================================================
   PROCESS — timeline
   ============================================================ */
.timeline { position: relative; padding-left: 40px; }

.timeline-line {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-line span {
    display: block;
    width: 100%;
    height: 0%;
    background: linear-gradient(var(--blue), var(--violet));
    box-shadow: 0 0 14px rgba(59, 107, 255, 0.6);
}

.tl-item {
    position: relative;
    padding: 0 0 clamp(36px, 4vw, 52px) 28px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--bg);
    border: 2px solid var(--ink-faint);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.tl-item.is-in::before {
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(59, 107, 255, 0.7);
}

.tl-step {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-soft);
    margin-bottom: 8px;
}

.tl-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 10px;
}

.tl-desc { color: var(--ink-dim); font-weight: 300; max-width: 520px; margin-bottom: 14px; }

.tl-out { display: flex; flex-wrap: wrap; gap: 8px; }

.tl-out span {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(59, 107, 255, 0.1);
    border: 1px solid rgba(59, 107, 255, 0.25);
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--blue-soft);
}

/* ============================================================
   STACK — tiles
   ============================================================ */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.tile {
    position: relative;
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025), transparent 55%);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 107, 255, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 107, 255, 0.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.tile:hover::before { opacity: 1; }

.tile-group {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.tile-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; margin-bottom: 8px; }

.tile-note { color: var(--ink-dim); font-size: 0.88rem; font-weight: 300; }

/* ============================================================
   DESK — brief + channels
   ============================================================ */
.sec-desk { max-width: 1160px; }

.desk-glow {
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 900px;
    height: 420px;
    background: radial-gradient(ellipse, rgba(59, 107, 255, 0.14), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.desk-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.brief {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), transparent 50%), var(--bg-2);
    padding: clamp(24px, 4vw, 40px);
    min-height: 340px;
}

.brief-q {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 8px;
}

.brief-sub { color: var(--ink-dim); font-weight: 300; margin-bottom: 26px; }

.brief-opts { display: flex; flex-wrap: wrap; gap: 10px; }

.brief-opt {
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.brief-opt:hover {
    border-color: var(--blue);
    background: rgba(59, 107, 255, 0.1);
    transform: translateY(-2px);
}

.brief-back {
    margin-top: 26px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    transition: color 0.2s;
}

.brief-back:hover { color: var(--ink); }

/* summary */
.brief-sum { animation: sum-in 0.6s var(--ease); }

@keyframes sum-in { from { opacity: 0; transform: translateY(14px); } }

.sum-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-soft);
    margin-bottom: 14px;
}

.sum-text {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    line-height: 1.35;
    color: var(--ink);
}

.sum-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.sum-actions a, .sum-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.sum-actions a:hover, .sum-actions button:hover { transform: translateY(-2px); }

.sum-cal {
    background: var(--ink);
    color: var(--bg);
    font-weight: 700;
}

.sum-cal:hover { box-shadow: 0 10px 30px rgba(242, 240, 234, 0.18); }

.sum-wa { background: rgba(37, 211, 102, 0.14); border: 1px solid rgba(37, 211, 102, 0.4); color: #7DECA8; }
.sum-mail { background: rgba(59, 107, 255, 0.14); border: 1px solid rgba(59, 107, 255, 0.4); color: var(--blue-soft); }
.sum-edit { border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink-dim); }

/* channels */
.channels { display: flex; flex-direction: column; gap: 12px; }

.channels .kicker { margin-bottom: 6px; }

.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.channel:hover {
    border-color: rgba(59, 107, 255, 0.45);
    background: rgba(59, 107, 255, 0.06);
    transform: translateX(6px);
    box-shadow: -8px 0 40px rgba(59, 107, 255, 0.12);
}

.channel-num {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--ink-faint);
    letter-spacing: 0.1em;
}

.channel-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }

.channel-body strong { font-weight: 600; font-size: 0.98rem; }

.channel-body small { color: var(--ink-dim); font-size: 0.8rem; font-weight: 300; }

.channel-arrow {
    color: var(--ink-faint);
    font-size: 1.1rem;
    transition: color 0.25s, transform 0.25s var(--ease);
}

.channel:hover .channel-arrow { color: var(--blue-soft); transform: translate(3px, -3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 30px 24px 40px;
    border-top: 1px solid var(--line);
    max-width: 1160px;
    margin: 0 auto;
}

.foot > :nth-child(2) { justify-self: center; }
.foot > :nth-child(3) { justify-self: end; }

@media (max-width: 640px) {
    .foot { grid-template-columns: 1fr; gap: 12px; }
    .foot > :nth-child(2), .foot > :nth-child(3) { justify-self: start; }
}

.foot-top { transition: color 0.2s; }
.foot-top:hover { color: var(--ink); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
    .hero-title .word { transform: none; animation: none; }
    .marquee-track { animation: none; }
    .scroll-cue-line { animation: none; opacity: 0.5; }
    .orb { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .proj { grid-template-columns: 1fr; }
    .proj:nth-child(even) { direction: ltr; }
    .desk-grid { grid-template-columns: 1fr; }
    .dots { display: none; }
}

@media (max-width: 640px) {
    .topnav { top: 12px; padding: 6px 8px; gap: 4px; }
    .topnav-links a { padding: 6px 9px; font-size: 0.6rem; }
    .topnav-cta { display: none; }
    .hero-stats { gap: 22px; }
    .hero { padding-bottom: 70px; }
    .sec { padding-left: 18px; padding-right: 18px; }
    .timeline { padding-left: 30px; }
    .tl-item::before { left: -28px; }
}

/* ============================================================
   INDEX-SPECIFIC (main portfolio)
   ============================================================ */
.topnav-cta {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.topnav-cta:hover {
    box-shadow: 0 0 0 3px rgba(59, 107, 255, 0.35);
}

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.pill-live { border-color: rgba(255, 184, 107, 0.35); color: var(--amber); }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1.8s ease-in-out infinite; }

.hero-kicker { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.hero-price { margin-top: 26px; }

/* about */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

.about-photo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    filter: grayscale(0.2);
}

.about-name { font-family: var(--serif); font-size: 1.7rem; margin-top: 18px; }

.about-socials { display: flex; gap: 10px; margin-top: 14px; }

.about-socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--ink-dim);
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.about-socials a:hover { border-color: var(--blue); color: var(--blue-soft); transform: translateY(-2px); }

.about-socials a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

.about-copy p { color: var(--ink-dim); font-weight: 300; margin-bottom: 16px; max-width: 560px; }
.about-copy strong { color: var(--ink); font-weight: 600; }

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
    max-width: 480px;
}

.about-facts > div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.92rem;
}

.about-facts .is-live { color: var(--amber); }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo img { max-width: 260px; }
}

/* case-study details inside proj-body */
.cs-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 16px; }
.cs-details > div { display: flex; flex-direction: column; gap: 4px; }
.cs-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.cs-val { font-size: 0.85rem; color: var(--ink-dim); }

@media (max-width: 560px) {
    .cs-details { grid-template-columns: 1fr; }
}

/* contact form */
.form-frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), transparent 50%), var(--bg-2);
    padding: clamp(22px, 3.5vw, 36px);
}

.enquiry-form { display: flex; flex-direction: column; gap: 18px; }

/* stepped form */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.form-step-label { color: var(--ink-dim); }
.form-step-label #form-step-num { color: var(--blue-soft); }

.form-track {
    flex: 1;
    max-width: 130px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#form-track-fill {
    display: block;
    height: 100%;
    width: 33.33%;
    border-radius: 99px;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(59, 107, 255, 0.55);
    transition: width 0.55s var(--ease);
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.form-step.is-active { display: flex; }

.form-step.is-active.slide-fwd { animation: step-fwd 0.45s var(--ease); }
.form-step.is-active.slide-back { animation: step-back 0.45s var(--ease); }

@keyframes step-fwd {
    from { opacity: 0; transform: translateX(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes step-back {
    from { opacity: 0; transform: translateX(-26px); }
    to { opacity: 1; transform: none; }
}

/* staggered field entrance within a step */
.form-step.is-active > * { animation: field-in 0.45s var(--ease) backwards; }

.form-step.is-active > *:nth-child(1) { animation-delay: 0.04s; }
.form-step.is-active > *:nth-child(2) { animation-delay: 0.09s; }
.form-step.is-active > *:nth-child(3) { animation-delay: 0.14s; }
.form-step.is-active > *:nth-child(4) { animation-delay: 0.19s; }
.form-step.is-active > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes field-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.form-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.form-nav .form-grow {
    flex: 1;
    justify-content: center;
}

.form-nav .btn-ghost { flex: none; }

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-grid3 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.form-span2 { grid-column: span 1; }

.req { color: var(--blue-soft); }

.field {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.92rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
}

.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 107, 255, 0.18); }
.field::placeholder { color: var(--ink-faint); }

textarea.field { resize: none; }

/* inline validation (no native bubbles) */
.field-error {
    display: none;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: #f87171;
}

.field-error.is-on { display: block; animation: err-in 0.25s var(--ease); }

@keyframes err-in {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: none; }
}

.field.is-invalid,
.pick-group.is-invalid .tile-body,
.pick-group.is-invalid .chip-body {
    border-color: #f87171 !important;
}

.field.is-invalid { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14); }

.field.shake, .pick-group.shake { animation: shake 0.35s var(--ease); }

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* pickers: category tiles + budget chips */
.pick-group input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.picker-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pick-tile { position: relative; cursor: pointer; }

.tile-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-dim);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.tile-body svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pick-tile:hover .tile-body { border-color: rgba(59, 107, 255, 0.5); color: var(--ink); }
.pick-tile:active .tile-body { transform: scale(0.98); }

.pick-tile input:checked + .tile-body {
    border-color: var(--blue);
    background: rgba(59, 107, 255, 0.1);
    color: var(--ink);
}

.pick-tile input:checked + .tile-body svg { stroke: var(--blue-soft); }

.pick-tile input:focus-visible + .tile-body { outline: 2px solid var(--blue); outline-offset: 2px; }

.pick-tile.wide { grid-column: 1 / -1; }

.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { position: relative; cursor: pointer; }

.chip-body {
    display: inline-flex;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover .chip-body { border-color: rgba(59, 107, 255, 0.5); color: var(--ink); }

.chip input:checked + .chip-body {
    border-color: var(--blue);
    background: rgba(59, 107, 255, 0.12);
    color: var(--ink);
}

.chip input:checked + .chip-body::before {
    content: '✓';
    margin-right: 6px;
    color: var(--blue-soft);
}

.chip input:focus-visible + .chip-body { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 560px) {
    .picker-tiles { gap: 8px; }
    .tile-body { padding: 11px 12px; font-size: 0.82rem; }
    .chip-body { padding: 8px 12px; }
}

/* smallest phones (320-345): keep every step inside the frame */
@media (max-width: 345px) {
    .picker-tiles { grid-template-columns: 1fr; }
    .form-nav .btn { padding: 13px 16px; font-size: 0.7rem; }
}

.success-msg {
    position: absolute;
    inset: 0;
    background: var(--bg-2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.success-msg:not(.opacity-0) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s var(--ease), visibility 0s;
}

.success-mark { position: relative; width: fit-content; margin-bottom: 6px; }

.success-logo {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 44px rgba(59, 107, 255, 0.35);
}

.success-check {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(59, 107, 255, 0.45);
}

.success-check svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }

.success-msg h3 { font-size: 2.2rem; }
.success-msg p { color: var(--ink-dim); }
.success-msg button { color: var(--blue-soft); border-bottom: 1px solid rgba(59, 107, 255, 0.3); padding-bottom: 2px; transition: border-color 0.2s; }
.success-msg button:hover { border-color: var(--blue); }

/* the moment: logo pops, check draws, lines stagger up */
.success-msg:not(.opacity-0) .success-mark { animation: pop-in 0.5s var(--ease) both; }
.success-msg:not(.opacity-0) .success-check svg path { animation: draw-check 0.4s var(--ease) 0.4s forwards; }
.success-msg:not(.opacity-0) h3 { animation: field-in 0.5s var(--ease) 0.15s both; }
.success-msg:not(.opacity-0) p { animation: field-in 0.5s var(--ease) 0.25s both; }
.success-msg:not(.opacity-0) button { animation: field-in 0.5s var(--ease) 0.35s both; }

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: none; }
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

/* hidden utility used by form (Tailwind-style) */
.hidden { display: none !important; }

/* testimonials */
.testi-wrap { position: relative; }
.testi-viewport { overflow: hidden; }

.testi-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s var(--ease);
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025), transparent 55%);
    display: flex;
    flex-direction: column;
    min-height: 20rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card > p { position: relative; z-index: 1; color: var(--ink); line-height: 1.65; font-weight: 300; }

.testi-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.testi-dots { display: flex; gap: 8px; }
.testi-arrows { display: flex; gap: 10px; }

.testi-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.testi-arrow:hover { border-color: var(--blue); color: var(--blue-soft); transform: translateY(-2px); }

@media (min-width: 768px) {
    .testimonial-card { flex: 0 0 calc(50% - 12px); min-width: calc(50% - 12px); }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 800px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    text-align: left;
    color: var(--ink);
    transition: color 0.2s;
}

.faq-q:hover { color: var(--blue-soft); }

.faq-q h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.25; }

.faq-icon {
    font-family: var(--mono);
    font-size: 1.3rem;
    color: var(--ink-dim);
    transition: transform 0.3s var(--ease), color 0.2s;
    flex-shrink: 0;
}

.faq-answer { height: 0; overflow: hidden; transition: height 0.35s var(--ease); }
.faq-answer.faq-open { height: auto; }
.faq-answer > div { padding: 0 0 22px; color: var(--ink-dim); font-weight: 300; font-size: 0.95rem; line-height: 1.65; max-width: 640px; }

/* final CTA */
.sec-final { text-align: center; }
.final-inner { max-width: 720px; margin: 0 auto; }
.sec-final .sec-title { margin-bottom: 16px; }

/* mobile WhatsApp bubble */
.mobile-wa {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 90;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #25D366;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 34px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s var(--ease);
}

.mobile-wa:active { transform: scale(0.92); }

@media (max-width: 768px) {
    .mobile-wa { display: flex; }
}

/* footer tweaks for index */
.foot a { transition: color 0.2s; }
.foot a:hover { color: var(--ink); }

/* ---------- mobile: logo + CTA only, no clipped link row ---------- */
@media (max-width: 640px) {
    .topnav { max-width: calc(100vw - 24px); }
    .topnav-links { display: none; }
    .topnav-cta { display: inline-flex; padding: 8px 12px; font-size: 0.62rem; }
}
