/*
  DigiExhibit — static gallery prototype
  --------------------------------------------------
  Replace image placeholders in /assets/img with real files later.
  No external fonts or libraries are required.
*/

:root {
  --bg: #f6f3ee;
  --surface: #fffdf8;
  --surface-2: #efe8dc;
  --surface-3: #e5dacb;
  --ink: #1d2528;
  --muted: #687277;
  --soft: #889196;
  --line: rgba(29, 37, 40, 0.13);
  --accent: #315b5f;
  --accent-2: #8f5f3e;
  --accent-3: #c8a96a;
  --danger: #7b3333;
  --shadow: 0 24px 70px rgba(31, 39, 42, 0.13);
  --shadow-soft: 0 14px 34px rgba(31, 39, 42, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 169, 106, 0.22), transparent 34rem),
    linear-gradient(130deg, rgba(49, 91, 95, 0.08), transparent 26rem),
    var(--bg);
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #fffdf8;
  background: var(--accent);
}

.site-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 243, 238, 0.76);
  border-bottom: 1px solid rgba(29, 37, 40, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.26rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(150deg, var(--accent), #22383b 52%, #141a1d),
    var(--accent);
  color: #fff9ed;
  box-shadow: 0 10px 26px rgba(49, 91, 95, 0.28);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
}

.brand small {
  display: block;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  padding: 10px 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: rgba(29, 37, 40, 0.76);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(49, 91, 95, 0.10);
  color: var(--accent);
}

.nav-cta {
  margin-left: 6px;
  border: 1px solid rgba(49, 91, 95, 0.24);
  background: var(--accent) !important;
  color: #fffdf8 !important;
}

.hero {
  padding: 72px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.78fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  background: rgba(49, 91, 95, 0.11);
  border: 1px solid rgba(49, 91, 95, 0.13);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.22);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
  max-width: 880px;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(29, 37, 40, 0.13);
  background: rgba(255, 253, 248, 0.74);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(29, 37, 40, 0.06);
}

.btn.primary {
  color: #fffdf8;
  background: linear-gradient(145deg, var(--accent), #20383b);
  border-color: transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  max-width: 690px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: rgba(255, 253, 248, 0.68);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  font-size: 1.34rem;
  letter-spacing: -0.045em;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-panel {
  border: 1px solid rgba(29, 37, 40, 0.13);
  background: rgba(255, 253, 248, 0.68);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 16px;
  min-height: 510px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(200, 169, 106, 0.22), transparent 24rem);
  pointer-events: none;
}

.panel-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
}

.window-dots span:nth-child(1) { background: #9f6a54; }
.window-dots span:nth-child(2) { background: #c8a96a; }
.window-dots span:nth-child(3) { background: #678b7b; }

.panel-id {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  color: #fffdf8;
  min-height: 470px;
  display: grid;
  align-items: end;
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 15, 0.88), rgba(9, 13, 15, 0.08) 65%);
}

.featured-copy {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.featured-copy .label {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.featured-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}

.featured-copy p {
  color: rgba(255, 253, 248, 0.76);
  line-height: 1.55;
  margin-bottom: 18px;
}

.featured-copy .btn {
  color: var(--ink);
  background: #fffdf8;
  border-color: rgba(255, 255, 255, 0.28);
}

.section {
  padding: 64px 0;
}

.section.tight { padding-top: 24px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-head p {
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.search-panel {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  margin-bottom: 26px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 12px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(29, 37, 40, 0.16);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(49, 91, 95, 0.6);
  box-shadow: 0 0 0 4px rgba(49, 91, 95, 0.12);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(29, 37, 40, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(49, 91, 95, 0.23);
}

.profile-cover {
  height: 164px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 37, 40, 0.28), transparent 70%);
}

.profile-avatar {
  position: absolute;
  left: 18px;
  bottom: -28px;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: 0 10px 24px rgba(29, 37, 40, 0.18);
  background: var(--surface-2);
}

.card-body {
  padding: 42px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-card h3 {
  margin-bottom: 5px;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.meta-line {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: auto 0 16px;
}

.tag {
  display: inline-flex;
  border: 1px solid rgba(29, 37, 40, 0.10);
  color: rgba(29, 37, 40, 0.73);
  background: rgba(239, 232, 220, 0.72);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.card-foot span {
  color: var(--muted);
  font-size: 0.86rem;
}

.text-link {
  color: var(--accent);
  font-weight: 850;
}

.collection-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.sidebar-card p {
  color: var(--muted);
  line-height: 1.55;
}

.data-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.data-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.data-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.data-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(29, 37, 40, 0.07);
}

.work-image {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.work-card:hover .work-image img { transform: scale(1.04); }

.work-copy {
  padding: 15px;
}

.work-copy h3 {
  font-size: 1rem;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
}

.work-copy p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
  padding: 18px;
  border-radius: 22px;
}

.timeline-item time {
  color: var(--accent-2);
  font-weight: 850;
  font-size: 0.86rem;
}

.timeline-item h3 { margin-bottom: 5px; }

.timeline-item p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.notice {
  border: 1px solid rgba(143, 95, 62, 0.22);
  background: rgba(200, 169, 106, 0.16);
  color: #5b462d;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.45;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a { font-weight: 750; }

.hidden { display: none !important; }

.profile-hero {
  padding: 38px 0 20px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--accent); font-weight: 800; }

.profile-header-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.74);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.profile-banner {
  min-height: 290px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.profile-banner img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 37, 40, 0.46), transparent 70%);
}

.profile-main-info {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 22px;
  align-items: end;
  padding: 0 26px 26px;
  margin-top: -74px;
  position: relative;
  z-index: 2;
}

.profile-main-info .large-avatar {
  width: 140px;
  height: 140px;
  border-radius: 34px;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-soft);
  background: var(--surface-2);
}

.profile-title h1 {
  color: #fffdf8;
  font-size: clamp(2.15rem, 4.4vw, 4.45rem);
  line-height: 0.94;
  margin: 0 0 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.profile-title p {
  margin: 0;
  color: rgba(255, 253, 248, 0.84);
  max-width: 720px;
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-content {
  padding: 36px 0 70px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}

.bio-card,
.statement-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.bio-card h2,
.statement-card h2 {
  font-size: 1.32rem;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.bio-card p,
.statement-card p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
}

.tab-btn.active {
  color: #fffdf8;
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(13, 18, 19, 0.76);
  backdrop-filter: blur(10px);
}

.lightbox.open { display: grid; }

.lightbox-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.lightbox-image {
  background: var(--surface-2);
}

.lightbox-image img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.lightbox-copy {
  padding: 20px;
}

.lightbox-copy h3 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.lightbox-copy p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.lightbox-close {
  position: fixed;
  right: 22px;
  top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.4rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .collection-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel { min-height: auto; }
  .featured-card { min-height: 390px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-card { position: static; }
  .search-row { grid-template-columns: 1fr; }
  .profile-main-info { grid-template-columns: 110px 1fr; }
  .profile-actions { grid-column: 1 / -1; }
  .profile-main-info .large-avatar { width: 110px; height: 110px; border-radius: 28px; }
}

@media (max-width: 720px) {
  .site-shell { width: min(100% - 26px, var(--max)); }

  .header-inner { min-height: 68px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 13px;
    right: 13px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow-soft);
    border-radius: 22px;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }

  .hero { padding-top: 42px; }
  .hero-meta { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .profile-grid, .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }

  .profile-banner,
  .profile-banner img { min-height: 250px; }

  .profile-main-info {
    grid-template-columns: 1fr;
    margin-top: -62px;
    padding: 0 18px 20px;
  }

  .profile-title h1 { color: var(--ink); text-shadow: none; margin-top: 10px; }
  .profile-title p { color: var(--muted); }
}
