/* NOTE ON TYPOGRAPHY: Gotham is a paid, licensed typeface (Hoefler&Co /
   Monotype) and isn't available as a free webfont, so it can't be loaded
   here via Google Fonts. Montserrat is used as a free stand-in with a
   similar geometric-sans structure and the same wide weight range, set to
   weight 700 where Gotham Book was wanted (headings/emphasis) and weight
   300 where Gotham Thin was wanted (body text). Weight 100 was tried first
   for the body copy but at these small sizes it renders so faint it's
   barely legible — 300 keeps the light, thin character while staying
   readable. If Bárbara has a licensed Gotham webfont kit (e.g. from Adobe
   Fonts / Hoefler&Co), swap the family names below and in index.html's
   <link> and this becomes the real thing. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-60: rgba(26,26,26,0.6);
  --accent: #8C2B24;
  --line: rgba(26,26,26,0.14);
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Montserrat', sans-serif; /* stand-in for Gotham Book — see note in styles.css header */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; /* stand-in for Gotham Thin */
}

html, body { height: 100%; }
html, body { overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-mono); }
a { color: inherit; }

/* ===== NAV ===== */
.nav {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
  padding: 18px clamp(16px, 3vw, 32px);
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  position: relative; z-index: 30;
}
.nav-brand { display: flex; gap: 14px; align-items: baseline; }
.nav-name { font-weight: 700; }
.nav-role { color: var(--ink-60); }
.nav-center { display: flex; gap: 30px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link {
  background: none; border: none; font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  cursor: pointer; padding: 0 0 3px; position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-email { text-decoration: none; font-weight: 700; }
.nav-email:hover { color: var(--accent); }

.daynight-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .3s ease;
}
.daynight-toggle:hover { background: rgba(0,0,0,.05); transform: scale(1.08); }

/* ===== CENA ===== */
.scene-wrap {
  width: 100%;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 0 0 16px;
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 2047;
  /* nunca ultrapassa o espaco livre abaixo da barra de navegacao,
     para a parte de baixo da ilustracao nao ficar cortada */
  max-height: calc(100vh - 108px);
  max-width: calc((100vh - 108px) * 3840 / 2047);
}
.scene.is-over { cursor: pointer; }

.layer {
  position: absolute; left: 0; top: 0;
  width: 100%; height: auto; display: block;
  pointer-events: none;
  user-select: none; -webkit-user-drag: none;
  transition: transform .45s ease, filter .45s ease;
}
.layer.is-hover {
  transform: scale(1.012);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.12));
}

.glow { opacity: 0; transition: opacity .6s ease, filter .6s ease; }
.glow.is-on { opacity: 1; }
body.is-night #glowPe.is-on,
body.is-night #glowSec.is-on {
  filter:
    drop-shadow(0 0 18px rgba(255, 205, 120, .65))
    drop-shadow(0 0 45px rgba(255, 190, 100, .45))
    drop-shadow(0 0 90px rgba(255, 180, 90, .25));
}

/* ===== ANIMACOES ===== */
.anim-flame {
  transform-origin: 54.97% 92.25%;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.anim-flame.is-on {
  opacity: 1;
  animation: flame 2.6s ease-in-out infinite;
}
@keyframes flame {
  0%,100% { opacity:.85; transform: scale(1) translateY(0) skewX(0deg); }
  20%     { opacity:1;   transform: scale(1.09) translateY(-0.15%) skewX(1.4deg); }
  45%     { opacity:.78; transform: scale(.95) translateY(0.1%) skewX(-1.2deg); }
  70%     { opacity:1;   transform: scale(1.06) translateY(-0.1%) skewX(.9deg); }
}

/* Vinil a rodar quando toca musica */
#vinilDisc { transition: none; }
#vinilDisc.anim-spin-idle { animation: spinVinil 11s linear infinite; }
#vinilDisc.is-spinning { animation: spinVinil 2.2s linear infinite; }
@keyframes spinVinil { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* A agulha fica sempre na posição de repouso desenhada na própria imagem —
   não roda, para não desalinhar do braço já impresso na camada do gira-discos. */
#agulhaNeedle { transform: none; }

/* ===== DIA / NOITE ===== */
.layer[data-obj="janela"] {
  transition: filter .8s ease, transform .35s cubic-bezier(.2,.9,.3,1);
  filter: brightness(1) saturate(1);
}
body.is-night .layer[data-obj="janela"] {
  filter: brightness(.45) saturate(1.35) hue-rotate(-6deg);
}
body { background: var(--bg); transition: background .8s ease; }
body.is-night { background: #1b1c24; }
body.is-night .nav { background: transparent; color: #f2f0ea; }
body.is-night .nav-role,
body.is-night .nav-email,
body.is-night .hint { color: rgba(242,240,234,.65); }
body.is-night .daynight-toggle { border-color: rgba(242,240,234,.3); }
.scene { transition: filter .8s ease; }
body.is-night .scene > .layer:not(.glow):not(.anim-flame):not([data-obj="candeeiro-pe"]):not([data-obj="candeeiro-secretaria"]):not([data-obj="vela"]):not([data-obj="janela"]):not([data-obj="cortinados"]) {
  filter: brightness(.62) saturate(.85) contrast(1.05);
}
body.is-night .scene > .layer.is-hover:not(.glow):not(.anim-flame):not([data-obj="candeeiro-pe"]):not([data-obj="candeeiro-secretaria"]):not([data-obj="vela"]):not([data-obj="janela"]):not([data-obj="cortinados"]) {
  filter: brightness(.62) saturate(.85) contrast(1.05) drop-shadow(0 4px 8px rgba(0,0,0,.14));
}
body.is-night [data-obj="cortinados"] {
  filter: brightness(.62) saturate(.85) contrast(1.05);
}

/* Glow da vela: reaproveita a própria chama, desfocada e ampliada,
   para servir de halo de luz por trás da chama nítida. */
#glowVela {
  transform-origin: 54.97% 92.25%;
  transform: scale(1);
  filter: blur(14px) saturate(1.4) brightness(1.6);
  transition: opacity .55s ease, transform .55s ease;
}
body.vela-lit.is-night #glowVela { opacity: 1; transform: scale(2.2); }
.glow.is-on#glowVela { transform: scale(1.9); }
.anim-curtain {
  transform-origin: 97.86% 31.96%;
  animation: curtain 11s ease-in-out infinite;
}
@keyframes curtain {
  0%   { transform: skewX(0deg); }
  50%  { transform: skewX(2.2deg); }
  100% { transform: skewX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim-flame, .anim-curtain { animation: none; filter: none; }
  .layer { transition: none; }
}

/* ===== ETIQUETA ===== */
.tip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; white-space: nowrap;
  opacity: 0; transform: translate(-50%,-140%);
  transition: opacity .2s ease; z-index: 40;
}
.tip.is-on { opacity: 1; }

/* ===== DICA ===== */
.hint {
  position: fixed; bottom: 22px; left: 0; right: 0; margin: 0 auto; width: max-content;
  text-align: center;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-60); z-index: 25; pointer-events: none;
  opacity: 0; animation: hintIn 1.2s ease .6s forwards;
  max-width: min(620px, calc(100vw - 32px));
}
@keyframes hintIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hintCycle {
  0%   { opacity: 0; transform: translateY(6px); }
  10%  { opacity: 1; transform: translateY(0); }
  82%  { opacity: 1; }
  100% { opacity: 0; }
}
.hint.is-gone { animation: none; opacity: 0; transition: opacity .4s ease; }

/* ===== JANELA ===== */
.win {
  position: fixed; width: 560px; max-width: 92vw; max-height: 80vh;
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  display: flex; flex-direction: column; overflow: hidden; z-index: 100;
  animation: winIn .3s cubic-bezier(.2,.9,.3,1) both;
}
.win--wide { width: 680px; }
.win--full {
  top: 3vh !important; left: 3vw !important; right: 3vw; bottom: 3vh;
  width: auto; max-width: none; height: auto; max-height: none;
}
.win--full .win-titlebar {
  position: absolute; top: 14px; right: 16px; height: auto;
  background: none; border: none; padding: 0; cursor: default; z-index: 5;
}
.win--full .win-titlebar:active { cursor: default; }
.win--full .win-dot.mid, .win--full .win-dot.full { display: none; }
.win--full .win-dot.close {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  position: relative;
}
.win--full .win-dot.close::before, .win--full .win-dot.close::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: #fff;
}
.win--full .win-dot.close::before { transform: translate(-50%,-50%) rotate(45deg); }
.win--full .win-dot.close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.win--full .win-title { display: none; }
.win--full .win-body { padding: 54px 44px 40px; }

/* Janela do Work/Super Bock/Carlsberg: fundo escuro para as capas dos
   projetos ganharem contraste e destaque, como referência visual pedida. */
.win--grid { background: #111; }
.win--grid .win-body { background: #111; color: #f2f0ea; }
.win--grid .win-dot.close { background: #f2f0ea; }
.win--grid .win-dot.close::before, .win--grid .win-dot.close::after { background: #111; }

/* Filtros simples em linha, estilo lista de links (não botões) */
.work-filter-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0;
  font-family: var(--font-mono); font-size: 11.5px; margin-bottom: 10px;
}
.work-filter-label {
  color: var(--ink-60); text-transform: uppercase; letter-spacing: .06em;
  margin-right: 12px; font-size: 10px;
}
.work-filter {
  background: none; border: none; cursor: pointer; padding: 2px 0;
  color: var(--ink-60); font-family: inherit; font-size: inherit;
}
.work-filter-label { color: rgba(242,240,234,.55); }
.work-filter { color: rgba(242,240,234,.55); }
.work-filter:hover { color: #f2f0ea; }
.work-filter.is-active { color: var(--accent); font-weight: 700; }
.work-filter:not(:last-child)::after { content: ' /// '; color: rgba(242,240,234,.25); font-weight: 400; }

/* Grelha de capas — fundo escuro, imagens fortes como protagonistas */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 38px 26px; margin-top: 30px;
}
.work-card {
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
  display: block; width: 100%;
  opacity: 0; transform: translateY(18px);
  animation: cardIn .55s cubic-bezier(.2,.8,.25,1) forwards;
  animation-delay: calc(min(var(--i, 0), 11) * 55ms + 120ms);
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.work-card-img {
  display: block; overflow: hidden; position: relative;
  border: 1px solid rgba(242,240,234,.1);
}
.work-card-img::after {
  content: '↗'; position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: #f2f0ea; color: #111; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px) scale(.85);
  transition: opacity .25s ease, transform .25s ease;
}
.work-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.8,.25,1), filter .3s ease;
}
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.06); filter: brightness(.9); }
.work-card:hover .work-card-img::after, .work-card:focus-visible .work-card-img::after { opacity: 1; transform: none; }
.work-card-title {
  display: block; font-family: var(--font-mono); color: #f2f0ea; font-weight: 700;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em;
  margin-top: 12px; line-height: 1.3; transition: color .2s ease, transform .3s ease;
}
.work-card:hover .work-card-title { color: #ff8a7d; transform: translateX(4px); }
.work-card-meta {
  display: block; font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  color: rgba(242,240,234,.5); margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .work-card { animation: none; opacity: 1; transform: none; }
  .work-card img { transition: none; }
}

/* Overlay de página de projeto */
.work-overlay {
  position: fixed; inset: 0; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.work-overlay.is-open { opacity: 1; pointer-events: auto; }
.work-overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.work-overlay-panel {
  position: absolute; inset: 3vh 4vw; background: #111; color: #f2f0ea;
  display: flex; flex-direction: column; overflow-y: auto; border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: translateY(14px); transition: transform .25s ease;
}
.work-overlay.is-open .work-overlay-panel { transform: translateY(0); }
.work-overlay-close {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; background: #f2f0ea; color: #111;
  border: none; cursor: pointer; font-size: 18px; line-height: 1;
}
.work-overlay-header {
  flex: none; padding: 56px 6vw 30px; max-width: 760px;
}
.work-overlay-title {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: .02em; color: #f2f0ea; line-height: 1.3;
}
.work-overlay-meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 8px; }
.work-overlay-credits { font-family: var(--font-mono); font-size: 10px; color: rgba(242,240,234,.4); margin: 16px 0 0; }
.work-overlay-note {
  font-family: var(--font-body); font-weight: 300; font-size: 13px; line-height: 1.7;
  color: rgba(242,240,234,.8); margin-top: 16px;
}
.work-overlay-images { flex: none; padding: 0 6vw 60px; display: flex; flex-direction: column; gap: 28px; }
.work-overlay-images img { width: 100%; height: auto; display: block; border-radius: 2px; }
.work-overlay-images figcaption { font-size: 11px; color: rgba(242,240,234,.4); margin-top: 8px; }
.work-overlay-header .tag {
  border-color: rgba(242,240,234,.25); color: rgba(242,240,234,.65); background: transparent;
}
@media (max-width: 760px) {
  .work-overlay-header, .work-overlay-images { padding-left: 24px; padding-right: 24px; }
}
.proj-grid { display: block; }
.win--full .proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px 32px; align-items: start;
}
.win--full .proj { margin-bottom: 0; padding-bottom: 22px; }
.win--paper {
  background: #fdfaf2;
  border: none;
  border-radius: 2px;
  box-shadow:
    0 2px 0 #fdfaf2, 0 3px 0 rgba(26,26,26,.06),
    3px 10px 0 -4px #f3efe4, 3px 10px 6px -3px rgba(0,0,0,.12),
    -3px 14px 0 -6px #f3efe4,
    0 30px 60px rgba(0,0,0,.22);
  animation-name: winInPaper;
}
.win--paper .win-titlebar {
  position: absolute; top: 10px; right: 14px; height: auto;
  background: none; border: none; padding: 0; cursor: default; z-index: 2;
}
.win--paper .win-titlebar:active { cursor: default; }
.win--paper .win-dot.mid, .win--paper .win-dot.full { display: none; }
.win--paper .win-dot.close { background: rgba(26,26,26,.18); }
.win--paper .win-dot.close:hover { background: rgba(26,26,26,.35); }
.win--paper .win-title { display: none; }
.win--paper .win-body { padding-top: 34px; }
@keyframes winIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes winInPaper {
  from { opacity: 0; transform: translateY(10px) scale(.985) rotate(-0.6deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(-0.6deg); }
}
.win-titlebar {
  height: 38px; flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; background: #ececec; border-bottom: 1px solid var(--line);
  cursor: grab; user-select: none;
}
.win-titlebar:active { cursor: grabbing; }
.win-dot { width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0; }
.win-dot.close { background: #ff5f57; cursor: pointer; }
.win-dot.mid { background: #febc2e; }
.win-dot.full { background: #28c840; }
.win-title { margin-left: 8px; font-size: 12px; color: rgba(26,26,26,.75); text-transform: uppercase; letter-spacing: .03em; }
.win-body { padding: 22px; overflow-y: auto; flex: 1; }

.win-header-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}

.cv-contacts-pill {
  border: 1px solid var(--line); border-radius: 30px;
  padding: 9px 16px; justify-content: center;
  border-bottom: none; margin-bottom: 20px;
}

.win-icon {
  width: 54px; height: 54px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.win-icon img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 5px; }
.win-icon img[src*="raquete"] { transform: rotate(-38deg); }
.win-photo-round {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; border: 1px solid var(--line);
}
.win-photo-round img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.05); }
.win-heading-group h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .02em; }
.win-heading-group span { font-size: 12px; color: var(--ink-60); }
.win-text { font-family: var(--font-body); font-weight: 300; font-size: 13px; line-height: 1.85; color: #3a3632; margin-bottom: 18px; max-width: 46em; }
.win-text b, .cv-intro b { font-weight: 800; color: var(--ink); }

/* ===== ABAS ===== */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  background: none; border: none; font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .03em; color: var(--ink-60);
  padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Separadores de contexto (Freelance / WEST / comOn) — nível principal */
.tabs-group .tab { font-size: 14px; font-weight: 700; padding: 10px 18px; }
.tabs-group .tab.is-active { border-bottom-width: 3px; }

.group-credit {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-60);
  margin: 10px 0 16px; letter-spacing: .02em;
}

/* Separadores de marca (Super Bock / Carlsberg, só dentro de WEST) */
.tabs-brand { border-bottom: none; gap: 8px; margin-bottom: 18px; }
.tabs-brand .tab {
  font-size: 12px; font-weight: 700; padding: 7px 16px; border: 1px solid var(--ink);
  border-radius: 20px; margin-bottom: 0; color: var(--ink);
}
.tabs-brand .tab.is-active { background: var(--ink); color: #fff; }

/* Separadores de área de design — nível mais fino, estilo "pill" discreto */
.tabs-area, .tabs-year {
  border-bottom: none; gap: 8px; margin-bottom: 22px;
}
.tabs-area .tab, .tabs-year .tab {
  font-size: 10.5px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 20px; margin-bottom: 0;
}
.tabs-area .tab.is-active, .tabs-year .tab.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.cat-block { margin-bottom: 26px; }
.cat-block h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 10px; padding-left: 10px;
  border-left: 3px solid var(--accent); border-bottom: none;
}
.cat-note { font-family: var(--font-body); font-weight: 300; font-size: 13px; line-height: 1.8; color: #3a3632; margin-bottom: 10px; }
.cat-meta { font-size: 11px; color: var(--ink-60); margin-bottom: 10px; letter-spacing: .02em; }

.win-gallery-photos { display: flex; flex-direction: column; gap: 12px; }
.win-photo { margin: 0; }
.win-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 5px; }
.win-photo figcaption { font-size: 11px; color: var(--ink-60); margin-top: 5px; line-height: 1.45; }

.track-list { display: flex; flex-direction: column; gap: 2px; }
.track-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; text-decoration: none; color: inherit;
  border-radius: 5px; transition: background .15s ease;
}
.track-row:hover { background: rgba(140,43,36,.07); }
.track-note {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.track-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.track-info b { font-size: 12px; }
.track-info span { font-size: 10.5px; color: var(--ink-60); }
.track-go { font-size: 13px; color: var(--ink-60); flex-shrink: 0; }
.track-row:hover .track-go { color: var(--accent); }

.empty-note {
  font-size: 11.5px; color: var(--ink-60);
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 14px; text-align: center;
}
.win-credits {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-60);
}
.win-detail-row { font-family: var(--font-body); font-weight: 300; font-size: 13px; line-height: 1.7; color: #3a3632; margin-bottom: 7px; }
.win-detail-row b { color: var(--ink); font-weight: 800; }

/* ===== CV ===== */
.cv-masthead h1 { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: .95; }
.cv-role-line { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 6px 0 12px; }
.cv-intro { font-size: 11.5px; line-height: 1.6; color: rgba(26,26,26,.8); margin-bottom: 10px; }
.cv-intro:first-of-type { border-top: 1px solid var(--ink); padding-top: 8px; }
.cv-contacts-row {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 10.5px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px 0; margin-bottom: 20px;
}
.cv-contacts-row a { text-decoration: none; }
.cv-contacts-row a:hover { color: var(--accent); }
.cv-block { margin-bottom: 30px; }
.cv-merged { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.cv-block h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .01em;
  margin-bottom: 16px; padding-left: 12px; border-left: 3px solid var(--accent);
}
.cv-entry {
  margin-bottom: 18px; padding-left: 12px; border-left: 1px solid var(--line);
}
.cv-role { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.cv-where { font-size: 11.5px; color: var(--accent); margin: 2px 0 5px; letter-spacing: .01em; }
.cv-desc { font-family: var(--font-body); font-weight: 300; font-size: 12.5px; color: #3a3632; line-height: 1.75; }
.cv-bullets { font-family: var(--font-body); font-weight: 300; font-size: 12.5px; line-height: 1.8; color: #3a3632; margin: 6px 0 0 16px; }
.cv-bullets li { margin-bottom: 6px; }
.cv-bullets b { color: var(--ink); }

@media (max-width: 700px) {
  .win, .win--wide { width: 92vw; }
  .cv-masthead h1 { font-size: 30px; }
  .nav { font-size: 11px; }
  .nav-center { gap: 18px; }
  .tip { display: none; }
}


/* ===== PROJECT HEADER & TAGS ===== */
.proj-category { margin-bottom: 8px; }
.proj-category-title {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin: 22px 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--accent);
}
.proj-category:first-child .proj-category-title { margin-top: 4px; }
.proj { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.proj:last-child { border-bottom: none; }
.proj-head { margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; }
.proj-head-text { flex: 1; min-width: 0; }
.proj-cover {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.proj-cover img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.proj-title { font-size: 13px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em; }
.proj-title .sep { color: var(--ink-60); font-weight: 400; margin: 0 5px; }
.proj-client { color: var(--accent); font-weight: 600; }
.proj-year { color: var(--ink-60); font-weight: 400; }

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 9px; }
.tag {
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 8px; color: var(--ink-60); background: #fff;
}

.proj-cover-btn {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 0; cursor: pointer; position: relative;
}
.proj-cover-btn img {
  width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 5px;
}
.proj-cover-caption { display: block; font-size: 11px; color: var(--ink-60); margin-top: 5px; line-height: 1.45; }
.proj-more {
  position: absolute; top: 8px; right: 8px; background: rgba(26,26,26,.75); color: #fff;
  font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border-radius: 20px;
  letter-spacing: .02em;
}
.proj-gallery-rest { display: none; margin-top: 12px; }
.proj.is-open .proj-gallery-rest { display: flex; }
.proj.is-open .proj-more { display: none; }

.filter-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 11px; cursor: pointer; color: var(--ink-60);
  transition: all .2s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj.is-hidden { display: none; }

/* ===== VIDA NA SALA ===== */
.layer[data-obj="planta"] { transform-origin: 80.5% 93%; animation: plantSway 6s ease-in-out infinite; }
@keyframes plantSway { 0%,100% { rotate: -.8deg; } 50% { rotate: 1deg; } }
.layer[data-obj="about"] { transform-origin: 50.9% 47%; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { scale: 1; } 50% { scale: 1.009; } }

.steam {
  position: absolute; top: 79.5%; width: .5%; height: 4.2%; border-radius: 50%;
  background: linear-gradient(to top, rgba(120,110,100,.32), rgba(120,110,100,0));
  filter: blur(2.5px); opacity: 0; pointer-events: none;
  animation: steamUp 3.6s ease-in-out infinite;
}
@keyframes steamUp {
  0%   { opacity: 0; translate: 0 8px; scale: .8 1; }
  25%  { opacity: 1; }
  100% { opacity: 0; translate: 5px -22px; scale: 1.6 1.3; }
}

.lapscreen {
  position: absolute; overflow: hidden; pointer-events: none; background: #1c1c1c;
}
.lapscreen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.lapscreen img.on { opacity: 1; }
.lapglare { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%); }

.scene-wrap.is-zooming { overflow: hidden; }
.scene { will-change: auto; }

.react-shake  { animation: reactShake .8s ease-in-out; }
@keyframes reactShake { 0%,100% { rotate: 0deg; } 15% { rotate: -9deg; } 35% { rotate: 8deg; } 55% { rotate: -5deg; } 75% { rotate: 3deg; } }
.react-jiggle { animation: reactJiggle .6s ease-in-out; }
@keyframes reactJiggle { 0%,100% { translate: 0 0; rotate: 0deg; } 20% { translate: -3px 0; rotate: -2deg; } 40% { translate: 3px 0; rotate: 2deg; } 60% { translate: -2px 0; rotate: -1deg; } 80% { translate: 2px 0; rotate: 1deg; } }
.react-drop   { animation: reactDrop .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes reactDrop { 0% { translate: 0 -10px; rotate: -2deg; } 55% { translate: 0 3px; rotate: 1deg; } 100% { translate: 0 0; rotate: 0deg; } }

.bubble {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,214,120,.55); border: 1px solid rgba(214,150,40,.8);
  opacity: 0; animation: bubbleUp 1.4s ease-out forwards;
}
@keyframes bubbleUp {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--dx, 0) -70px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer[data-obj="planta"], .layer[data-obj="about"], .steam { animation: none; }
}

.lapwrap { position: absolute; inset: 0; pointer-events: none; transition: transform .45s ease; }
.layer[data-obj="secretaria"].is-hover + .lapwrap { transform: scale(1.012); transform-origin: 77.8% 23.41%; }

.nav, .hint { transition: opacity .35s ease; }
body.zooming .nav, body.zooming .hint { opacity: 0 !important; }
.is-zooming .tip { display: none; }

/* ===== ABOUT: o CV tal como é, sobre o amarelo do sofá ===== */
:root { --sofa: #b9893a; }
.win--about { width: 880px; max-width: 94vw; top: 4vh; left: 0; right: 0; margin: 0 auto; max-height: 92vh; }
.win--about .win-body { padding: 0; background: var(--sofa); }
.about-cv { padding: 0 28px 34px; }
.about-cv-bar {
  position: sticky; top: 0; z-index: 3; margin: 0 -28px 24px; padding: 12px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--sofa); border-bottom: 1px solid rgba(26,26,26,.18);
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
}
.about-cv-links { display: flex; gap: 20px; }
.about-cv-bar a { color: #1a1a1a; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.about-cv-bar a:hover { border-bottom-color: #1a1a1a; }
.about-cv-dl { background: #1a1a1a; color: #faf3e3 !important; padding: 8px 14px; border-radius: 999px; border: none !important; }
.about-cv-dl:hover { background: #000; }
.about-cv-img {
  display: block; width: 100%; height: auto; background: #fff;
  box-shadow: 0 18px 40px rgba(60,35,5,.35), 0 2px 6px rgba(60,35,5,.25);
}
@media (max-width: 700px) { .about-cv { padding: 0 12px 24px; } .about-cv-bar { margin: 0 -12px 16px; padding: 10px 12px; font-size: 10.5px; } .about-cv-links { gap: 12px; } }

.zoom-veil { position: fixed; inset: 0; background: #111; opacity: 0; pointer-events: none; z-index: 90; transition: opacity .4s ease; }
.zoom-veil.on { opacity: 1; }

/* ===== FERRAMENTAS (xadrez, boneca, tela) ===== */
.win--tool { top: 4vh; left: 0; right: 0; margin: 0 auto; max-width: 96vw; max-height: 92vh; }
.win--tool .win-body { padding: 0; }
.tool { padding: 20px 24px 22px; font-family: var(--font-mono); }
.tool-note { font-family: var(--font-body); font-weight: 300; font-size: 12px; color: var(--ink-60); margin-top: 12px; text-align: center; }
.tool-btn {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: var(--ink); border: 1px solid rgba(26,26,26,.25); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tool-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-btn--dark:hover { background: var(--accent); border-color: var(--accent); }
.tool-link { background: none; border: none; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; padding: 4px 0; text-align: left; }
.tool-link:hover { text-decoration: underline; }
.color-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.color-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sw-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1px solid rgba(26,26,26,.3); cursor: pointer; transition: transform .15s ease; }
.sw:hover { transform: scale(1.12); }
.sw.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* xadrez */
.tool-chess { --bs: min(560px, calc(92vh - 250px), calc(96vw - 90px)); display: flex; flex-direction: column; align-items: center; background: #f4efe3; }
.chess-bar { width: calc(var(--bs) + 28px); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chess-status { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chess-ctrls { display: flex; align-items: center; gap: 8px; }
.chess-lvl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-60); display: flex; align-items: center; gap: 6px; }
.chess-lvl select { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(26,26,26,.25); background: #fff; }
.chess-cap { width: calc(var(--bs) + 28px); min-height: 24px; display: flex; flex-wrap: wrap; gap: 0; margin: 2px 0; }
.chess-cap .cp { width: 22px; height: 22px; margin-right: -4px; display: block; }
.chess-cap .pc { width: 100%; height: 100%; display: block; }
.chess-frame { padding: 14px; background: var(--m-frame); background-size: 300px; border-radius: 3px; box-shadow: 0 14px 30px rgba(40,50,20,.35), inset 0 0 0 1px rgba(0,0,0,.18); }
.chess-board { width: var(--bs); height: var(--bs); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
.sq { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; background-size: 260px; }
.sq.lt { background-image: var(--m-light); }
.sq.dk { background-image: var(--m-dark); }
.sq.last::before { content: ''; position: absolute; inset: 0; background: rgba(232,193,90,.42); }
.sq.sel::before { content: ''; position: absolute; inset: 0; background: rgba(232,193,90,.62); }
.sq.chk::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(200,40,30,.75), rgba(200,40,30,0) 72%); }
.sq.tgt::after { content: ''; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(60,35,10,.38); }
.sq.tgt.cap::after { width: 86%; height: 86%; background: none; border: 3px solid rgba(160,40,30,.7); }
.sq .pc { position: relative; z-index: 1; width: 86%; height: 86%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); pointer-events: none; }
.sq .pc.land { animation: pcLand .28s ease-out; }
@keyframes pcLand { from { transform: translateY(-14%) scale(1.06); } to { transform: none; } }
.sq .co { position: absolute; font-style: normal; font-size: 9.5px; font-weight: 700; z-index: 2; color: rgba(30,40,15,.65); pointer-events: none; }
.sq.dk .co { color: rgba(245,240,220,.8); }
.sq .co.rk { left: 3px; top: 2px; }
.sq .co.fl { right: 3px; bottom: 1px; }
.chess-promo { position: absolute; inset: 0; background: rgba(20,20,10,.55); display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 10; }
.chess-promo[hidden] { display: none; }
.chess-promo span { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.chess-promo button { width: 72px; height: 72px; border-radius: 6px; border: none; cursor: pointer; background: var(--m-light); background-size: 260px; }
.chess-promo button svg { width: 100%; height: 100%; }
.win--tool .win-body { position: relative; }

/* boneca */
.tool-doll { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; background: #f4efe3; }
.doll-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.doll-wrap { position: relative; width: min(100%, 440px); background: #faf6ec; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(26,26,26,.12); padding: 12px; touch-action: none; }
.doll-canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.doll-tats { position: absolute; inset: 12px; pointer-events: none; }
.tat { position: absolute; aspect-ratio: 1; pointer-events: auto; cursor: grab; mix-blend-mode: multiply; opacity: .9; touch-action: none; }
.tat svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.tat.sel { outline: 1.5px dashed var(--accent); outline-offset: 3px; }
.doll-panel { display: flex; flex-direction: column; gap: 12px; align-content: start; }
.doll-panel h4, .tool-draw h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; margin: 2px 0 0; }
.doll-row, .doll-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tat-tray { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tat-btn { aspect-ratio: 1; padding: 6px; background: #fff; border: 1px solid rgba(26,26,26,.2); border-radius: 6px; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.tat-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.tat-btn svg { width: 100%; height: 100%; display: block; }
.tat-ctrl { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: #fff; border-radius: 8px; border: 1px solid rgba(26,26,26,.15); }
.tat-ctrl[hidden] { display: none; }
.tat-ctrl label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tat-ctrl input[type=range] { flex: 1; accent-color: var(--accent); }
.doll-actions { margin-top: 4px; }

/* tela */
.tool-draw { background: #f4efe3; display: flex; flex-direction: column; gap: 12px; }
.draw-bar { display: flex; flex-direction: column; gap: 10px; }
.draw-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.draw-size { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.draw-size input { accent-color: var(--accent); width: 120px; }
.draw-paper { position: relative; background: #fff; box-shadow: 0 10px 26px rgba(60,40,10,.22), inset 0 0 0 1px rgba(26,26,26,.1); border-radius: 2px; }
.draw-canvas { display: block; width: min(100%, calc((92vh - 270px) * 1.538)); height: auto; aspect-ratio: 1200 / 780; margin: 0 auto; cursor: crosshair; touch-action: none; }
.draw-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 700; font-size: 34px; color: rgba(26,26,26,.12); text-transform: uppercase; pointer-events: none; transition: opacity .3s ease; }
.draw-hint.gone { opacity: 0; }
.draw-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .tool-doll { grid-template-columns: 1fr; } .tat-tray { grid-template-columns: repeat(4, 1fr); } }



/* Passagem entre projetos */
.work-overlay-foot { flex: none; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 6vw 36px; border-top: 1px solid rgba(242,240,234,.15); }
.wo-step { background: none; border: 0; color: #f2f0ea; font-family: var(--font-mono); text-align: left; cursor: pointer; padding: 0; display: flex; flex-direction: column; gap: 6px; opacity: .65; transition: opacity .2s; }
.wo-step:hover { opacity: 1; }
.wo-step span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wo-step b { font-size: 14px; font-weight: 700; }
.wo-next { text-align: right; align-items: flex-end; }
.wo-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: #f2f0ea; color: #111; font-size: 18px; cursor: pointer; transition: transform .2s; }
.wo-arrow:hover { transform: scale(1.08); }
.wo-arrow--l { left: calc(4vw + 14px); } .wo-arrow--r { right: calc(4vw + 14px); }
@media (max-width: 700px) { .wo-arrow { display: none; } .work-overlay-foot { padding: 24px; } }

/* Porta: vídeo */
.travel { padding: 28px 28px 24px; background: #111; color: #f2f0ea; }
.travel-line { margin: 0 0 20px; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.travel-frame { aspect-ratio: 16 / 9; background: #000; }
.travel-frame video, .travel-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.travel-meta { margin: 16px 0 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,240,234,.5); }

.work-overlay-link { display: inline-block; margin-top: 18px; padding: 9px 16px; border: 1px solid #f2f0ea; color: #f2f0ea; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.work-overlay-link:hover { background: #f2f0ea; color: #111; }

/* Página de viagens (porta) */
.travel-page { position: fixed; inset: 0; z-index: 60; background: #fff; color: #111; font-family: var(--font-mono); opacity: 0; transition: opacity .4s ease; overflow: hidden; cursor: crosshair; }
.travel-page.on { opacity: 1; }
.tp-close { position: absolute; top: 28px; right: 32px; z-index: 5; background: none; border: 0; font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #111; cursor: pointer; }
.tp-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%); margin: 0; text-align: center; font-size: clamp(36px, 8vw, 120px); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; pointer-events: none; }
.tp-line { position: absolute; left: 0; right: 0; top: calc(50% + 6vw); margin: 0; text-align: center; font-size: 13px; letter-spacing: .04em; pointer-events: none; }
.tp-video { position: absolute; left: 32px; bottom: 28px; z-index: 5; background: none; border: 1px solid #111; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #111; cursor: pointer; transition: background .2s, color .2s; }
.tp-video:hover { background: #111; color: #fff; }
.tp-hint { position: absolute; right: 32px; bottom: 32px; margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(0,0,0,.45); pointer-events: none; }
.tp-photo { position: absolute; transform: translate(-50%, -50%) rotate(var(--r)) scale(.92); opacity: 0; transition: opacity .6s ease, transform .6s ease; display: block; }
.tp-photo.in { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
.tp-photo img { width: 100%; height: auto; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
a.tp-photo { cursor: pointer; pointer-events: auto; }
.tp-photo { pointer-events: none; }
a.tp-photo { pointer-events: auto; }
.tp-close, .tp-video { z-index: 99999 !important; }

.work-seg-row { margin-bottom: 18px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.work-seg { background: none; border: 0; cursor: pointer; padding: 2px 0; font: inherit; color: rgba(242,240,234,.55); }
.work-seg:hover { color: #f2f0ea; }
.work-seg.is-active { color: var(--accent); font-weight: 700; }
.work-seg:not(:last-child)::after { content: ' /// '; color: rgba(242,240,234,.25); font-weight: 400; }

.work-filter.is-last::after { content: none !important; }
.work-seg:not(:last-child)::after { margin: 0 .6em; white-space: pre; }
.work-seg-row .work-seg.is-active { color: #f2f0ea; border-bottom: 0; }

.work-overlay-embed { display: block; width: 100%; height: calc(94vh - 40px); min-height: 520px; border: 0; background: #fff; border-radius: 2px; }

@media (max-width: 1100px) { .hint { max-width: calc(100vw - 32px); bottom: 62px; } }
@media (max-width: 700px) { .hint { font-size: 10px; } }




/* ===== Texto claro no Work (fundo escuro) ===== */
.win--grid .win-heading-group span { color: rgba(242,240,234,.6); }
.win--grid .win-text { color: rgba(242,240,234,.78); }
.work-filter:not(:last-child)::after, .work-seg:not(:last-child)::after { white-space: pre; }
.work-filter:not(:last-child)::after { margin: 0 .5em; }

/* ===== TELEMÓVEL ===== */
@media (max-width: 700px) {
  html, body { height: 100%; }
  .nav { flex-wrap: nowrap; align-items: center; padding: 12px 16px; gap: 8px; font-size: 11px; }
  .nav-role { display: none; }
  .nav-brand { flex: 1 1 auto; min-width: 0; }
  .nav-name { white-space: nowrap; }
  .nav-center { gap: 14px; }
  .nav-right { gap: 10px; }
  .nav-email { font-size: 0; }
  .nav-email::after { content: 'Email'; font-size: 11px; font-weight: 700; }
  .daynight-toggle { width: 32px; height: 32px; font-size: 14px; }

  /* a sala fica grande (legível, com objetos fáceis de tocar) e deslizas para os lados */
  .scene-wrap {
    height: calc(100dvh - 56px); overflow-x: auto; overflow-y: hidden;
    justify-content: flex-start; align-items: center; padding: 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain;
  }
  .scene-wrap::-webkit-scrollbar { display: none; }
  .scene { flex: none; width: min(240vw, calc((100dvh - 150px) * 3840 / 2047)); max-width: none; max-height: none; margin: 0; }
  .hint { bottom: 14px; font-size: 9.5px; max-width: calc(100vw - 32px); line-height: 1.5; background: rgba(255,255,255,.82); padding: 6px 10px; border-radius: 8px; }
  body.is-night .hint { background: rgba(27,28,36,.8); }

  /* janelas e projetos */
  .win--full { top: 0 !important; left: 0 !important; right: 0; bottom: 0; border-radius: 0; }
  .win--full .win-body { padding: 56px 20px 32px; }
  .win--tool { top: 2vh; max-height: 96dvh; }
  .work-overlay-header, .work-overlay-images { padding-left: 18px; padding-right: 18px; }
  .work-overlay { inset: 0; border-radius: 0; }
  .work-overlay-foot { grid-template-columns: 1fr; gap: 18px; }
  .wo-next { text-align: left; align-items: flex-start; }
  .travel-page .tp-title { font-size: clamp(32px, 12vw, 64px); }
  .tp-line { top: calc(50% + 14vw); padding: 0 24px; }
  .tp-video { left: 16px; bottom: 16px; }
  .tp-hint { right: 16px; bottom: 22px; }
}
.travel-page { touch-action: none; }
.draw-canvas { touch-action: none; }

@media (max-width: 700px) {
  /* janelas pequenas (objetos da sala): centradas e sempre dentro do ecrã */
  .win:not(.win--full):not(.win--tool):not(.win--about) {
    left: 4vw !important; right: 4vw !important; top: 14vh !important; bottom: auto !important;
    width: auto !important; max-width: none; margin: 0;
    max-height: 76dvh; overflow: auto;
  }
  .win--about { width: 96vw !important; max-width: 96vw; }
  .win-dot { width: 14px; height: 14px; }
  .win-titlebar { padding: 12px 14px; }
}
@media (max-width: 700px) { .win--full { width: 100vw !important; max-width: 100vw; } }


/* ---------------------------------------------------------
   Selected Work — asymmetric editorial grid
   Natural image ratios are preserved; no forced 4:3 crop.
   --------------------------------------------------------- */
.work-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(26px, 4vw, 58px) clamp(14px, 2.2vw, 30px);
}
.work-card { min-width: 0; }
.work-card:nth-child(6n + 1) { grid-column: 1 / span 7; }
.work-card:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: clamp(28px, 6vw, 88px); }
.work-card:nth-child(6n + 3) { grid-column: 2 / span 4; margin-top: -8px; }
.work-card:nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: clamp(18px, 3vw, 44px); }
.work-card:nth-child(6n + 5) { grid-column: 1 / span 5; margin-top: clamp(18px, 3vw, 44px); }
.work-card:nth-child(6n + 6) { grid-column: 7 / span 5; margin-top: 0; }
.work-card-img { background: rgba(255,255,255,.035); }
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .work-card:nth-child(6n + 1) { grid-column: 1 / span 5; margin-top: 0; }
  .work-card:nth-child(6n + 2) { grid-column: 3 / span 4; margin-top: 0; }
  .work-card:nth-child(6n + 3) { grid-column: 1 / span 4; margin-top: 0; }
  .work-card:nth-child(6n + 4) { grid-column: 2 / span 5; margin-top: 0; }
  .work-card:nth-child(6n + 5) { grid-column: 1 / span 5; margin-top: 0; }
  .work-card:nth-child(6n + 6) { grid-column: 3 / span 4; margin-top: 0; }
}
@media (max-width: 420px) {
  .work-grid { grid-template-columns: 1fr; gap: 26px; }
  .work-card:nth-child(n) { grid-column: 1; margin-top: 0; }
}


/* Professional polish: navigation, accessibility and responsive work */
.skip-link { position:fixed; left:12px; top:12px; z-index:2000; padding:10px 14px; background:#1a1a1a; color:#fff; font:12px var(--font-mono); text-decoration:none; transform:translateY(-160%); transition:transform .2s ease; }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:2px solid #8C2B24; outline-offset:4px; }
button, a { -webkit-tap-highlight-color:transparent; }
.nav-link:focus-visible, .nav-email:focus-visible, .daynight-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.hint { max-width:min(720px,calc(100vw - 40px)); text-align:center; line-height:1.6; }
.work-grid { grid-template-columns:repeat(12,minmax(0,1fr)); align-items:start; gap:clamp(26px,4vw,58px) clamp(14px,2.2vw,30px); }
.work-card { min-width:0; }
.work-card:nth-child(6n + 1) { grid-column:1 / span 7; }
.work-card:nth-child(6n + 2) { grid-column:9 / span 4; margin-top:clamp(28px,6vw,88px); }
.work-card:nth-child(6n + 3) { grid-column:2 / span 4; margin-top:-8px; }
.work-card:nth-child(6n + 4) { grid-column:7 / span 6; margin-top:clamp(18px,3vw,44px); }
.work-card:nth-child(6n + 5) { grid-column:1 / span 5; margin-top:clamp(18px,3vw,44px); }
.work-card:nth-child(6n + 6) { grid-column:7 / span 5; margin-top:0; }
.work-card-img { background:rgba(255,255,255,.025); display:flex; align-items:center; justify-content:center; }
.work-card img { width:auto; max-width:100%; height:auto; aspect-ratio:auto; object-fit:contain; display:block; margin-inline:auto; }
.work-card:hover img, .work-card:focus-visible img { transform:scale(1.025); }
.work-card:focus-visible { outline-offset:7px; }
.work-card-title { font-size:clamp(11px,.9vw,13px); }
.work-card-meta { font-size:10px; line-height:1.6; }
.work-overlay-panel { overscroll-behavior:contain; }
.work-overlay-images img { width:auto; max-width:100%; height:auto; margin-inline:auto; }
.work-overlay-close:focus-visible { outline-color:#fff; outline-offset:4px; }
@media (max-width:760px) {
 .work-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:28px 14px; }
 .work-card:nth-child(6n + 1) { grid-column:1 / span 5; margin-top:0; }
 .work-card:nth-child(6n + 2) { grid-column:3 / span 4; margin-top:0; }
 .work-card:nth-child(6n + 3) { grid-column:1 / span 4; margin-top:0; }
 .work-card:nth-child(6n + 4) { grid-column:2 / span 5; margin-top:0; }
 .work-card:nth-child(6n + 5) { grid-column:1 / span 5; margin-top:0; }
 .work-card:nth-child(6n + 6) { grid-column:3 / span 4; margin-top:0; }
 .nav { align-items:center; }
}
@media (max-width:420px) {
 .work-grid { grid-template-columns:1fr; gap:26px; }
 .work-card:nth-child(n) { grid-column:1; margin-top:0; }
 .work-overlay-header, .work-overlay-images { padding-left:16px; padding-right:16px; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* WORK PAGE: clean white editorial presentation */
.win--grid, .win--grid .win-body { background:#fff !important; color:#1a1a1a !important; }
.win--grid { border:1px solid rgba(26,26,26,.10); box-shadow:0 24px 70px rgba(0,0,0,.16); }
.win--grid .win-titlebar { background:#fff; }
.win--grid .win-dot.close { background:#1a1a1a; }
.win--grid .win-dot.close::before, .win--grid .win-dot.close::after { background:#fff; }
.win--grid .work-filter-label { color:rgba(26,26,26,.48) !important; }
.win--grid .work-filter { color:rgba(26,26,26,.58) !important; }
.win--grid .work-filter:hover, .win--grid .work-filter.is-active { color:#8C2B24 !important; }
.win--grid .work-filter:not(:last-child)::after { color:rgba(26,26,26,.22) !important; }
.win--grid .work-seg { color:rgba(26,26,26,.55); border-color:rgba(26,26,26,.22); }
.win--grid .work-seg.is-active { color:#1a1a1a; border-color:#1a1a1a; }
.win--grid .work-card-title { color:#1a1a1a !important; }
.win--grid .work-card:hover .work-card-title { color:#8C2B24 !important; }
.win--grid .work-card-meta { color:rgba(26,26,26,.58) !important; }
.win--grid .work-card-img { background:#f6f5f2; border:1px solid rgba(26,26,26,.07); }
.win--grid .work-card-img::after { background:#1a1a1a; color:#fff; }
.win--grid .work-card:hover img, .win--grid .work-card:focus-visible img { filter:none; transform:none; }

/* Project detail pages use the same white editorial system. */
.work-overlay-backdrop { background:rgba(255,255,255,.96) !important; }
.work-overlay-panel {
  background:#fff !important; color:#1a1a1a !important;
  border:1px solid rgba(26,26,26,.10); border-radius:2px;
  box-shadow:0 20px 70px rgba(0,0,0,.14) !important;
}
.work-overlay-close { background:#1a1a1a !important; color:#fff !important; }
.work-overlay-title { color:#1a1a1a !important; }
.work-overlay-meta { color:#8C2B24 !important; }
.work-overlay-credits { color:rgba(26,26,26,.52) !important; }
.work-overlay-note { color:rgba(26,26,26,.78) !important; }
.work-overlay-images figcaption { color:rgba(26,26,26,.52) !important; }
.work-overlay-header .tag {
  border-color:rgba(26,26,26,.22) !important;
  color:rgba(26,26,26,.7) !important; background:transparent !important;
}
.work-overlay-foot { border-top-color:rgba(26,26,26,.14) !important; }
.wo-step { color:#1a1a1a !important; }
.work-overlay-link { border-color:#1a1a1a !important; color:#1a1a1a !important; }
.work-overlay-link:hover { background:#1a1a1a !important; color:#fff !important; }

/* Prevent raster assets from being enlarged beyond their source resolution. */
.win--grid .work-card img, .work-overlay-images img {
  width:auto !important; max-width:100% !important; height:auto !important;
  object-fit:contain !important; image-rendering:auto; transform:none !important;
}
.win--grid .work-card-img { min-height:0; height:auto; overflow:hidden; }
.win--grid .work-card img, .work-overlay-images img { margin:0 auto; display:block; }


/* WORK: balanced two-column rhythm, continuous left and right columns.
   The portfolio uses nested .proj-grid containers inside year/category tabs. */
.win--grid .proj-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  align-items: start;
  gap: 28px 30px !important;
}
.win--grid .proj-grid > .proj {
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: start;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 24px !important;
}
.win--grid .proj-grid > .proj:nth-child(odd),
.win--grid .proj-grid > .proj:nth-child(even) {
  margin-top: 0 !important;
}
.win--grid .proj-grid .proj-cover-btn,
.win--grid .proj-grid .proj-cover {
  width: 100%;
}
.win--grid .proj-grid img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 620px) {
  .win--grid .proj-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
}


/* Actual Work cards and expanded galleries: keep low-resolution sources at a
   conservative display size instead of stretching them across the full column. */
.win--grid .proj-cover-btn img,
.win--grid .proj-cover img,
.win--grid .win-photo img {
  display: block;
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  max-height: 620px;
  object-fit: contain !important;
  margin-inline: auto;
}
.win--grid .proj-cover-btn,
.win--grid .proj-cover,
.win--grid .win-photo {
  text-align: center;
}
.win--grid .proj-cover-caption,
.win--grid .win-photo figcaption {
  text-align: left;
}
.win--grid .proj-cover-btn img,
.win--grid .win-photo img {
  image-rendering: auto;
}


/* V7: native-resolution guard for every project image, including hidden tabs. */
.win--grid .proj-grid .proj-cover img,
.win--grid .proj-grid .proj-cover-btn img,
.win--grid .proj-grid .win-photo img,
.win--grid .work-card-img img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
}
.win--grid .proj-grid .win-photo img { margin-inline: auto; }


/* Hey Studio-inspired Work grid: clean, modular, image-led and responsive. */
.win--grid .proj-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  align-items: start;
  gap: 34px 24px !important;
}
.win--grid .proj-grid > .proj {
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 18px !important;
  align-self: start;
}
.win--grid .proj-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.win--grid .proj-head-text { order: 2; }
.win--grid .proj-cover-btn,
.win--grid .proj-cover {
  order: 1;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #f5f4f1;
  overflow: hidden;
  text-align: left;
}
.win--grid .proj-cover-btn img,
.win--grid .proj-cover img,
.win--grid .win-photo img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px;
  object-fit: contain !important;
  margin: 0 auto;
}
.win--grid .proj-title {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .01em;
}
.win--grid .tag-row { margin-top: 5px; }
.win--grid .proj-more { display: block; margin-top: 6px; }
.win--grid .proj-gallery-rest { margin-top: 16px; }
.win--grid .proj-grid .win-photo { margin: 0 0 18px; }
.win--grid .proj-grid .win-photo figcaption {
  margin-top: 6px;
  text-align: left;
}
@media (max-width: 900px) {
  .win--grid .proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 20px !important;
  }
}
@media (max-width: 620px) {
  .win--grid .proj-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
  }
}


/* V9 refinement: true image-first project cards with a restrained editorial rhythm. */
.win--grid .proj-grid > .proj {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.win--grid .proj-grid > .proj > .proj-head {
  order: 2;
  display: block;
  margin-top: 11px;
}
.win--grid .proj-grid > .proj > .proj-cover-btn,
.win--grid .proj-grid > .proj > .proj-cover,
.win--grid .proj-grid > .proj > .win-gallery-photos {
  order: 1;
}
.win--grid .proj-grid > .proj > .proj-cover-btn,
.win--grid .proj-grid > .proj > .proj-cover {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f2ef;
  padding: 10px;
}
.win--grid .proj-grid > .proj > .proj-cover-btn img,
.win--grid .proj-grid > .proj > .proj-cover img {
  max-height: 390px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.win--grid .proj-grid > .proj > .proj-cover-btn:hover img {
  transform: none !important;
}
.win--grid .proj-grid > .proj > .proj-cover-btn .proj-cover-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.win--grid .proj-grid > .proj > .proj-gallery-rest {
  order: 3;
}
.win--grid .proj-grid > .proj > .cat-note,
.win--grid .proj-grid > .proj > .cat-meta {
  order: 4;
}
.win--grid .proj-grid > .proj .proj-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .005em;
}
.win--grid .proj-grid > .proj .tag {
  font-size: 10px;
}
.win--grid .proj-grid > .proj .cat-note,
.win--grid .proj-grid > .proj .cat-meta {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .win--grid .proj-grid > .proj > .proj-cover-btn,
  .win--grid .proj-grid > .proj > .proj-cover { min-height: 170px; }
}
@media (max-width: 620px) {
  .win--grid .proj-grid > .proj > .proj-cover-btn,
  .win--grid .proj-grid > .proj > .proj-cover { min-height: 210px; }
}


/* V10 — actual Work landing grid (the rendered cards live in .work-grid).
   Replace the legacy 12-column placements with a deliberate 3-column modular grid. */
.win--grid .work-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense;
  align-items: start;
  gap: 38px 24px !important;
  margin-top: 34px !important;
}
.win--grid .work-grid > .work-card {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  width: 100%;
  min-width: 0;
  opacity: 1;
  transform: none;
  animation: none;
}
.win--grid .work-grid > .work-card:nth-child(6n + 1),
.win--grid .work-grid > .work-card:nth-child(6n + 2),
.win--grid .work-grid > .work-card:nth-child(6n + 3),
.win--grid .work-grid > .work-card:nth-child(6n + 4),
.win--grid .work-grid > .work-card:nth-child(6n + 5),
.win--grid .work-grid > .work-card:nth-child(6n + 6) {
  grid-column: auto !important;
  margin-top: 0 !important;
}
.win--grid .work-grid > .work-card:nth-child(5n + 2) {
  margin-top: 42px !important;
}
.win--grid .work-grid > .work-card:nth-child(5n + 4) {
  margin-top: 22px !important;
}
.win--grid .work-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 230px;
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: #f3f2ef;
  border: 0 !important;
  overflow: hidden;
}
.win--grid .work-card img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}
.win--grid .work-card-title {
  display: block;
  margin-top: 12px;
  color: #1a1a1a !important;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .025em;
}
.win--grid .work-card-meta {
  color: rgba(26,26,26,.58) !important;
  font-size: 10px;
  line-height: 1.5;
}
.win--grid .work-card:hover .work-card-title {
  color: #8C2B24 !important;
  transform: none !important;
}
.win--grid .work-card-img::after { display: none; }

@media (max-width: 900px) {
  .win--grid .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 18px !important;
  }
  .win--grid .work-grid > .work-card:nth-child(5n + 2),
  .win--grid .work-grid > .work-card:nth-child(5n + 4) {
    margin-top: 0 !important;
  }
}
@media (max-width: 620px) {
  .win--grid .work-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  .win--grid .work-grid > .work-card:nth-child(n) {
    grid-column: 1 !important;
    margin-top: 0 !important;
  }
  .win--grid .work-card-img {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
}


/* ===== V12 — Work em masonry de 5 colunas, fundo branco (referência Hey Studio) ===== */
.win--grid { --wc0:#1fa845; --wc1:#e08a00; --wc2:#a56be0; --wc3:#3b7de8; --gap:26px; }
.win--grid .work-filter-row { border-top:1px solid #1a1a1a; padding:12px 0; margin:0; font-size:12px; }
.win--grid .work-filter-row:last-of-type { border-bottom:1px solid #1a1a1a; }
.win--grid .work-seg-row .work-seg.is-active, .win--grid .work-filter.is-active { color:#1a1a1a !important; font-weight:700; }
.win--grid .work-filter:hover { color:#1a1a1a !important; }
.win--grid .work-grid {
  display:block !important; columns:5 220px; column-gap:var(--gap); margin-top:32px !important;
}
.win--grid .work-grid > .work-card {
  display:block; break-inside:avoid; margin:0 0 var(--gap) !important; width:100%;
  grid-column:auto !important; opacity:1; transform:none; animation:none;
}
.win--grid .work-grid > .work-card:nth-child(n) { margin:0 0 var(--gap) !important; }
.win--grid .work-card-img {
  display:block !important; position:relative; aspect-ratio:auto !important; min-height:0 !important;
  padding:0 !important; border-radius:22px; background:#f1f1ef; overflow:hidden;
}
.win--grid .work-card img.wc-a { display:block; width:100% !important; height:auto !important; max-width:100% !important; max-height:none !important; object-fit:cover !important; }
.win--grid .work-card img.wc-b {
  position:absolute; inset:0; width:100% !important; height:100% !important; max-height:none !important;
  object-fit:contain !important; background:#f1f1ef; opacity:0; transition:opacity .35s ease; margin:0;
}
.win--grid .work-card:hover img.wc-b, .win--grid .work-card:focus-visible img.wc-b { opacity:1; }
.win--grid .work-card-title {
  color:var(--c,#1a1a1a) !important; font-family:var(--font-sans, inherit); font-size:22px; font-weight:400;
  text-transform:none; letter-spacing:0; line-height:1.15; margin-top:12px;
}
.win--grid .work-card:hover .work-card-title { color:var(--c,#1a1a1a) !important; transform:none; }
.win--grid .work-card-meta { color:#1a1a1a !important; font-family:inherit; font-size:15px; line-height:1.3; margin-top:4px; }
@media (max-width:1100px) { .win--grid .work-grid { columns:3 200px; } }
@media (max-width:700px) {
  .win--grid .work-grid { columns:2 140px; column-gap:14px; }
  .win--grid .work-grid > .work-card, .win--grid .work-grid > .work-card:nth-child(n) { margin-bottom:14px !important; }
  .win--grid .work-card-title { font-size:17px; } .win--grid .work-card-meta { font-size:12px; }
}
.win--grid .win-heading-group span { color:rgba(26,26,26,.6) !important; }
.win--grid .win-text { color:rgba(26,26,26,.78) !important; }

/* Títulos do Work numa só cor (tijolo) */
.win--grid .work-card-title, .win--grid .work-card:hover .work-card-title { color:#8C2B24 !important; }

/* Tipografia dos títulos do Work = a da página inicial (Space Mono + Montserrat) */
.win--grid .work-card-title {
  font-family: var(--font-mono) !important; font-weight: 700 !important; font-size: 12.5px !important;
  text-transform: uppercase !important; letter-spacing: .02em !important; line-height: 1.35 !important; margin-top: 12px;
}
.win--grid .work-card-meta {
  font-family: var(--font-body) !important; font-weight: 300 !important; font-size: 13px !important; line-height: 1.5 !important; margin-top: 4px;
}
@media (max-width:700px) {
  .win--grid .work-card-title { font-size: 11px !important; }
  .win--grid .work-card-meta { font-size: 11.5px !important; }
}

/* Uniform project galleries (e.g. 7colinas): same-size square tiles on a 3-column grid; "wide" items span the row */
.work-overlay-images.is-uniform { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px 24px; align-items:start; }
.work-overlay-images.is-uniform figure { margin:0; }
.work-overlay-images.is-uniform figure.wide { grid-column:1 / -1; }
.work-overlay-images.is-uniform figure:not(.wide) img { width:auto !important; max-width:100% !important; height:auto !important; margin:0 auto !important; }
.work-overlay-images.is-uniform figure:not(.wide) { text-align:center; }
.work-overlay-images.is-uniform figure.wide img { width:auto !important; max-width:100% !important; }
@media (max-width:760px) { .work-overlay-images.is-uniform { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 14px; } }

/* Sticker board */
.sticker-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; max-width:760px; margin:8px auto 40px; padding:36px; background:rgb(160,29,34); border-radius:14px; }
.sticker-board img { width:100%; aspect-ratio:1; object-fit:contain; display:block; cursor:pointer; filter:drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.work-overlay-images.is-small.is-uniform { max-width:760px; margin-left:auto; margin-right:auto; gap:24px 20px; }
.work-overlay-images.is-small figure:not(.wide) img { width:100% !important; max-width:170px !important; }
@media (max-width:760px) { .sticker-board { grid-template-columns:repeat(2,minmax(0,1fr)); padding:20px; gap:14px; } }

.work-overlay-images.is-uniform figure.half { grid-column:span 2; }
.work-overlay-images.is-uniform figure.half img { width:100% !important; max-width:100% !important; }

/* Nav: About / Work centrados na página (colunas laterais iguais) */
.nav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; column-gap:12px; }
.nav-brand { justify-self:start; min-width:0; }
.nav-center { justify-self:center; }
.nav-right { justify-self:end; }
@media (max-width:760px) { .nav { grid-template-columns:1fr auto 1fr; } .nav-brand { flex:none; } }

/* Modo organizar */
.org-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 22px; padding:12px 14px; border:1px dashed currentColor; border-radius:10px; font-size:12px; }
.org-bar span { opacity:.7; flex:1 1 260px; }
.org-bar button { font:inherit; padding:6px 12px; border-radius:999px; border:1px solid currentColor; background:transparent; color:inherit; cursor:pointer; }
.org-bar .org-out { width:100%; font:12px/1.5 ui-monospace,monospace; padding:10px; border-radius:8px; border:1px solid rgba(128,128,128,.4); background:rgba(128,128,128,.08); color:inherit; }
.work-card[draggable="true"] { cursor:grab; }
.work-card.is-dragging { opacity:.35; }
.work-card.drop-before { box-shadow:0 -6px 0 0 #ff8a7d; }
.work-card.drop-after { box-shadow:0 6px 0 0 #ff8a7d; }

/* Work: ordem da esquerda para a direita (posição calculada em JS) */
.win--grid .work-grid { position:relative; columns:auto !important; }
.win--grid .work-grid > .work-card { position:absolute; margin:0 !important; }
.win--grid .work-grid > .work-card:nth-child(n) { margin:0 !important; }

/* =====================================================================
   V13 — audit refinements (Nov 2026)
   ===================================================================== */

/* Keyboard access to studio objects: hidden until it receives focus */
.studio-keys {
  position: fixed; left: 12px; top: 12px; z-index: 2001; display: flex; flex-wrap: wrap; gap: 6px;
  max-width: calc(100vw - 24px); padding: 10px 12px; background: #1a1a1a; color: #fff; border-radius: 10px;
  font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  transform: translateY(-160%); transition: transform .2s ease;
}
.studio-keys:focus, .studio-keys:focus-within { transform: none; }
.studio-keys-label { align-self: center; opacity: .6; margin-right: 4px; }
.studio-keys button { font: inherit; color: inherit; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.studio-keys button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Tablet: the role line made the nav wrap over three lines */
@media (max-width: 1024px) { .nav-role { display: none; } }

/* Work cards: brand / client is the headline, project type the subline */
.win--grid .work-card-meta { color: rgba(26,26,26,.72) !important; }

/* Project page: key facts and deliverables */
.work-overlay-header { max-width: 860px; }
.work-overlay-title { font-size: 19px; }
.work-overlay-meta { font-size: 12px !important; margin-top: 6px; }
.wo-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 24px;
  margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(26,26,26,.14);
}
.wo-facts div { min-width: 0; }
.wo-facts dt { font: 700 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(26,26,26,.5); margin-bottom: 4px; }
.wo-facts dd { font: 400 13px/1.45 var(--font-body); color: #1a1a1a; }
.wo-deliv { margin-top: 18px; }
.wo-deliv-label { display: block; font: 700 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(26,26,26,.5); margin-bottom: 6px; }
.wo-deliv ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.wo-deliv li { font: 400 12px/1.3 var(--font-body); color: #1a1a1a; border: 1px solid rgba(26,26,26,.2); border-radius: 999px; padding: 5px 10px; }
.work-overlay-panel:focus-within .work-overlay-close:focus-visible { outline: 2px solid #8C2B24; outline-offset: 3px; }
.wo-step b { font-size: 13px; }

/* About: short text introduction above the CV preview */
.about-intro { max-width: 640px; margin: 4px 0 26px; font-family: var(--font-body); color: #1a1a1a; }
.about-intro-name { font: 700 22px/1.1 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; }
.about-intro-role { font: 400 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 14px; color: rgba(26,26,26,.7); }
.about-intro p:not(.about-intro-role) { font-size: 14px; line-height: 1.7; font-weight: 400; margin-bottom: 10px; }
.about-intro b { font-weight: 700; }
.about-cv-open { display: block; position: relative; text-decoration: none; }
.about-cv-open-hint {
  position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: #1a1a1a; color: #fff;
  font: 700 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; opacity: 0; transition: opacity .2s ease;
}
.about-cv-open:hover .about-cv-open-hint, .about-cv-open:focus-visible .about-cv-open-hint { opacity: 1; }
@media (hover: none) { .about-cv-open-hint { opacity: 1; } }
@media (max-width: 700px) { .about-intro p:not(.about-intro-role) { font-size: 13.5px; } }

/* Project galleries: tall portrait assets (posters, stories) were rendered at full
   native height (up to ~2400px). Cap them to the viewport so each piece reads whole. */
.work-overlay-images:not(.is-uniform) img { max-height: 88vh !important; }
.work-overlay-images:not(.is-uniform) figcaption { text-align: center; }

/* Sticker set: transparent die-cut stickers (images/stickers), each with room around it */
.sticker-board { gap: 28px; padding: 40px; }
.sticker-board img { aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.work-overlay-images.is-small.is-uniform { gap: 36px 28px; }
.work-overlay-images.is-small figure:not(.wide) img { filter: drop-shadow(0 2px 5px rgba(0,0,0,.22)); }
@media (max-width:760px) { .sticker-board { gap: 18px; padding: 22px; } }

/* Project galleries: rows of equal height (no crop, no stretch), before/after pairs, section titles */
.wo-row { display: flex; gap: 20px; align-items: flex-start; width: 100%; max-width: 1150px; margin: 0 auto; }
.wo-row figure { margin: 0; min-width: 0; position: relative; }
.wo-row figure img { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; }
.wo-row-cap { max-width: 1150px; margin: -16px auto 0; width: 100%; font: 400 11px/1.5 var(--font-mono); color: rgba(26,26,26,.6); text-align: center; }
.wo-row figure figcaption { text-align: center; }
.wo-ba { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #1a1a1a; font: 700 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.wo-row.is-ba figure + figure .wo-ba { background: #1a1a1a; color: #fff; }
.wo-section { max-width: 1150px; width: 100%; margin: 14px auto -8px; padding-top: 14px; border-top: 1px solid rgba(26,26,26,.14);
  font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #1a1a1a; }
.wo-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.work-overlay-images figure.on-bg { padding: 8% 10%; border-radius: 2px; }
.work-overlay-images figure.on-bg img { width: 100% !important; }
@media (max-width: 700px) { .wo-row { gap: 10px; } .wo-ba { left: 6px; top: 6px; font-size: 8.5px; padding: 3px 7px; } }
.work-overlay-images figure.on-bg figcaption { color: rgba(255,255,255,.6) !important; }
.work-overlay-images figure.on-bg { width: 100%; max-width: 860px; margin: 0 auto; padding: 7% 18%; }

/* =====================================================================
   V14 — Work: editorial grid (4:3 covers, three sizes on two halves) + list view
   Grid: two equal halves (gap 24px). Sizes: L = 100% of a half, M = 60%, S = 40%.
   Pattern per two rows: M (left edge) + L | S (to centre) + S (from centre) | L + M (right edge).
   ===================================================================== */
.eg-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #1a1a1a; }
.eg-bar .work-seg-row { border: 0 !important; padding: 12px 0 !important; margin: 0 !important; }
.eg-view { display: flex; gap: 18px; margin-left: auto; padding: 12px 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.eg-vbtn { background: none; border: 0; padding: 0; font: inherit; color: rgba(26,26,26,.45); cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.eg-vbtn.is-active { color: #1a1a1a; font-weight: 700; }
.eg-vbtn:hover { color: #1a1a1a; }

.eg { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: clamp(64px, 8vw, 120px); align-items: start; margin-top: 56px; }
.eg[hidden], .el[hidden], .eg-more[hidden] { display: none; }
.eg-item { display: block; width: 100%; justify-self: start; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.eg-l { width: 100%; }
.eg-m { width: 60%; }
.eg-s { width: 40%; }
.eg-item.s-start { justify-self: start; }
.eg-item.s-end { justify-self: end; }
.eg-title { display: block; margin-bottom: 12px; font: 700 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; color: #1a1a1a; transition: color .2s ease; }
.eg-l .eg-title { font-size: 15px; }
.eg-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f1ef; }
.eg-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.eg-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font: 400 12.5px/1.4 var(--font-body); color: rgba(26,26,26,.7); }
.eg-meta span:last-child { font-family: var(--font-mono); font-size: 11px; flex: none; }
.eg-item:hover .eg-title, .eg-item:focus-visible .eg-title { color: #8C2B24; }
.eg-item:hover .eg-img img { opacity: .9; }
.eg-item:focus-visible { outline: 2px solid #8C2B24; outline-offset: 6px; }
.eg-more { margin-top: clamp(64px, 8vw, 110px); text-align: center; }
.eg-more-btn { background: none; border: 1px solid #1a1a1a; border-radius: 999px; padding: 11px 20px; font: 700 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #1a1a1a; cursor: pointer; }
.eg-more-btn:hover { background: #1a1a1a; color: #fff; }

/* List view */
.el { margin-top: 40px; border-top: 1px solid #1a1a1a; }
.el-head, .el-row { display: grid; grid-template-columns: 2.1fr 2fr 1.3fr 56px; column-gap: 24px; align-items: baseline; width: 100%;
  padding: 15px 0; border: 0; border-bottom: 1px solid rgba(26,26,26,.14); background: none; font: inherit; color: inherit; text-align: left; }
.el-head { font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(26,26,26,.5); padding: 10px 0; }
.el-row { cursor: pointer; }
.el-c1 { font: 700 12.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; transition: color .2s ease; }
.el-c2, .el-c3 { font: 400 13px/1.4 var(--font-body); color: rgba(26,26,26,.75); }
.el-c4 { font: 400 11px var(--font-mono); color: rgba(26,26,26,.6); text-align: right; }
.el-row:hover .el-c1, .el-row:focus-visible .el-c1 { color: #8C2B24; }
.el-thumb { position: fixed; z-index: 60; width: 300px; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; opacity: 0;
  transform: translate(28px, -50%); transition: opacity .2s ease; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.el-thumb.on { opacity: 1; }
.el-thumb:not([src]) { display: none; }

@media (max-width: 1024px) {
  .eg-m { width: 82%; }
  .eg-s { width: 66%; }
  .el-head, .el-row { grid-template-columns: 2fr 1.8fr 48px; }
  .el-c3, .el-head span:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .eg { grid-template-columns: 1fr; row-gap: 48px; margin-top: 36px; }
  .eg-item, .eg-l, .eg-m, .eg-s { width: 100%; justify-self: stretch !important; }
  .eg-l .eg-title { font-size: 12.5px; }
  .el-head { display: none; }
  .el-row { grid-template-columns: 1fr 44px; row-gap: 4px; }
  .el-c2 { grid-column: 1; grid-row: 2; font-size: 12px; }
  .el-c4 { grid-column: 2; grid-row: 1; }
  .eg-bar { flex-wrap: wrap; }
}
/* one title size for every slot, so the images of each row start on the same line */
.eg-title, .eg-l .eg-title { font-size: 13px; line-height: 18px; height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .eg-title, .eg-l .eg-title { font-size: 12px; } }

/* Project page (V14): title → hero → info in two columns → gallery → next project */
.work-overlay-header { max-width: none; padding-bottom: 28px; }
.work-overlay-title { font-size: clamp(20px, 2.4vw, 30px) !important; line-height: 1.15; }
.wo-hero { margin: 0 auto; max-width: 1150px; align-self: center; width: calc(100% - 12vw); }
.wo-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wo-info { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1150px; width: calc(100% - 12vw); margin: 40px auto 56px; align-self: center; }
.wo-info .work-overlay-note { margin-top: 0; font-size: 15px; line-height: 1.7; }
.wo-info .wo-facts { margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: 1fr 1fr; }
.wo-next-img { display: block; width: min(320px, 100%); aspect-ratio: 4 / 3; object-fit: cover; margin-top: 14px; }
@media (max-width: 760px) {
  .wo-info { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 36px); margin: 24px auto 36px; }
  .wo-hero { width: calc(100% - 36px); margin: 0 18px; }
  .wo-next-img { width: 100%; }
}

/* =====================================================================
   V15 — Editorial layer (Work window + project pages), modelled on Jetton.
   Display: Antonio (condensed) · Text: DM Mono · Background #f5f5f3
   Grid unit: 40px side margins, 24px gutters.
   ===================================================================== */
:root { --ed-bg: #f5f5f3; --ed-ink: #111; --ed-mute: rgba(17,17,17,.45); --ed-line: rgba(17,17,17,.14);
  --ed-display: var(--font-mono); --ed-mono: var(--font-mono); --ed-m: 40px; }
@media (max-width: 700px) { :root { --ed-m: 20px; } }

/* shared */
.ed-line { display: block; overflow: hidden; padding-bottom: .02em; }
.ed-line-in { display: block; will-change: transform; }

/* ---------- Work window ---------- */
.win.win--grid { background: var(--ed-bg) !important; }
.win.win--grid .win-body { background: var(--ed-bg) !important; color: var(--ed-ink) !important; padding: 0 var(--ed-m) 120px !important; }
.win.win--grid .win-dot.close { position: fixed; top: 22px; right: 26px; z-index: 30; background: var(--ed-ink) !important; }
.ed-hero { padding-top: clamp(90px, 14vh, 150px); }
.ed-hero-title { font: 500 clamp(64px, 10.4vw, 160px)/.86 var(--ed-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--ed-ink); margin: 0; }
.ed-hero-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: clamp(48px, 9vh, 96px); }
.ed-kicker, .ed-intro { font: 500 13px/1.55 var(--ed-mono); text-transform: uppercase; letter-spacing: .01em; color: var(--ed-ink); margin: 0; }
.ed-intro { max-width: 520px; }
.eg-bar { display: grid !important; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 24px; margin: clamp(40px, 7vh, 72px) calc(var(--ed-m) * -1) 0;
  padding: 20px var(--ed-m); border-top: 1px solid var(--ed-line) !important; border-bottom: 0 !important; position: relative;
  font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink); }
.eg-bar i { font-style: normal; margin-left: 6px; }
.eg-explore { grid-column: 1; }
.eg-cats-btn { grid-column: 2; justify-self: start; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.eg-cats-btn i { margin: 0 8px 0 0; }
.eg-view { position: absolute; right: var(--ed-m); top: 50%; transform: translateY(-50%); display: flex; gap: 22px; margin: 0 !important; padding: 0 !important; font: inherit !important; }
.eg-vbtn { font: inherit !important; color: var(--ed-mute) !important; text-transform: uppercase; letter-spacing: inherit; }
.eg-vbtn.is-active { color: var(--ed-ink) !important; font-weight: 500 !important; }
.eg-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 6px 0 22px; border-bottom: 1px solid var(--ed-line); }
.eg-cats[hidden] { display: none; }
.eg-cats .work-filter-row { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 20px; border: 0 !important; padding: 6px 0 !important; margin: 0 !important; }
.eg-cats .work-seg, .eg-cats .work-filter { font: 500 12px var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ed-mute) !important; background: none !important; border: 0 !important; padding: 0 !important; }
.eg-cats .work-seg.is-active, .eg-cats .work-filter.is-active, .eg-cats .work-seg:hover, .eg-cats .work-filter:hover { color: var(--ed-ink) !important; }
.eg-cats .work-filter::after, .eg-cats .work-seg::after { content: none !important; }
.eg { margin-top: clamp(48px, 9vh, 96px) !important; row-gap: clamp(72px, 9vw, 140px) !important; }
.eg-title, .eg-l .eg-title { display: block; overflow: hidden; height: auto !important; white-space: nowrap; text-overflow: clip !important;
  font: 500 clamp(22px, 2.3vw, 34px)/1 var(--ed-display) !important; text-transform: uppercase; letter-spacing: -.005em; color: var(--ed-ink) !important; margin-bottom: 14px !important; }
.eg-title-in { display: block; overflow: hidden; text-overflow: ellipsis; }
.eg-img { background: transparent !important; }
.eg-reveal { display: block; width: 100%; height: 100%; }
.eg-reveal img { opacity: 1 !important; }
.eg-meta { font: 500 12px/1.4 var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink) !important; margin-top: 14px !important; }
.eg-meta span:last-child { font: inherit !important; }
.eg-item:hover .eg-title, .eg-item:focus-visible .eg-title { color: var(--ed-ink) !important; }
.eg-more-btn { font: 500 12px var(--ed-mono) !important; border-color: var(--ed-ink) !important; }
.el { border-top: 1px solid var(--ed-ink) !important; }
.el-row, .el-head { padding: 18px 0 !important; }
.el-c1 { font: 500 clamp(18px, 1.7vw, 24px)/1 var(--ed-display) !important; text-transform: uppercase; }
.el-c2, .el-c3, .el-c4, .el-head { font: 500 12px var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink) !important; }
.el-head { color: var(--ed-mute) !important; }
.el-thumb { box-shadow: none !important; }
@media (max-width: 700px) {
  .ed-hero-row { grid-template-columns: 1fr; row-gap: 18px; }
  .eg-bar { grid-template-columns: 1fr auto; }
  .eg-cats-btn { grid-column: 1; grid-row: 2; margin-top: 12px; }
  .eg-view { position: static; transform: none; grid-column: 2; grid-row: 1; }
  .eg-cats { grid-template-columns: 1fr; }
  .eg-cats .work-filter-row { grid-column: 1; }
  .el-c1 { font-size: 20px !important; }
}

/* ---------- project page ---------- */
.work-overlay.ed-project .work-overlay-backdrop { background: var(--ed-bg); }
.work-overlay.ed-project .work-overlay-panel { inset: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--ed-bg) !important; color: var(--ed-ink) !important; display: block !important; transform: none !important; overflow-y: auto; }
.wo-topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--ed-m);
  font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; pointer-events: none; }
.wo-topbar > * { pointer-events: auto; }
.work-overlay.ed-project .work-overlay-close { position: static !important; width: auto !important; height: auto !important; border-radius: 3px !important;
  padding: 10px 16px; background: var(--ed-ink) !important; color: #fff !important; font: 500 12px var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .03em; }
.work-overlay-close i { font-style: normal; margin-left: 6px; }
.wo-head { text-align: center; padding: clamp(40px, 9vh, 110px) var(--ed-m) 0; }
.wo-bigtitle { font: 500 clamp(48px, 8.6vw, 136px)/.88 var(--ed-display) !important; text-transform: uppercase; letter-spacing: -.01em; color: var(--ed-ink) !important; margin: 0; }
.wo-lead { font: 500 13px/1.55 var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink) !important; margin: 30px auto 0 !important; max-width: 560px; }
.wo-bar { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 10vh, 110px); padding: 18px var(--ed-m);
  border-top: 1px solid var(--ed-line); font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; }
.wo-bar i { font-style: normal; margin-left: 6px; }
.work-overlay.ed-project .wo-hero { width: min(100%, 133.33vh) !important; max-width: none !important; margin: 0 auto !important; overflow: hidden; aspect-ratio: 4 / 3; align-self: auto; }
.wo-par { display: block; width: 100%; height: 100%; }
.wo-par img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; transform-origin: 50% 50%; }
.work-overlay.ed-project .wo-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; max-width: none; width: auto; margin: 0; padding: clamp(80px, 14vh, 160px) var(--ed-m); align-self: auto; }
.work-overlay.ed-project .wo-facts { display: block; margin: 0; padding: 0; border: 0; }
.work-overlay.ed-project .wo-facts div { margin-bottom: 22px; }
.work-overlay.ed-project .wo-facts dt, .work-overlay.ed-project .wo-facts dd { font: 500 13px/1.5 var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink); margin: 0; }
.work-overlay.ed-project .wo-facts dt { color: var(--ed-mute); }
.work-overlay.ed-project .wo-deliv-label { font: 500 13px var(--ed-mono); color: var(--ed-mute); text-transform: uppercase; letter-spacing: .02em; }
.work-overlay.ed-project .wo-deliv ul { display: block; }
.work-overlay.ed-project .wo-deliv li { border: 0; padding: 0; border-radius: 0; font: 500 13px/1.6 var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink); }
.wo-statement { font: 500 clamp(28px, 3.3vw, 54px)/1.02 var(--ed-display) !important; text-transform: uppercase; letter-spacing: -.005em; color: var(--ed-ink) !important; margin: 0 !important; }
.wo-w { display: inline; }
.work-overlay.ed-project .work-overlay-link { display: inline-block; margin-top: 28px; font: 500 12px var(--ed-mono); text-transform: uppercase; color: var(--ed-ink); }
.work-overlay.ed-project .work-overlay-images { padding: 0 var(--ed-m) clamp(80px, 12vh, 140px) !important; gap: 24px !important; }
.work-overlay.ed-project .wo-row { max-width: none; gap: 24px; }
.work-overlay.ed-project .wo-row { margin: 0 auto; }
.work-overlay.ed-project .work-overlay-images > figure { position: relative; margin: 0 auto; }
.work-overlay.ed-project .work-overlay-images figure { position: relative; }
.work-overlay.ed-project .work-overlay-images img { border-radius: 0 !important; }
.wo-tag { position: absolute; right: 0; bottom: 0; margin: 0 !important; padding: 6px 9px; background: var(--ed-ink); color: #fff !important;
  font: 500 10px/1.2 var(--ed-mono) !important; text-transform: uppercase; letter-spacing: .03em; text-align: left !important; max-width: 80%; }
.work-overlay.ed-project .wo-ba { left: 0; top: 0; border-radius: 0; padding: 6px 9px; background: #fff; color: var(--ed-ink); font: 500 10px var(--ed-mono); letter-spacing: .04em; }
.work-overlay.ed-project .wo-row.is-ba figure + figure .wo-ba { background: var(--ed-ink); color: #fff; }
.work-overlay.ed-project .wo-row-cap { max-width: none; margin: -10px 0 0; text-align: left; font: 500 11px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-mute); }
.work-overlay.ed-project .wo-section { max-width: none; margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--ed-line); font: 500 12px var(--ed-mono); color: var(--ed-ink); }
.work-overlay.ed-project .sticker-board { margin: 0 var(--ed-m) 24px; }
.wo-next { padding: clamp(80px, 14vh, 160px) var(--ed-m) clamp(110px, 16vh, 180px); border-top: 1px solid var(--ed-line); text-align: center; position: relative; }
.wo-prev-link { position: absolute; left: var(--ed-m); top: 22px; background: none; border: 0; padding: 0; cursor: pointer; font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-mute); }
.wo-prev-link:hover { color: var(--ed-ink); }
.wo-next-link { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ed-ink); }
.wo-next-label { display: block; font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .02em; }
.wo-next-title { display: block; margin-top: 22px; font: 500 clamp(44px, 7.4vw, 120px)/.9 var(--ed-display); text-transform: uppercase; letter-spacing: -.01em; }
.wo-next-media { display: block; width: min(560px, 86%); aspect-ratio: 4 / 3; margin: 44px auto 0; overflow: hidden; }
.wo-next-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wo-mode { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1100; display: flex; padding: 4px; background: var(--ed-ink); border-radius: 4px; }
.wo-mode button { background: none; border: 0; color: rgba(255,255,255,.55); font: 500 12px var(--ed-mono); text-transform: uppercase; letter-spacing: .03em; padding: 9px 18px; border-radius: 2px; cursor: pointer; }
.wo-mode button.is-active { background: #fff; color: var(--ed-ink); }
.work-overlay.is-visual .wo-info, .work-overlay.is-visual .wo-row-cap, .work-overlay.is-visual .wo-tag, .work-overlay.is-visual .wo-section, .work-overlay.is-visual .wo-ba { display: none !important; }
.work-overlay.ed-project .work-overlay-foot, .work-overlay.ed-project .wo-arrow { display: none; }
@media (max-width: 760px) {
  .work-overlay.ed-project .wo-info { grid-template-columns: 1fr; row-gap: 48px; }
  .wo-bar { flex-direction: column; gap: 6px; }
  .wo-next-media { width: 100%; }
  .wo-mode { bottom: 14px; }
}

/* ---------- moving cover, lightbox, cursor ---------- */
.ed-flying { position: fixed; z-index: 2500; object-fit: cover; pointer-events: none; margin: 0; }
.ed-lightbox { position: fixed; inset: 0; z-index: 2600; background: rgba(245,245,243,.97); display: flex; align-items: center; justify-content: center; padding: 70px var(--ed-m) 40px; cursor: zoom-out; }
.ed-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ed-lightbox-close { position: absolute; top: 22px; right: 26px; padding: 10px 16px; border: 0; border-radius: 3px; background: var(--ed-ink); color: #fff; font: 500 12px var(--ed-mono); text-transform: uppercase; cursor: pointer; }
.ed-zoomable img { cursor: zoom-in; }
.ed-cursor { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; }
.ed-cursor-ball { position: absolute; left: 0; top: 0; width: 10px; height: 10px; transform: translate(-50%, -50%); background: var(--ed-ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), border-radius .35s, opacity .2s; }
.ed-cursor-icon { font: 400 18px/1 var(--ed-mono); font-style: normal; color: #fff; opacity: 0; transition: opacity .2s; }
.ed-cursor.is-thumb .ed-cursor-ball { width: 46px; height: 46px; border-radius: 2px; }
.ed-cursor.is-thumb .ed-cursor-icon { opacity: 1; }
.ed-cursor.is-link .ed-cursor-ball { width: 6px; height: 6px; }
.ed-cursor.is-off .ed-cursor-ball { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ed-cursor { display: none; } }
/* Work window as a full page, like the reference */
.win.win--grid { inset: 0 !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.win.win--grid .win-titlebar { position: absolute; inset: 0 0 auto 0; height: 0; padding: 0; border: 0; background: none; }
.win.win--grid .win-dot.close { width: auto !important; height: auto !important; border-radius: 3px !important; padding: 10px 16px !important; top: 22px !important; right: var(--ed-m) !important; }
.win.win--grid .win-dot.close::before, .win.win--grid .win-dot.close::after { content: none !important; }
.ed-close-label { font: 500 12px var(--ed-mono); color: #fff; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.ed-close-label i { font-style: normal; margin-left: 6px; }
.wo-topbar-l { mix-blend-mode: difference; color: #fff; }
.work-overlay.ed-project .work-overlay-images .wo-row figure img { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; }
.work-overlay.ed-project .wo-hero { overflow: visible; position: relative; z-index: 1; }
.wo-par img { object-fit: contain !important; }
.work-overlay.ed-project .wo-hero { max-width: var(--hero-max, none) !important; }

/* =====================================================================
   V16 — Bárbara's own typography and details on the editorial layout
   (Space Mono + Montserrat, as in the studio site and the earlier Work);
   larger small/medium covers; hover swaps to the second image (4:3);
   no list view; captions below images.
   ===================================================================== */
:root { --ed-display: var(--font-mono); --ed-mono: var(--font-mono); --ed-bg: #fff; --ed-ink: #1a1a1a; --ed-accent: #8C2B24; }
/* hero */
.ed-hero-title { font: 700 clamp(40px, 6.2vw, 100px)/.95 var(--font-mono); letter-spacing: -.02em; }
.ed-kicker, .ed-intro { font: 400 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; }
.ed-intro { font: 300 14px/1.75 var(--font-body); text-transform: none; letter-spacing: 0; color: #3a3632; }
/* bar with segments + filters, in the earlier style */
.eg-bar.eg-cats { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 16px var(--ed-m) !important; border-bottom: 1px solid var(--ed-line) !important; }
.eg-bar.eg-cats .work-filter-row { grid-column: auto; padding: 0 !important; gap: 6px 0; }
.eg-cats .work-seg, .eg-cats .work-filter { font: 400 11.5px var(--font-mono) !important; text-transform: none; letter-spacing: 0; color: rgba(26,26,26,.55) !important; }
.eg-cats .work-seg.is-active, .eg-cats .work-filter.is-active { color: var(--ed-ink) !important; font-weight: 700 !important; }
.eg-cats .work-filter::after, .eg-cats .work-seg::after { content: '///' !important; margin: 0 14px; color: rgba(26,26,26,.25); font-weight: 400; }
.eg-cats .work-filter.is-last::after, .eg-cats .work-seg:last-child::after { content: none !important; }
.eg-cats .work-filter[style*="display: none"] + .work-filter::before { content: none; }
/* grid: larger M and S covers */
.eg-m { width: 80%; }
.eg-s { width: 62%; }
@media (max-width: 1024px) { .eg-m { width: 90%; } .eg-s { width: 76%; } }
.eg-title, .eg-l .eg-title { font: 700 13px/18px var(--font-mono) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--ed-ink) !important; margin-bottom: 12px !important; }
.eg-meta { font: 400 12.5px/1.4 var(--font-body) !important; text-transform: none; letter-spacing: 0; color: rgba(26,26,26,.7) !important; margin-top: 10px !important; }
.eg-meta span:last-child { font: 400 11px var(--font-mono) !important; }
.eg-item:hover .eg-title, .eg-item:focus-visible .eg-title { color: var(--ed-accent) !important; }
/* hover: second image fades in, same 4:3 frame */
.eg-reveal { position: relative; overflow: hidden; }
.eg-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.eg-item:hover .eg-hover, .eg-item:focus-visible .eg-hover { opacity: 1; }
@media (hover: none) { .eg-hover { display: none; } }
.eg-more-btn { font: 700 11.5px var(--font-mono) !important; text-transform: uppercase; }
/* project page */
.wo-bigtitle { font: 700 clamp(30px, 4.8vw, 76px)/1 var(--font-mono) !important; letter-spacing: -.02em; }
.wo-lead { font: 400 12px/1.6 var(--font-mono) !important; color: var(--ed-accent) !important; }
.wo-bar { font: 400 11.5px var(--font-mono); text-transform: none; }
.work-overlay.ed-project .wo-facts dt, .work-overlay.ed-project .wo-deliv-label { font: 700 10px var(--font-mono) !important; text-transform: uppercase; letter-spacing: .08em; color: rgba(26,26,26,.5) !important; margin-bottom: 4px; }
.work-overlay.ed-project .wo-facts dd { font: 400 13.5px/1.5 var(--font-body) !important; text-transform: none; letter-spacing: 0; }
.work-overlay.ed-project .wo-deliv li { font: 400 13.5px/1.7 var(--font-body) !important; text-transform: none; letter-spacing: 0; }
.wo-statement { font: 300 clamp(20px, 2.2vw, 32px)/1.45 var(--font-body) !important; text-transform: none; letter-spacing: 0; }
.work-overlay.ed-project .work-overlay-link { font: 700 11.5px var(--font-mono); }
.work-overlay.ed-project .work-overlay-images figcaption { position: static; background: none; padding: 0; margin-top: 10px !important; max-width: none;
  font: 400 11px/1.5 var(--font-mono) !important; color: rgba(26,26,26,.55) !important; text-transform: none; letter-spacing: 0; text-align: center !important; }
.work-overlay.ed-project .wo-ba { left: 10px; top: 10px; border-radius: 999px; padding: 4px 9px; background: rgba(255,255,255,.92); font: 700 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.work-overlay.ed-project .wo-row-cap { font: 400 11px/1.5 var(--font-mono) !important; text-transform: none; text-align: center; color: rgba(26,26,26,.55); margin-top: -8px; }
.work-overlay.ed-project .wo-section { font: 700 11px var(--font-mono) !important; text-transform: uppercase; letter-spacing: .08em; }
.wo-next-label, .wo-prev-link { font: 400 11.5px var(--font-mono) !important; text-transform: none; letter-spacing: 0; }
.wo-next-title { font: 700 clamp(28px, 4.4vw, 68px)/1 var(--font-mono) !important; letter-spacing: -.02em; }
.work-overlay.ed-project .work-overlay-close { font: 700 11px var(--font-mono) !important; }
.ed-close-label { font: 700 11px var(--font-mono); }
.ed-lightbox { background: rgba(255,255,255,.97); }
.ed-lightbox-close { font: 700 11px var(--font-mono); }
.eg-reveal img.eg-hover { opacity: 0 !important; transition: opacity .45s ease; }
.eg-item:hover .eg-reveal img.eg-hover, .eg-item:focus-visible .eg-reveal img.eg-hover { opacity: 1 !important; }
.eg-meta { align-items: baseline; }

/* =====================================================================
   V17 — ONE SYSTEM FOR THE WHOLE SITE
   Rule: the studio is the world; everything that is portfolio (Work,
   Super Bock, Carlsberg, UX/UI, About, project pages) is a full page on
   the same grid; the object notes are small windows using the same type.
   Grid: 40px margins (20px mobile) · two halves · 24px gutter.
   Type: T1 Space Mono 700 caps (page titles) · L Space Mono caps labels ·
         M Space Mono 11.5 meta · B Montserrat 300 body · S Montserrat 300 statement.
   Spacing: 8 · 16 · 24 · 40 · 64 · 120.
   ===================================================================== */
:root {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 120px;
  --t1: 700 clamp(36px, 5.6vw, 92px)/.95 var(--font-mono);
  --tl: 700 11px/1.4 var(--font-mono);
  --tm: 400 11.5px/1.5 var(--font-mono);
  --tb: 300 14px/1.7 var(--font-body);
  --ink: #1a1a1a; --mute: rgba(26,26,26,.55); --hair: rgba(26,26,26,.12); --accent: #8C2B24;
  --ed-bg: #fff; --ed-line: var(--hair); --ed-mute: var(--mute);
}
/* ---------- page header: identical on every full page ---------- */
.ed-hero { padding-top: var(--s6) !important; }
.ed-hero-title, .wo-bigtitle, .wo-next-title { font: var(--t1) !important; text-transform: uppercase; letter-spacing: -.02em !important; color: var(--ink) !important; }
.ed-hero-row { margin-top: var(--s5) !important; column-gap: var(--s3) !important; }
.ed-kicker { font: var(--tl) !important; text-transform: uppercase; letter-spacing: .06em !important; color: var(--ink); }
.ed-intro, .ed-intro p { font: var(--tb) !important; text-transform: none !important; letter-spacing: 0 !important; color: #3a3632; max-width: 560px; margin: 0; }
.ed-intro p + p { margin-top: var(--s2); }
.ed-intro b { font-weight: 600; color: var(--ink); }
.eg-bar { margin-top: var(--s5) !important; }
.eg { margin-top: var(--s5) !important; }
.eg-title { font: var(--tl) !important; letter-spacing: .06em !important; margin-bottom: var(--s2) !important; }
.eg-meta { font: 300 13px/1.5 var(--font-body) !important; margin-top: var(--s2) !important; }
.eg-meta span:last-child { font: var(--tm) !important; }

/* ---------- project page on the same grid (left aligned, halves) ---------- */
.wo-head { text-align: left !important; padding: var(--s4) var(--ed-m) 0 !important; }
.wo-lead { margin: var(--s5) 0 0 !important; max-width: none !important; font: var(--tl) !important; letter-spacing: .06em !important; color: var(--accent) !important; }
.wo-bar { margin-top: var(--s5) !important; padding: var(--s2) var(--ed-m) !important; font: var(--tm) !important; }
.wo-bar + .wo-hero { margin-top: var(--s3) !important; }
.work-overlay.ed-project .wo-info { padding: var(--s6) var(--ed-m) !important; column-gap: var(--s3) !important; }
.work-overlay.ed-project .wo-facts div { margin-bottom: var(--s3) !important; }
.work-overlay.ed-project .wo-facts dt, .work-overlay.ed-project .wo-deliv-label { font: var(--tl) !important; letter-spacing: .06em !important; color: var(--mute) !important; margin-bottom: 4px; }
.work-overlay.ed-project .wo-facts dd, .work-overlay.ed-project .wo-deliv li { font: var(--tb) !important; color: var(--ink) !important; }
.work-overlay.ed-project .work-overlay-link { margin-top: var(--s4) !important; font: var(--tl) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.work-overlay.ed-project .work-overlay-images { gap: var(--s3) !important; padding-bottom: var(--s6) !important; }
.work-overlay.ed-project .wo-row, .work-overlay.ed-project .wo-row { gap: var(--s3) !important; }
.work-overlay.ed-project .work-overlay-images figcaption, .work-overlay.ed-project .wo-row-cap { font: var(--tm) !important; color: var(--mute) !important; margin-top: var(--s1) !important; }
.work-overlay.ed-project .wo-section { font: var(--tl) !important; letter-spacing: .06em; margin-top: var(--s4) !important; padding-top: var(--s2) !important; }
/* next project: label + title in the left half, image in the right half */
.wo-next { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: var(--s3); text-align: left !important; padding: var(--s6) var(--ed-m) !important; }
.wo-next-link { display: contents !important; }
.wo-next-label { grid-column: 1; grid-row: 1; font: var(--tl) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--mute); }
.wo-next-title { grid-column: 1; grid-row: 2; margin-top: var(--s3) !important; text-align: left; }
.wo-next-media { grid-column: 2; grid-row: 1 / span 3; width: 100% !important; margin: 0 !important; }
.wo-prev-link { position: static !important; grid-column: 1; grid-row: 3; align-self: end; margin-top: var(--s4); font: var(--tm) !important; text-align: left; }
.wo-next-link:hover .wo-next-title { color: var(--accent) !important; }
@media (max-width: 760px) {
  .wo-next { grid-template-columns: 1fr; row-gap: var(--s3); }
  .wo-next-media { grid-column: 1; grid-row: 3; }
  .wo-prev-link { grid-row: 4; }
}
/* the same close button on every full page */
.wo-topbar { padding: var(--s3) var(--ed-m) !important; }

/* ---------- About as a full page ---------- */
.win--ed-page .ab-bar { display: flex !important; justify-content: space-between; align-items: center; }
.ab-links { display: flex; gap: 0; }
.ab-links a { font: var(--tm); color: var(--mute); text-decoration: none; }
.ab-links a:hover { color: var(--accent); }
.ab-links a + a::before { content: '///'; margin: 0 14px; color: rgba(26,26,26,.25); }
.ab-dl { font: var(--tl); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--ink); padding: 10px 16px; border-radius: 3px; }
.ab-dl:hover { background: var(--accent); }
.ab-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s3); margin-top: var(--s5); align-items: start; }
.ab-facts { margin: 0; }
.ab-facts div { margin-bottom: var(--s3); }
.ab-facts dt { font: var(--tl); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.ab-facts dd { font: var(--tb); color: var(--ink); margin: 0; }
.ab-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hair); }
.ab-facts a:hover { color: var(--accent); border-color: currentColor; }
.ab-cv { margin: 0; }
.ab-cv a { display: block; }
.ab-cv img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--hair); }
.ab-cv figcaption { font: var(--tm); color: var(--mute); margin-top: var(--s1); }
.ab-cv figcaption a { display: inline; color: var(--ink); }
@media (max-width: 760px) { .ab-info { grid-template-columns: 1fr; row-gap: var(--s4); } .win--ed-page .ab-bar { flex-wrap: wrap; gap: var(--s2); } }

/* ---------- object notes: small windows, same type and spacing ---------- */
.win:not(.win--grid):not(.win--tool) { background: #fff; border: 1px solid var(--hair); border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.14); }
.win:not(.win--grid):not(.win--tool) .win-titlebar { background: #fff; border-bottom: 1px solid var(--hair); }
.win:not(.win--grid) .win-title { font: var(--tm); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.win:not(.win--grid):not(.win--tool) .win-body { padding: var(--s3); background: #fff; }
.win:not(.win--grid) .win-header-row { gap: var(--s2); padding-bottom: var(--s2); margin-bottom: var(--s2); border-bottom: 1px solid var(--hair); }
.win:not(.win--grid) .win-heading-group h3 { font: 700 16px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); margin-bottom: 4px; }
.win:not(.win--grid) .win-heading-group span { font: var(--tm); color: var(--mute); }
.win:not(.win--grid) .win-text { font: var(--tb); color: #3a3632; margin-bottom: var(--s2); }
.win:not(.win--grid) .win-icon { border-color: var(--hair); }
.wo-next { grid-template-rows: auto auto 1fr; align-items: start; }
.wo-next-label, .wo-next-title, .wo-prev-link { justify-self: start; text-align: left !important; }
.wo-next-label { margin: 0 !important; }
/* accents (Á, Ã) not clipped by the line mask */
.ed-line { padding-top: .14em; margin-top: -.14em; }
/* every bar: hairline above and below, same height and type */
.win--ed-page .ab-bar { border-bottom: 1px solid var(--hair) !important; padding-top: var(--s2) !important; padding-bottom: var(--s2) !important; }
.ab-links a { text-transform: none; }
.wo-bar { border-bottom: 1px solid var(--hair); }
/* hover: the same crossfade as the original site (.35s ease); before and after share the exact same 4:3 frame */
.eg-reveal img.eg-hover { transition: opacity .35s ease !important; object-fit: cover; object-position: 50% 50%; }
.eg-reveal img:not(.eg-hover) { object-position: 50% 50%; }
/* V18 — covers keep their natural proportion: never cropped, never padded */
.eg-img { aspect-ratio: auto; height: auto; }
.eg-img img:not(.eg-hover) { width: 100%; height: auto !important; object-fit: fill !important; }
.eg-reveal { display: block; }
.eg-reveal img.eg-hover { object-fit: fill !important; }
.work-overlay.ed-project .wo-hero { aspect-ratio: auto; width: min(100%, calc((100vh - 120px) * var(--ar, 1.5))) !important; max-width: var(--hero-max, 100%) !important; height: auto; }
.wo-par img { height: auto !important; object-fit: fill !important; }
.wo-next-media { aspect-ratio: auto; }
.wo-next-media img { height: auto !important; object-fit: fill !important; }
.work-overlay.ed-project .wo-hero { width: min(calc(100% - 2 * var(--ed-m)), calc((100vh - 120px) * var(--ar, 1.5))) !important; }

/* V19 — grid rows: both covers of a pair share one height (no crop), 96px between rows */
@media (min-width: 701px) {
  .eg-item[style*="--w"] { width: var(--w) !important; }
  .eg { row-gap: 96px !important; }
}
/* captions sit 8px under their own images; the next block starts 64px later */
.work-overlay.ed-project .work-overlay-images > .wo-row-cap { margin-top: calc(var(--s1) - var(--s3)) !important; }
.work-overlay.ed-project .work-overlay-images > .wo-row-cap + * { margin-top: var(--s4) !important; }
.work-overlay.ed-project .work-overlay-images > figure:has(figcaption) + * { margin-top: var(--s4) !important; }
/* contact, same grid: label in the left half, text + email in the right half */
.wo-contact { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s3); padding: var(--s5) var(--ed-m); border-top: 1px solid var(--hair); }
.wo-contact-label { grid-column: 1; grid-row: 1 / span 2; margin: 0; font: var(--tl); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.wo-contact-text { grid-column: 2; margin: 0 0 var(--s2); font: var(--tb); color: #3a3632; }
.wo-contact-link { grid-column: 2; justify-self: start; font: 700 clamp(16px, 1.8vw, 24px)/1.2 var(--font-mono); color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.wo-contact-link:hover { color: var(--accent); }
@media (max-width: 760px) { .wo-contact { grid-template-columns: 1fr; row-gap: var(--s2); } .wo-contact-label, .wo-contact-text, .wo-contact-link { grid-column: 1; grid-row: auto; } }
.wo-contact + .wo-next { border-top: 1px solid var(--hair); }
@media (hover: none) {
  .eg-hover { display: block !important; }
  .eg-item.is-alt .eg-reveal img.eg-hover { opacity: 1 !important; transition: opacity .6s ease !important; }
}
.hint b { font-weight: 700; }
/* phone turned sideways: the whole atelier fits, with a slimmer header */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding-top: 8px !important; padding-bottom: 8px !important; }
  .scene { max-height: calc(100dvh - 64px) !important; max-width: calc((100dvh - 64px) * 3840 / 2047) !important; }
  .hint { display: none; }
}
/* phones: lamp glows may not stretch the scroll area beyond the drawing */
@media (max-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .scene { overflow: clip; }
  .scene-wrap { overflow-x: auto; }
}
@media (max-height: 500px) and (orientation: landscape) { .scene-wrap { overflow-x: hidden; justify-content: center; } }
@media (max-width: 700px) and (orientation: portrait) {
  .scene { width: min(300vw, calc((100dvh - 170px) * 3840 / 2047)) !important; }
}
/* name drawn with the CV's own lettering (Dharma Gothic C outlines, as in the CV) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-name .name-svg { display: block; height: 22px; width: auto; }
body.is-night .name-svg { filter: invert(1) brightness(.95); }
.ed-name .ed-line { padding-top: 0; margin-top: 0; }
.ed-name .name-svg { display: block; height: calc(clamp(36px, 5.6vw, 92px) * 2.45); width: auto; }
@media (max-width: 700px) { .nav-name .name-svg { height: 19px; } }
.nav-name .name-svg { height: 30px; }
.ed-name .name-svg { height: clamp(170px, 21vw, 330px); }
@media (max-width: 700px) { .nav-name .name-svg { height: 24px; } }

/* V20 — About is the CV itself */
.cv-page { min-height: 100%; display: flex; justify-content: center; padding: 96px var(--ed-m) 64px; background: #f4f3f0; }
.cv-sheet { position: relative; margin: 0; width: min(100%, 1000px); align-self: flex-start; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.12); }
.cv-sheet img { display: block; width: 100%; height: auto; }
.cv-hot { position: absolute; top: 35.1%; height: 1.9%; border-radius: 2px; }
.cv-hot:hover, .cv-hot:focus-visible { background: rgba(140,43,36,.10); outline: 1px solid rgba(140,43,36,.35); }
.cv-dl { position: absolute; top: 24px; left: var(--ed-m); z-index: 3; font: var(--tl); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--ink); padding: 10px 16px; border-radius: 3px; }
.cv-dl:hover { background: var(--accent); }
.win--ed-page .win-body { padding: 0 !important; }
@media (max-width: 700px) { .cv-page { padding: 72px 0 32px; background: #fff; } .cv-sheet { box-shadow: none; } .cv-dl { top: 18px; left: 16px; padding: 9px 12px; } }
/* big page titles in Dharma Gothic C (CV lettering), as images with the text kept for readers */
.ed-svg-title .ed-line { padding-top: 0; margin-top: 0; }
.ed-svg-title .title-svg { display: block; width: auto; height: calc(var(--lines, 1) * clamp(56px, 8vw, 128px)); }
.cv-hot { top: 35.2%; height: 1.8%; }
/* top bar: name, role, About, Work, email and the day/night button share one centre line and one baseline */
.nav, .nav-brand, .nav-center, .nav-right { align-items: center !important; }
.nav-name, .nav-role, .nav-link, .nav-email { font-size: inherit !important; line-height: 18px !important; padding: 0 !important; display: inline-block; }
.nav-link::after { bottom: -3px; }
@media (max-width: 700px) {
  .nav-link, .nav-email { padding: 8px 0 !important; } /* larger tap area, symmetric so the baseline does not move */
  .nav-email::after { font-size: inherit !important; line-height: 18px; }
}
@media (max-width: 700px) {
  .nav-role { display: none !important; }
  .nav-email { font-size: 0 !important; display: inline-flex; align-items: center; }
  .nav-email::after { content: 'Email'; font-size: 11px !important; line-height: 18px; font-weight: 700; }
}
