:root {
  --bg: #f5efe4;
  --bg-deep: #e4d6c3;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf2;
  --ink: #16335f;
  --ink-soft: #34517d;
  --accent: #9f5d2e;
  --accent-soft: #d59a67;
  --line: rgba(22, 51, 95, 0.12);
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 111, 60, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(22, 51, 95, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 42%, #f0e4d3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(22, 51, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 51, 95, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(22, 51, 95, 0.08);
}

.brand {
  width: min(280px, 48vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--ink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.hero,
.section,
.site-footer {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 700ms ease forwards;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
  min-height: auto; /* calc(100vh - 10rem); */
  padding: 2.5rem 0 1.5rem;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  /* max-width: 8ch; */
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.hero-copy {
  max-width: 690px;
}

.hero-text,
.section-heading p,
.service-card p,
.showcase-card p,
.timeline-step p,
.contact-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  /* color: var(--ink-soft); */
}

.hero-text {
  max-width: 35rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(22, 51, 95, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--ink), #294b84);
  box-shadow: 0 14px 32px rgba(22, 51, 95, 0.24);
}

.button-secondary {
  border: 1px solid rgba(22, 51, 95, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.2rem;
}

.panel-card,
.service-card,
.showcase-card,
.timeline-step,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 246, 235, 0.75));
}

.panel-card-large {
  min-height: 0;
}

.panel-card-large::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(22, 51, 95, 0.16);
}

.hero-orbit {
  position: absolute;
  top: -1.8rem;
  right: 1.4rem;
  width: 260px;
  height: 260px;
  pointer-events: none;
  opacity: 0.7;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(22, 51, 95, 0.16);
}

.orbit-one {
  inset: 1.4rem;
}

.orbit-two {
  inset: 0;
}

.orbit-dot {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(159, 93, 46, 0.12);
}

.orbit-dot-one {
  top: 2.9rem;
  right: 2.9rem;
}

.orbit-dot-two {
  bottom: 2rem;
  left: 2.2rem;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(22, 51, 95, 0.1);
}

.panel-card-accent {
  color: white;
  background:
    linear-gradient(135deg, rgba(22, 51, 95, 0.96), rgba(52, 81, 125, 0.92)),
    linear-gradient(180deg, rgba(180, 111, 60, 0.28), transparent);
}

.panel-label {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  /* max-width: 12ch; */
  font-size: 1.8rem;
  line-height: 1.05;
}

.feature-list,
.service-card ul {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feature-list {
  /* max-width: 28ch; */
}

.panel-card-accent span {
  display: block;
  /* max-width: 23ch; */
  font-size: 1.1rem;
  line-height: 1.7;
}

.section {
  padding: 5rem 0 0;
}

.section:nth-of-type(2) {
  animation-delay: 120ms;
}

.section:nth-of-type(3) {
  animation-delay: 200ms;
}

.section:nth-of-type(4) {
  animation-delay: 280ms;
}

.section:nth-of-type(5) {
  animation-delay: 360ms;
}

.section-heading {
  /* max-width: 760px;*/
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.services-grid,
.showcase-grid,
.timeline {
  display: grid;
  gap: 1.25rem;
}

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

.service-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(248, 239, 226, 0.88));
}

.service-card h3,
.showcase-card h3,
.timeline-step h3 {
  margin: 0;
  font-size: 1.35rem;
}

.service-index,
.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(180, 111, 60, 0.12);
}

.section-showcase {
  position: relative;
}

.showcase-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.showcase-card {
  min-height: 260px;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  color: white;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.showcase-card > * {
  position: relative;
  z-index: 1;
}

.showcase-web {
  background:
    linear-gradient(135deg, rgba(22, 51, 95, 0.92), rgba(33, 74, 129, 0.88)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%);
}

.showcase-craft {
  background:
    linear-gradient(135deg, rgba(180, 111, 60, 0.94), rgba(158, 82, 42, 0.88)),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 30%);
}

.showcase-custom {
  background:
    linear-gradient(135deg, rgba(63, 72, 92, 0.95), rgba(22, 51, 95, 0.88)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 35%);
}

.showcase-tag {
  margin: 0 0 1rem;
  color: #f5efe4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.showcase-card p:last-child {
  color: rgba(255, 255, 255, 0.88);
}

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

.timeline-step {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 246, 0.8);
}

.contact-section {
  padding-bottom: 3rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 2rem;
  padding: 2rem;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(22, 51, 95, 0.94), rgba(34, 61, 103, 0.9)),
    linear-gradient(180deg, rgba(180, 111, 60, 0.22), transparent);
  color: white;
}

.contact-card .eyebrow,
.contact-card p,
.contact-card a {
  color: rgba(255, 255, 255, 0.86);
}

.contact-details {
  display: grid;
  gap: 0.9rem;
  align-content: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.contact-details a,
.contact-details p {
  margin: 0;
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

@media (max-width: 980px) {
  .hero,
  .contact-card,
  .showcase-grid,
  .services-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy h1 {
    /* max-width: 10ch; */
  }

  .site-header {
    top: 0.5rem;
    border-radius: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-panel {
    padding-top: 0;
  }

  .hero-orbit {
    top: auto;
    right: 0.8rem;
    bottom: 6rem;
    width: 200px;
    height: 200px;
  }
}

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

  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand {
    width: min(220px, 58vw);
  }

  .hero-copy h1 {
    /* font-size: clamp(2.7rem, 13vw, 4rem); */
  }

  .panel-card,
  .service-card,
  .showcase-card,
  .timeline-step,
  .contact-card {
    padding: 1.2rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero-orbit {
    display: none;
  }
}
