:root {
  --bg: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #101214;
  --muted: #6e716e;
  --line: rgba(16, 18, 20, 0.12);
  --dark: #0b0d10;
  --dark-2: #12161b;
  --light: #f7f3eb;
  --accent: #d6b276;
  --accent-2: #d9c6a4;
  --radius: 18px;
  --shadow: 0 20px 70px rgba(16, 18, 20, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.topbar { background: var(--dark); color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .03em; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.88); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border: 1px solid rgba(16,18,20,.35); display: grid; place-items: center; border-radius: 9px; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.05em; }
.brand-text { display: grid; line-height: 1; gap: 5px; }
.brand-text strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: .12em; }
.brand-text small { font-size: 8px; letter-spacing: .21em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; }
.nav a:not(.nav-cta) { color: #454744; }
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

.hero { position: relative; overflow: hidden; min-height: 690px; background: var(--bg); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(16,18,20,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,20,.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black 0%, transparent 90%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; padding-block: 76px 90px; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 800; letter-spacing: .17em; color: #777a76; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #4d504d; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(214,178,118,.13); }
h1, h2, h3 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.045em; }
h1 { margin-top: 18px; font-size: clamp(50px, 6.3vw, 88px); line-height: .98; max-width: 770px; }
h1 em, h2 em { font-style: normal; color: #8a6a3c; }
.hero-lede { max-width: 620px; margin: 26px 0 0; font-size: 17px; color: #5f625f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 15px 21px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 13px; letter-spacing: .01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(16,18,20,.16); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.35); }
.btn-wide { width: 100%; }
.hero-proof { display: flex; gap: 34px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: 3px; }
.hero-proof strong { font-family: Manrope, sans-serif; font-size: 22px; }
.hero-proof span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-photo { position: relative; min-height: 570px; overflow: hidden; border-radius: 26px; background: #111; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; filter: saturate(.78) contrast(1.02); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(0,0,0,.36), transparent 40%, rgba(0,0,0,.56)); }
.hero-tag { position: absolute; display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(255,255,255,.22); background: rgba(8,10,12,.55); color: #fff; border-radius: 14px; backdrop-filter: blur(10px); }
.hero-tag span { color: var(--accent); font-size: 10px; font-weight: 800; }
.hero-tag strong { font-size: 12px; line-height: 1.1; }
.tag-one { top: 26px; left: 26px; }
.tag-two { right: 26px; bottom: 26px; }
.hero-stamp { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: 115px; height: 115px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; background: var(--accent); color: #141210; box-shadow: 0 22px 50px rgba(0,0,0,.18); }
.hero-stamp strong { font-family: Manrope, sans-serif; font-size: 34px; line-height: .9; }
.hero-stamp span { font-size: 9px; font-weight: 900; letter-spacing: .2em; margin-top: 4px; }
.hero-stamp small { font-size: 7px; opacity: .7; }

.marquee-section { background: var(--dark); color: #e9e5db; overflow: hidden; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.marquee-track { white-space: nowrap; display: flex; align-items: center; gap: 26px; width: max-content; padding: 13px 0; animation: marquee 26s linear infinite; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-block: 118px; }
.section-head { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.section-head h2 { margin-top: 14px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); max-width: 530px; justify-self: end; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 320px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.32); display: flex; flex-direction: column; overflow: hidden; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); }
.service-card.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.service-index { position: absolute; top: 24px; right: 25px; font-size: 10px; font-weight: 800; color: #8d908c; letter-spacing: .1em; }
.featured .service-index { color: rgba(255,255,255,.45); }
.service-icon { width: 42px; height: 42px; border-radius: 11px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 19px; margin-bottom: 50px; opacity: .78; }
.service-card h3 { font-size: 23px; }
.service-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.featured p { color: rgba(255,255,255,.67); }
.service-card a { margin-top: auto; padding-top: 24px; font-size: 12px; font-weight: 800; display: inline-flex; gap: 8px; }

.dark-section { background: var(--dark); color: #fff; padding-block: 118px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.58); }
.section-head.light .section-kicker { color: rgba(255,255,255,.44); }
.capability-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: stretch; }
.capability-main { padding: 46px; border: 1px solid rgba(255,255,255,.10); background: linear-gradient(140deg, rgba(214,178,118,.13), rgba(255,255,255,.02)); border-radius: 22px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.capability-number { font-family: Manrope, sans-serif; font-size: clamp(90px, 14vw, 170px); letter-spacing: -.08em; line-height: .78; color: var(--accent); }
.capability-unit { margin-top: 20px; font-size: 13px; letter-spacing: .18em; font-weight: 900; }
.capability-main p { max-width: 430px; color: rgba(255,255,255,.58); font-size: 14px; margin-top: 18px; }
.capability-list { display: grid; align-content: center; }
.capability-item { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.capability-item:first-child { border-top: 1px solid rgba(255,255,255,.10); }
.capability-item > span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; padding-top: 4px; }
.capability-item strong { font-size: 16px; }
.capability-item p { margin: 6px 0 0; color: rgba(255,255,255,.52); font-size: 13px; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry-card { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .25s ease; }
.industry-card:hover { background: rgba(255,255,255,.46); }
.industry-number { font-size: 10px; color: #858884; letter-spacing: .12em; font-weight: 900; }
.industry-card h3 { margin-top: 42px; font-size: 22px; }
.industry-card p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.portfolio { background: #ece8df; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { min-height: 330px; position: relative; overflow: hidden; border-radius: var(--radius); background: #131313; }
.project-a, .project-d { min-height: 470px; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.8); }
.project:hover img { transform: scale(1.04); }
.project-overlay { position: absolute; inset: auto 0 0; padding: 30px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.project-overlay span { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--accent-2); font-weight: 900; }
.project-overlay h3 { margin-top: 7px; font-size: 23px; letter-spacing: -.03em; }
.project-overlay b { display: inline-block; margin-top: 12px; font-size: 11px; }

.quote-band { background: var(--accent); color: #171410; }
.quote-band-inner { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 24px; padding-block: 52px; }
.quote-mark { font-family: Georgia, serif; font-size: 100px; line-height: .7; }
.quote-band p { max-width: 840px; font-family: Manrope, sans-serif; font-size: clamp(22px, 3.1vw, 38px); font-weight: 700; letter-spacing: -.04em; margin: 0; }
.quote-band small { display: inline-block; margin-top: 13px; opacity: .7; font-weight: 700; font-size: 12px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.about-card h2 { margin-top: 14px; font-size: clamp(42px, 5vw, 64px); line-height: 1.02; }
.about-card p { max-width: 620px; color: var(--muted); font-size: 15px; margin-top: 22px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 20px; font-weight: 900; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.stat-panel { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-panel:nth-child(2n) { border-right: none; }
.stat-panel:nth-last-child(-n+2) { border-bottom: none; }
.stat-panel strong { font-family: Manrope, sans-serif; font-size: 43px; letter-spacing: -.06em; }
.stat-panel span { margin-top: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.process-section { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-card { min-height: 260px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-card span { font-size: 10px; font-weight: 900; color: #848780; letter-spacing: .12em; }
.process-card h3 { margin-top: 54px; font-size: 25px; }
.process-card p { color: var(--muted); font-size: 13px; margin-top: 9px; }

.contact-section { background: var(--dark); color: #fff; padding-block: 110px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.contact-copy h2 { margin-top: 14px; font-size: clamp(46px, 5.4vw, 74px); line-height: .98; }
.contact-copy p { margin: 24px 0 0; max-width: 490px; color: rgba(255,255,255,.57); }
.contact-copy .section-kicker { color: rgba(255,255,255,.42); }
.contact-lines { display: grid; gap: 12px; margin-top: 34px; }
.contact-lines a { font-weight: 800; font-size: 14px; }
.contact-lines a span { color: var(--accent); font-size: 9px; letter-spacing: .15em; display: inline-block; width: 78px; }
.service-area { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); display: grid; gap: 6px; }
.service-area strong { font-size: 13px; }
.service-area span { color: rgba(255,255,255,.46); font-size: 12px; }
.lead-card { background: #f4f1ea; color: var(--ink); padding: 30px; border-radius: 20px; }
.lead-card-head { display: grid; gap: 5px; margin-bottom: 24px; }
.lead-card-head span { font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.lead-card-head small { color: var(--muted); font-size: 12px; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; }
label > span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: #6f726d; }
input, select, textarea { width: 100%; border: 1px solid #d4d0c7; border-radius: 10px; background: rgba(255,255,255,.8); padding: 13px 14px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: #a28a67; box-shadow: 0 0 0 3px rgba(162,138,103,.12); }
textarea { resize: vertical; min-height: 122px; }
.form-note { font-size: 11px; color: #7a7d77; margin: -4px 0 0; }

.footer { background: #08090b; color: #fff; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .55fr .75fr; gap: 70px; padding-bottom: 60px; }
.footer-brand .brand-mark { border-color: rgba(255,255,255,.24); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.38); }
.footer p { color: rgba(255,255,255,.45); max-width: 470px; font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.footer-links a { color: rgba(255,255,255,.65); font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 25px; padding-block: 20px; color: rgba(255,255,255,.34); font-size: 10px; }
.floating-wa { position: fixed; z-index: 70; bottom: 22px; right: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1cae62; color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 14px 40px rgba(0,0,0,.2); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .09s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 84px; left: 20px; right: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
  .hero-inner, .capability-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 45px; }
  .hero-photo, .hero-photo img { min-height: 480px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head p { justify-self: start; }
  .service-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar-inner { min-height: 40px; }
  .topbar-inner > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar a { display: none; }
  .nav-wrap { min-height: 74px; }
  .nav { top: 74px; left: 14px; right: 14px; }
  .hero-inner { padding-block: 56px 70px; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-lede { font-size: 15px; }
  .hero-proof { gap: 18px; flex-wrap: wrap; }
  .hero-proof strong { font-size: 19px; }
  .hero-proof span { font-size: 9px; }
  .hero-photo, .hero-photo img { min-height: 430px; }
  .hero-stamp { width: 92px; height: 92px; right: 18px; }
  .hero-stamp strong { font-size: 28px; }
  .hero-tag { padding: 11px 12px; }
  .tag-one { top: 18px; left: 18px; }
  .tag-two { right: 18px; bottom: 18px; }
  .section, .dark-section, .contact-section { padding-block: 82px; }
  .section-head h2, .about-card h2 { font-size: 43px; }
  .service-grid, .industry-grid, .portfolio-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .capability-main { padding: 30px; min-height: 340px; }
  .capability-number { font-size: 100px; }
  .project-a, .project-d { min-height: 360px; }
  .project { min-height: 310px; }
  .quote-band-inner { grid-template-columns: 55px 1fr; padding-block: 40px; }
  .quote-mark { font-size: 72px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-panel { min-height: 150px; padding: 18px; }
  .stat-panel strong { font-size: 32px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-card { min-height: 210px; }
  .process-card h3 { margin-top: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .lead-card { padding: 21px; }
  .footer-grid { gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .floating-wa { bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .project img { transition: none; }
}

/* Real brand identity + client work */
.brand { min-width: 220px; display:inline-flex; align-items:center; gap:11px; }
.brand-mark-img { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; overflow:hidden; border-radius:11px; }
.brand-mark-img img { display:block; width:44px; height:44px; max-width:none; object-fit:contain; }
.brand-wordmark { display:grid; line-height:1; gap:5px; }
.brand-wordmark strong { font-family:Manrope,sans-serif; font-size:16px; letter-spacing:.15em; color:var(--ink); }
.brand-wordmark small { font-size:8px; letter-spacing:.34em; color:#777a76; font-weight:700; }
.brand-logo { display:block; width:180px; max-width:180px; height:auto; max-height:160px; object-fit:contain; }
.footer-logo { width:180px; max-width:180px; height:auto; }
.hero-photo-note { position: absolute; left: 24px; bottom: 24px; z-index: 3; display: grid; gap: 4px; max-width: 300px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,10,12,.55); backdrop-filter: blur(10px); color: #fff; }
.hero-photo-note span { font-size: 8px; color: var(--accent); letter-spacing: .15em; font-weight: 900; }
.hero-photo-note strong { font-size: 11px; line-height: 1.25; }
.hero-photo img { object-position: center center; }
.real-portfolio { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 185px; }
.real-portfolio .project { min-height: 0; height: 100%; }
.real-portfolio .project-a { grid-column: span 2; grid-row: span 2; }
.real-portfolio .project-b { grid-column: span 2; grid-row: span 2; }
.real-portfolio .project-c { grid-column: span 1; grid-row: span 2; }
.real-portfolio .project-d { grid-column: span 3; grid-row: span 2; }
.real-portfolio .project-e { grid-column: span 1; grid-row: span 2; }
.real-portfolio .project-f { grid-column: span 2; grid-row: span 2; }
.real-portfolio .project-g { grid-column: span 1; grid-row: span 2; }
.real-portfolio .project-h { grid-column: span 1; grid-row: span 2; }
.project-overlay { padding: 22px; }
.project-overlay h3 { font-size: 20px; }
.gallery-head { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); display:flex; align-items:end; justify-content:space-between; gap: 30px; }
.gallery-head h3 { margin-top: 10px; font-size: clamp(24px, 3vw, 34px); }
.gallery-head > span { color: var(--muted); font-size: 12px; }
.gallery-grid { margin-top: 24px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; display:block; overflow:hidden; aspect-ratio: 1.35; background:#111; border-radius: 16px; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease, filter .6s ease; filter:saturate(.83); }
.gallery-item:hover img { transform:scale(1.05); filter:saturate(1); }
.gallery-item::after { content:'VIEW'; position:absolute; right:14px; bottom:14px; font-size:9px; letter-spacing:.16em; font-weight:900; color:#fff; padding:8px 10px; border-radius:999px; background:rgba(0,0,0,.55); opacity:0; transform:translateY(4px); transition:.25s ease; }
.gallery-item:hover::after { opacity:1; transform:translateY(0); }
.lightbox { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:30px; background:rgba(4,5,7,.94); opacity:0; visibility:hidden; transition:opacity .22s ease, visibility .22s ease; }
.lightbox.open { opacity:1; visibility:visible; }
.lightbox-frame { width:min(1180px, 92vw); max-height:90vh; display:grid; justify-items:center; gap:12px; }
.lightbox-frame img { max-width:100%; max-height:78vh; width:auto; height:auto; object-fit:contain; border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,.35); }
.lightbox-frame p { margin:0; color:rgba(255,255,255,.72); font-size:12px; letter-spacing:.04em; text-align:center; }
.lightbox-close { position:absolute; top:18px; right:22px; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.2); color:#fff; background:rgba(255,255,255,.08); font-size:28px; line-height:1; cursor:pointer; }
.lightbox-close:hover { background:rgba(255,255,255,.16); }
body.lightbox-open { overflow:hidden; }

@media (max-width: 980px) {
  .brand { min-width: 0; }
  .brand-mark-img, .brand-mark-img img { width:40px; height:40px; flex-basis:40px; }
  .brand-wordmark strong { font-size:14px; }
  .footer-logo { max-width:160px; }
  .real-portfolio { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .real-portfolio .project-a,
  .real-portfolio .project-b,
  .real-portfolio .project-c,
  .real-portfolio .project-d,
  .real-portfolio .project-e,
  .real-portfolio .project-f,
  .real-portfolio .project-g,
  .real-portfolio .project-h { grid-column: span 1; grid-row: span 1; }
  .real-portfolio .project-a, .real-portfolio .project-d { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand { gap:8px; }
  .brand-mark-img, .brand-mark-img img { width:36px; height:36px; flex-basis:36px; }
  .brand-wordmark strong { font-size:12px; letter-spacing:.12em; }
  .brand-wordmark small { font-size:7px; }
  .footer-logo { max-width:145px; }
  .hero-photo-note { left: 18px; right: 18px; bottom: 18px; max-width:none; }
  .real-portfolio { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .real-portfolio .project-a, .real-portfolio .project-d { grid-column: span 1; }
  .gallery-head { display:grid; gap:8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 1.2; }
  .lightbox { padding:18px; }
  .lightbox-frame img { max-height:72vh; }
}
.empty-gallery{margin-top:24px;padding:36px;border:1px dashed var(--line);border-radius:18px;display:grid;gap:6px;background:rgba(255,255,255,.45)}
.empty-gallery span{color:var(--muted);font-size:14px}
