:root {
  --bg: #f6f1e9;
  --surface: rgba(255, 252, 247, 0.76);
  --surface-strong: rgba(255, 253, 249, 0.9);
  --surface-soft: rgba(245, 237, 227, 0.86);
  --ink: #172236;
  --muted: #5e6674;
  --accent: #f2a900;
  --accent-deep: #1264ad;
  --accent-dark: #08121f;
  --brand-cream: #efe7dc;
  --brand-display: "Stardos Stencil", "Roboto Slab", Georgia, serif;
  --line: rgba(18, 100, 173, 0.14);
  --line-strong: rgba(242, 169, 0, 0.34);
  --shadow: 0 24px 70px rgba(8, 18, 31, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #e9edf2;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

.scene,
.scene-overlay {
  position: fixed;
  inset: 0;
}

.scene {
  overflow: hidden;
  background-image:
    url("assets/backgrounds/parcero-sunset.png"),
    url("assets/backgrounds/myrtle-beach-coast.svg");
  background-position: center;
  background-size: cover;
  animation: drift 24s ease-in-out infinite alternate;
  transform: scale(1.04);
  transform-origin: center;
}

.scene-overlay {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 44%, rgba(0, 0, 0, 0.08) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--content-width));
  height: 100svh;
  margin: 0 auto;
  padding: 1rem 0;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(8, 18, 31, 0.1);
}

.site-header__logo-wrap {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(242, 169, 0, 0.72);
  border-radius: 999px;
  color: var(--brand-cream);
  background: linear-gradient(145deg, var(--accent-dark), #124f8d);
  box-shadow: 0 10px 22px rgba(8, 18, 31, 0.2);
}

.site-logo__name {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.site-nav__link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--ink);
}

.site-nav__link.is-active {
  color: var(--ink);
  background: rgba(242, 169, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(242, 169, 0, 0.24), 0 8px 18px rgba(8, 18, 31, 0.08);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  font-weight: 800;
}

.stage {
  display: grid;
  align-items: stretch;
  min-height: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.88fr);
  gap: 1.15rem;
  min-height: 0;
}

body[data-active-panel="home"] .hero {
  grid-template-columns: minmax(0, 44rem);
  align-content: center;
}

body:not([data-active-panel="home"]) .hero {
  grid-template-columns: minmax(0, 1fr);
}

.hero__content,
.panel-frame {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.72), rgba(255, 251, 246, 0.42));
  backdrop-filter: blur(10px);
}

body[data-active-panel="home"] .hero__content {
  border-color: transparent;
  color: var(--brand-cream);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

body[data-active-panel="home"] .hero__text {
  color: rgba(239, 231, 220, 0.9);
}

body[data-active-panel="home"] .panel-frame {
  display: none;
}

body:not([data-active-panel="home"]) .hero__content {
  display: none;
}

.eyebrow,
.panel__eyebrow,
.contact-card span {
  display: inline-block;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1,
.panel h2,
.contact-card strong,
.project-card strong,
.service-list strong {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.hero h1 {
  font-family: var(--brand-display);
  font-weight: 700;
  margin: 0.85rem 0 0;
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.9;
}

.hero__text,
.panel p,
.project-card span,
.service-list span {
  color: var(--muted);
}

.hero__text {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.panel-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(239, 244, 250, 0.9));
  backdrop-filter: blur(10px);
}

.panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: clamp(1rem, 2vw, 1.35rem);
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel[hidden] {
  display: grid;
}

.panel[data-panel-content="about"],
.panel[data-panel-content="services"],
.panel[data-panel-content="contact"] {
  align-content: center;
}

.panel[data-panel-content="projects"] .panel-intro {
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1fr);
  align-items: end;
  max-width: none;
}

.panel[data-panel-content="projects"] .panel__eyebrow {
  grid-column: 1 / -1;
}

.panel[data-panel-content="projects"] .panel-intro p:last-child {
  padding-bottom: 0.2rem;
}

.panel h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.15rem, 3.6vw, 3.65rem);
  line-height: 0.98;
}

.panel p {
  margin: 0;
  max-width: 34rem;
  line-height: 1.72;
}

.panel-intro {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.panel-intro--wide {
  max-width: 56rem;
}

.panel-intro--wide h2 {
  max-width: 17ch;
}

.panel-feature,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

.panel-callout {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  min-height: 14rem;
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  border: 1px solid rgba(242, 169, 0, 0.42);
  border-radius: var(--radius-md);
  color: var(--brand-cream);
  background:
    linear-gradient(145deg, rgba(8, 18, 31, 0.94), rgba(18, 79, 141, 0.9)),
    linear-gradient(180deg, rgba(242, 169, 0, 0.14), transparent);
  box-shadow: 0 18px 34px rgba(8, 18, 31, 0.13);
}

.panel-callout strong {
  font-family: var(--brand-display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1;
}

.panel-callout span {
  color: rgba(239, 231, 220, 0.82);
  line-height: 1.6;
}

.panel-stat-grid,
.project-rail,
.service-list,
.contact-stack,
.value-grid {
  display: grid;
  gap: 0.85rem;
}

.panel-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.15rem;
}

.panel-stat-grid div,
.value-grid article,
.service-list article,
.contact-card {
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.panel-stat-grid strong {
  display: block;
  margin-bottom: 0.22rem;
}

.panel-stat-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.value-grid article {
  display: grid;
  gap: 0.45rem;
  border-top: 3px solid rgba(242, 169, 0, 0.72);
}

.value-grid strong {
  font-family: var(--brand-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.05;
}

.value-grid span {
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.94rem;
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.85rem, 1.5vw, 1.05rem);
  padding: 0.1rem 0.2rem 0.25rem 0;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 28px rgba(8, 18, 31, 0.07);
}

.project-card--featured {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.project-card--featured img {
  aspect-ratio: 16 / 9;
}

.project-card figcaption {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.95rem 1rem 1.05rem;
}

.project-card strong {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.project-card span,
.service-list span {
  line-height: 1.65;
  font-size: 0.92rem;
}

.service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-list article {
  display: grid;
  gap: 0.45rem;
  min-height: 10.5rem;
  border-left: 3px solid rgba(242, 169, 0, 0.72);
}

.service-list strong {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.contact-stack {
  grid-template-columns: 1fr;
  align-content: stretch;
}

.contact-card {
  display: grid;
  gap: 0.45rem;
  align-content: center;
  min-height: 9rem;
}

.contact-card strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 0.98;
}

.contact-card--note strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.45;
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .stage {
    height: auto;
    min-height: auto;
    padding-bottom: 1rem;
  }

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

  body[data-active-panel="home"] .hero {
    grid-template-columns: 1fr;
  }

  body:not([data-active-panel="home"]) .hero {
    grid-template-columns: 1fr;
  }

  .panel-frame {
    min-height: 34rem;
  }

  .panel[data-panel-content="about"],
  .panel[data-panel-content="services"],
  .panel[data-panel-content="contact"] {
    align-content: start;
  }

  .panel[data-panel-content="projects"] .panel-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .panel-feature,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-height: 860px) and (min-width: 1121px) {
  .hero__content,
  .panel {
    padding: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  }

  .hero__text {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .panel h2 {
    font-size: clamp(1.85rem, 2.4vw, 2.65rem);
  }

  .panel p,
  .project-card span,
  .service-list span {
    line-height: 1.52;
  }

  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .project-card--featured img {
    aspect-ratio: 16 / 9;
  }

  .service-list article,
  .contact-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--content-width));
    padding: 0.5rem 0;
  }

  .site-header {
    gap: 0.8rem;
    border-radius: 28px;
  }

  .site-header__cta {
    width: 100%;
  }

  .hero__content,
  .panel {
    padding: 1.1rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .panel h2 {
    max-width: none;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .panel-stat-grid,
  .service-list,
  .project-rail,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: auto;
  }

  .panel-frame {
    min-height: 40rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .site-nav__link,
  .panel {
    animation: none;
    transition: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
}
