:root {
  --bg: #090b0e;
  --bg-elevated: #12161c;
  --bg-panel: rgba(18, 22, 28, 0.72);
  --surface: #171c23;
  --surface-strong: #202733;
  --border: rgba(191, 204, 219, 0.12);
  --border-strong: rgba(191, 204, 219, 0.24);
  --text-primary: #edf0f3;
  --text-secondary: #a4afb9;
  --text-muted: #75808c;
  --accent: #7c91a8;
  --accent-soft: rgba(124, 145, 168, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1400px;
  --gutter: clamp(1.2rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 145, 168, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(90, 105, 120, 0.12), transparent 20%),
    linear-gradient(180deg, #08090c 0%, #090b0e 35%, #0a0d12 100%);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 100%);
  opacity: 0.42;
}

body::after {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 25%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-frame {
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem var(--gutter);
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(9, 11, 14, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-primary);
}

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

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.section-shell,
.site-footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
}

.hero {
  padding-top: clamp(2rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
.quote {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-weight: 600;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 7.6rem);
}

h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-statement {
  max-width: 44rem;
  margin-top: 1.75rem;
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, rgba(125, 146, 168, 0.28), rgba(125, 146, 168, 0.12));
  border-color: rgba(125, 146, 168, 0.38);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel,
.positioning-points article,
.reason-card,
.contact-form,
.about-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 29, 36, 0.72), rgba(12, 15, 19, 0.82));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.hero-panel-inner {
  display: grid;
  gap: 2rem;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    radial-gradient(circle at top, rgba(124, 145, 168, 0.18), transparent 50%);
}

.compass-mark {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.compass-ring,
.compass-line,
.compass-core {
  position: absolute;
  inset: 0;
  margin: auto;
}

.compass-ring {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.compass-line {
  background: linear-gradient(180deg, transparent, rgba(237, 240, 243, 0.42), transparent);
}

.compass-line-x {
  width: 1px;
  height: 100%;
}

.compass-line-y {
  width: 100%;
  height: 1px;
}

.compass-core {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(124, 145, 168, 0.18);
  box-shadow: 0 0 40px rgba(124, 145, 168, 0.4);
}

.panel-copy {
  display: grid;
  gap: 1rem;
}

.panel-copy ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-primary);
}

.panel-copy li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-copy li::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-grid-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.section-shell {
  padding-block: clamp(3.75rem, 8vw, 7rem);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  max-width: 62rem;
}

.positioning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.positioning-lead {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--text-primary);
  line-height: 1.6;
}

.positioning-points {
  display: grid;
  gap: 1rem;
}

.positioning-points article {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
}

.positioning-points h3,
.reason-card h3,
.service-band-copy h2,
.process-step-copy h2,
.contact-copy h2,
.about-copy h2 {
  margin-bottom: 0.75rem;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--border);
}

.project-feature:last-child {
  border-bottom: 1px solid var(--border);
}

.project-feature-reverse {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.05fr);
}

.project-feature-reverse .project-visual {
  order: 2;
}

.project-feature-reverse .project-copy {
  order: 1;
}

.project-visual {
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.project-visual img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
}

.project-offset-top {
  transform: translateY(-0.9rem);
}

.project-wide img {
  min-height: 420px;
}

.project-tall img {
  min-height: 500px;
}

.project-copy {
  display: grid;
  gap: 1rem;
}

.project-meta {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  color: var(--text-primary);
}

.text-link::after {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: translateX(6px);
}

.transformation-list,
.service-rail,
.process-detail {
  display: grid;
  gap: 1rem;
}

.transformation-item,
.service-band,
.process-step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}

.transformation-item:last-child,
.service-band:last-child,
.process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.transformation-index,
.service-band-meta,
.process-step-number {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.process-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
}

.path-line {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 145, 168, 0.18), rgba(124, 145, 168, 0.6), rgba(124, 145, 168, 0.18));
}

.process-path article {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 0 1rem 0 0;
}

.process-path article::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0e1217;
  box-shadow: 0 0 0 8px rgba(124, 145, 168, 0.08);
}

.process-path span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.reasons-grid,
.case-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reason-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.closing-cta {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.closing-cta h2 {
  max-width: 14ch;
}

.interior-main {
  padding-top: 1rem;
}

.page-intro {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.page-intro h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 8vw, 6rem);
  margin-bottom: 1.25rem;
}

.page-intro p:last-child {
  max-width: 48rem;
  font-size: 1.12rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  position: relative;
  display: grid;
  min-height: 420px;
  grid-column: span 5;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.work-card-large {
  grid-column: span 7;
  min-height: 520px;
}

.work-card-tall {
  min-height: 560px;
}

.work-card img {
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
}

.work-card-copy {
  position: absolute;
  inset: auto 1.6rem 1.6rem 1.6rem;
  display: grid;
  gap: 0.45rem;
}

.work-card-copy p {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.work-card-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.contact-layout,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact-details span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--text-primary);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius-xl);
}

.contact-form label {
  display: grid;
  gap: 0.6rem;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(124, 145, 168, 0.35);
  border-color: rgba(124, 145, 168, 0.35);
}

.about-panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
}

.quote {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--text-primary);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-footer {
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-content: start;
}

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

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

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

  .reveal,
  .button,
  .work-card,
  .text-link::after,
  .site-header,
  .menu-toggle span {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .project-feature-reverse .project-visual,
  .project-feature-reverse .project-copy {
    order: initial;
  }

  .work-card,
  .work-card-large,
  .work-card-tall {
    grid-column: span 6;
  }

  .process-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .path-line {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-frame {
    inset: 10px;
    border-radius: 20px;
  }

  .site-header {
    padding: 1rem var(--gutter);
  }

  .brand {
    font-size: 0.86rem;
    letter-spacing: 0.14em;
  }

  .menu-toggle {
    display: inline-block;
    position: relative;
    z-index: 3;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(11, 14, 18, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.7rem 0.25rem;
    font-size: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.7rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.95rem, 9vw, 2.75rem);
    line-height: 0.98;
  }

  h3 {
    font-size: clamp(1.4rem, 6.8vw, 1.85rem);
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-copy,
  .section-shell,
  .page-intro {
    padding-block: clamp(2.6rem, 10vw, 4rem);
  }

  .hero-statement,
  .page-intro p:last-child,
  .positioning-lead {
    font-size: 1rem;
  }

  .page-intro h1,
  .closing-cta h2,
  .work-card-copy h2 {
    max-width: 100%;
  }

  .page-intro h1 {
    font-size: clamp(2.3rem, 10.8vw, 3.3rem);
  }

  .quote {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }

  .hero-grid-note,
  .reasons-grid,
  .case-notes-grid,
  .process-path {
    grid-template-columns: 1fr;
  }

  .transformation-item,
  .service-band,
  .process-step {
    grid-template-columns: 1fr;
  }

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

  .work-card,
  .work-card-large,
  .work-card-tall {
    grid-column: auto;
    min-height: 400px;
  }

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