:root {
  --paper: #f1efe9;
  --ink: #171713;
  --muted: #6f6e68;
  --line: #cbc8bf;
  --acid: #C9DC00;
  --coral: #ff5e3a;
  --blue: #3f5eff;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.section-shell { width: min(1440px, calc(100% - 56px)); margin-inline: auto; }

.topbar {
  width: min(1440px, calc(100% - 56px));
  height: 88px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand-logo { display: block; width: clamp(142px, 12vw, 176px); height: auto; }
nav { display: flex; gap: 34px; font-size: .82rem; }
nav a { transition: opacity .2s; }
nav a:hover { opacity: .55; }
.lang-toggle { justify-self: end; border: 1px solid var(--ink); background: transparent; border-radius: 99px; padding: 7px 12px; font-size: .72rem; cursor: pointer; }

.hero { padding-top: 26px; }
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; }
.eyebrow, .kicker { margin: 0; text-transform: uppercase; font-size: .68rem; letter-spacing: .13em; font-weight: 600; }
.availability { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .76rem; }
.availability > span:first-child { width: 7px; height: 7px; background: #5cb848; border-radius: 50%; box-shadow: 0 0 0 4px rgba(92,184,72,.14); }
.hero-overlay { position: absolute; z-index: 3; inset: 0; padding: clamp(28px, 5vw, 70px); display: flex; flex-direction: column; justify-content: space-between; color: white; }
.hero h1 { font: 500 clamp(4.7rem, 9.5vw, 9rem)/.84 Manrope, sans-serif; letter-spacing: -.085em; margin: 0; max-width: 1050px; text-shadow: 0 2px 32px rgba(0,0,0,.12); }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.hero-intro { width: min(100%, 420px); margin: 0 0 10px; font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.45; }
.arrow-link { justify-self: end; display: flex; width: min(100%, 230px); justify-content: space-between; padding: 15px 0; border-bottom: 1px solid currentColor; font-size: .82rem; }
.hero-canvas { height: clamp(620px, calc(100vh - 145px), 900px); margin-top: 26px; background: #cfcbbd; position: relative; overflow: hidden; isolation: isolate; }
.paint { position: absolute; border-radius: 50%; filter: saturate(.92); mix-blend-mode: multiply; }
.paint-a { width: 58%; aspect-ratio: 1; background: var(--coral); left: -8%; top: -38%; transform: skew(-14deg); }
.paint-b { width: 52%; height: 115%; background: var(--blue); right: 1%; top: 9%; border-radius: 49% 25% 9% 40%; transform: rotate(16deg); }
.paint-c { width: 34%; height: 85%; background: var(--acid); left: 35%; bottom: -31%; border-radius: 50% 50% 10% 33%; transform: rotate(-28deg); }
.paint-d { width: 22%; aspect-ratio: 1; border: 28px solid var(--ink); right: 23%; top: -15%; background: transparent; }
.canvas-label { position: absolute; z-index: 4; right: 18px; bottom: 16px; color: rgba(255,255,255,.65); font-size: .56rem; letter-spacing: .15em; }

.work { padding: 128px 0 145px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.section-heading h2, .contact h2, .dialog-body h2 { font: 500 clamp(3rem, 5.8vw, 6rem)/.92 Manrope, sans-serif; letter-spacing: -.07em; margin: 20px 0 0; }
.section-heading > p { margin: 0; width: min(100%, 500px); color: var(--muted); line-height: 1.6; font-size: 1rem; }
.section-heading .project-total { justify-self: end; width: auto; color: var(--ink); font: 500 clamp(2.8rem, 5vw, 5rem)/1 Manrope, sans-serif; letter-spacing: -.07em; }
.project-total span { display: block; margin-top: 8px; color: var(--muted); font: 500 .65rem/1.2 "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 55px 0 32px; }
.filter { border: 1px solid var(--line); background: transparent; padding: 10px 16px; border-radius: 99px; font-size: .75rem; cursor: pointer; transition: .2s ease; }
.filter:hover, .filter.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 46px 18px; }
.project-card { grid-column: span 6; cursor: pointer; border: 0; padding: 0; background: transparent; text-align: left; }
.project-card:nth-child(3) { grid-column: span 7; }
.project-card:nth-child(4) { grid-column: span 5; }
.project-image { height: clamp(320px, 43vw, 610px); position: relative; overflow: hidden; background: var(--card-bg); }
.project-card:nth-child(3n + 1):not(:first-child) .project-image { height: clamp(320px, 36vw, 520px); }
.project-image.has-photo { background: #c8c7bd; }
.project-image.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .65s cubic-bezier(.22,.8,.25,1); }
.project-card:hover .project-image.has-photo img { transform: scale(1.035); }
.project-image.has-photo::before, .project-image.has-photo::after { display: none; }
.project-image::before, .project-image::after { content: ""; position: absolute; transition: transform .55s cubic-bezier(.22,.8,.25,1); }
.project-image::before { width: 64%; height: 84%; left: 12%; top: -14%; border-radius: 50% 38% 20% 44%; background: var(--shape-a); transform: rotate(-16deg); }
.project-image::after { width: 49%; aspect-ratio: 1; right: -10%; bottom: -14%; border-radius: 50%; background: var(--shape-b); }
.project-card:hover .project-image::before { transform: rotate(-8deg) scale(1.06); }
.project-card:hover .project-image::after { transform: translate(-5%, -6%) scale(1.08); }
.project-mark { position: absolute; z-index: 2; inset: auto auto 16px 16px; color: rgba(255,255,255,.82); font-size: .58rem; letter-spacing: .12em; }
.project-index { position: absolute; z-index: 2; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); color: white; border-radius: 50%; font-size: .7rem; }
.project-info { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 16px; }
.project-info h3 { margin: 0 0 6px; font: 500 1.28rem/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.project-info p, .project-year { margin: 0; color: var(--muted); font-size: .75rem; }
.project-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.project-status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.project-card[hidden] { display: none; }

.contact { border-top: 1px solid var(--line); padding: 120px 0 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.contact h2 { margin-top: 22px; max-width: 650px; }
.contact-copy > p:not(.kicker) { color: var(--muted); line-height: 1.55; max-width: 470px; margin: 35px 0 0; }
.telegram-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 470px; margin-top: 42px; padding: 18px 0; border-block: 1px solid var(--ink); transition: opacity .2s ease; }
.telegram-cta:hover { opacity: .56; }
.telegram-cta small { display: block; margin-bottom: 5px; color: var(--muted); font-size: .67rem; letter-spacing: .04em; }
.telegram-cta strong { font: 500 1rem/1.3 Manrope, sans-serif; }
.telegram-cta > span:last-child { font-size: 1.1rem; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 52px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.contact-meta a { color: var(--ink); }
.contact-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
form { display: flex; flex-direction: column; gap: 22px; }
label > span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
input, textarea, select { width: 100%; border: 0; border-bottom: 1px solid #9b9991; background: transparent; border-radius: 0; padding: 10px 0 12px; outline: none; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.submit-button { margin-top: 8px; border: 0; background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; cursor: pointer; transition: background .2s, color .2s; }
.submit-button:hover { background: var(--acid); color: var(--ink); }
.form-note, .form-status { margin: -10px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.form-status { color: var(--ink); min-height: 1em; }
.floating-cta { position: fixed; z-index: 9; right: 24px; bottom: 24px; min-width: 188px; display: flex; justify-content: space-between; gap: 28px; padding: 15px 18px; border-radius: 99px; background: var(--acid); color: var(--ink); box-shadow: 0 12px 34px rgba(20,20,14,.18); font-size: .78rem; transition: transform .2s ease, box-shadow .2s ease; }
.floating-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20,20,14,.24); }
footer { border-top: 1px solid var(--line); min-height: 132px; display: grid; grid-template-columns: 1fr minmax(250px, auto) 1fr; gap: 34px; align-items: center; color: var(--muted); font-size: .68rem; }
footer .brand { color: var(--ink); justify-self: start; }
footer .brand-logo { width: clamp(132px, 11vw, 160px); }
.footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-social a { color: var(--ink); font-size: .78rem; }
.footer-social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-signature { justify-self: end; margin: 0; text-align: right; }
.footer-signature span { display: block; margin-top: 7px; }

.case-dialog { width: min(1100px, 94vw); max-width: none; height: 92vh; max-height: 900px; border: 0; padding: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.case-dialog::backdrop { background: rgba(18,18,14,.75); backdrop-filter: blur(6px); }
.dialog-close { position: fixed; z-index: 6; top: max(6vh, 24px); right: max(5vw, 24px); width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; font-size: 1.5rem; cursor: pointer; }
.dialog-art { height: 62vh; min-height: 430px; position: relative; overflow: hidden; background: var(--card-bg); }
.dialog-art::before { content:""; position:absolute; width:60%; height:110%; left:8%; top:-32%; background:var(--shape-a); border-radius:50% 35% 25% 45%; transform:rotate(-14deg); }
.dialog-art::after { content:""; position:absolute; width:45%; aspect-ratio:1; right:-5%; bottom:-18%; background:var(--shape-b); border-radius:50%; }
.dialog-art.has-photo::before, .dialog-art.has-photo::after { display:none; }
.dialog-art.has-photo img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.dialog-body { padding: 54px clamp(24px, 7vw, 90px) 80px; }
.dialog-meta { display:flex; justify-content:space-between; color:var(--muted); text-transform:uppercase; font-size:.65rem; letter-spacing:.09em; }
.dialog-body h2 { font-size: clamp(3rem, 6vw, 6rem); max-width: 850px; }
.case-lead { margin: 48px 0 50px; font-size: 1.25rem; line-height: 1.5; max-width: 720px; }
.case-facts { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); padding: 18px 0; gap: 20px; }
.case-facts div span { display:block; font-size:.58rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.case-story { display:grid; grid-template-columns:1fr 1fr; gap:9vw; margin:65px 0; }
.case-story p:last-child { line-height:1.6; color:var(--muted); }
.case-gallery { display:grid; grid-template-columns:2fr 1fr 1fr; gap:8px; height:430px; margin-top:40px; }
.case-gallery div { background:#d9d6cc; display:grid; place-items:center; color:#99968e; font-size:.7rem; }
.case-gallery.has-photos { grid-template-columns:1fr 1fr; height:auto; }
.case-gallery figure { margin:0; aspect-ratio:3 / 4; overflow:hidden; background:#d9d6cc; }
.case-gallery figure.wide { grid-column:1 / -1; aspect-ratio:16 / 9; }
.case-gallery figure.square { aspect-ratio:1 / 1; }
.case-gallery img { width:100%; height:100%; display:block; object-fit:cover; }
.case-gallery figure.contain { background:#ebe9e2; }
.case-gallery figure.contain img { object-fit:contain; }
.case-cta { width:min(100%, 360px); margin-top:50px; }

@media (max-width: 780px) {
  .section-shell, .topbar { width: calc(100% - 28px); }
  .topbar { height: auto; min-height: 112px; grid-template-columns: 1fr auto; grid-template-rows: 72px auto; padding-bottom: 14px; }
  nav { display:flex; grid-column:1 / -1; gap:20px; overflow-x:auto; white-space:nowrap; scrollbar-width:none; padding-bottom:2px; }
  nav::-webkit-scrollbar { display:none; }
  .hero { padding-top: 34px; }
  .availability { display:none; }
  .hero h1 { font-size: clamp(3.8rem, 17.5vw, 6.2rem); }
  .hero-foot, .section-heading, .contact { grid-template-columns: 1fr; }
  .arrow-link { justify-self:start; margin-top:18px; }
  .hero-canvas { min-height: 600px; height: calc(100svh - 120px); margin-top:20px; }
  .hero-overlay { padding:24px 20px; }
  .hero-intro { max-width:280px; }
  .canvas-label { right:14px; bottom:12px; font-size:.5rem; }
  .work { padding: 90px 0; }
  .section-heading .project-total { justify-self:start; margin-top:26px; }
  .project-total span { text-align:left; }
  .filter-wrap { overflow-x: auto; flex-wrap: nowrap; margin-right:-14px; padding-right:14px; scrollbar-width:none; }
  .filter { flex:0 0 auto; }
  .project-grid { display:block; }
  .project-card { display:block; width:100%; margin-bottom:42px; }
  .project-image, .project-card:nth-child(3n + 1):not(:first-child) .project-image { height: 110vw; max-height: 560px; }
  .contact { padding: 85px 0; gap:70px; }
  .contact-meta { margin-top:45px; }
  .floating-cta { right:14px; bottom:14px; min-width:170px; }
  .form-row { grid-template-columns:1fr; gap:22px; }
  footer { grid-template-columns:1fr auto; gap:26px 18px; padding:28px 0; }
  .footer-social { grid-column:1 / -1; grid-row:2; }
  .footer-signature { align-self:start; }
  .dialog-close { top:6vh; right:6vw; }
  .case-dialog { width:100vw; height:100vh; max-height:none; }
  .dialog-art { height:52vh; min-height:340px; }
  .case-facts, .case-story { grid-template-columns:1fr; }
  .case-facts { gap:16px; }
  .case-story { gap:32px; }
  .case-gallery { grid-template-columns:1fr 1fr; height:430px; }
  .case-gallery:not(.has-photos) div:first-child { grid-column:1 / -1; }
  .case-gallery.has-photos { height:auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; }
}
.business { border-top: 1px solid var(--line); padding: 90px 0; }
.business .kicker, .about .kicker { font-size: .875rem; }
.business-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 7vw; align-items: end; }
.business h2, .about h2 { font: 500 clamp(2rem, 4.2vw, 4.5rem)/1.12 Manrope, sans-serif; letter-spacing: -.045em; margin: 20px 0 0; overflow-wrap: anywhere; }
.business-heading > p { max-width: 480px; font-size: 1.125rem; line-height: 1.6; margin: 0; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 55px; }
.benefit { border-top: 2px solid var(--ink); padding-top: 20px; }
.benefit-number { display: inline-block; background: var(--acid); padding: 6px 10px; font-size: .875rem; }
.benefit h3 { font: 600 1.25rem/1.3 Manrope, sans-serif; margin: 26px 0 14px; }
.benefit p { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0; }
.business-note { margin: 38px 0 0; font-size: 1rem; line-height: 1.6; }
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7vw; align-items: center; border-top: 1px solid var(--line); padding: 90px 0 110px; }
.author-portrait { margin: 0; }
.author-portrait img { width: 100%; height: auto; display: block; }
.about-copy > p:not(.kicker) { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 20px 0 0; }
.about-copy > .about-lead { color: var(--ink) !important; font-size: 1.25rem !important; margin-top: 30px !important; }
.author-experience { display: flex; align-items: center; gap: 20px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.author-experience strong { font: 500 3.5rem/1 Manrope, sans-serif; letter-spacing: -.05em; }
.author-experience span { font-size: 1rem; line-height: 1.4; max-width: 230px; }
.about-copy > .author-formats { font-size: .875rem !important; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 780px) {
  .business, .about { padding: 65px 0; }
  .business-heading, .about { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .author-portrait { max-width: 520px; }
}
@media (max-width: 460px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* Shared project catalogue and chronological portfolio. */
.project-total b { font-weight: inherit; }
.featured-grid { margin-top: 48px; }
.portfolio-link { display: inline-block; margin-top: 48px; padding: 16px 0; border-bottom: 1px solid var(--ink); font-size: 1rem; }
.portfolio-page { padding-top: 72px; padding-bottom: 110px; }
.portfolio-page h1 { font: 500 clamp(3.3rem, 7vw, 7rem)/1.08 Manrope, sans-serif; letter-spacing: -.055em; margin: 18px 0 0; overflow-wrap: anywhere; }
.portfolio-page .filter-wrap { flex-wrap: wrap; overflow: visible; gap: 10px; margin: 40px 0 55px; padding: 0; }
.portfolio-page .filter { font-size: .875rem; padding: 12px 16px; min-height: 44px; white-space: normal; }
.portfolio-page .project-card { grid-column: span 6; min-width: 0; }
.portfolio-page .project-image, .portfolio-page .project-card:nth-child(3n + 1):not(:first-child) .project-image { height: auto; aspect-ratio: 1 / 1; }
.portfolio-page .project-info p, .portfolio-page .project-year, .portfolio-page .project-status { font-size: .875rem; }
.portfolio-page .project-info h3 { line-height: 1.35; }
.portfolio-empty { padding: 50px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; color: var(--muted); }
nav [aria-current="page"] { border-bottom: 1px solid currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-card:focus-visible, .filter:focus-visible, .portfolio-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
@media(max-width:780px) {
  .portfolio-page { padding-top: 42px; padding-bottom: 70px; }
  .portfolio-page .filter-wrap { margin-right: 0; gap: 8px; }
  .portfolio-page .filter { flex: 0 1 auto; padding: 10px 13px; }
  .portfolio-page .project-info { grid-template-columns: minmax(0,1fr); gap: 8px; }
}

.case-gallery figure.natural { aspect-ratio: auto; background: transparent; align-self: start; }
.case-gallery figure.natural img { height: auto; object-fit: initial; }

/* Artist portrait hero, composed from the supplied presentation reference. */
.hero-portrait { height: auto; min-height: 500px; aspect-ratio: 1.96; background: #d0ccc0; }
.hero-portrait .paint { mix-blend-mode: normal; filter: none; }
.hero-portrait .paint-a { width: 64%; height: 125%; aspect-ratio: auto; left: -13%; top: -49%; background: #bf4d2e; transform: rotate(-12deg); border-radius: 50%; }
.hero-portrait .paint-b { width: 30%; height: 85%; left: 34%; right: auto; top: 47%; background: var(--acid); transform: rotate(-18deg); border-radius: 50%; }
.hero-portrait .paint-c { width: 29%; height: 89%; left: 46%; bottom: -30%; background: #294a47; transform: rotate(-22deg); border-radius: 50% 40% 10% 35%; }
.hero-photo { position: absolute; z-index: 2; right: 0; top: 0; width: 57%; height: 100%; object-fit: cover; object-position: right center; border-radius: 34% 0 0 35% / 48% 0 0 52%; }
.hero-portrait .hero-overlay { padding: 5%; }
.hero-portrait h1 { font-size: clamp(3.8rem, 7.8vw, 8.2rem); line-height: .97; letter-spacing: -.075em; max-width: 75%; text-shadow: none; }
.hero-portrait .hero-foot { grid-template-columns: 1fr auto; }
.hero-portrait .hero-intro { color: #262622; max-width: 340px; font-size: 1rem; }
.hero-portrait .arrow-link { background: rgba(15,15,15,.78); padding: 14px 18px; width: 220px; font-size: .875rem; }
@media (max-width:780px) {
 .hero-portrait { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto clamp(420px, 130vw, 650px); aspect-ratio: auto; height: auto; min-height: 0; }
 .hero-portrait .hero-overlay, .hero-portrait .hero-foot { display: contents; }
 .hero-portrait h1 { grid-row: 1; grid-column: 1; position: relative; z-index: 3; color: white; margin: 28px 22px 0; max-width: none; min-width: 0; overflow-wrap: anywhere; font-size: clamp(3.1rem, 12.5vw, 5.5rem); line-height: 1.02; letter-spacing: -.065em; }
 .hero-portrait .hero-intro { grid-row: 2; grid-column: 1; position: relative; inset: auto; z-index: 3; max-width: none; margin: 22px 22px 30px; font-size: 1rem; line-height: 1.5; }
 .hero-portrait .paint-a { width: 150%; height: 67%; left: -40%; top: -26%; }
 .hero-portrait .paint-b { left: -22%; top: 34%; width: 85%; height: 70%; }
 .hero-portrait .paint-c { left: -7%; bottom: -24%; width: 90%; height: 70%; }
 .hero-photo { position: relative; grid-row: 3; grid-column: 1; width: 100%; height: 100%; inset: auto; min-height: 0; border-radius: 35% 0 0 0 / 25% 0 0 0; object-position: right center; }
 .hero-portrait .arrow-link { grid-row: 3; grid-column: 1; position: relative; z-index: 3; align-self: end; justify-self: start; color: white; margin: 0 22px 28px; width: min(210px, calc(100% - 44px)); }
}
@media (max-width:380px) { .hero-portrait h1 { font-size: 11.7vw; } }

.case-gallery.has-photos.six-column { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.case-gallery.six-column figure { grid-column: span 3; min-width: 0; }
.case-gallery.six-column figure.third { grid-column: span 2; }
.case-gallery.six-column figure.wide { grid-column: 1 / -1; }

.case-gallery.has-photos .gallery-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; background: transparent; }
.case-gallery .gallery-row figure { flex-basis: 0; min-width: 0; margin: 0; aspect-ratio: auto; background: transparent; }
.case-gallery .gallery-row img { display: block; width: 100%; height: auto; }
