/* luizbrocco.com (27/11): the same layout, CSS and scripts as the Negative Lab site.
   Only the type is different: Newsreader and IBM Plex Mono, as on the Dye Transfer page (see the end of this file). */
:root {
  --ink: #0b0a09;          /* warm black, the room */
  --ink-2: #141210;        /* raised surfaces */
  --line: #2a2622;         /* hairlines */
  --paper: #ece6dc;        /* text, the print */
  --dim: #8f877c;          /* secondary text */
  --mask: #b8afa3;         /* accent: a quiet warm grey (the orange was dropped, 25/11) */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.55 var(--text); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1.5px solid var(--mask); outline-offset: 4px; }
::selection { background: var(--mask); color: var(--ink); }
.wrap { padding-left: var(--gut); padding-right: var(--gut-r); max-width: 1440px; margin: 0 auto; }
.mono { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mask { color: var(--mask); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; mix-blend-mode: difference; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 700 15px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; }
.brand small { font: 500 10px var(--mono); letter-spacing: .2em; opacity: .7; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.top .wrap { gap: 28px; }
.brand { margin-right: auto; }
.lang { display: flex; align-items: center; gap: 6px; font: 500 12px var(--mono); letter-spacing: .12em; }
.lang a { opacity: .45; padding: 6px 2px; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang span { opacity: .35; }
@media (max-width: 760px) {
  .top .wrap { gap: 20px; }
  .lang { order: 1; position: relative; z-index: 2; }
  .menu-btn { order: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 var(--gut); background: var(--ink); font: 600 44px/1.1 var(--display); font-stretch: 112%; opacity: 0; pointer-events: none; transition: opacity .3s; mix-blend-mode: normal; color: var(--paper); }
  .nav.open { opacity: 1; pointer-events: auto; }
  .menu-btn { display: block; position: relative; z-index: 2; }
}

/* film edge strip: the ornament */
.edge { display: flex; gap: 38px; white-space: nowrap; overflow: hidden; color: var(--mask); opacity: .85; }
.edge span { flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border: 1px solid currentColor; border-radius: 999px; font: 500 14px var(--text); background: transparent; color: inherit; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { background: var(--mask); border-color: var(--mask); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mask); }

/* home: the reel fills the screen */
.reel { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.reel .vid { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); pointer-events: none; border: 0; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 10 9 / .55) 0%, rgb(11 10 9 / 0) 28%, rgb(11 10 9 / 0) 55%, rgb(11 10 9 / .92) 100%); }
.reel .over { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: max(34px, env(safe-area-inset-bottom, 0px)); }
.reel .over .wrap { display: grid; gap: 26px; }
.word { font: 700 clamp(20px, 2.3vw, 34px)/1 var(--display); font-stretch: 125%; letter-spacing: .01em; text-transform: uppercase; }
.word em { color: inherit; -webkit-text-stroke: 0; font-weight: 300; }
.reel .row p { font-size: 14px !important; max-width: 30em !important; color: rgb(236 230 220 / .78) !important; line-height: 1.5; }
.reel .over .wrap { gap: 14px !important; }
/* home: name and line centered at the bottom of the reel */
.reel .over .wrap { justify-items: center; text-align: center; }
.reel .row { justify-content: center !important; }
.reel .row p { margin: 0 auto; }
.reel .edge { justify-content: center; width: 100%; }
/* plain text links instead of pill buttons */
.reel .actions { gap: 26px !important; }
.tlink { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); padding-bottom: 4px; border-bottom: 1px solid rgb(236 230 220 / .45); transition: border-color .25s, opacity .25s; }
.tlink:hover { border-color: var(--paper); }
.reel .edge { color: var(--paper); opacity: .35; }
.tc b { color: var(--paper) !important; }
/* home: only the reel, one screen, no scroll */
body.home { height: 100%; overflow: hidden; }
body.home .reel { height: 100vh; height: 100dvh; }
.word em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.reel .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px; }
.reel .row p { max-width: 34em; color: var(--paper); font-size: clamp(16px, 1.5vw, 19px); }
.reel .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 84px); right: var(--gut-r); text-align: right; color: var(--paper); opacity: .8; }
.tc b { display: block; font: 500 13px var(--mono); letter-spacing: .08em; color: var(--mask); }

/* sections */
section { padding-block: clamp(72px, 10vw, 150px); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head h2 { font-size: clamp(34px, 5vw, 72px); font-stretch: 112%; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.head .mono { color: var(--dim); }
.lead { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; max-width: 28em; font-weight: 400; letter-spacing: -.01em; }
.lead .dim { color: var(--dim); }

/* work grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (min-width: 861px) and (max-width: 1100px) { .grid[data-main] .item { grid-column: span 6; } }
.item { position: relative; grid-column: span 4; cursor: pointer; background: var(--ink-2); overflow: hidden; border: 0; padding: 0; color: inherit; text-align: left; }
.item.w6 { grid-column: span 6; } .item.w8 { grid-column: span 8; } .item.w12 { grid-column: span 12; }
.item .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.item.w12 .ph { aspect-ratio: 2.39 / 1; }
.item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); will-change: transform; backface-visibility: hidden; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.item:hover img { transform: scale(1.07); }
.item .cap { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 4px; align-items: baseline; }
.item .cap h3 { font-size: 16px; font-weight: 500; letter-spacing: -.005em; }
.item .cap .mono { color: var(--dim); }
.item .fr { position: absolute; top: 10px; left: 12px; color: var(--paper); text-shadow: 0 1px 6px rgb(0 0 0 / .6); opacity: 0; transition: opacity .3s; }
.item:hover .fr { opacity: 1; }
@media (max-width: 860px) { .item, .item.w6, .item.w8 { grid-column: span 12; } }

/* services */
.svc { border-top: 1px solid var(--line); }
.svc li { list-style: none; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc ul { margin: 0; padding: 0; }
.svc .mono { color: var(--mask); padding-top: 6px; }
.svc h3 { font-size: clamp(22px, 2.6vw, 34px); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.svc p { color: var(--dim); max-width: 36em; }
@media (max-width: 760px) { .svc li { grid-template-columns: 1fr; gap: 10px; } }

/* services: big title, one line, and a picture for each */
.svc2 { border-top: 1px solid var(--line); }
.svc2 article { display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(30px, 3.5vw, 50px) 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .svc2 article { grid-template-columns: 1fr; gap: 10px; } }
.svc2 .txt { display: grid; gap: 14px; align-content: center; min-width: 0; }
.svc2 .num { font: 400 14px var(--text); color: var(--dim); }
.svc2 h2 { font-size: clamp(34px, 5vw, 76px); font-stretch: 112%; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.svc2 p { font-size: clamp(17px, 1.5vw, 21px); color: var(--dim); max-width: 26em; }
.svc2 .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.svc2 .pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.svc2 article:hover .pic img { transform: scale(1.06); }
@media (max-width: 760px) { .svc2 article { grid-template-columns: 1fr; } .svc2 .pic { order: -1; } }

/* about */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.split .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split .left { display: grid; gap: 34px; align-content: start; }
.portrait { margin: 0; display: flex; align-items: center; gap: 20px; }
.portrait img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.portrait figcaption { display: grid; gap: 4px; }
.portrait b { font: 500 18px var(--text); }
.portrait span { font-size: 14px; color: var(--dim); }
.prose { display: grid; gap: 18px; color: var(--dim); font-size: 17px; max-width: 38em; }
.prose strong { color: var(--paper); font-weight: 500; }
.ways { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ways li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; align-items: baseline; }
.ways .mono { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts b { font: 500 17px var(--text); overflow-wrap: anywhere; }
.facts .mono { color: var(--dim); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .ph { aspect-ratio: 16 / 10; } }

/* contact */
.form { display: grid; gap: 16px; max-width: 760px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); font: 400 18px var(--text); padding: 10px 0 12px; border-radius: 0; transition: border-color .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mask); }
.sent { color: var(--mask); min-height: 1.4em; }
.direct { display: grid; gap: 22px; align-content: start; }
.direct a.big { font: 600 clamp(22px, 3vw, 40px)/1.1 var(--display); font-stretch: 112%; letter-spacing: -.02em; word-break: break-word; }
.direct a.big:hover { color: var(--mask); }

/* showreel page: the reel, large, with sound and controls */
.player { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - 120px) * 16 / 9)); max-width: 100%; margin: 0 auto; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* page title band (inner pages) */
.ptitle { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(36px, 5vw, 70px); }
.ptitle h1 { font-size: clamp(54px, 11vw, 176px); line-height: .84; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.045em; }
.ptitle .mono { color: var(--dim); margin-bottom: 18px; display: block; }
.ptitle { text-align: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 26px max(26px, env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; gap: 30px; }
footer .big { font: 700 clamp(40px, 9vw, 140px)/.85 var(--display); font-stretch: 125%; letter-spacing: -.045em; text-transform: uppercase; }
footer .big a:hover { color: var(--mask); }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--dim); }

/* lightbox and reel player */
.lb { position: fixed; inset: 0; z-index: 50; background: rgb(11 10 9 / .96); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gut-r) max(20px, env(safe-area-inset-bottom, 0px)) var(--gut); }
.lb[hidden] { display: none; }
.lb .box { width: min(1400px, 100%, calc((100vh - 170px) * 16 / 9)); display: grid; gap: 14px; }
.lb .media { aspect-ratio: 16 / 9; background: #000; position: relative; }
.lb .media img, .lb .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.lb .bar { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lb .bar h3 { font-size: 18px; font-weight: 500; }
.lb .nav2 { display: inline-flex; align-items: center; gap: 14px; }
.lb .nav2[hidden] { display: none; }
.lb .arr { background: none; border: 1px solid var(--line); color: var(--paper); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: border-color .2s; }
.lb .arr:hover { border-color: var(--paper); }
.lb .media img { transition: opacity .25s; }
/* category chips on the Work page */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 34px; }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
/* category tabs: plain words, the chosen one underlined */
.filters { gap: 10px; margin-bottom: 34px; }
.chip { background: none; border: 1px solid #3a3631; color: var(--paper); padding: 10px 20px; border-radius: 999px; font: 500 15px var(--text); letter-spacing: -.005em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #6a645c; }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* category under each card: quiet text, not a label */
.item .cap .kind { font-size: 13px; color: var(--dim); }
/* vertical films in the lightbox */
.lb .box:has(.media.vert) { width: min(100%, calc((100vh - 170px) * 9 / 16)); }
.lb .media.vert { aspect-ratio: 9 / 16; width: 100%; height: auto; }
.lb .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: var(--gut-r); }

/* motion layer (motion.js): grain, curtain, split letters */
.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--ink); pointer-events: none; transform: scaleY(1); transform-origin: top; animation: curOpen .8s cubic-bezier(.76, 0, .24, 1) .05s forwards; }
@keyframes curOpen { to { transform: scaleY(0); } }
@keyframes curClose { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.curtain.closing { transform-origin: bottom; animation: curClose .5s cubic-bezier(.76, 0, .24, 1) forwards; }
.curtain.open { animation: none; transform: scaleY(0); }
.curtain.off { display: none; }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.ch > span { display: inline-block; will-change: transform; }
.svc2 h2 { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc2 article:hover h2 { transform: translateX(14px); }
.svc2 .num { transition: color .3s; }
.svc2 article:hover .num { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* reveal on scroll */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .item img { transition: none; } }

/* home (25/11): only the sentence, a little larger, at the foot of the reel. The big title and the film edge strip
   are gone from view; the h1 stays for search engines and screen readers. The brand in the header grows instead. */
.home .reel .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.home .reel .over { padding-bottom: max(26px, env(safe-area-inset-bottom, 0px)); }
.home .reel .row p { font-size: clamp(18px, 1.7vw, 24px) !important; max-width: 30em !important; color: rgb(236 230 220 / .92) !important; line-height: 1.45; }
.brand { font-size: 20px; }
@media (max-width: 760px) { .brand { font-size: 17px; } }

/* header: a near-black bar with solid white type (25/11), instead of the difference blend that greyed out over the reel.
   The bar lives in ::before so the mobile menu (position: fixed inside .top) still covers the whole screen. */
.top { mix-blend-mode: normal; color: var(--paper); }
.top::before { content: ""; position: absolute; inset: calc(-1 * env(safe-area-inset-top, 0px)) 0 0 0; z-index: -1; background: rgb(11 10 9 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(236 230 220 / .07); }
.nav { font-weight: 500; }
.lang a { opacity: .6; }
.lang span { opacity: .45; }
.home .reel .row p { max-width: none !important; }

/* film edge strip runs sideways like film through a gate (25/11), edge to edge of the screen */
.edge .track { display: flex; flex: none; width: max-content; animation: edgeRun 90s linear infinite; }
.edge .seq { display: flex; flex: none; gap: 38px; padding-right: 38px; }
@keyframes edgeRun { to { transform: translateX(-50%); } }
.reel .edge { justify-content: flex-start; width: 100vw; margin-inline: calc(50% - 50vw); }
@media (prefers-reduced-motion: reduce) { .edge .track { animation: none; } }

/* page titles on phones: sized to the screen so long words (SHOWREEL, TRABALHOS) never push the page sideways (25/11) */
@media (max-width: 560px) { .ptitle h1 { font-size: 11.5vw; } }
/* services on small phones: the longest title (CONFORMAÇÃO) shrinks with the screen instead of widening the page */
@media (max-width: 760px) { .svc2 article { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .svc2 h2 { font-size: min(34px, 9.5vw); } }

/* project gallery (25/11): a card opens every still of the project; a still opens the viewer from that frame */
.gal { position: fixed; inset: 0; z-index: 45; background: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(56px, env(safe-area-inset-bottom, 0px)); animation: galFade .35s ease backwards; }
.gal[hidden] { display: none; }
@keyframes galFade { from { opacity: 0; } }
.gal-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: calc(env(safe-area-inset-top, 0px) + 34px); padding-bottom: 26px; background: linear-gradient(180deg, var(--ink) 78%, rgb(11 10 9 / 0)); }
.gal-head { display: grid; gap: 10px; min-width: 0; }
.gal-meta { color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.gal-t { font-size: clamp(30px, 5vw, 72px); font-stretch: 112%; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; overflow-wrap: anywhere; }
.gal .gx { flex: none; }
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gal-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.gt { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; color: inherit;
  animation: galIn .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(min(var(--i), 12) * 45ms + 80ms); }
@keyframes galIn { from { opacity: 0; transform: translateY(26px); } }
.gt img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.gt:hover img { transform: scale(1.035); }
.gt-n { position: absolute; left: 10px; bottom: 8px; font-size: 11px; letter-spacing: .1em; color: var(--paper); opacity: 0; transition: opacity .3s; }
.gt:hover .gt-n, .gt:focus-visible .gt-n { opacity: .8; }
.gt:focus-visible { outline: 1px solid var(--paper); outline-offset: 2px; }
.gt .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border: 1px solid rgb(236 230 220 / .7); border-radius: 50%; background: rgb(11 10 9 / .35); }
.gt .play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 16px solid var(--paper); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
@media (prefers-reduced-motion: reduce) { .gal, .gt { animation: none; } }
/* one column on phones: each still at its own proportion, no letterbox box around it */
@media (max-width: 520px) { .gt { aspect-ratio: auto; } .gt img { height: auto; } }

/* luizbrocco.com: type of the Dye Transfer page (Newsreader for text and titles, IBM Plex Mono for labels).
   Titles in sentence case and light, instead of the wide uppercase of the Negative Lab. */
:root {
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
body { font-size: 17.5px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; }
em { font-style: italic; font-weight: 350; }
.mono { font-weight: 400; font-size: 11.5px; letter-spacing: .1em; }
.brand { font: 400 21px/1 var(--display); font-stretch: normal; text-transform: none; letter-spacing: -.005em; }
.nav { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.menu-btn { font-weight: 400; }
@media (max-width: 760px) {
  .brand { font-size: 19px; }
  .nav { font: 400 42px/1.15 var(--display); font-stretch: normal; letter-spacing: -.015em; text-transform: none; }
}
.ptitle h1 { font-size: clamp(56px, 10vw, 156px); line-height: .92; font-weight: 300; font-stretch: normal; text-transform: none; letter-spacing: -.035em; }
@media (max-width: 560px) { .ptitle h1 { font-size: 15vw; } }
.head h2, .svc h3, .svc2 h2, .gal-t { font-weight: 350; font-stretch: normal; text-transform: none; letter-spacing: -.02em; line-height: 1; }
@media (max-width: 560px) { .svc2 h2 { font-size: min(38px, 10vw); } }
.svc2 .num { font: 400 12px var(--mono); letter-spacing: .08em; padding-top: .4em; }
.lead { font-weight: 350; letter-spacing: -.012em; }
.prose { font-size: 18.5px; }
.ways li { font-size: 18px; }
.portrait b, .facts b { font-weight: 400; font-size: 19px; }
.direct a.big { font-weight: 350; font-stretch: normal; }
.btn { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chip { font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.item .cap h3 { font-size: 19px; }
.item .cap .kind, .gal-meta, .gt-n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.lb .bar h3 { font-size: 21px; font-weight: 400; }
.field input, .field select, .field textarea { font-size: 19px; }
.home .reel .row p { font-weight: 350; }
.home .reel .row p em { font-weight: 300; }

/* blog (27/11): index of articles and the article page, in the same type as the rest of the site */
.posts { display: grid; gap: clamp(40px, 6vw, 72px); max-width: 1040px; margin: 0 auto; }
.post-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 52px); align-items: center; }
.post-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .ph img { transform: scale(1.04); }
.post-card .mono { color: var(--dim); }
.post-card h2 { font-size: clamp(26px, 3.1vw, 42px); line-height: 1.08; font-weight: 340; letter-spacing: -.018em; margin: 12px 0 14px; }
.post-card p { color: var(--dim); font-size: 17.5px; max-width: 34em; }
.read { display: inline-block; margin-top: 20px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid rgb(236 230 220 / .45); transition: border-color .25s; }
.post-card:hover .read { border-color: var(--paper); }
@media (max-width: 760px) { .post-card { grid-template-columns: minmax(0, 1fr); } }

.post-head { text-align: center; max-width: 980px; padding-top: calc(env(safe-area-inset-top, 0px) + 140px); padding-bottom: clamp(32px, 5vw, 56px); }
.post-head .back { color: var(--dim); }
.post-head .back:hover { color: var(--paper); }
.post-meta { display: flex; justify-content: center; gap: 18px; color: var(--dim); margin-top: 28px; }
.post-head h1 { font-size: clamp(34px, 5.2vw, 70px); line-height: 1.04; font-weight: 320; letter-spacing: -.025em; margin-top: 18px; }
.post-cover { margin: 0 auto clamp(40px, 6vw, 72px); max-width: 1040px; }
.post-cover img { width: 100%; height: auto; }
.post-body { max-width: 690px; margin: 0 auto; padding-bottom: clamp(72px, 10vw, 140px); font-size: 19.5px; line-height: 1.72; color: #d8d1c5; }
.post-body p { margin: 0 0 1.15em; }
.post-body strong { color: var(--paper); font-weight: 500; }
.post-body a { color: var(--paper); border-bottom: 1px solid rgb(236 230 220 / .4); }
.post-body h2 { font-size: clamp(25px, 2.7vw, 33px); line-height: 1.15; font-weight: 380; letter-spacing: -.012em; color: var(--paper); margin: 1.9em 0 .7em; }
.post-fig { margin: 2.2em 0; }
.post-fig img { width: 100%; height: auto; }
.post-fig figcaption { color: var(--dim); margin-top: 10px; }
@media (min-width: 1000px) { .post-fig { margin-inline: -90px; } }
.post-switch { display: flex; justify-content: flex-end; gap: 10px; color: var(--dim); margin-bottom: 2em !important; }
.post-switch a { color: var(--dim); border: 0; }
.post-switch a:hover { color: var(--paper); }
.post-switch b { color: var(--paper); font-weight: 500; }

/* WhatsApp: floating button, as on the old site (below the gallery and the viewer, which cover it) */
.wa { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--paper);
  background: rgb(20 18 16 / .82); border: 1px solid rgb(236 230 220 / .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, background-color .25s; }
.wa svg { width: 24px; height: 24px; }
.wa:hover { transform: translateY(-2px); border-color: var(--paper); background: rgb(37 211 102 / .9); }
.wa:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 3px; }
@media (max-width: 760px) { .wa { width: 48px; height: 48px; } }
