/* ── VARIABLES & RESET ── */
:root {
  --bg: #f5f2ed;
  --ink: #1a1714;
  --muted: #7a7269;
  --accent: #c8402a;
  --line: #d4cfc8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
  padding: 1.2rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.nav-social a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--accent); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 1rem;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--muted); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
footer a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
}
footer a:hover { color: var(--accent); }

/* ── UTILITY ── */
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { text-decoration: underline; }

/* ── CAROUSEL ── */
.carousel {
  position: relative;
  margin: 3rem -3rem;
  background: var(--bg);
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.carousel-slide img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 242, 237, 0.88);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  width: 2.8rem;
  height: 2.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--ink); transform: scale(1.3); }
.carousel-dot:hover { background: var(--muted); }

/* ── ANIMATION ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
main { animation: fadeIn 0.4s ease; }

/* ── GALLERY HEADER (list pages) ── */
.gallery-header {
  padding: 4.5rem 3rem 2rem;
  border-bottom: 1px solid var(--line);
}
.gallery-header p {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.gallery-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
}

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery-item {
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.gallery-item:hover { background: #efebe4; }

.gallery-item-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.4s;
}
.gallery-item:hover .gallery-item-img img { filter: grayscale(0%); transform: scale(1.02); }
.gallery-item-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item-img.placeholder span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.gallery-item-body {
  padding: 1.8rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.gallery-item-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.gallery-item h3 { font-size: 1.25rem; font-weight: 400; font-style: italic; }
.gallery-item p { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); line-height: 1.7; }
.gallery-item .year { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); margin-top: auto; padding-top: 1rem; }

/* ── ARTWORK HIERARCHY ── */
.artwork-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.artwork-featured:hover { background: #efebe4; }

.artwork-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--line);
  overflow: hidden;
}
.artwork-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.5s;
}
.artwork-featured:hover .artwork-featured-img img { filter: grayscale(0%); transform: scale(1.02); }
.artwork-featured-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-featured-body {
  padding: 2rem 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.artwork-featured-body .artwork-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.artwork-featured-body h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
}
.artwork-featured-body p {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 46ch;
  margin-top: 0.2rem;
}
.artwork-featured-body .year {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.artwork-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.artwork-aside:hover { background: #efebe4; }

.artwork-aside-img {
  aspect-ratio: 4 / 3;
  background: var(--line);
  overflow: hidden;
}
.artwork-aside-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.4s;
}
.artwork-aside:hover .artwork-aside-img img { filter: grayscale(0%); transform: scale(1.02); }
.artwork-aside-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-aside-body {
  padding: 1.6rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}
.artwork-aside-body .artwork-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.artwork-aside-body h3 {
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
}
.artwork-aside-body p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.7;
}
.artwork-aside-body .year {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── NOFUNCTION LIST ── */
.nf-header {
  padding: 5rem 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.nf-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; font-style: italic; line-height: 1.1; }
.nf-header p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); line-height: 1.8; }

.nf-posts { padding: 0; }

.nf-post {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.nf-post:hover { background: #efebe4; }

.nf-post-img {
  width: 140px;
  height: 120px;
  background: var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.nf-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.nf-post:hover .nf-post-img img { filter: grayscale(0%); }

.nf-post-body {
  padding: 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nf-post-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.nf-post h3 { font-size: 1.3rem; font-weight: 400; font-style: italic; margin-bottom: 0.4rem; }
.nf-post p { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); line-height: 1.7; }

/* ── DETAIL PAGES (archive/artworks subpages) ── */
.detail-back {
  padding: 2rem 3rem 0;
}
.detail-back a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.detail-back a:hover { color: var(--accent); }

.detail-header {
  padding: 2.5rem 3rem 3rem;
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}
.detail-header .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.detail-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.detail-header .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.detail-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero.placeholder span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 3rem;
}
.detail-body p { font-size: 1rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.5rem; }
.detail-body p:last-child { margin-bottom: 0; }

.detail-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  margin: 3rem 0;
}
.detail-img-cell {
  background: var(--bg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-img-cell.placeholder span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── ARTWORK TABS ── */
.tab-input { display: none; }

.tab-nav {
  display: flex;
  gap: 0;
  padding: 0 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tab-nav label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0;
  margin-right: 2.5rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
}
.tab-nav label:hover { color: var(--ink); }

#tab-digital:checked ~ .tab-nav label[for="tab-digital"],
#tab-paintings:checked ~ .tab-nav label[for="tab-paintings"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

main .tab-panel { display: none; }
#tab-digital:checked ~ .tab-panel-digital { display: grid; }
#tab-paintings:checked ~ .tab-panel-paintings { display: block; }

.paintings-gallery {
  padding: 3rem;
}
.paintings-gallery img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 900px;
  margin: 0 auto;
}
.painting-num {
  display: block;
  max-width: 900px;
  margin: 0.5rem auto 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.carousel--pencil {
  margin: 0;
  border-top: 1px solid var(--line);
}
.carousel--pencil .carousel-slide {
  flex-direction: column;
  gap: 0.6rem;
  padding: 3rem;
}
.carousel--pencil .carousel-slide img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
}
.carousel--pencil .carousel-slide-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  align-self: center;
}

/* ── ARTWORK DETAIL GALLERY (square images) ── */
.artwork-detail-gallery {
  counter-reset: artwork;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 2rem 3rem;
}
.artwork-detail-cell {
  counter-increment: artwork;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.artwork-detail-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: grayscale(8%);
  transition: filter 0.4s;
}
.artwork-detail-cell:hover img {
  filter: grayscale(0%);
}
.artwork-detail-cell::after {
  content: counter(artwork, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.detail-nav-links {
  padding: 2rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-nav-links a { color: var(--muted); text-decoration: none; }
.detail-nav-links a:hover { color: var(--ink); }

/* ── ARTICLE PAGES (nofunction subpages) ── */
.article-header {
  padding: 3rem 3rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.article-header .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.article-header h1 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.article-header .tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover.placeholder span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 3rem 5rem;
}
.article-body p { font-size: 1.05rem; line-height: 1.95; color: var(--ink); margin-bottom: 1.8rem; }
.article-body p.muted { color: var(--muted); font-size: 0.95rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body blockquote { border-left: 2px solid var(--accent); margin: 0 0 1.8rem; padding: 0.5rem 0 0.5rem 1.5rem; font-style: italic; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.article-body figure { margin: 2.5rem 0 2rem; }
.article-body figure img { width: 100%; display: block; }
.article-body figcaption { font-family: var(--mono); font-size: 0.67rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.55rem; line-height: 1.65; }
.article-body .figure-pair { display: flex; gap: 0.75rem; margin: 2.5rem -5rem 2rem; }
.article-body .figure-pair figure { flex: 1; margin: 0; }
.article-body .figure-pair figure img { height: auto; }

/* ── RESUME ── */
.resume-wrap { max-width: 820px; margin: 0 auto; padding: 5rem 3rem 6rem; }
.resume-wrap h2 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}
.resume-section { margin-bottom: 4rem; }
.resume-section-title {
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.resume-item { margin-bottom: 2.2rem; display: grid; grid-template-columns: 1fr 2.5fr; gap: 2rem; }
.resume-item-date { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; padding-top: 0.15rem; line-height: 1.8; }
.resume-item-content h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.15rem; }
.resume-item-content .company { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.resume-item-content p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.resume-cert { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1.4rem; }
.cert-badge { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; background: var(--ink); color: var(--bg); padding: 0.2rem 0.55rem; white-space: nowrap; }
.cert-info h4 { font-size: 1rem; font-weight: 400; margin-bottom: 0.1rem; }
.cert-info span { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.resume-linkedin { margin-top: 3rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.resume-linkedin a { color: var(--ink); }
.resume-linkedin a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0 0.8rem; }
  .nav-social { display: flex; flex-basis: 100%; justify-content: flex-end; padding-top: 0.5rem; border-top: 1px solid var(--line); gap: 1.2rem; }
  .nav-links { flex: 1 1 0; min-width: 0; gap: 1.2rem; overflow-x: auto; flex-wrap: nowrap; }
  .nav-links a { white-space: nowrap; }
  .gallery-header { padding: 7rem 1.5rem 1.5rem; }
  .nf-header { grid-template-columns: 1fr; padding: 7rem 1.5rem 1.5rem; }
  .detail-back { padding: 7rem 1.5rem 0; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-header { padding: 7rem 1.5rem 1.5rem; }

  .artwork-featured-body { padding: 1.5rem 1.5rem 2rem; }
  .artwork-aside { grid-template-columns: 140px 1fr; }
  .artwork-aside-body { padding: 1.2rem 1.5rem; }

  .nf-header { grid-template-columns: 1fr; }
  .nf-post { grid-template-columns: 100px 1fr; }
  .nf-post-img { width: 100px; height: 100px; }

  .detail-back { padding: 7rem 1.5rem 0; }
  .detail-header { padding: 2rem 1.5rem 2rem; }
  .detail-body { padding: 3rem 1.5rem; }
  .detail-nav-links { padding: 1.5rem; }
  .artwork-detail-gallery { grid-template-columns: repeat(3, 1fr); padding: 1.5rem; gap: 0.75rem; }
  .tab-nav { padding: 0 1.5rem; }
  .paintings-gallery { padding: 1.5rem; }
  .pencil-gallery { padding: 1.5rem; }
  .pencil-item { margin-bottom: 2.5rem; }
  .carousel { margin: 3rem -1.5rem; }

  .article-header { padding: 2rem 1.5rem; }
  .article-body { padding: 3rem 1.5rem 4rem; }
  .article-body .figure-pair { margin-left: -1.5rem; margin-right: -1.5rem; }

  .resume-wrap { padding: 3rem 1.5rem 4rem; }
  .resume-item { grid-template-columns: 1fr; gap: 0.4rem; }

  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.62rem; }

  .article-body .figure-pair { flex-direction: column; margin-left: 0; margin-right: 0; }
  .article-body .figure-pair figure img { height: auto; }
  .artwork-aside { grid-template-columns: 1fr; }
  .artwork-aside-img { aspect-ratio: 16 / 9; }
  .artwork-detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 1rem; }
}
