:root {
  --bg: #f7f3ec;
  --bg-deep: #ece4d8;
  --ink: #161411;
  --muted: #4d473f;
  --accent: #a35a2e;
  --accent-2: #0f6c62;
  --card: #fffdf7;
  --line: #2b2620;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(22, 20, 17, 0.12);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 108, 98, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(163, 90, 46, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

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

.container {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-name {
  font-size: 22px;
}

.brand-tag {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 420px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.hero {
  padding: 56px 0 40px;
}

.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 22px 50px rgba(22, 20, 17, 0.18);
}

.hero-frame img {
  width: 100%;
  height: 68vh;
  min-height: 460px;
  object-fit: cover;
  object-position: 75% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(110deg, rgba(22, 20, 17, 0.78) 0%, rgba(22, 20, 17, 0.38) 45%, rgba(22, 20, 17, 0) 72%);
}

.hero-copy {
  padding: 28px 30px;
  max-width: 460px;
  color: #fff;
}

.hero-copy h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.hero .btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 9px 12px;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.hero .btn.primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.section {
  padding: 52px 0;
}

.section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 16px;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.08);
  box-shadow: 0 16px 32px rgba(22, 20, 17, 0.08);
  transform: translateY(12px);
  opacity: 0;
  animation: rise 0.8s ease forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.card .meta {
  padding: 16px 18px 22px;
}

.meta .title {
  font-weight: 600;
}

.meta .detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

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

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 12px 26px rgba(22, 20, 17, 0.1);
  background: var(--card);
}

.gallery-item figcaption {
  padding: 12px 14px 16px;
  font-size: 13px;
  color: var(--muted);
}

.gallery-category {
  margin-bottom: 46px;
}

.gallery-category[id] {
  scroll-margin-top: 96px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: start;
}

.gallery-hero {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 18px 36px rgba(22, 20, 17, 0.12);
  background: #fff;
}

.gallery-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-hero-caption {
  padding: 12px 14px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(43, 38, 32, 0.08);
}

.gallery-text h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 24px;
  margin: 0 0 10px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  padding: 0;
  border: 1px solid rgba(43, 38, 32, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(22, 20, 17, 0.15);
  transform: translateY(-2px);
}

.thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(92vw, 1200px);
  height: min(86vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background: #111;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.lightbox-btn.prev {
  left: -10px;
}

.lightbox-btn.next {
  right: -10px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.about-layout p {
  margin: 0 0 16px;
}

.about-layout p:last-child {
  margin-bottom: 0;
}

.about-portrait {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 16px 30px rgba(22, 20, 17, 0.12);
}

.contact-card {
  background: var(--card);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(43, 38, 32, 0.1);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.contact-grid form {
  min-width: 0;
}

.inspiration-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.inspiration-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 18px;
  text-align: center;
}

.inspiration-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 16px 30px rgba(22, 20, 17, 0.12);
  background: #fff;
}

.inspiration-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.inspiration-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(43, 38, 32, 0.6);
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.inspiration-nav.prev { left: 12px; }
.inspiration-nav.next { right: 12px; }

@media (max-width: 1200px) {
  .inspiration-image {
    height: 380px;
  }
}

@media (max-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .inspiration-image {
    height: 280px;
  }
}

.process-section {
  margin-bottom: 44px;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: start;
}

.process-grid.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.process-grid--quote {
  grid-template-columns: 0.95fr 1.05fr;
}

.process-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.12);
  box-shadow: 0 16px 30px rgba(22, 20, 17, 0.12);
  background: #fff;
}

.process-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.process-quote {
  margin-top: 14px;
  padding: 5px 20px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(43, 38, 32, 0.1);
  box-shadow: 0 12px 24px rgba(22, 20, 17, 0.1);
}

.process-quote-text {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
}

.process-quote-source {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-step {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 22px;
}

.process-subtitle {
  margin-top: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.process-grid p {
  margin: 14px 0 0;
}

.quote-block {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(43, 38, 32, 0.1);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 760px;
  margin: 40px 0 0;
  text-align: left;
}

.quote-text {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.4;
}

.quote-source {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.poetry-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(43, 38, 32, 0.28);
}

.poetry-link-wrap {
  text-align: center;
  margin-top: 22px;
}

.poetry-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(43, 38, 32, 0.2);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

footer {
  border-top: 1px solid rgba(43, 38, 32, 0.1);
  padding: 24px 0 40px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.fade-in {
  opacity: 0;
  animation: fade 0.9s ease forwards;
}

.poem-accordion {
  display: grid;
  gap: 16px;
}

.poem {
  border: 1px solid rgba(43, 38, 32, 0.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 30px rgba(22, 20, 17, 0.08);
  overflow: hidden;
}

.poem summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  position: relative;
}

.poem summary::-webkit-details-marker {
  display: none;
}

.poem-summary {
  display: grid;
  gap: 6px;
}

.poem-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.poem-excerpt {
  font-size: 14px;
  color: var(--muted);
}

.poem summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 18px;
  color: var(--accent);
}

.poem[open] summary::after {
  content: "–";
}

.poem[open] summary {
  border-bottom: 1px solid rgba(43, 38, 32, 0.12);
}

.poem-body {
  padding: 18px 24px 24px;
}

.poem-epigraph {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 16px;
}

.poem-text {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
}

@keyframes rise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .hero-frame img {
    height: 58vh;
    min-height: 400px;
  }

  .hero-copy {
    padding: 24px;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  .grid.three,
  .gallery-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero img {
    height: 320px;
  }

  .process-grid,
  .process-grid.reverse {
    grid-template-columns: 1fr;
  }

  .process-image img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .hero-frame img {
    height: 48vh;
    min-height: 320px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .hero-copy p {
    font-size: 14px;
  }

  .gallery-hero img {
    height: 260px;
  }
}
