/* Patrick Criollo · brand tokens (Paso 0, 30 sep 2026) */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, [data-theme="dark"] {
  --bg: #121110; --bg2: #2A2724; --fg: #EDE8DF; --muted: #9A948A; --rule: #3A3632;
  --accent: #9CAF8C; --mark-a: #EDE8DF;
}
[data-theme="light"] {
  --bg: #EDE8DF; --bg2: #DDD6CA; --fg: #171513; --muted: #5E5850; --rule: #CFC7BA;
  --accent: #5C6B4E; --mark-a: #171513;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; transition: color .5s ease, opacity .5s ease, background-color .5s ease, border-color .5s ease, text-decoration-color .5s ease; }
button { transition: color .5s ease, opacity .5s ease; }
.row .t, .way .label, .way .w { transition: color .5s ease; }
a:hover { color: var(--accent); }
img, video { display: block; max-width: 100%; height: auto; }
.accent { color: var(--accent); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.human { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0; }
.huge { font-size: clamp(72px, 13vw, 184px); font-weight: 800; letter-spacing: -.055em; line-height: .82; margin: 0; }
.lead { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.01em; max-width: 30em; }
.mark line { stroke-width: 12; }
.mark-a { stroke: var(--mark-a); }
.mark-b { stroke: var(--accent); stroke-width: 12; }

/* top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 3vw, 44px); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; mix-blend-mode: difference; color: #EDE8DF; }
.topbar a:hover { color: #EDE8DF; opacity: .6; }
.brand { font-weight: 700; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a, .theme { padding: 12px 0; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 12px 0 12px 16px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 19; background: var(--bg); color: var(--fg); padding: 84px 16px 28px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; animation: menu-in .35s ease; }
.menu[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a { font-size: clamp(44px, 13vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; padding: 2px 0; }
.menu-links a[aria-current] { color: var(--accent); }
.menu-grid { display: grid; gap: 22px; margin-top: auto; }
.menu-grid p { margin: 6px 0 0; }
.menu-grid .label { margin: 0; }
.menu-grid a, .menu-grid .theme { font-size: 17px; padding: 6px 0; display: inline-block; }
.menu-grid .theme { text-transform: none; letter-spacing: 0; color: var(--fg); }
body.menu-open { overflow: hidden; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tools { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.lang { padding: 12px 0; }
.theme { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }

/* hero · starts centred, then the mark docks into a side panel (JS adds .docked) */
.hero { --panel: clamp(300px, 27vw, 400px); --ease: cubic-bezier(.7, 0, .2, 1);
  position: relative; min-height: min(100svh, 1000px); overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: 0; transition: left 1.1s var(--ease), bottom 1.1s var(--ease); }
.hero.docked .hero-stage { left: var(--panel); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-arrow, .hero-dots { opacity: 0; pointer-events: none; transition: opacity .6s ease .9s, color .5s ease; }
.hero.docked .hero-arrow, .hero.docked .hero-dots { opacity: 1; pointer-events: auto; }
.hero-arrow { position: absolute; z-index: 4; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; background: none; color: #EDE8DF; cursor: pointer; display: grid; place-items: center; }
.hero-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-arrow:hover { color: var(--accent); }
.hero-arrow.back { left: 12px; } .hero-arrow.fwd { right: 12px; }
.hero-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 62px; display: flex; justify-content: center; flex-wrap: wrap; padding: 0 60px; }
.hero-dots button { width: 20px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-dots button::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #EDE8DF; opacity: .45; transition: opacity .5s ease, background-color .5s ease, transform .5s ease; }
.hero-dots button:hover::after { opacity: .9; }
.hero-dots button[aria-current="true"]::after { opacity: 1; background: var(--accent); transform: scale(1.35); }
.slide { position: absolute; inset: 0; display: flex; gap: 6px; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: 1; transition: opacity 1.2s var(--ease);
  background: radial-gradient(ellipse 55% 50% at 50% 50%, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 50%, transparent) 80%),
  linear-gradient(to bottom, color-mix(in srgb, var(--bg) 80%, transparent) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
[data-theme="light"] .hero-shade { background: radial-gradient(ellipse 60% 55% at 50% 50%, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 85%),
  linear-gradient(to bottom, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
[data-theme="light"] .hero .human { color: #46523B; }
.hero-panel { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: var(--panel); background: var(--bg); transform: translateX(-101%); transition: transform 1.1s var(--ease), background .3s; }
.hero-brand { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 90px clamp(16px, 3vw, 44px); text-align: center; pointer-events: none; }
.hero-mark .mark { width: clamp(120px, 16vw, 210px); height: auto; }
.hero-line { width: 100%; max-width: 22em; transition: opacity .45s ease; }
.hero-name, .hero-sub { display: none; }
.hero-foot { position: absolute; z-index: 3; left: clamp(16px, 3vw, 44px); right: clamp(16px, 3vw, 44px); bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; transition: left 1.1s var(--ease); }
.hero-foot a { pointer-events: auto; }
.hero.leaving .hero-line { opacity: 0; }

/* docked */
.hero.docked .hero-shade { opacity: .25; }
.hero.docked .hero-panel { transform: none; }
.hero.docked .hero-brand { right: auto; width: var(--panel); align-items: flex-start; text-align: left; gap: 18px; padding: 90px clamp(20px, 2.4vw, 36px); }
.hero.docked .hero-mark .mark { width: 96px; }
.hero.docked .hero-name, .hero.docked .hero-sub { display: block; }
.hero.docked .hero-name { margin: 0; font-size: clamp(38px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.hero.docked .hero-line { font-size: clamp(22px, 2vw, 28px); }
.hero.docked .hero-name, .hero.docked .hero-line, .hero.docked .hero-sub { animation: rise .8s .75s both ease; }
.hero.docked .hero-foot { left: calc(var(--panel) + clamp(16px, 3vw, 44px)); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* work list */
.work { padding: 80px clamp(16px, 3vw, 44px) 40px; position: relative; }
.work > *:not(.work-bg) { position: relative; z-index: 1; }
.work-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.work-bg .stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.work-bg .slide { transition: opacity .6s ease; }
.work-bg .slide.on { opacity: .36; }
[data-theme="light"] .work-bg .slide.on { opacity: .26; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.count { font-size: .16em; letter-spacing: .1em; vertical-align: top; font-weight: 500; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button { background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); padding: 12px 10px; cursor: pointer; }
.filters button.on { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.rows { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 230px 110px; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--rule); }
.rows li:last-child .row { border-bottom: 1px solid var(--rule); }
.row .n, .row .d, .row .y { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row .y { text-align: right; }
.row .t { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.row sup { font-size: 12px; font-weight: 500; letter-spacing: .1em; margin-left: 6px; }
.row { -webkit-tap-highlight-color: transparent; }
.row:hover .t, .row.active .t { color: var(--accent); }
.row.active .y { color: var(--fg); }
.rows li.hide { display: none; }
.c { position: absolute; width: 20px; height: 20px; border: 0 solid var(--accent); }
.c.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.c.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.c.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.c.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }

/* intro + footer */
.intro { padding: 80px clamp(16px, 3vw, 44px); }
.footer { padding: 80px clamp(16px, 3vw, 44px) 28px; display: flex; flex-direction: column; align-items: flex-start; }
.footer .lines { align-self: stretch; }
.intro .lead { margin: 12px 0 20px; }
.more { font-weight: 700; display: inline-block; padding: 10px 0; }
.lines { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.lines i { display: block; background: var(--fg); }
.lines i:nth-child(1) { height: 4px; } .lines i:nth-child(2) { height: 2px; } .lines i:nth-child(3) { height: 1px; }
.footer .big { display: inline-block; white-space: nowrap; font-size: clamp(40px, 10.5vw, 170px); font-weight: 800; letter-spacing: -.055em; line-height: .9; margin: 18px 0 40px; }
.footrow { align-self: stretch; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(64px, 10vh, 120px); }

/* project */
.project, .about { padding: 110px clamp(16px, 3vw, 44px) 40px; }
.crumbs { margin-bottom: 18px; }
.phead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin: 0; }
.pintro { margin: 0; font-size: 19px; line-height: 1.5; max-width: 34em; }
.meta dt { color: var(--muted); } .meta dd { margin: 4px 0 0; color: var(--fg); }
.viewbar { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 12px; border-top: 1px solid var(--rule); }
.views button { background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); padding: 12px 8px; cursor: pointer; }
.views button.on { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.gallery-wrap[data-view="film"] .gallery, .gallery-wrap[data-view="grid"] .film { display: none; }
.film { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px calc(-1 * clamp(16px, 3vw, 44px)) 0; padding: 0 clamp(16px, 3vw, 44px) 12px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.film.dragging { cursor: grabbing; scroll-snap-type: none; }
.film:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { margin: 0; flex: none; scroll-snap-align: start; }
.frame img { height: min(74vh, 760px); width: auto; max-width: none; user-select: none; }
.frame figcaption { margin-top: 8px; }
.gallery { columns: 3 320px; column-gap: 14px; margin-top: 16px; }
.shot { display: block; margin-bottom: 14px; break-inside: avoid; cursor: zoom-in; }
.shot img { width: 100%; }
.videos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; align-items: flex-start; }
.vid { margin: 0; flex: 1 1 520px; }
.vid.vertical { flex: 0 1 260px; }
.vid video { width: 100%; background: var(--bg2); }
.vid figcaption { margin-top: 8px; }
.next { display: flex; flex-direction: column; gap: 8px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--rule); }
.next .t { font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; width: auto; }
.lb-close { position: absolute; top: 8px; right: 16px; background: none; border: 0; padding: 14px 4px; cursor: pointer; color: var(--fg); }

/* case */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0; }
.stat { background: var(--accent); color: var(--bg); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 200px; }
.stat .num { font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.stat .txt { font-size: 15px; line-height: 1.35; font-weight: 500; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.slashes { list-style: none; padding: 0; margin: 12px 0 0; }
.slashes li { padding: 10px 0 10px 28px; border-top: 1px solid var(--rule); position: relative; }
.slashes li::before { content: "//"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.small { font-size: 13px; color: var(--muted); }

/* about */
.portrait { position: relative; margin: 0 0 32px; padding: 12px; }
.portrait img { width: 100%; filter: grayscale(1) contrast(1.05); }
.portrait .c { position: absolute; width: 20px; height: 20px; border: 0 solid var(--accent); }
.ul { text-decoration: underline; text-underline-offset: 4px; }
.footlinks a:hover { color: var(--accent); }

/* contact */
.contact { padding: 110px clamp(16px, 3vw, 44px) 40px; }
.contact .human { margin-top: 14px; }
.ways { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin: 48px 0; }
.way { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 170px; padding: 20px; border: 1px solid var(--rule); transition: background-color .5s ease, border-color .5s ease, color .5s ease; }
.way .w { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.way:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.way:hover .label { color: var(--bg); }
.info .label { margin-top: 24px; }
.info p { max-width: 34em; }
.about .cols { margin-top: 48px; }
.about p { max-width: 36em; }
.about .side .label { margin-top: 28px; }
.markstory svg { width: 100%; max-width: 360px; height: auto; margin-bottom: 12px; }
.markstory .l1 { stroke: var(--fg); stroke-width: 5; } .markstory .l2 { stroke: var(--fg); stroke-width: 3.2; } .markstory .l3 { stroke: var(--fg); stroke-width: 1.8; }
.markstory .mark-b { stroke-width: 3; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 36px minmax(0, 1fr) 72px; }
  .row .d { display: none; }
  .row .y { font-size: 11px; }
  .stats, .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phead { grid-template-columns: minmax(0, 1fr); }
  .slide.n3 img:nth-child(3) { display: none; }
  .hero-panel { left: 0; right: 0; top: auto; width: auto; height: 46%; transform: translateY(101%); }
  .hero.docked .hero-brand { top: auto; right: 0; width: auto; height: 46%; justify-content: center; padding: 20px 16px 56px; gap: 12px; }
  .hero.docked .hero-mark .mark { width: 56px; }
  .hero.docked .hero-stage { left: 0; bottom: 46%; }
  .hero-dots { bottom: 10px; padding: 0 44px; }
  .hero-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .hero.docked .hero-foot { left: 16px; }
  .hero.docked .hero-foot span:last-child { display: none; }
  .frame img { height: 62vh; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .hero-foot { justify-content: center; text-align: center; }
  .hero-foot a { display: none; }
  .nav, .tools { display: none; }
  .menu-btn { display: block; }
  .topbar { padding: 8px 16px; }
  body.menu-open .topbar { mix-blend-mode: normal; color: var(--fg); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .slide { transition: none; } }
