/* ==========================================================================
   madASCII Studios — tokens + components
   Fonts: Montserrat (text and numbers), JetBrains Mono (labels/meta, ASCII)
   ========================================================================== */

:root {
  /* Brand palette (webref/colors.png) */
  --neon: #7EFF47;
  --ink: #141414;
  --paper: #EEF0F2;
  --indigo: #1D38ED;
  --navy: #022050;

  --line: rgba(238, 240, 242, .14);
  --muted: rgba(238, 240, 242, .56);

  --f-text: "Montserrat", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --t-xl: clamp(2.6rem, 7vw, 7.5rem);
  --t-l: clamp(2rem, 4.4vw, 4.4rem);
  --t-m: clamp(1.4rem, 2.4vw, 2.2rem);
  --t-s: .75rem;
  --t-label: .6875rem;

  --gutter: clamp(16px, 2.4vw, 32px);
  --section: clamp(88px, 11vw, 160px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Light sections flip the local variables, so components work on either. */
[data-tone="light"] { --line: rgba(20, 20, 20, .14); --muted: rgba(20, 20, 20, .56); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-text); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--neon); color: var(--ink); }

/* ---------- Primitives ---------- */
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-navy { background: var(--navy); }
.bg-indigo { background: var(--indigo); }

.label { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.neon { color: var(--neon); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--neon); margin-right: 10px; vertical-align: 1px; }

.t-xl { font-size: var(--t-xl); font-weight: 600; line-height: .96; letter-spacing: -.045em; margin: 0; }
.t-l { font-size: var(--t-l); font-weight: 600; line-height: 1; letter-spacing: -.035em; margin: 0; }
.t-m { font-size: var(--t-m); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; margin: 0; }

/* Two-column section scaffold: label left quarter, content right */
.split { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.split > .label { padding-top: .6em; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }

.link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link .arr { transition: transform .3s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border: 0;
  background: var(--neon); color: var(--ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s;
}
.btn:hover { background: var(--paper); }

.chip {
  height: 32px; padding: 0 14px; border: 1px solid var(--line); background: none; border-radius: 0;   /* square, like the cursor */
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: .2s;
}
.chip:hover { border-color: currentColor; }
.chip.is-on { background: var(--neon); border-color: var(--neon); color: var(--ink); }

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;              /* a square in every state, like a pixel */
  border: 1.5px solid #fff; mix-blend-mode: difference;
  display: none; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .25s, opacity .2s;
}
.has-cursor .cursor { display: grid; }   /* mouse devices only (class set in <head>, see header.php) */
.cursor__txt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: #fff; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--neon); border-color: var(--neon); mix-blend-mode: normal; }
.cursor.is-label .cursor__txt { opacity: 1; }
.cursor.is-text { width: 2px; height: 28px; margin: -14px 0 0 -1px; border: 0; background: #fff; animation: caret 1s steps(2) infinite; }
.cursor.is-ascii { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor.is-down { transform: scale(.75); }
.cursor.is-out { opacity: 0; }
@keyframes caret { 50% { opacity: .2; } }

/* ---------- Header: transparent, tone flips to stay legible ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  color: #fff; transition: color .4s var(--ease), transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }   /* hides while scrolling down, returns on scroll up */
.nav > * { transition: color .4s var(--ease); }
.nav.on-light-l .logo, .nav.on-light-r .nav__links, .nav.on-light-r .nav__menu { color: var(--ink); }
.logo { display: block; width: 132px; aspect-ratio: 300 / 82; background: currentColor;
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__links a { font-size: 14px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: currentColor; transition: right .35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { right: 0; }
.nav__menu { display: none; background: none; border: 0; padding: 8px 0; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
}
.menu.is-open { clip-path: inset(0); }
.menu a.t-l { display: block; padding: 6px 0; }
body.menu-open .nav > * { color: var(--paper) !important; }

/* ---------- Hero slideshow + ASCII layer ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #000; touch-action: pan-y; }
/* Slides don't move, so the ASCII layer always lines up with the photo. A new slide is
   revealed by the wipe (clip-path set in site.js); the previous one stays underneath until then. */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide.is-prev { opacity: 1; }
@media (max-width: 820px) { .hero__slide { object-position: var(--mx, 50%) var(--my, 50%); } }   /* set per slide in Hero Slides → Phone view */
.hero__ascii { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* ASCII lens: soft round window (moved by site.js with transforms only, no drawing per frame) */
.hero__lens { position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,.9), rgba(0,0,0,.55) 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, rgba(0,0,0,.9), rgba(0,0,0,.55) 35%, transparent 100%); }
.hero__lens canvas { position: absolute; left: 0; top: 0; will-change: transform; }
.hero__fade, .hero__bar { z-index: 3; }
.hero__fade { position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.hero__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero__caption { display: flex; gap: 18px; align-items: baseline; }
.hero__caption b { font-weight: 600; font-family: var(--f-text); font-size: 14px; letter-spacing: 0; text-transform: none; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 44px; height: 20px; padding: 0; border: 0; background: none; position: relative; }
.hero__dots button::before, .hero__dots i { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(255,255,255,.3); }
.hero__dots i { background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__dots button.is-on i { animation: prog var(--dur, 6s) linear forwards; }
.hero.is-paused .hero__dots button.is-on i { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }

/* ---------- Statement [01] ---------- */
.statement__text { font-size: var(--t-m); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; margin: 0; max-width: 26ch; }
.statement__text span { color: var(--muted); }

/* ---------- Work cards (MAPPA-style key visuals) ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) var(--gutter); }
.works--2 { grid-template-columns: repeat(2, 1fr); }
.work__media { aspect-ratio: 16 / 9; overflow: hidden; background: #222; position: relative; }   /* the key visuals' own shape */
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.work:hover .work__media img { transform: scale(1.04); }
.work__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.work__title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.work__badge { position: absolute; left: 12px; top: 12px; background: var(--neon); color: var(--ink); padding: 3px 8px; }

/* ---------- Index list (A24-style) ---------- */
.index { width: 100%; border-collapse: collapse; }
.index th { text-align: left; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid currentColor; color: var(--muted); }
.index td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.index tr[data-href] { transition: color .2s; }
.index tr[data-href]:hover { color: var(--neon); }
[data-tone="light"] .index tr[data-href]:hover { color: var(--indigo); }
.index .i-year { width: 14%; font-family: var(--f-mono); }
.index .i-title { font-size: var(--t-m); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.index .i-cat { width: 18%; }
.index .i-role { width: 26%; font-size: var(--t-s); color: var(--muted); }
.peek { position: fixed; z-index: 50; width: 320px; aspect-ratio: 16 / 9; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .35s var(--ease); }
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Capabilities: Pre / Production / Post ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cap { padding: 28px var(--gutter) 0 0; }
.cap + .cap { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.cap ul { list-style: none; margin: 20px 0 0; padding: 0; }
.cap li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cap li:last-child { border-bottom: 0; }
/* Full 3D pipeline: highlighted block at the end of the Post column */
.cap__3d { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--neon); }
.cap__3d b { display: block; font-size: 1.15rem; font-weight: 600; margin-top: 10px; letter-spacing: -.01em; }
.cap__3d p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---------- News rows ---------- */
/* One row per post, information only (not clickable). A post with a featured image (WP thumbnail)
   gets .has-img and shows it on the right; a post without one stays text-only. The latest post on /news can use the large .post-feature. */
.news .n-item { display: grid; grid-template-columns: 1fr 3fr 160px; gap: var(--gutter); padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news .n-item:first-child { border-top: 1px solid var(--line); }
.news .n-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.news .n-title small { display: block; font-size: var(--t-s); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.news .n-img { aspect-ratio: 16 / 10; overflow: hidden; }
.news .n-img img { width: 100%; height: 100%; object-fit: cover; }
.post-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
.post-feature .work__media { aspect-ratio: 16 / 9; }
.post-feature p { color: var(--muted); max-width: 44ch; }

/* ---------- Team ---------- */
/* One person per row: photo on the left, number + name + role on the right */
/* Team. Desktop: the original cards, four across (photo, name, role). Phones: one person per row (see below). */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.member__media { aspect-ratio: 4 / 5; background: #D9DCE0; overflow: hidden; }
.member__media canvas, .member__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.member__info { margin-top: 14px; min-width: 0; }
.member__info > .label { display: none; }   /* the [01] number is only used in the phone rows */
.member__name { font-weight: 600; font-size: 1.1rem; }
.member p { margin: 6px 0 0; font-size: var(--t-s); color: var(--muted); max-width: 34ch; }
.member--more .member__media { background: none; border: 1px dashed rgba(20,20,20,.3); display: grid; place-items: center; text-align: center; padding: 24px; }

/* ---------- Stats ---------- */
/* ---------- Why Hungary (navy block, big numbers) ---------- */
.hu__lede { max-width: 46ch; margin: 24px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(238,240,242,.32); margin-top: clamp(48px, 6vw, 96px); }
.stat { padding: 28px var(--gutter) 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: var(--gutter); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.stat__num small { font-size: .4em; color: var(--neon); margin-left: 4px; }
.stat p { color: var(--muted); font-size: var(--t-s); max-width: 26ch; margin: 14px 0 0; }
.hu__note { margin-top: 36px; }

/* ---------- Project page ---------- */
.p-hero { position: relative; height: min(56.25vw, 100svh); overflow: hidden; }   /* full page width; very wide screens crop the bottom */
.p-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 48px; }
.facts div > span { display: block; margin-bottom: 6px; }
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); filter: grayscale(1) contrast(.8) brightness(.9); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: var(--neon); }
.compare__tag { position: absolute; top: 14px; color: #fff; }
/* Gallery: messy masonry. Every image keeps its own proportions (nothing is cropped);
   the columns have different widths and start at different heights. Phones: see the 820px block. */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr .85fr; gap: var(--gutter); align-items: start; }
.gallery--2 { grid-template-columns: 1.4fr 1fr; }
.gallery--1 { grid-template-columns: minmax(0, 1fr); }
.gallery__col { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 64px); min-width: 0; }
.gallery__col:nth-child(2) { padding-top: clamp(48px, 10vw, 180px); }
.gallery__col:nth-child(3) { padding-top: clamp(24px, 4vw, 72px); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery__col:nth-child(odd) img:nth-child(even) { width: 82%; margin-left: auto; }
.gallery__col:nth-child(2) img:nth-child(even) { width: 88%; }
.next { display: block; padding: var(--section) 0; text-align: center; }
.next .t-xl { transition: color .3s; }
.next:hover .t-xl { color: var(--neon); }

/* ---------- Contact ---------- */
.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.mail { font-size: var(--t-m); font-weight: 600; letter-spacing: -.02em; border-bottom: 1.5px solid currentColor; padding-bottom: 6px; }
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field input, .field textarea { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 1.15rem; outline: none; transition: border-color .2s; resize: vertical; border-radius: 0; }
.field input:focus, .field textarea:focus { border-color: var(--neon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.footer ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: var(--t-s); }
.footer li { padding: 3px 0; }
.footer li a:hover { color: var(--neon); }
.footer__base { display: flex; justify-content: space-between; margin-top: 80px; color: var(--muted); }

/* Reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .stats, .team { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 32px; }
}
@media (max-width: 820px) {
  :root { --nav-h: 76px; }
  .nav { padding: 8px 24px 0; }   /* more breathing room around logo and menu on phones */
  .menu { padding-left: 24px; padding-right: 24px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .split, .caps, .footer__top, .post-feature { grid-template-columns: 1fr; }
  .gallery { display: flex; flex-direction: column; gap: 16px; }   /* one column, images back in their original order */
  .gallery__col { display: contents; }
  .cap + .cap { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .news .n-item { grid-template-columns: 1fr 96px; gap: 6px 16px; }
  .news .n-item > .label { grid-column: 1 / -1; }
  .index thead, .index .i-role { display: none; }
  .index .i-cat { width: auto; text-align: right; }
  .hero__caption .label:last-child { display: none; }
  .head { flex-direction: column; align-items: flex-start; }
  .peek { display: none; }
}
@media (max-width: 560px) {
  .works, .works--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat + .stat { padding-left: 0; margin-top: 24px; }
  .hero__dots button { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   WordPress additions
   ========================================================================== */

/* Admin bar: keep the fixed header below it while logged in */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Statement text written in the page editor: paragraphs flow as one block,
   the first in full white, the rest muted (same look as the static design). */
.statement { font-size: var(--t-m); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; max-width: 26ch; }
.statement p { display: inline; margin: 0; color: var(--muted); }
.statement p:first-child { color: inherit; }
.statement p + p::before { content: " "; }

/* Status column in the Work index */
.index .i-status { width: 16%; }
.index .i-status .is-live { color: var(--neon); }
[data-tone="light"] .index .i-status .is-live { color: var(--indigo); }

/* Hero caption can link to the project */
a.hero__caption-title:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact form: chips are real checkboxes */
.chip { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border: 1px solid currentColor; font-size: var(--t-s); }

/* Generic pages (privacy policy etc.) */
.prose { max-width: 70ch; }
.prose h2, .prose h3 { font-weight: 600; letter-spacing: -.02em; margin: 2em 0 .5em; }
.prose a { text-decoration: underline; }
.prose img { height: auto; }

/* Work filter: hidden items */
.work.is-hidden, .index tr.is-hidden { display: none; }

/* Credits table on project pages (always shows the role, also on phones) */
.index .i-credit { width: 40%; font-size: var(--t-s); color: var(--muted); }

/* Phones: the Work index keeps Year, Title and Status (type is in the filter chips) */
@media (max-width: 820px) {
  #works-index .i-cat { display: none; }
  #works-index .i-status { width: auto; text-align: right; }
}

/* Team photo ASCII blast (canvas drawn by site.js above the page) */
.blast { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 900; }
.member__media[role="button"]:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }

/* Contact page: email + info, no form */
.contact__mail { display: inline-block; font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: -.03em; }
.contact__grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.contact__info { max-width: 52ch; font-size: 1.05rem; }
.contact__info p { margin: 0 0 1em; }
.contact__info p:first-child { font-size: var(--t-m); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } .contact__mail { word-break: break-all; } }

/* Phones: bigger tap targets in the menu, and project key visuals shown whole (full width, natural height) */
@media (max-width: 820px) {
  .menu nav { display: flex; flex-direction: column; gap: 10px; }
  .menu a.t-l { padding: 12px 0; }
  .p-hero { height: auto; min-height: 0; aspect-ratio: auto; max-height: none; padding-top: var(--nav-h); background: var(--ink); }
  .p-hero img { height: auto; }
}

/* Work page: the credits note under the heading */
.work-note { margin: 24px 0 0; max-width: 64ch; font-size: var(--t-s); color: var(--muted); }

/* Work page filter bar: lines above and below, a divider after the type filters (like Pre to post) */
.filterbar { display: flex; justify-content: space-between; align-items: stretch; margin: 48px 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filterbar .chips { padding: 16px 0; }
.filterbar .chips:first-child { padding-right: var(--gutter); border-right: 1px solid var(--line); }
@media (max-width: 820px) {
  .filterbar { flex-direction: column; }
  .filterbar .chips:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Arrow-in-square icon after email links */
.icon-out { display: inline-block; width: .72em; height: .72em; margin-left: .3em; vertical-align: -.02em; transition: transform .3s var(--ease); }
.mail:hover .icon-out { transform: translate(2px, -2px); }

/* Team on phones: one person per row, photo left, number + name + role right */
@media (max-width: 820px) {
  .team { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .member { display: grid; grid-template-columns: 44% 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .member__info { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; margin-top: 0; }
  .member__info > .label { display: inline; }
  .member__name { font-size: 1.5rem; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 8px; }
}