/* Bacoia — shared base: tokens, type, pills, focus. Loaded by every page. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F4F4F2;
  --ink: #121212;
  --ink-2: #3D3A35;
  --muted: #6E6A62;
  --line: #E7E7E4;
  --accent: #FF5B1F;
  --card: #FFFFFF;
  --ticket: #FAFAF8;
  --ok: #12A150;
  --ok-tint: #E3F5EA;
  --ok-deep: #0B6B35;
  --ease: cubic-bezier(.16,1,.3,1);
  --f: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-voice: 'Manrope', 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* the light, quiet voice of the hero line and the motto */
  --f-mono: var(--f); /* numbers in the menu use tabular figures of the same face */
  --btn-r: 4px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --gap: clamp(112px, 14vw, 200px);
  --bar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: rgba(18,18,18,.08); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); scrollbar-color: var(--ink-2) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (max-width: 600px) { body { font-size: 17px; } }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, button, input { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.num { font-variant-numeric: tabular-nums; }
.dot { color: var(--accent); }

/* Type */
.h-display { font-size: clamp(40px, 6vw, 96px); font-weight: 500; letter-spacing: -0.03em; line-height: .92; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.2vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: .96; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
.lead { color: var(--ink-2); max-width: 46ch; font-size: clamp(18px, 1.4vw, 20px); }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 4px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.pill:active { transform: scale(.97); }
.pill svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .4s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-ink:hover { background: #34332F; }
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-accent:hover { background: var(--ink); color: var(--paper); }
.pill-line { border-color: var(--ink); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--paper); }
.lnk { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s var(--ease); }
.lnk:hover { text-decoration-color: var(--accent); }

/* Fixed bar (after Linie): the name on the left, always there and always a way back to the start; "Hablame" and "Menú" as flat light tiles on the right. */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar); padding: 0 var(--pad); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 22px; letter-spacing: -0.04em; line-height: 1; color: var(--ink); text-decoration: none; text-shadow: 0 0 14px #fff, 0 0 5px #fff; transition: color .4s var(--ease), opacity .3s var(--ease); } /* just the word: no tile, no symbol; a white halo keeps it legible over text and photos */
.bar-brand:hover { opacity: .65; }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.bar-btn, .bar-menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 4px; background: #EFEFED; color: var(--ink); font-size: 15px; font-weight: 400; letter-spacing: 0; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.bar-btn:hover, .bar-menu:hover { background: #E4E4E1; }
/* Over the dark footer everything in the bar turns light so it never vanishes into it. */
.bar.over-dark .bar-brand { color: #fff; text-shadow: 0 0 14px rgba(18,18,18,.9), 0 0 5px rgba(18,18,18,.9); }
.bar.over-dark .bar-btn, .bar.over-dark .bar-menu { background: rgba(255,255,255,.14); color: #fff; }
.bar.over-dark .bar-btn:hover, .bar.over-dark .bar-menu:hover { background: rgba(255,255,255,.24); }
.bar-btn:active, .bar-menu:active { transform: scale(.98); }
.bar-plus { position: relative; width: 12px; height: 12px; }
.bar-plus::before, .bar-plus::after { content: ""; position: absolute; left: 0; top: 5.4px; width: 12px; height: 1.2px; background: currentColor; transition: transform .5s var(--ease); }
.bar-plus::after { transform: rotate(90deg); }
.bar-menu:hover .bar-plus::after { transform: rotate(180deg); }
@media (max-width: 420px) { .bar-btn, .bar-menu { padding: 0 14px; gap: 8px; } .bar-brand { font-size: 20px; } }

/* Menu: a dark side panel over a dimmed page; the page stays where it was. */
.menu { position: fixed; inset: 0; z-index: 60; }
.menu[hidden] { display: none; }
.menu-scrim { position: absolute; inset: 0; background: rgba(18,18,18,.55); animation: fadeIn .4s var(--ease); cursor: pointer; }
.menu-panel { overscroll-behavior: contain; position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; padding: 18px clamp(20px, 3vw, 36px) 32px; overflow-y: auto; background: #151413; color: var(--paper); animation: panelIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes panelIn { from { transform: translateX(100%); } }
.menu-panel :focus-visible { outline-color: var(--paper); }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.menu-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; color: var(--paper); text-decoration: none; transition: opacity .3s var(--ease); }
.menu-brand:hover { opacity: .75; }
.menu-brand svg { width: 23px; height: 17px; color: var(--accent); }
.menu-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 4px; background: rgba(255,255,255,.1); color: var(--paper); font-size: 15px; font-weight: 400; transition: background-color .3s var(--ease); }
.menu-close:hover { background: rgba(255,255,255,.16); }
.menu-close span { width: 12px; height: 1.5px; background: currentColor; }
.menu-status { display: flex; align-items: baseline; gap: 12px; margin-top: 40px; padding-bottom: 22px; border-bottom: 1px dashed rgba(255,255,255,.22); font-size: 17px; line-height: 1.4; color: rgba(255,255,255,.8); text-wrap: balance; }
.menu-live { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255,91,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,31,0); } }
.menu-nav { display: flex; flex-direction: column; margin-top: 20px; }
.menu-nav a { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--paper); text-decoration: none; animation: itemIn .7s var(--ease) both; }
.menu-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.menu-nav a:hover::after, .menu-nav a:focus-visible::after { transform: scaleX(1); }
.menu-nav a:hover .menu-n { color: var(--accent); }
.menu-nav a:nth-child(2) { animation-delay: .04s; } .menu-nav a:nth-child(3) { animation-delay: .08s; } .menu-nav a:nth-child(4) { animation-delay: .12s; } .menu-nav a:nth-child(5) { animation-delay: .16s; } .menu-nav a:nth-child(6) { animation-delay: .2s; }
@keyframes itemIn { from { opacity: 0; transform: translateX(24px); } }
.menu-n { margin-top: 4px; min-width: 22px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); transition: color .3s var(--ease); }
.menu-contact { margin-top: auto; padding-top: 40px; }
.menu-k { font-size: 14px; color: rgba(255,255,255,.6); }
.menu-big { display: inline-block; margin-top: 4px; font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--paper); text-decoration: none; }
.menu-big:hover { color: var(--accent); }
.menu-social { display: flex; gap: 14px; margin-top: 24px; }
.menu-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); color: var(--paper); transition: border-color .3s var(--ease), color .3s var(--ease); }
.menu-social a:hover { border-color: var(--accent); color: var(--accent); }
.menu-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Chat: the ears float bottom-right on every page; the panel opens above them (bottom sheet on phones). */
.chat-fab { position: fixed; z-index: 47; right: var(--pad); bottom: 24px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 16px 30px -12px rgba(18,18,18,.45); transition: transform .5s var(--ease), background-color .3s var(--ease); }
.chat-fab svg { width: 24px; height: 18px; transition: transform .5s var(--ease); }
.chat-fab:hover { background: var(--accent); color: var(--ink); }
.chat-fab:hover svg { transform: rotate(-10deg) translateY(-1px); }
.chat-fab:active { transform: scale(.94); }
html.on-footer .chat-fab { background: #fff; color: var(--ink); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
html.on-footer .chat-fab:hover { background: var(--accent); }
html.on-footer .chat-fab::after { box-shadow: 0 0 0 2px #fff; }
.chat-fab::after { content: ""; position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.chat-fab[aria-expanded="true"]::after { display: none; }
.chat { position: fixed; z-index: 48; bottom: 92px; right: var(--pad); width: min(380px, calc(100vw - 2 * var(--pad))); height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(18,18,18,.35), 0 2px 6px rgba(18,18,18,.05); overflow: hidden; transform-origin: top right; animation: chatIn .5s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head p { flex: 1; line-height: 1.3; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { font-size: 13px; color: var(--muted); }
.chat-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); }
.chat-mark svg { width: 17px; height: 13px; }
.chat-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.chat-close:hover { background: var(--paper-2); }
.chat-close svg, .chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-log { overscroll-behavior: contain; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.msg-bot { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 5px; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite var(--ease); }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .4; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-chips button { min-height: 36px; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; transition: border-color .3s var(--ease); }
.chat-chips button:hover { border-color: var(--ink); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; caret-color: var(--accent); }
.chat-input input::placeholder { color: var(--muted); }
.chat-input input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.chat-send { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 4px; background: var(--ink); color: var(--paper); transition: background-color .3s var(--ease); }
.chat-send:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 600px) {
  .chat { top: auto; bottom: 0; right: 0; left: 0; width: 100%; height: min(78dvh, 600px); border-radius: 22px 22px 0 0; border-bottom: 0; transform-origin: bottom center; }
}

/* Footer (after Linie): dark, a four-column grid drawn with dashed guides, the name huge on the right half,
   the WhatsApp number bottom-left and two quiet columns of links bottom-right. */
.ftr { position: relative; background: var(--ink); color: #fff; padding: clamp(96px, 12vw, 180px) 0 28px; overflow: hidden; }
.ftr ::selection { background: var(--accent); color: var(--ink); }
.ftr :focus-visible { outline-color: #fff; }
.ftr-wrap { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); }
.ftr-guides { position: absolute; top: calc(-1 * clamp(96px, 12vw, 180px)); bottom: -28px; left: var(--pad); right: var(--pad); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); pointer-events: none; }
/* Lines sit on each column's left edge, so the content starts right on a guide (as in Linie). */
.ftr-guides i { border-left: 1px dashed rgba(255,255,255,.12); }
.ftr-guides i:last-child { border-right: 1px dashed rgba(255,255,255,.12); }
.ftr-top, .ftr-bottom, .ftr-base { position: relative; }
.ftr-top { grid-column: 3 / -1; }
.ftr-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.ftr-eyebrow span { width: 12px; height: 12px; background: rgba(255,255,255,.28); }
.ftr-word { display: block; width: fit-content; margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(96px, 13vw, 232px); font-weight: 700; letter-spacing: -0.065em; line-height: .78; color: #fff; text-decoration: none; transition: color .5s var(--ease); }
.ftr-word:hover { color: var(--accent); }
.ftr-say { margin-top: clamp(28px, 3vw, 44px); max-width: 30ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; color: #fff; }
.ftr-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-top: clamp(96px, 11vw, 168px); }
.ftr-lead { grid-column: 1 / 3; }
.ftr-h { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ftr-big { position: relative; display: inline-block; font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: #fff; text-decoration: none; padding-bottom: 6px; }
/* Underlines are a real element that grows, not a gradient background: they are not "an orange fill behind white text". */
.ftr-big::after, .ftr-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ftr-big:hover::after, .ftr-cols a:hover::after { transform: scaleX(1); }
.ftr-cols { grid-column: 3 / -1; display: grid; grid-template-columns: subgrid; }
.ftr-cols > * { display: flex; flex-direction: column; gap: 8px; }
.ftr-cols a { position: relative; width: fit-content; font-size: 17px; text-decoration: none; color: #fff; }
.ftr-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-right: 88px; margin-top: clamp(72px, 8vw, 120px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 900px) {
  .ftr-wrap { grid-template-columns: minmax(0, 1fr); }
  .ftr-guides { display: none; }
  .ftr-top, .ftr-bottom, .ftr-lead, .ftr-cols, .ftr-base { grid-column: 1 / -1; }
  .ftr-word { font-size: 29vw; }
  .ftr-bottom { grid-template-columns: minmax(0, 1fr); row-gap: 48px; margin-top: 80px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* Microinteractions (after Axus) ------------------------------------------------------------ */
/* Rolling letters: every letter is two copies stacked in a mask one line tall; hovering the element (or its card) slides the pair up. */
.rl { display: inline-block; line-height: 1.15; vertical-align: top; }
.rw { display: inline-flex; align-items: flex-start; height: 1.15em; margin-block: -.04em; overflow: hidden; line-height: 1.15; vertical-align: top; white-space: pre; }
.rc { display: flex; flex-direction: column; transition: transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 16ms); }
.rcc { display: block; height: 1.15em; }
a:hover .rc, a:focus-visible .rc, button:hover .rc, button:focus-visible .rc, .roll-host:hover .rc, .roll-host:focus-within .rc { transform: translateY(-50%); }
/* Sliding the pointer across a title rolls the letters under it, one by one, with no delay. */
.rc:hover { transform: translateY(-50%); transition-delay: 0s; }
/* A title with an arrow: on hover the text slides right and the arrow comes in from the left. */
.t-slide { position: relative; display: inline-flex; align-items: center; transition: transform .5s var(--ease); }
.t-arrow { position: absolute; left: -1.1em; top: 50%; width: .8em; height: .8em; translate: 0 -50%; opacity: 0; transition: opacity .4s var(--ease); }
.roll-host:hover .t-slide, .roll-host:focus-within .t-slide, a:hover > .t-slide { transform: translateX(1.1em); }
.roll-host:hover .t-arrow, .roll-host:focus-within .t-arrow, a:hover > .t-slide .t-arrow { opacity: 1; }
/* Titles that rise: each word comes up from behind a mask. */
.mw { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: top; }
.mi { display: inline-block; will-change: transform; }

/* Project columns (after Linie), shared by the home's "Trabajos" and the projects page: four (or three) columns, every other
   one a step lower. Each project is a vertical frame with two or three phone-sized screens: on hover the next screen wipes up over the previous one
   while the texts move; on phones it happens by itself while the project is on screen. */
.work-cols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.work-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
.work-item { display: block; }
.work-item:nth-child(even) { margin-top: 80px; }
.work-cols--3 .work-item:nth-child(even) { margin-top: 0; }
.work-cols--3 .work-item:nth-child(3n+2) { margin-top: 80px; }
.work-label { position: relative; padding: 18px 0 0 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.work-label::before { content: ""; position: absolute; left: 0; top: 18px; width: 2px; height: 14px; background: var(--ink); transform-origin: top; transition: transform .6s var(--ease); }
.work-item:hover .work-label::before { transform: scaleY(2.2); }
.work-fig { position: relative; display: block; margin-top: 22px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.work-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-fig img:first-child { transition: scale 1.4s var(--ease); }
.work-fig img + img { clip-path: inset(100% 0 0 0); scale: 1.12; transition: clip-path .9s var(--ease), scale 1.4s var(--ease); }
.work-item:hover .work-fig img + img, .work-item:focus-within .work-fig img + img { clip-path: inset(0 0 0 0); scale: 1; }
.work-item:hover .work-fig img:first-child { scale: 1.06; }
/* A third screen waits for the second to be seen, then wipes up too. */
.work-fig img:nth-child(3) { transition-delay: 0s; }
.work-item:hover .work-fig img:nth-child(3), .work-item:focus-within .work-fig img:nth-child(3) { transition-delay: 1.6s; }
/* Phones: the script moves data-step along (0, 1, 2) while the project is on screen. */
.work-fig[data-step="1"] img:nth-child(2), .work-fig[data-step="2"] img:nth-child(-n+3) { clip-path: inset(0 0 0 0); scale: 1; }
.work-item :is(h2, h3) { margin-top: 26px; font-size: clamp(26px, 2.3vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.work-t { display: inline-block; text-decoration: none; }
.work-desc { margin-top: 14px; max-width: 34ch; padding-right: 16px; color: var(--ink-2); transition: transform .7s var(--ease) .05s; }
.work-kind { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: transform .7s var(--ease) .1s, color .4s var(--ease); }
.work-desc + .work-kind { margin-top: 18px; }
.work-item:hover .work-desc { transform: translateX(10px); }
.work-item:hover .work-kind { transform: translateX(10px); color: var(--ink); }
.work-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.work-go svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.work-go:hover svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .work-cols, .work-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; }
  .work-item, .work-item:nth-child(even), .work-cols--3 .work-item:nth-child(3n+2) { margin-top: 0; }
}
@media (max-width: 560px) { .work-cols, .work-cols--3 { grid-template-columns: minmax(0, 1fr); } }

/* Cursor: a frosted-glass disc (like iOS) that trails the mouse over anything marked data-cursor. Fine pointers only. */
/* The wrapper only moves (JS sets its transform); the disc inside grows and shrinks. */
.proj-cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 0; height: 0; pointer-events: none; transform: translate3d(-200px, -200px, 0); }
.proj-cursor span { position: absolute; left: -52px; top: -52px; display: grid; place-items: center; width: 104px; height: 104px; padding: 0 12px; border-radius: 50%; background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 1px 0 rgba(255,255,255,.8), 0 14px 34px -14px rgba(18,18,18,.4); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.15; text-align: center; transform: scale(0); transition: transform .55s var(--ease); }
.proj-cursor.is-on span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .proj-cursor { display: none; } }
.has-cursor [data-cursor] { cursor: none; } /* only once the disc is running */

/* Smooth scroll (Lenis) */
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: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
