:root {
  --ink: #17110d;
  --charcoal: #201b18;
  --brown-deep: #3a2418;
  --brown: #7b4b2a;
  --brown-soft: #b07a4a;
  --cream: #f3eadc;
  --paper: #e6d4bd;
  --muted: #bda993;
  --cyan: #61fff0;
  --green: #8fbf8f;
  --card: rgba(45, 34, 27, 0.82);
  --line: rgba(243, 234, 220, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  
  /* System-wide layout variables to guarantee alignment and prevent overlaps */
  --nav-offset: 140px;
  --section-spacing: clamp(60px, 9vh, 100px);
}

* {
  box-sizing: border-box;
}

/* ===== Accessibility: Keyboard Focus ===== */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(176, 122, 74, 0.22), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(97, 255, 240, 0.05), transparent 18%),
    radial-gradient(circle at 28% 72%, rgba(123, 75, 42, 0.12), transparent 24%),
    linear-gradient(135deg, #120d0a 0%, #1b1410 42%, #0f0d0c 100%);
  color: var(--cream);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: 0;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

/* ===== Global Section Spacing & Architectural Offsets ===== */
[id] {
  scroll-margin-top: var(--nav-offset);
}

main > section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: var(--section-spacing) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 800;
}

.section-label::after {
  content: "";
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, rgba(176, 122, 74, 0.85), rgba(97, 255, 240, 0.85));
  opacity: 0.9;
}

.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(97, 255, 240, 0.08);
  order: 3;
  margin-left: 2px;
}

.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(24, 18, 15, 0.78);
  padding: clamp(24px, 4vw, 42px);
  min-height: 0;
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(243, 234, 220, 0.18);
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  cursor: pointer;
}

.button.primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

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

.button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

/* ===== Header & Brand Branding ===== */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  border: 1px solid rgba(243, 234, 220, 0.12);
  border-radius: 999px;
  background: rgba(18, 12, 9, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(243, 234, 220, 0.1);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-mark-ring {
  fill: none;
  stroke: rgba(243, 234, 220, 0.15);
  stroke-width: 1.5;
}

.brand-mark-wave {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 234, 220, 0.75);  
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(243, 234, 220, 0.75);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  color: rgba(243, 234, 220, 1);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--cream);
}

.nav-link.is-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(97, 255, 240, 0.55);
  margin-right: 8px;
  flex-shrink: 0;
}

/* ===== Hero Module ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: var(--nav-offset) 0 70px;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(176, 122, 74, 0.46);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(58, 36, 24, 0.42);
  font-size: 0.86rem;
  line-height: 1;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(97, 255, 240, 0.7);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 24px 0 22px;
  max-width: 780px;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(243, 234, 220, 0.74);
  text-shadow: none;
}

@supports not (-webkit-text-stroke: 1px black) {
  .hero h1 span {
    color: rgba(243, 234, 220, 0.74);
  }
}

.lead {
  margin: 0 0 14px;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  color: rgba(243, 234, 220, 0.8);
  max-width: 620px;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.photo-card {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(97, 255, 240, 0.16);
  background: rgba(18, 13, 10, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}

.floating-note {
  position: absolute;
  left: -26px;
  bottom: 56px;
  max-width: 270px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(136, 83, 42, 0.94), rgba(88, 50, 26, 0.92));
  border: 1px solid rgba(243, 234, 220, 0.14);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.floating-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.2;
}

.floating-note p {
  margin: 0;
  color: rgba(243, 234, 220, 0.86);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ===== Services Section ===== */
.services-card h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.services-intro {
  margin: 0 0 28px 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.service-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(76, 255, 239, 0.12);
  color: #4cffee;
  font-size: 0.65rem;
}

.service-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.service-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(243, 234, 220, 0.7);
}

/* ===== Consolidated Flagship Panel ===== */
.flagship-header {
  margin-bottom: 34px;
}

.flagship-header h2 {
  margin: 8px 0 0 0;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.flagship-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 34px;
  background: 
    radial-gradient(circle at 10% 10%, rgba(176, 122, 74, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(22, 16, 13, 0.96), rgba(15, 11, 9, 0.98));
  border: 1px solid rgba(176, 122, 74, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.flagship-visual {
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(176, 122, 74, 0.16);
  background: #110d0a;
}

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

.flagship-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(97, 255, 240, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(97, 255, 240, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.flagship-copy h3 {
  margin: 12px 0 16px 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream);
}

.flagship-copy p {
  margin: 0 0 24px 0;
  color: rgba(243, 234, 220, 0.74);
  line-height: 1.6;
  font-size: 1.05rem;
}

.flagship-bullets {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.bullet-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.bullet-item {
  font-size: 0.88rem;
  color: rgba(243, 234, 220, 0.65);
  line-height: 1.45;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Project Grid & Gallery Cards ===== */
.featured-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.featured-head-left h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.featured-head-copy {
  margin: 0;
  max-width: 500px;
  color: rgba(243, 234, 220, 0.66);
  font-size: 1.02rem;
  line-height: 1.58;
  justify-self: end;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.featured-card {
  min-height: 432px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(176, 122, 74, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(22, 16, 13, 0.98), rgba(15, 11, 9, 0.98));
  border: 1px solid rgba(176, 122, 74, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 255, 240, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

.featured-visual {
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(176, 122, 74, 0.14);
  background: linear-gradient(180deg, rgba(31, 23, 18, 0.98), rgba(16, 12, 10, 0.98));
  margin-bottom: 18px;
  position: relative;
}

.featured-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(243, 234, 220, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.2;
  pointer-events: none;
}

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

.featured-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
  line-height: 1.14;
  color: var(--cream);
}

.featured-card p {
  margin: 0 0 20px;
  color: rgba(243, 234, 220, 0.62);
  line-height: 1.58;
  font-size: 0.98rem;
}

.featured-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.featured-link:hover {
  color: var(--cream);
}

.featured-arrow {
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.featured-card:hover .featured-arrow {
  transform: translate(2px, -2px);
}

/* ===== Contact Form Module ===== */
.contact {
  padding-bottom: 110px;
}

.contact-card-refined {
  border-radius: 40px;
  border: 1px solid rgba(243, 234, 220, 0.14);
  background:
    radial-gradient(circle at 18% 22%, rgba(176, 122, 74, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(32, 27, 24, 0.92), rgba(58, 36, 24, 0.72));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  padding: clamp(32px, 7vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.contact-copy p {
  margin: 0;
  color: rgba(243, 234, 220, 0.72);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.6;
}

.contact-links-refined {
  display: grid;
  gap: 14px;
  min-width: 240px;
  position: relative;
  z-index: 1;
}

.contact-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 0 22px;
  border-radius: 18px;
  background: rgba(243, 234, 220, 0.04);
  border: 1px solid rgba(243, 234, 220, 0.12);
  color: var(--cream);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 255, 240, 0.34);
  background: rgba(243, 234, 220, 0.07);
}

.contact-link-icon {
  color: rgba(243, 234, 220, 0.42);
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

/* ===== Footer ===== */
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: rgba(243, 234, 220, 0.75);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

/* ===== Multi-Page Support ===== */
.about-page, .project-page {
  padding-top: var(--nav-offset) !important;
}

.project-page .project-panel {
  width: auto;
  margin: 0;
}

/* New symmetric Story Row replacing the mismatched 2-column layout */
.about-story-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch; /* Forces equal baseline stretching */
  margin-bottom: 40px;
}

.about-main, .about-photo, .about-summary {
  border-radius: 34px;
  background: rgba(32, 27, 24, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  padding: 28px;
  height: 100%; /* Symmetrical vertical stretching */
}

/* Grid layout for quick detail summary deck */
.about-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.about-lead {
  margin: 0 0 18px;
  font-size: 1.22rem;
  line-height: 1.7;
  color: rgba(243, 234, 220, 0.86);
}

.about-copy {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(243, 234, 220, 0.74);
}

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

.about-side {
  display: grid;
  gap: 20px;
}

.about-photo {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.about-photo img {
  width: 100%;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(243, 234, 220, 0.1);
  margin-bottom: 16px;
}

.about-photo figcaption {
  color: rgba(243, 234, 220, 0.7);
  line-height: 1.6;
  font-size: 0.96rem;
  margin-top: auto; /* Anchors the text symmetrically */
}

.about-photo figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cream);
}

.about-summary h3 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.about-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(243, 234, 220, 0.76);
  line-height: 1.7;
}

.about-list li + li {
  margin-top: 8px;
}

.about-side-copy {
  margin: 0;
  color: rgba(243, 234, 220, 0.74);
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.btn:hover {
  border-color: var(--cyan);
  background-color: rgba(255, 255, 255, 0.05);
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Responsive Adaptability Breakpoints ===== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: var(--nav-offset);
  }

  .hero-visual {
    min-height: 500px;
  }

  .flagship-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flagship-visual {
    height: auto;
    aspect-ratio: 16/10;
  }

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

  .about-story-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card-refined {
    grid-template-columns: 1fr;
  }

  .contact-links-refined {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    padding: 12px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

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

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    top: 10px;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    padding: 14px;
    margin: 10px auto 0;
  }

  .site-nav {
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }

  .nav-link {
    min-height: 34px;
    padding: 0 8px;
  }

  .hero,
  .about-page,
  .project-page {
    padding-top: 36px !important;
  }

  [id] {
    scroll-margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .hero {
    width: min(100% - 24px, 1180px);
  }

  main > section {
    width: min(100% - 24px, 1180px);
    padding: 58px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .featured-head {
    grid-template-columns: 1fr;
  }

  .featured-head-copy {
    justify-self: start;
    margin-top: 10px;
  }

  .floating-note {
    display: none;
  }

  .photo-card {
    transform: none;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }
}

/* ===== UI hierarchy lock-in revisions =====
   Consolidates the homepage hero collage, services hierarchy,
   featured-project contrast, and shared project-page scaffolding. */
:root {
  --nav-offset: 164px;
}

.site-header {
  z-index: 80;
}

[id],
section {
  scroll-margin-top: var(--nav-offset);
}

main > section {
  scroll-margin-top: calc(var(--nav-offset) + 18px);
}

/* Shared chip/tags treatment */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(243, 234, 220, 0.14);
  border-radius: 999px;
  color: rgba(243, 234, 220, 0.72);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: default;
}

/* Hero collage final treatment */
.hero-collage {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  align-items: stretch;
  justify-content: center;
  perspective: 1200px;
  transform: translateY(18px);
}

.collage-card {
  position: absolute;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  border: 1px solid rgba(97, 255, 240, 0.16);
  background: rgba(18, 13, 10, 0.94);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 34px rgba(97, 255, 240, 0.045);
}

.collage-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.13) contrast(1.08) saturate(1.06);
}

.collage-eq {
  width: min(92%, 760px);
  aspect-ratio: 1175 / 650;
  right: 0;
  top: 60px;
  z-index: 1;
}

.collage-chorus {
  width: min(54%, 440px);
  aspect-ratio: 550 / 346;
  right: 7%;
  bottom: 92px;
  z-index: 2;
  transform: rotate(-1.5deg) translateZ(24px);
  border-color: rgba(176, 122, 74, 0.30);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 30px rgba(176, 122, 74, 0.07);
}

.collage-caption {
  position: absolute;
  left: 4%;
  bottom: 78px;
  z-index: 3;
  max-width: 260px;
  padding: 15px 17px;
  border-radius: 18px;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(29, 20, 15, 0.86), rgba(55, 33, 22, 0.82));
  border: 1px solid rgba(243, 234, 220, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.collage-caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.collage-caption span {
  display: block;
  color: rgba(243, 234, 220, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Services: keep the grid calm, but give it hierarchy and separation. */
.services-card {
  background:
    radial-gradient(circle at 16% 10%, rgba(176, 122, 74, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(24, 18, 15, 0.88), rgba(18, 13, 10, 0.9));
  border-color: rgba(243, 234, 220, 0.15);
}

.service-item {
  background: rgba(34, 27, 23, 0.78);
  border-color: rgba(243, 234, 220, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.service-item:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 255, 240, 0.22);
  background: rgba(38, 30, 25, 0.88);
}

.service-item:first-child {
  background:
    radial-gradient(circle at 12% 10%, rgba(97, 255, 240, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(35, 28, 23, 0.96), rgba(26, 20, 17, 0.92));
  border-color: rgba(97, 255, 240, 0.30);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 42px rgba(97, 255, 240, 0.045);
}

.service-item:first-child .service-icon {
  background: rgba(97, 255, 240, 0.16);
  box-shadow: 0 0 18px rgba(97, 255, 240, 0.16);
}

.service-item h3 {
  font-size: 1.05rem;
}

.service-item p {
  color: rgba(243, 234, 220, 0.74);
}

/* Featured Web Audio: add visual direction after the stronger hero collage. */
.flagship-panel {
  background:
    radial-gradient(circle at 22% 12%, rgba(97, 255, 240, 0.055), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(176, 122, 74, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(22, 16, 13, 0.98), rgba(14, 11, 9, 0.98));
  border-color: rgba(176, 122, 74, 0.30);
}

.flagship-visual {
  border-color: rgba(97, 255, 240, 0.18);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(97, 255, 240, 0.045);
}

.flagship-visual img {
  filter: brightness(1.14) contrast(1.08) saturate(1.06);
  object-position: center;
}

.project-tech {
  margin: -10px 0 22px !important;
  color: rgba(97, 255, 240, 0.84) !important;
  font-size: 0.88rem !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.flagship-bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
  padding-top: 0;
}

.bullet-item {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(243, 234, 220, 0.10);
  background: rgba(243, 234, 220, 0.035);
}

.bullet-item strong {
  color: var(--cyan);
  margin-bottom: 6px;
}

/* Project subpages: shared structure moved out of repeated inline CSS. */
.project-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--nav-offset) + 24px) 0 92px !important;
}

.project-page .project-panel {
  width: auto;
  margin: 0;
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
}

.project-hero-copy {
  max-width: 620px;
}

.project-kicker,
.project-panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(97, 255, 240, 0.09);
  border: 1px solid rgba(97, 255, 240, 0.16);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-page h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.project-subtitle {
  margin: 0;
  color: rgba(243, 234, 220, 0.74);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 54ch;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.project-hero-media {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(97, 255, 240, 0.18);
  background: rgba(15, 11, 9, 0.98);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(97, 255, 240, 0.045);
}

.project-hero-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.06) saturate(1.04);
}

#chorus-page .project-kicker,
#chorus-page .project-panel-kicker {
  background: rgba(176, 122, 74, 0.12);
  border-color: rgba(176, 122, 74, 0.28);
  color: #f0b577;
}

#chorus-page .project-hero-media {
  border-color: rgba(176, 122, 74, 0.26);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(176, 122, 74, 0.055);
}

.project-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.project-main,
.project-side {
  display: grid;
  gap: 18px;
}

.project-panel {
  border: 1px solid rgba(243, 234, 220, 0.13);
  border-radius: 28px;
  background: rgba(28, 22, 18, 0.82);
  padding: 26px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.project-main > .project-panel:first-child {
  background:
    radial-gradient(circle at 10% 0%, rgba(97, 255, 240, 0.045), transparent 32%),
    rgba(30, 23, 19, 0.88);
  border-color: rgba(97, 255, 240, 0.18);
}

.project-panel h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.project-panel p {
  margin: 0 0 16px;
  color: rgba(243, 234, 220, 0.72);
  line-height: 1.68;
  font-size: 1rem;
}

.project-panel p:last-child {
  margin-bottom: 0;
}

.project-feature-list,
.project-meta-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(243, 234, 220, 0.78);
  line-height: 1.66;
}

.project-meta-list {
  line-height: 1.55;
}

.project-feature-list li + li,
.project-meta-list li + li {
  margin-top: 8px;
}

.project-related-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.project-related-links a {
  color: var(--cyan);
  font-weight: 800;
}

#chorus-page .project-related-links a {
  color: #f0b577;
}

.project-related-links a:hover {
  color: var(--cream);
}

/* Contact links should feel like next actions, not just a menu. */
.contact-link-card:first-child {
  border-color: rgba(97, 255, 240, 0.18);
  background: rgba(97, 255, 240, 0.045);
}

@media (max-width: 960px) {
  :root {
    --nav-offset: 148px;
  }

  .hero-collage {
    width: min(100%, 720px);
    min-height: 520px;
    margin-inline: auto;
    transform: none;
  }

  .collage-eq {
    width: 100%;
    top: 20px;
    right: 0;
  }

  .collage-chorus {
    width: min(60%, 420px);
    right: 5%;
    bottom: 72px;
  }

  .collage-caption {
    left: 4%;
    bottom: 46px;
  }

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

@media (max-width: 760px) {
  .flagship-bullets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero-collage {
    display: grid;
    grid-template-rows: auto auto;
    width: 100%;
    min-height: 0;
    margin-top: 1.6rem;
    overflow: visible;
  }

  .hero-collage::before {
    content: "";
    display: block;
    grid-row: 1;
    aspect-ratio: 1 / 0.68;
  }

  .collage-card {
    border-radius: 22px;
  }

  .collage-eq {
    width: 100%;
    left: 0;
    right: auto;
    top: 0;
  }

  .collage-chorus {
    width: 70%;
    right: 3%;
    top: 38%;
    bottom: auto;
    transform: rotate(-1deg);
  }

  .collage-caption {
    position: relative;
    grid-row: 2;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
    padding: 14px 16px;
    border-radius: 18px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-offset: 24px;
  }

  .project-page {
    padding: 42px 0 62px !important;
  }
}

@media (max-width: 620px) {
  .project-page {
    width: min(100% - 24px, 1180px);
    padding: 42px 0 62px !important;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero-collage::before {
    aspect-ratio: 1 / 0.78;
  }

  .collage-chorus {
    width: 73%;
    top: 42%;
  }
}

/* ===== Final colour-system lock-in: cream/wheat/cyan hierarchy =====
   Cream = important headings and action text
   Wheat = readable labels, badges, pills, tags, secondary emphasis
   Warm muted cream = body copy
   Cyan = small technical/interactive signals only
*/
:root {
  --cream: #f4eadc;
  --paper: #efe6d7;
  --text-body: rgba(239, 230, 215, 0.78);
  --text-body-strong: rgba(239, 230, 215, 0.84);
  --text-muted: rgba(239, 230, 215, 0.62);
  --wheat: #e7c891;
  --wheat-strong: #f0d7aa;
  --wheat-amber: #e7a96b;
  --cyan: #51e6dc;
  --cyan-soft: rgba(81, 230, 220, 0.08);
}

/* Shared text hierarchy */
.lead,
.services-intro,
.featured-head-copy,
.flagship-copy p,
.project-subtitle,
.project-panel p,
.project-feature-list,
.project-meta-list,
.about-copy,
.about-list,
.about-side-copy,
.contact-copy p,
.featured-card p {
  color: var(--text-body);
}

.hero h1,
.flagship-header h2,
.flagship-copy h3,
.featured-head-left h2,
.featured-card h3,
.services-card h2,
.service-item h3,
.project-page h1,
.project-panel h2,
.about-lead,
.contact-copy h2 {
  color: var(--cream);
}

/* Section labels: wheat text, cyan only as dot/signal */
.section-label,
.card-eyebrow,
.service-kicker,
.services-kicker {
  color: var(--wheat-amber);
}

.section-label::after {
  background: linear-gradient(90deg, rgba(231, 200, 145, 0.78), rgba(81, 230, 220, 0.75));
}

.section-label::before,
.eyebrow-row .dot,
.pulse,
.nav-link.is-active::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(81, 230, 220, 0.42);
}

/* Homepage hero collage: let baked-in image glow do most of the work */
.collage-card {
  border-color: rgba(81, 230, 220, 0.14);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 30px rgba(81, 230, 220, 0.038);
}

.collage-chorus {
  border-color: rgba(176, 122, 74, 0.28);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(176, 122, 74, 0.055);
}

/* Services & capabilities */
.services-intro {
  color: var(--text-body);
}

.service-icon {
  color: var(--cyan);
  background: rgba(81, 230, 220, 0.08);
  box-shadow: 0 0 18px rgba(81, 230, 220, 0.08);
}

.service-item {
  border-color: rgba(239, 230, 215, 0.12);
  background: rgba(34, 27, 23, 0.78);
}

.service-item:hover {
  border-color: rgba(231, 200, 145, 0.24);
  background: rgba(38, 30, 25, 0.88);
}

.service-item:first-child {
  border-color: rgba(81, 230, 220, 0.22);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(81, 230, 220, 0.035);
}

.service-item p {
  color: rgba(239, 230, 215, 0.74);
}

.tags span,
.featured-tag {
  color: var(--wheat);
  border-color: rgba(231, 200, 145, 0.18);
  background: rgba(231, 200, 145, 0.045);
}

/* Featured Web Audio project: wheat for readable labels, cyan for small signals */
.flagship-tag,
.project-tech,
.bullet-item strong {
  color: var(--wheat) !important;
}

.flagship-tag {
  background: rgba(231, 200, 145, 0.07);
  border-color: rgba(231, 200, 145, 0.20);
}

.project-tech {
  color: var(--wheat) !important;
}

.bullet-item {
  border-color: rgba(239, 230, 215, 0.11);
  background: rgba(244, 234, 220, 0.035);
}

.flagship-visual {
  border-color: rgba(81, 230, 220, 0.16);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(81, 230, 220, 0.038);
}

/* Project grid */
.featured-head-copy,
.featured-card p {
  color: rgba(239, 230, 215, 0.76);
}

.featured-link {
  color: var(--wheat-strong);
}

.featured-arrow,
.featured-card:hover .featured-arrow {
  color: var(--cyan);
}

.featured-card:hover {
  border-color: rgba(231, 200, 145, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

/* Project subpages: shared cream/wheat/cyan system */
.project-kicker,
.project-panel-kicker {
  color: var(--wheat);
  background: rgba(231, 200, 145, 0.07);
  border: 1px solid rgba(231, 200, 145, 0.22);
}

#chorus-page .project-kicker,
#chorus-page .project-panel-kicker,
#graphic-eq-page .project-kicker,
#graphic-eq-page .project-panel-kicker,
#interval-trainer-page .project-kicker,
#interval-trainer-page .project-panel-kicker {
  color: var(--wheat);
  background: rgba(231, 200, 145, 0.07);
  border-color: rgba(231, 200, 145, 0.22);
}

.project-panel {
  border-color: rgba(239, 230, 215, 0.13);
}

.project-main > .project-panel:first-child {
  border-color: rgba(81, 230, 220, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(81, 230, 220, 0.038), transparent 32%),
    rgba(30, 23, 19, 0.88);
}

.project-hero-media {
  border-color: rgba(81, 230, 220, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(81, 230, 220, 0.04);
}

#chorus-page .project-hero-media {
  border-color: rgba(176, 122, 74, 0.26);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(176, 122, 74, 0.055);
}

.project-related-links a {
  color: var(--wheat-strong);
}

.project-related-links a:hover {
  color: var(--cream);
}

/* About page typography */
.about-lead {
  color: rgba(244, 234, 220, 0.96);
}

.about-copy,
.about-list,
.about-side-copy {
  color: rgba(239, 230, 215, 0.80);
}

.about-summary h3,
.about-photo figcaption strong {
  color: var(--wheat);
}

.about-photo figcaption {
  color: rgba(239, 230, 215, 0.74);
}

/* Contact CTA */
.contact-copy p {
  color: rgba(239, 230, 215, 0.76);
}

.contact-link-card {
  color: var(--cream);
  border-color: rgba(239, 230, 215, 0.12);
  background: rgba(244, 234, 220, 0.035);
}

.contact-link-card:first-child {
  border-color: rgba(239, 230, 215, 0.12);
  background: rgba(244, 234, 220, 0.035);
}

.contact-link-card:hover {
  border-color: rgba(81, 230, 220, 0.22);
  background: rgba(81, 230, 220, 0.045);
  box-shadow: 0 0 24px rgba(81, 230, 220, 0.045);
}

.contact-link-icon {
  color: rgba(239, 230, 215, 0.48);
  font-size: 1rem;
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.contact-link-card:hover .contact-link-icon {
  color: var(--cyan);
}

footer {
  color: rgba(239, 230, 215, 0.62);
}



/******************************  additional styling*************************************************/

.project-cta {
  margin-top: 5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 760px;
}
/* FINAL HANDOFF IMAGE FRAME FIX */
.project-hero-media {
  aspect-ratio: 1672 / 941;
  min-height: 0;
  height: auto;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #070b0c;
}

.featured-visual,
.flagship-visual {
  aspect-ratio: 1672 / 941;
  height: auto;
}

.featured-visual img,
.flagship-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #070b0c;
}


/* ===== Final handoff responsive/accessibility polish ===== */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  transform: translateY(-180%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cream);
  color: #08090a;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nav-link[aria-current="page"] {
  border-color: rgba(97, 255, 240, 0.34);
  background: rgba(97, 255, 240, 0.07);
  color: var(--cream);
}

@media (max-width: 760px) {
  .hero h1,
  .section-head h1,
  .project-hero h1 {
    overflow-wrap: balance;
  }

  .project-hero-copy,
  .project-copy,
  .project-card,
  .flagship-panel,
  .service-card,
  .about-card,
  .contact-card-refined {
    min-width: 0;
  }

  .project-media img,
  .featured-card img,
  .about-image img,
  .collage-card img {
    height: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
    line-height: 0.96;
  }

  .hero-copy p,
  .project-subtitle,
  .section-head p,
  .featured-head-copy,
  .service-card p,
  .project-card p {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .hero-collage::before {
    aspect-ratio: 1 / 0.86;
  }

  .collage-chorus {
    width: 76%;
    top: 43%;
  }

  .collage-caption {
    font-size: 0.86rem;
  }

  .flagship-panel,
  .project-card,
  .service-card,
  .contact-card-refined,
  .about-card {
    border-radius: 22px;
  }
}

@media (max-width: 390px) {
  .site-header {
    width: min(100% - 16px, 1180px);
    padding-inline: 10px;
  }

  .site-nav {
    gap: 6px;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero,
  main > section,
  .project-page,
  .about-page,
  .privacy-page {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.12rem, 12vw, 3.1rem);
  }

  .button {
    min-width: 0;
    width: 100%;
  }
}
