:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #4b3e34;
  --muted: #7b7068;
  --olive: #8a9a3a;
  --beige: #cbb58a;
  --brown: #8b6a45;
  --brown-dark: #5c4430;
  --border: #ddd4c8;
  --shadow: 0 10px 30px rgba(92, 68, 48, 0.10);
  --radius: 18px;
  --max: 1150px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.logo-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid #ddd4c8;
  box-shadow: 0 10px 30px rgba(92, 68, 48, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 1rem;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li::before,
nav li::after,
nav a::before,
nav a::after {
  content: none !important;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown-dark);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a:focus {
  border-bottom-color: var(--olive);
  outline: none;
}

.nav-line {
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brown), var(--beige), transparent);
  opacity: 0.7;
}

.site-title {
  font-family: "Allura", cursive;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--brown);
  margin: 0.5rem 0 0;
}

.site-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  color: var(--brown-dark);
  margin: 0.5rem 0 0;
  line-height: 1.1;
}

main {
  padding-bottom: 3rem;
}

.page-main {
  padding-bottom: 4rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin: 2rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--brown-dark);
}

p {
  margin-top: 0;
}

.about-text,
.section-subtext {
  color: var(--muted);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--brown-dark);
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  background: var(--olive);
  color: white;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  background: #78872f;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: none;
  background: var(--olive);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 600;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}

.btn-outline:hover {
  background: #78872f;
  color: white;
}

.page-intro {
  margin: 2rem 0 2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-page-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: var(--brown-dark);
}

.feature-page-card p {
  margin: 0;
  color: var(--muted);
  flex-grow: 1;
}

.feature-page-card .btn {
  align-self: flex-start;
}

.project-spotlight {
  margin-top: 2rem;
}

.project-feature-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-feature-media {
  background: #f4efe8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-feature-media img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.project-feature-flag {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.project-feature-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-kicker {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
}

.project-feature-content h2 {
  margin-bottom: 1rem;
}

.project-feature-content p {
  color: var(--muted);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-meta-item {
  background: #fcfbf8;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.project-meta-item h3 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--brown-dark);
}

.project-meta-item p {
  margin: 0;
  font-size: 0.95rem;
}

.project-meta-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-meta-image {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin-top: 0.35rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.project-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brown-dark);
  font-weight: 600;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.carousel-section {
  margin-bottom: 3rem;
}

.carousel-header {
  margin-bottom: 1rem;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 1rem);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-controls-bottom {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.carousel-controls-bottom button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brown-dark);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}

.carousel-controls-bottom button:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.work-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e9e1d5;
}

.work-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--brown-dark);
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  flex-grow: 1;
}

.work-card-content .btn-outline {
  margin-top: 1rem;
  align-self: flex-start;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  text-align: center;
}

.share-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 0;
}

.share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 500;
}

.share-list a:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.footer-note {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .intro-grid,
  .works-grid,
  .project-meta,
  .project-feature-card {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-auto-columns: calc(50% - 0.75rem);
  }

  .project-feature-media img {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  header {
    padding-top: 2rem;
  }

  .card,
  .feature-page-card,
  .project-feature-content {
    padding: 1.35rem;
  }

  .project-feature-media {
    padding: 1.5rem;
  }

  .project-feature-media img {
    max-width: 260px;
  }

  .carousel {
    grid-auto-columns: 100%;
  }

  .site-title {
    font-size: 2.6rem;
  }
}

.project-hero {
  margin: 2rem 0 2rem;
}

.project-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  text-align: center;
}

.project-kicker {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
}

.project-hero-card h2 {
  margin-bottom: 1rem;
}

.project-hero-text {
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero-image-wrap {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.project-hero-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.project-skills-section {
  margin-bottom: 3rem;
}

.project-skills-card {
  text-align: center;
}

.project-skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fcfbf8;
  border: 1px solid var(--border);
  color: var(--brown-dark);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.project-live-action {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .project-hero-card {
    padding: 1.5rem;
  }

  .project-hero-image {
    max-width: 100%;
  }
}