:root {
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f7f5f0;
  --surface: #fffdf9;
  --ink: #20223d;
  --muted: #777786;
  --line: #dfddd6;
  --indigo: #1e2140;
  --indigo-soft: #30345d;
  --lilac: #dcd7ff;
  --yellow: #ffda67;
  --coral: #ff927c;
  --mint: #cbe9d9;
  --shadow: 0 18px 42px rgba(31, 33, 61, .09);
  --ring: 0 0 0 3px rgba(255, 218, 103, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(rgba(32, 34, 61, .035) 1px, transparent 1px), var(--paper);
  background-size: 100% 36px;
}
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: none; box-shadow: var(--ring); }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { color: #fff; background: var(--indigo); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--yellow); border-radius: 12px 12px 12px 4px; color: var(--yellow); font-size: 18px; transform: rotate(-5deg); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.brand-name b { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-note { color: #bfc1d7; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.studio-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #525678; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.studio-link:hover { border-color: var(--yellow); background: var(--indigo-soft); transform: translateY(-1px); }

.hero { position: relative; min-height: 318px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 64px 5.5% 58px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; max-width: 630px; }
.eyebrow, .project-eyebrow { margin: 0; color: var(--indigo-soft); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.eyebrow span { color: var(--coral); font-size: 14px; vertical-align: -1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(38px, 5.2vw, 65px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
h1 em { color: var(--indigo-soft); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.07em; }
.hero-text { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-art { position: relative; flex: 0 0 280px; width: 280px; height: 210px; }
.art-grid { position: absolute; inset: 20px 0 0 30px; background-image: radial-gradient(var(--indigo-soft) 1px, transparent 1px); background-size: 12px 12px; opacity: .26; }
.art-card { position: absolute; width: 156px; height: 116px; border: 2px solid var(--indigo); border-radius: 7px; }
.art-card-back { top: 52px; left: 50px; background: var(--coral); transform: rotate(10deg); }
.art-card-front { top: 34px; left: 28px; display: grid; place-items: center; background: var(--yellow); box-shadow: 8px 9px 0 var(--indigo); transform: rotate(-7deg); }
.art-card-front span { color: var(--indigo); font-size: 48px; transform: rotate(-7deg); }
.art-dot { position: absolute; border-radius: 50%; }
.art-dot-one { width: 22px; height: 22px; top: 14px; right: 22px; background: var(--mint); }
.art-dot-two { width: 10px; height: 10px; right: 8px; bottom: 34px; background: var(--coral); }

.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 34px 0 20px; }
.section-heading { display: flex; align-items: center; gap: 10px; }
h2 { margin-bottom: 0; font-size: 26px; letter-spacing: -.04em; }
.count-badge { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--yellow); color: var(--indigo); font-size: 12px; font-weight: 800; }
.section-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.search-field { position: relative; display: block; width: min(260px, 100%); }
.search-icon { position: absolute; top: 8px; left: 13px; color: var(--muted); font-size: 25px; line-height: 1; transform: rotate(-20deg); pointer-events: none; }
.search-field input { width: 100%; min-height: 42px; padding: 9px 14px 9px 40px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 253, 249, .72); color: var(--ink); font-size: 13px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.search-field input:hover, .search-field input:focus { border-color: var(--indigo-soft); background: var(--surface); outline: none; }
.search-field input:disabled { cursor: not-allowed; opacity: .6; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 58px; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 3px 0 rgba(32, 34, 61, .04); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.project-card:hover { border-color: #b7b3a9; box-shadow: var(--shadow); transform: translateY(-4px); }
.cover-link { position: relative; display: block; height: 206px; overflow: hidden; background: var(--lilac); text-decoration: none; }
.project-cover { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; }
.project-cover::before { position: absolute; content: ""; border-radius: 50%; opacity: .55; }
.cover-0 { background: var(--lilac); }
.cover-1 { background: var(--mint); }
.cover-2 { background: #ffe7b1; }
.cover-3 { background: #ffd0c7; }
.cover-0::before { width: 130px; height: 130px; right: -30px; bottom: -54px; background: #bdb3ff; }
.cover-1::before { width: 116px; height: 116px; left: -28px; top: -42px; background: #9bd9ba; }
.cover-2::before { width: 150px; height: 150px; right: -42px; top: -70px; background: #ffd068; }
.cover-3::before { width: 120px; height: 120px; left: -30px; bottom: -46px; background: #ff9d8d; }
.project-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-cover img { transform: scale(1.035); }
.cover-label { display: none; }
.cover-fallback .cover-label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 102px; height: 102px; border: 2px solid var(--indigo); border-radius: 50%; background: rgba(255, 253, 249, .55); color: var(--indigo); font-family: Georgia, "Times New Roman", serif; font-size: 18px; transform: rotate(-8deg); }
.icon-arrow, .icon-external { display: inline-block; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-arrow { position: absolute; z-index: 2; right: 14px; top: 14px; color: var(--indigo); background: var(--yellow); }
.icon-arrow::after { content: "↗"; position: absolute; inset: -3px 0 0; text-align: center; font-size: 15px; font-weight: 700; }
.icon-external { width: 15px; height: 15px; border: 0; border-radius: 0; }
.icon-external::after { content: "↗"; font-size: 16px; line-height: 14px; }
.project-body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 18px 18px 16px; }
.project-eyebrow { margin-bottom: 9px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
h3 { margin-bottom: 8px; color: var(--ink); font-size: 20px; letter-spacing: -.045em; line-height: 1.12; overflow-wrap: anywhere; }
.project-description { display: -webkit-box; min-height: 42px; margin-bottom: 20px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.project-date { min-width: 0; color: var(--muted); font-size: 11px; }
.project-link { display: inline-flex; align-items: center; gap: 5px; color: var(--indigo-soft); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.project-link:hover { color: #bc5d47; }

.loading-state, .empty-state { grid-column: 1 / -1; min-height: 240px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #c9c5bb; border-radius: 9px; color: var(--muted); text-align: center; }
.loading-state { grid-auto-flow: column; justify-content: center; min-height: 150px; border-style: solid; background: rgba(255, 253, 249, .48); }
.loading-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1.1s ease-in-out infinite; }
.empty-state h3 { margin: 8px 0 0; font-size: 21px; }
.empty-state p { max-width: 320px; margin: 0; font-size: 13px; line-height: 1.55; }
.empty-state > .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--indigo); font-size: 22px; }
.icon-spark::after { content: "✦"; }
.icon-search::after { content: "⌕"; font-size: 28px; transform: rotate(-20deg); }
.icon-warning::after { content: "!"; font-weight: 800; }
.error-state > .icon { background: var(--coral); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer b { margin-left: 4px; color: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (prefers-color-scheme: dark) {
  :root { --paper: #14162a; --surface: #1d1f36; --ink: #f2f0ea; --muted: #a9aac0; --line: #353850; --indigo: #0f1124; --indigo-soft: #d7d6ff; --lilac: #454168; --mint: #315a4b; --yellow: #e6bd4e; --coral: #e87862; }
  body { background: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), var(--paper); }
  .search-field input { background: rgba(29, 31, 54, .72); }
  .project-card { box-shadow: 0 3px 0 rgba(0, 0, 0, .14); }
  .loading-state, .empty-state { border-color: #4a4c63; background: rgba(29, 31, 54, .4); }
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-inline: 3%; }
  .hero-art { flex-basis: 220px; transform: scale(.84); transform-origin: right center; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 520px); }
  .header-inner { min-height: 68px; }
  .header-note { display: none; }
  .header-actions { gap: 0; }
  .studio-link { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .hero { min-height: 0; display: block; padding: 44px 0 42px; }
  .hero-art { width: 220px; height: 150px; margin: 8px auto -20px; transform: scale(.75); transform-origin: center; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-text { font-size: 14px; }
  .gallery-toolbar { display: block; padding-top: 28px; }
  .search-field { width: 100%; margin-top: 18px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 42px; }
  .cover-link { height: 188px; }
  .site-footer { display: block; line-height: 1.8; }
  .site-footer span { display: block; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .project-body { padding-inline: 15px; }
}
