:root {
  --page: #f5f0e7;
  --surface: #fffdf9;
  --surface-soft: #eee5d8;
  --ink: #302b27;
  --muted: #746b63;
  --accent: #7a5842;
  --accent-dark: #604331;
  --warm: #a06b42;
  --line: #ddd2c5;
  --footer: #302923;
  --radius: 10px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(49, 90, 105, .28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px max(24px, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 231, .96);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-name strong, .brand-name small { display: block; }
.brand-name strong { line-height: 1.2; }
.brand-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #635a52; font-size: .9rem; font-weight: 650; }
.site-nav a:hover { color: var(--accent); }

.path-banner { overflow: hidden; border-bottom: 1px solid var(--line); background: #d9cdbf; }
.path-banner img {
  display: block;
  width: 100%;
  height: clamp(190px, 22vw, 320px);
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) sepia(.08) contrast(.94);
}

.hero { max-width: 1000px; margin: auto; padding: 68px 24px 36px; text-align: center; }
.kicker, .section-label {
  margin: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, .section-heading h2, .about h2, .modal-content h2, .project-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}
h1 {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: clamp(2.8rem, 6.7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.hero-copy { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.16rem); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 6px;
  padding: 10px 19px;
  font-weight: 750;
  transition: background .2s, border-color .2s, color .2s;
}
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary-button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.secondary-button { border: 1px solid #cbbfb2; background: transparent; color: #625950; }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 52px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.value-strip div { padding: 22px 25px; }
.value-strip div + div { border-left: 1px solid var(--line); }
.value-strip strong, .value-strip span { display: block; }
.value-strip strong { margin-bottom: 5px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.value-strip span { color: var(--muted); font-size: .82rem; line-height: 1.45; }

.projects-section { max-width: var(--content); margin: auto; padding: 58px 24px 42px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading h2, .about h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.025em; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 0 13px;
  border: 1px solid #d2c6b9;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}
.search input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.filter {
  cursor: pointer;
  border: 1px solid #d2c6b9;
  border-radius: 5px;
  padding: 7px 14px;
  background: transparent;
  color: #6b625a;
  transition: .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(37, 42, 46, .06);
  transition: border-color .22s, box-shadow .22s;
}
.project-card:hover { border-color: #c5b6a7; box-shadow: 0 9px 26px rgba(37, 42, 46, .1); }
.card-art { position: relative; height: 215px; overflow: hidden; background: #e1d6ca; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project-card:hover .card-art img { transform: scale(1.025); }
.card-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .22), transparent 45%); }
.status {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 15px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 4px;
  background: rgba(35, 40, 42, .83);
  color: #fff;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-number { display: none; }
.card-body { display: flex; flex-direction: column; min-height: 330px; padding: 23px; }
.eyebrow { margin: 0; color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-body h3 { margin: 7px 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; }
.description { flex: 1; margin: 0; color: var(--muted); }
.tags, .modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 19px 0; }
.tags span, .modal-tags span { border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; background: var(--page); color: #746a61; font-size: .68rem; }
.enter-button {
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-weight: 750;
  transition: .2s;
}
.enter-button:hover { background: var(--accent); color: #fff; }
.empty-state { padding: 45px; border: 1px dashed #c7b9aa; border-radius: var(--radius); text-align: center; color: var(--muted); }

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  max-width: var(--content);
  margin: 32px auto 72px;
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}
.about-copy > p:last-child { max-width: 650px; color: var(--muted); }
.about-points { display: grid; align-content: center; }
.about-points article { display: flex; gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.about-points article:first-child { border-top: 1px solid var(--line); }
.about-points article > span { flex: 0 0 32px; color: var(--warm); font-family: Georgia, "Times New Roman", serif; font-size: .78rem; font-weight: 700; }
.about-points h3, .about-points p { margin: 0; }
.about-points h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.about-points p { margin-top: 3px; color: var(--muted); font-size: .88rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px max(24px, calc((100% - var(--content)) / 2));
  background: var(--footer);
  color: #c9beb5;
  font-size: .84rem;
}
.footer-left p { margin: 0; }
.footer-left p + p { margin-top: 3px; color: #a99d93; }
.footer-left a, .footer-right a { color: #e3d9d1; }
.footer-left a:hover, .footer-right a:hover { color: #fff; }
.footer-right { display: flex; align-items: center; gap: 10px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 34, 29, .74); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(660px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #d2c6b9;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal-art { position: relative; height: 245px; }
.modal-art img { width: 100%; height: 100%; object-fit: cover; }
.modal-art div { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255, 255, 255, .33), transparent 48%); }
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(48, 39, 33, .84);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.modal-content { padding: 27px 32px 32px; }
.modal-content h2 { margin: 4px 0 11px; font-size: 2.25rem; line-height: 1.12; }
.modal-content > p { color: var(--muted); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.modal-actions .details-link, .modal-actions .launch { width: 100%; min-height: 48px; margin: 0; text-align: center; }
.placeholder-note { text-align: center; font-size: .72rem; color: #82766d !important; }
.no-scroll { overflow: hidden; }

.project-directory { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 30px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.project-directory h3 { width: 100%; margin: 0 0 5px; text-align: center; font-family: Georgia, "Times New Roman", serif; }
.project-directory a, .card-details-link { border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; background: var(--page); color: var(--accent); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.card-details-link { display: grid; place-items: center; text-align: center; font-weight: 750; }
.project-page-main { max-width: 1060px; margin: 0 auto; padding: 64px 24px; }
.project-back { display: inline-flex; margin-bottom: 24px; color: var(--accent); font-weight: 750; }
.project-hero { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: 42px; align-items: center; }
.project-hero img { display: block; width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(37, 42, 46, .12); }
.project-copy h1 { margin: 8px 0 20px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.project-copy p { color: var(--muted); font-size: 1.06rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.project-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; background: var(--surface); color: var(--muted); font-size: .78rem; }
.project-description { margin-top: 42px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-description h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }
.project-description p { color: var(--muted); }
.project-launch { margin-top: 22px; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
}
@media (max-width: 760px) {
  .site-nav { gap: 15px; }
  .site-nav a:last-child { display: none; }
  .project-hero { grid-template-columns: 1fr; }
  .card-actions, .modal-actions { grid-template-columns: 1fr; }
  .project-directory { flex-direction: column; }
  .project-directory a { text-align: center; }
}
@media (max-width: 620px) {
  .site-header { padding: 12px 17px; }
  .brand-name small { letter-spacing: .09em; }
  .site-nav a { font-size: .82rem; }
  .site-nav a:nth-child(2) { display: none; }
  .path-banner img { height: 205px; }
  .hero { padding-top: 52px; }
  .hero-actions { flex-direction: column; }
  .value-strip { grid-template-columns: 1fr; }
  .value-strip div { padding: 17px 4px; }
  .value-strip div + div { border-top: 1px solid var(--line); border-left: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .projects-section { padding-top: 45px; }
  .about { margin-bottom: 36px; padding-top: 42px; }
  footer { flex-direction: column; gap: 13px; }
  .footer-right { align-items: flex-start; }
  .modal-art { height: 190px; }
  .modal-content { padding: 23px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
