:root {
  --bg: #f8efe6;
  --bg-soft: #fff8f3;
  --surface: rgba(255, 251, 246, 0.68);
  --surface-strong: rgba(255, 248, 241, 0.94);
  --text: #26160f;
  --muted: #735749;
  --border: rgba(82, 44, 22, 0.14);
  --shadow: 0 24px 70px rgba(85, 46, 23, 0.14);
  --gold: #be8f43;
  --sage: #7f9572;
  --terracotta: #b86a4f;
  --berry: #7e4152;
  --teal: #7bb2b0;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.9),
      transparent 34%
    ),
    linear-gradient(180deg, #fff6ef 0%, #f6ebdf 48%, #f2e2d6 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.75;
}

.ambient-one {
  top: 6rem;
  right: -7rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(
    circle,
    rgba(190, 143, 67, 0.34),
    transparent 72%
  );
  animation: floatOne 14s ease-in-out infinite;
}

.ambient-two {
  bottom: 8rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(126, 65, 82, 0.22), transparent 70%);
  animation: floatTwo 17s ease-in-out infinite;
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--gold));
  color: #fffaf4;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.project-body h3,
.feature-card h3,
.future-card h3,
.contact-panel h3,
.about-card h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

section {
  margin-top: 2rem;
}

.hero,
.about,
.projects,
.feature-band,
.future-sections,
.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100vh - 8rem);
  padding: 4rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text,
.about-card p,
.project-body p,
.feature-card p,
.future-card p,
.contact-panel p,
.icon-list,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--berry), var(--gold));
  color: #fffaf4;
  box-shadow: 0 12px 26px rgba(126, 65, 82, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--border);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-metrics li,
.about-card,
.project-card,
.feature-card,
.future-card,
.contact-panel {
  border: 1px solid rgba(82, 44, 22, 0.1);
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
}

.hero-metrics li {
  padding: 1rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.6rem;
  color: var(--berry);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 34rem;
}

.visual-panel {
  position: absolute;
  border: 1px solid rgba(82, 44, 22, 0.12);
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.visual-panel-main {
  inset: 0 2rem 3.8rem 0;
  padding: 1rem;
  animation: floatOne 11s ease-in-out infinite;
}

.visual-panel-card {
  right: 0;
  width: 15rem;
  bottom: 7rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  animation: floatTwo 13s ease-in-out infinite;
}

.visual-panel-card img {
  border-radius: 20px;
}

.visual-panel-card span {
  font-size: 0.84rem;
  color: var(--muted);
}

.visual-panel-card strong {
  display: block;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.visual-panel-card.accent {
  left: 2rem;
  right: auto;
  bottom: 0;
  animation-delay: -3s;
}

.section-grid,
.projects,
.future-sections,
.contact {
  padding: 2.4rem;
  border-radius: var(--radius-xl);
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-card {
  padding: 1.6rem;
}

.about-card.tinted {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.96),
    rgba(248, 236, 226, 0.94)
  );
}

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.icon-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.icon-wrap {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(190, 143, 67, 0.15);
  color: var(--berry);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.project-card {
  grid-column: span 4;
  overflow: hidden;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(85, 46, 23, 0.18);
}

.project-card-large {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.project-media {
  min-height: 18rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.92),
      transparent 38%
    ),
    linear-gradient(135deg, rgba(126, 65, 82, 0.1), rgba(190, 143, 67, 0.12));
}

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

.project-body {
  padding: 1.5rem;
}

.project-tag {
  margin: 0 0 0.5rem;
  color: var(--terracotta);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-body h3,
.feature-card h3,
.future-card h3,
.contact-panel h3,
.about-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.project-meta span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(127, 149, 114, 0.12);
  color: #4f6345;
  font-size: 0.87rem;
}

.project-body a {
  color: var(--berry);
  font-weight: 700;
}

.feature-band {
  padding: 1.3rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.future-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(126, 65, 82, 0.16),
    rgba(190, 143, 67, 0.18)
  );
  color: var(--berry);
}

.feature-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.future-card {
  min-height: 15rem;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.95),
    rgba(251, 240, 233, 0.92)
  );
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.2rem;
}

.contact-panel {
  padding: 1.6rem;
}

.contact-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-points span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-points strong {
  display: block;
  margin-top: 0.22rem;
}

.contact-form {
  display: grid;
  gap: 0.78rem;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(82, 44, 22, 0.16);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(126, 65, 82, 0.2);
  border-color: rgba(126, 65, 82, 0.36);
}

.form-note {
  min-height: 1.6rem;
  margin: 0.2rem 0 0;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto 2.5rem;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer nav a {
  color: var(--berry);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .project-card-large,
  .contact-layout,
  .about-layout,
  .feature-band,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-card,
  .project-card-large {
    grid-column: span 12;
  }

  .site-header {
    border-radius: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 28rem;
  }
}

@media (max-width: 760px) {
  main,
  .site-header {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero,
  .section-grid,
  .projects,
  .future-sections,
  .contact {
    padding: 1.35rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 22rem;
  }

  .visual-panel-main {
    inset: 0 0.5rem 4rem 0;
  }

  .visual-panel-card {
    width: 12rem;
    right: 0;
    bottom: 5rem;
  }

  .visual-panel-card.accent {
    left: 0;
    bottom: 0;
  }

  .site-footer {
    width: min(calc(100% - 1rem), var(--max-width));
    flex-direction: column;
    align-items: flex-start;
  }
}
