/* =========================================================
   Danny JiJi | site styles
   One 12-column grid, one spacing scale, quiet museum typography.

   Breakpoints
     mobile   < 600px    single column
     tablet   600–1023   stacked rows, 2-up work grid (iPad portrait)
     desktop  ≥ 1024     label / content split on the grid (iPad landscape, laptops)
     wide     ≥ 1600     content width capped, margins grow
   ========================================================= */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --text: #1f1f1f;
  --bg: #fff;
  --surface: #f3f1f0;
  --surface-2: #e9e6e5;
  --muted: #5e5e5e;
  --hover: #767676;
  --strong: #0d0d0d;
  --line: rgba(31,31,31,.14);
  --field: transparent;
  --field-border: rgba(31,31,31,.28);
  --error: #b42318;
  --success: #1f6b3a;
  --ink: #0b0b0c;

  --max: 1680px;
  --margin: clamp(20px, 4.2vw, 72px);
  --col-gap: clamp(16px, 1.8vw, 32px);

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --block: clamp(40px, 4.5vw, 72px);
  --section: clamp(112px, 12vw, 208px);

  --ease: cubic-bezier(.44,0,.56,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:#e8e8e8; --bg:#0a0a0a; --surface:#161616; --surface-2:#222; --muted:#a6a6a6; --hover:#a6a6a6;
    --strong:#fff; --line:rgba(232,232,232,.14); --field-border:rgba(232,232,232,.3);
    --error:#ff8a80; --success:#7fd69b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --text:#e8e8e8; --bg:#0a0a0a; --surface:#161616; --surface-2:#222; --muted:#a6a6a6; --hover:#a6a6a6;
  --strong:#fff; --line:rgba(232,232,232,.14); --field-border:rgba(232,232,232,.3);
  --error:#ff8a80; --success:#7fd69b; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 1px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 16px; font-size: 16px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.link { transition: color .2s var(--ease); }
.link:hover { color: var(--hover); }
.u-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; text-decoration-color: var(--line); transition: text-decoration-color .2s var(--ease); }
.u-link:hover { text-decoration-color: currentColor; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.t-display { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.028em; font-variation-settings: "opsz" 32; }
.t-display strong { font-weight: 600; }
.t-title { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -.022em; font-variation-settings: "opsz" 32; }
.t-xl { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.015em; font-variation-settings: "opsz" 32; }
.t-body { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; max-width: 60ch; }
.t-small { font-size: 15px; line-height: 1.55; }
.t-ui { font: 500 15px/20px "Inter", sans-serif; }
.prose { display: flex; flex-direction: column; gap: 1em; max-width: 60ch; }

/* ---------- Grid ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid, .split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-3); }
.split > :first-child { grid-column: 1 / span 5; }
.split > :nth-child(2) { grid-column: 7 / -1; }
.split > :only-child { grid-column: 7 / -1; }
.stack { display: flex; flex-direction: column; gap: var(--block); }

.page { display: flex; flex-direction: column; min-height: 100vh; }
main { display: flex; flex-direction: column; gap: var(--section); padding-bottom: var(--section); }
main:focus { outline: none; }
.page > nav + main { padding-top: clamp(32px, 5vw, 80px); }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: clamp(20px, 2.4vw, 36px); position: relative; z-index: 20; }
.nav__brand { display: flex; align-items: center; gap: clamp(24px, 3.6vw, 56px); min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--strong); transition: opacity .2s var(--ease); }
.brand:hover { opacity: .65; }
.brand__mark { height: 22px; width: auto; flex: none; }
.brand__word { height: 10px; width: auto; flex: none; }
.nav__tag { font-size: 15px; color: var(--muted); white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); }
.nav__links { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); font-size: 16px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px; background: none; border: 0; cursor: pointer; color: var(--text); border-radius: 50%; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
.nav__brand .icon-btn { display: none; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(32px, 4vw, 56px); padding-top: clamp(48px, 9vh, 140px); }
.hero__head h1 span { display: block; }
.hero__head h1 span + span { font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; font-size: 16px; padding-top: var(--s-2); }
.hero__actions a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark-wrap { padding-top: clamp(40px, 6vh, 88px); padding-bottom: var(--margin); }
.wordmark { display: block; width: 100%; height: auto; color: var(--strong);
  opacity: 0; transform: translateY(24px); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) .15s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wordmark { animation: none; opacity: 1; transform: none; } }

/* ---------- Film ---------- */
.film { margin-bottom: clamp(16px, 4vw, 64px); }   /* extra air before the first section */
.film__ctrl { position: relative; background: #000; display: grid; place-items: center;
  height: 100vh; height: 100svh; min-height: 520px; }        /* full screen height, like the hero */
/* Square at native aspect, never wider than the source (864px): no cropping, no upscaling on standard displays. */
.film video { display: block; aspect-ratio: 1; height: auto; object-fit: contain; background: #000;
  width: min(864px, 88vh); width: min(864px, 88svh); max-width: 100%; }
@media (max-width: 599.98px) {                                 /* phones: hero isn't full height either */
  .film__ctrl { height: auto; min-height: 0; }
  .film video { width: 100%; }
}
.film__toggle { position: absolute; right: var(--s-3); bottom: var(--s-3); display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.film__toggle:hover { background: rgba(0,0,0,.72); }

/* ---------- Section rows ---------- */
.row-label { font-size: 15px; line-height: 1.4; color: var(--muted); padding-top: .4em; }
.row-content { display: flex; flex-direction: column; gap: var(--s-4); }
.section-head { align-items: baseline; }

/* ---------- Artwork grid ---------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(56px, 6vw, 112px); }
.works > .work { grid-column: span 6; }
.works--3 > .work { grid-column: span 4; }
.work { display: flex; flex-direction: column; gap: var(--s-2); }
.work__media { order: -1; background: var(--ink); overflow: hidden; aspect-ratio: 1; }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__meta { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); font-size: 15px; line-height: 1.5; }
.work__meta .num { grid-row: 1 / span 2; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2ch; }
.work__title { font-size: 17px; }
.work__sub { color: var(--muted); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .work__media img { filter: grayscale(1); transition: filter .5s var(--ease), transform .9s cubic-bezier(.2,.8,.2,1); }
  .work:hover .work__media img, .work:focus-visible .work__media img { filter: none; transform: scale(1.012); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .work:hover .work__media img, .work:focus-visible .work__media img { transform: none; }
}
.work:focus-visible { outline-offset: 6px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--text); cursor: pointer; overflow: hidden; isolation: isolate;
  background: transparent; color: var(--text); white-space: nowrap;
  font: 500 15px/20px "Inter", sans-serif; letter-spacing: .01em; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--text); transform: translateY(101%); transition: transform .45s cubic-bezier(.6,0,.2,1); z-index: -1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid::before { background: var(--strong); }
.btn[disabled] { cursor: not-allowed; opacity: .6; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .label { font: 500 14px/20px "Inter", sans-serif; }
.field .req { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px; border-radius: 0;
  font: 400 16px/22px "Inter", sans-serif;
  background: var(--field); border: 1px solid var(--field-border); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.textarea { min-height: 168px; resize: vertical; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23767676' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.select:invalid { color: var(--muted); }
.select option { color: var(--text); background: var(--bg); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error) !important; }
.field__hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.field__error { font-size: 14px; line-height: 1.45; color: var(--error); display: none; }
.field__error:not(:empty) { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; cursor: pointer; min-height: 44px; padding-top: 11px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--field-border); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:hover { border-color: var(--text); }
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.status { font-size: 15px; line-height: 1.5; display: none; padding: 14px 16px; border-left: 2px solid currentColor; }
.status:not(:empty) { display: block; }
.status[data-state="success"] { color: var(--success); background: color-mix(in srgb, var(--success) 7%, transparent); }
.status[data-state="error"] { color: var(--error); background: color-mix(in srgb, var(--error) 7%, transparent); }
.status[data-state="info"] { color: var(--text); background: var(--surface); }
.status a { text-decoration: underline; text-underline-offset: .2em; }
.preview-note { font-size: 13px; line-height: 1.45; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.preview-note::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #c98a00; }
form[data-endpoint]:not([data-endpoint=""]) .preview-note { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Studio Letters | three options (modifier on .letters)
   ========================================================= */
.letters .lt-eyebrow { font-size: 14px; letter-spacing: .01em; color: var(--muted); }
.letters .lt-head { font-size: clamp(34px, 4vw, 60px); line-height: 1.04; letter-spacing: -.025em; font-variation-settings: "opsz" 32; }
.letters .lt-body { max-width: 36ch; }
.letters .lt-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.letters .lt-form { display: flex; flex-direction: column; gap: var(--s-2); }
.letters .lt-inline { display: flex; gap: 8px; align-items: stretch; }
.letters .lt-inline .input { flex: 1; min-width: 0; }
.letters .lt-inline .btn { flex: none; }
.letters .lt-inner { padding-block: clamp(72px, 9vw, 144px); }
.letters .lt-inner > .lt-copy { grid-column: 1 / span 5; }
.letters .lt-inner > .lt-form { grid-column: 7 / -1; align-self: end; max-width: 620px; }

.letters--a { background: var(--surface); }
.letters--a .input { background: var(--bg); }
.letters--a .btn { background: var(--text); color: var(--bg); }
.letters--a .btn::before { background: var(--strong); }

.letters--b { background: var(--ink); color: #f2f2f2; --text: #f2f2f2; --muted: #a8a8a8; --field-border: rgba(255,255,255,.3); --line: rgba(255,255,255,.14); --error: #ff9b91; --success: #8fe0a9; --surface: #1a1a1a; --bg: #0b0b0c; --strong: #fff; }
.letters--b .lt-split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 46vw, 760px); }
.letters--b .lt-media { position: relative; overflow: hidden; }
.letters--b .lt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.letters--b .lt-copy { justify-content: center; padding: clamp(56px, 7vw, 120px) var(--margin) clamp(56px, 7vw, 120px) clamp(32px, 6vw, 112px); max-width: 760px; }
.letters--b .lt-head { color: #fff; }
.letters--b .lt-body { color: #cfcfcf; }
.letters--b .lt-form { margin-top: var(--s-2); }
.letters--b .btn { background: #f2f2f2; color: #0b0b0c; border-color: #f2f2f2; }
.letters--b .btn::before { background: #fff; }
.letters--b .btn:hover { color: #0b0b0c; }
.letters--b .check input:checked { background: #f2f2f2; border-color: #f2f2f2; }
.letters--b .check input:checked::after { border-color: #0b0b0c; }
.letters--b :focus-visible { outline-color: #fff; }

.letters--c { border-block: 1px solid var(--line); }
.letters--c .lt-inner { align-items: center; }
.letters--c .lt-inner > .lt-copy { grid-column: 1 / span 6; }
.letters--c .lt-art { grid-column: 8 / -1; justify-self: center; width: min(100%, 480px); aspect-ratio: 1; color: var(--text); }
.letters--c .lt-art svg { width: 100%; height: 100%; }
.letters--c .lt-form { margin-top: var(--s-2); }
.letters--c .input { border: 0; border-bottom: 1px solid var(--text); padding-inline: 0; font-size: 19px; min-height: 56px; }
.letters--c .input:focus-visible { box-shadow: 0 1px 0 0 var(--text); }
.letters--c .lt-inline { gap: 0; }
.letters--c .btn { border: 0; border-bottom: 1px solid var(--text); padding: 0 0 0 24px; min-height: 56px; }
.letters--c .btn::before { display: none; }
.letters--c .btn:hover { color: var(--text); }
.letters--c .btn .arrow { transition: transform .3s var(--ease); }
.letters--c .btn:hover .arrow { transform: translateX(4px); }

/* ---------- Work detail ---------- */
.crumbs { font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.crumbs a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.piece { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; row-gap: var(--s-5); }
.piece > .piece__figure { grid-column: 1 / span 7; }
.piece > .piece__info { grid-column: 9 / -1; }        /* a full empty column of air between image and text */
.piece__figure { background: var(--ink); }
.piece__figure img { width: 100%; height: auto; }
.piece__info { position: sticky; top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-5); }
.piece__head { display: flex; flex-direction: column; gap: var(--s-2); }
.piece__info .t-body { font-size: 17px; }
.facts { display: grid; grid-template-columns: 7.5em 1fr; font-size: 15px; }
.facts dt, .facts dd { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.inquiry { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; padding-top: var(--s-4); border-top: 1px solid var(--text); }
.inquiry h2 { font-size: 17px; font-weight: 500; }
.inquiry .btn { margin-top: var(--s-1); }

/* ---------- About ---------- */
.bio-text { display: flex; flex-direction: column; gap: var(--s-5); max-width: 60ch;
  font-size: clamp(17px, 1.25vw, 20px); }               /* same font size as the paragraphs, so 60ch = the text measure */
.bio-text .prose { max-width: none; }
.portrait { width: 100%; aspect-ratio: 1; background: #e4e4e4; overflow: hidden; }   /* photo spans the text width exactly */
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.signature { width: clamp(180px, 17vw, 260px); margin-top: var(--s-1); }
.signature img { width: 100%; height: auto; }
.sig-light { display: none; }
:root[data-theme="dark"] .sig-dark { display: none; }
:root[data-theme="dark"] .sig-light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sig-dark { display: none; } :root:not([data-theme="light"]) .sig-light { display: block; } }
.note .prose { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { align-items: start; }
.contact > .contact__intro { grid-column: 1 / span 5; }
.contact > form { grid-column: 7 / -1; }
.contact__intro { position: sticky; top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); }
.contact__direct { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: var(--s-3); }
.contact__direct a { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--col-gap); }
.form-grid .full { grid-column: 1 / -1; }
.form-section { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }

.cta { border-top: 1px solid var(--line); padding-top: var(--block); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-6) var(--margin); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 128px); font-size: 15px; }
.footer__top > :first-child { grid-column: 1 / span 5; }
.footer__top > .footer__info { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: var(--s-1); }
.footer__top > .footer__social { grid-column: 10 / -1; display: flex; flex-direction: column; align-items: flex-end; }
.footer__social a, .footer__email { display: inline-flex; align-items: center; min-height: 32px; }
.footer__big { font-weight: 500; letter-spacing: -.055em; line-height: .82; font-size: calc((min(100vw, var(--max) + 2 * var(--margin)) - 2 * var(--margin)) * .224); white-space: nowrap; color: var(--text); font-variation-settings: "opsz" 32; margin-left: -.02em;  /* optical: aligns the stem of the 1 with the text column */ }
.footer__bottom { margin-top: var(--s-4); }
.footer__bottom > :first-child { grid-column: 1 / span 5; }
.footer__bottom > :nth-child(2) { grid-column: 7 / -1; max-width: 56ch; }

/* =========================================================
   Tablet + iPad portrait: 600–1023
   ========================================================= */
@media (max-width: 1023.98px) {
  .split > :first-child, .split > :nth-child(2), .split > :only-child { grid-column: 1 / -1; }
  .hero__head h1 { max-width: 14ch; }
  .works--3 > .work { grid-column: span 6; }
  .piece > .piece__figure, .piece > .piece__info { grid-column: 1 / -1; }
  .piece__info { position: static; max-width: 640px; }
  .contact > .contact__intro, .contact > form { grid-column: 1 / -1; }
  .contact__intro { position: static; max-width: 640px; }
  .letters .lt-inner > .lt-copy, .letters .lt-inner > .lt-form { grid-column: 1 / -1; }
  .letters .lt-inner { row-gap: var(--s-5); }
  .letters--c .lt-art { grid-column: 1 / -1; order: -1; width: min(60%, 320px); justify-self: start; }
  .letters--c .lt-inner > .lt-copy { grid-column: 1 / -1; }
  .letters--b .lt-split { grid-template-columns: 1fr; min-height: 0; }
  .letters--b .lt-media { aspect-ratio: 16 / 10; }
  .letters--b .lt-copy { padding: var(--s-7) var(--margin); max-width: none; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .footer__top > .footer__info { grid-column: 1 / span 7; }
  .footer__top > .footer__social { grid-column: 9 / -1; }
  .footer__bottom > :first-child, .footer__bottom > :nth-child(2) { grid-column: 1 / -1; }
  .footer__top, .footer__bottom { row-gap: var(--s-4); }
}

/* Navigation collapses below 768 */
@media (max-width: 767.98px) {
  .nav { flex-wrap: wrap; gap: 0; }
  .nav__brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav__tag { font-size: 14px; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
  .menu-btn span { position: absolute; left: 12px; width: 20px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .3s, top .3s; }
  .menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
  .nav.is-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
  .nav.is-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }
  .nav__menu { display: none; width: 100%; }
  .nav.is-open { position: fixed; inset: 0; background: var(--bg); align-content: flex-start; overflow-y: auto; padding-inline: var(--margin); }
  .nav.is-open .nav__menu { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); padding-top: var(--s-6); }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 34px; letter-spacing: -.02em; }
  .nav__menu .icon-btn { margin: 0 0 0 -10px; }
}

/* Mobile: < 600 */
@media (max-width: 599.98px) {
  body { font-size: 17px; }
  .works > .work, .works--3 > .work { grid-column: 1 / -1; }
  .works { row-gap: var(--s-6); }
  .hero { min-height: auto; }
  .hero__body { padding-top: var(--s-5); }
  .hero__actions { gap: 0 28px; }
  .brand__mark { height: 20px; } .brand__word { height: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .letters .lt-inline { flex-direction: column; }
  .letters .lt-inline .btn { width: 100%; }
  .letters--c .btn { justify-content: space-between; border-bottom: 0; background: var(--text); color: var(--bg); padding: 0 20px; margin-top: 8px; }
  .letters--c .btn:hover { color: var(--bg); }
  .film__toggle { right: 12px; bottom: 12px; }
  .footer__top > .footer__info, .footer__top > .footer__social { grid-column: 1 / -1; }
  .footer__top > .footer__social { align-items: flex-start; }
  .footer__social a { min-height: 44px; }
  .footer__big { font-weight: 600; letter-spacing: -.045em; }
}

/* Nav logo weight: the source marks are hairline at this size, so add an even
   outline in screen pixels (nav only; the logo files and hero wordmark stay as drawn). */
.brand svg path { stroke: currentColor; stroke-linejoin: round; vector-effect: non-scaling-stroke; paint-order: stroke; }
.brand__mark path { stroke-width: 1px; }
.brand__word path { stroke-width: .7px; }
.brand svg { overflow: visible; }   /* the outline extends past the drawing's edge; don't clip the last letter */
