:root {
  --bg: #08162f;
  --bg-soft: #10264d;
  --bg-contrast: #0c1d3d;
  --surface: #f4f2ec;
  --surface-soft: #ece8de;
  --panel: rgba(9, 23, 49, 0.86);
  --panel-solid: #16325e;
  --line: rgba(12, 28, 58, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #09152b;
  --text-inverse: #f3f6fb;
  --muted: #445268;
  --muted-inverse: #d2d9e5;
  --accent: #d7d9de;
  --accent-dark: #0b1731;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
  --shell-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, var(--surface) 0 68%, #10264d 68% 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.58), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
}

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

.topbar {
  position: relative;
  z-index: 20;
  padding: 18px 0 0;
}

.topbar-inner,
.hero,
.section {
  width: var(--shell-width);
  margin: 0 auto;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 78px;
  padding: 0 0.5rem;
}

.brand,
.nav a,
.topbar-cta {
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(124px, 16vw, 180px);
  border-radius: 22px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #30415b;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(9, 21, 43, 0.05);
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.topbar-cta {
  min-width: 144px;
  padding: 0.95rem 1.2rem;
  background: #d9cfbf;
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}

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

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

main {
  padding: 1.4rem 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(380px, 1.16fr);
  align-items: stretch;
  min-height: calc(100svh - 120px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  padding: clamp(1.8rem, 3.2vw, 3rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent), var(--surface);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: #5a6880;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
}

h1 {
  max-width: 7.2ch;
  font-size: clamp(1.95rem, 3.85vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-text,
.service-item p,
.showcase-copy p,
.showcase-side p,
.about-copy p,
.about-point span,
.contact-list span {
  line-height: 1.72;
}

.hero-text {
  max-width: 30rem;
  margin: 1.4rem 0 0;
  color: #39485d;
  font-size: 1rem;
}

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

.button {
  min-width: 180px;
  padding: 1rem 1.35rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}

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

.button-primary {
  background: #10264d;
  color: #f3f6fb;
}

.button-secondary {
  color: #f3f6fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-ghost {
  color: #11284d;
  background: rgba(17, 40, 77, 0.08);
  border: 1px solid rgba(17, 40, 77, 0.14);
}

.hero-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2.3rem;
  color: #49586e;
  font-family: "Chakra Petch", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.hero-notes div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(9, 21, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-notes strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #10264d;
}

.hero-notes p {
  margin: 0;
  color: #4e5d72;
  line-height: 1.65;
}

.hero-panel {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(8, 22, 47, 0.38), rgba(8, 22, 47, 0.18)),
    linear-gradient(180deg, #14325f 0%, #0b1731 100%);
}

.hero-badge {
  justify-self: start;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-inverse);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 440px;
}

.hero-visual-copy {
  position: absolute;
  top: 0.75rem;
  left: 0;
  z-index: 2;
  max-width: 280px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(244, 242, 236, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.hero-kicker,
.hero-card span,
.service-index,
.placeholder span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-family: "Chakra Petch", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.hero-image-placeholder {
  position: relative;
  min-height: 100%;
  margin-top: 1.8rem;
  margin-left: 2.2rem;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(180deg, #d7ddd6 0%, #a8b7be 46%, #7f97a7 100%);
}

.hero-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 22, 47, 0.24), rgba(7, 22, 47, 0.05)),
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.45), transparent 20%);
}

.hero-image-placeholder span {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  color: var(--text-inverse);
}

.hero-image {
  display: block;
  width: calc(100% - 2.2rem);
  height: 100%;
  min-height: 440px;
  margin-top: 1.8rem;
  margin-left: 2.2rem;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

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

.hero-card,
.service-item,
.showcase-main,
.showcase-side,
.about-points,
.contact-panel {
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
}

.hero-card strong,
.service-item h3,
.showcase-copy h3,
.about-point strong,
.contact-list strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.06rem;
}

.hero-card p {
  margin: 0;
  color: #dbe2ec;
  line-height: 1.6;
}

.section {
  padding-top: 4.4rem;
  padding-bottom: 1rem;
}

.section:last-child {
  padding-bottom: 4.5rem;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-actions {
  margin-top: 1.4rem;
}

.section-heading h2,
.about-copy h2,
.contact-panel h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--text-inverse);
}

.section-heading .eyebrow,
.about-copy .eyebrow,
.contact-panel .eyebrow {
  color: #c7d0dd;
}

.section-heading p:last-child,
.about-copy p,
.about-point span,
.contact-list span,
.showcase-copy p,
.showcase-side p,
.service-item p {
  color: #d6dde8;
}

.section-services,
.section-showcase,
.section-about,
.section-contact {
  color: var(--text-inverse);
}

.section-services {
  color: var(--text);
}

.section-services .section-heading h2 {
  color: #10264d;
}

.section-services .section-heading .eyebrow {
  color: #69778d;
}

.section-services .service-item {
  background: linear-gradient(180deg, #243a5d 0%, #1a2c4a 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-services .service-item h3 {
  color: #f3f6fb;
}

.section-services .service-item p,
.section-services .service-index {
  color: #d7deea;
}

.section-showcase .section-heading h2 {
  color: #11284d;
}

.section-showcase .section-heading .eyebrow {
  color: #738199;
}

.showcase-copy h3,
.about-point strong,
.contact-list strong,
.about-copy h2,
.contact-panel h2 {
  color: #f6f8fb;
}

.hero-kicker {
  color: #56667c;
}

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

.service-item,
.showcase-main,
.showcase-side,
.about-points,
.contact-panel {
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: rgba(9, 23, 49, 0.82);
}

.service-item {
  padding: 1.5rem;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 1rem;
}

.showcase-main,
.showcase-side {
  padding: 1rem;
}

.showcase-rail {
  display: grid;
  gap: 1rem;
}

.placeholder {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(12, 31, 64, 0.72), rgba(5, 10, 20, 0.82));
}

.placeholder-large {
  min-height: 420px;
}

.placeholder span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  color: var(--text-inverse);
}

.showcase-copy {
  padding-top: 1rem;
}

.showcase-image {
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 18px;
  object-fit: cover;
}

.showcase-image-large {
  height: 460px;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: rgba(9, 23, 49, 0.82);
  box-shadow: var(--shadow);
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-card div {
  padding: 1rem 1rem 1.15rem;
}

.portfolio-card span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: #c7d0dd;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portfolio-card strong {
  display: block;
  color: #f6f8fb;
  font-size: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 1rem;
}

.section-about .about-copy h2 {
  color: #11284d;
}

.section-about .about-copy .eyebrow {
  color: #738199;
}

.section-about .about-copy p {
  color: #526176;
}

.about-points {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.about-point {
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.about-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(9, 23, 49, 0.9);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-list div {
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
  margin-bottom: 1.8rem;
}

.contact-list strong a {
  color: inherit;
  text-decoration: none;
}

.contact-list strong a:hover,
.contact-list strong a:focus-visible {
  text-decoration: underline;
}

.gallery-page .page-shell {
  padding-bottom: 4rem;
}

.gallery-hero,
.gallery-section {
  width: var(--shell-width);
  margin: 0 auto;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.4rem;
}

.gallery-hero-copy,
.gallery-hero-visual,
.gallery-section {
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-hero-copy {
  padding: 2rem;
  background: rgba(9, 23, 49, 0.9);
  color: var(--text-inverse);
}

.gallery-hero-copy h1 {
  max-width: none;
  color: #f6f8fb;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
}

.gallery-hero-copy p {
  color: #d6dde8;
  line-height: 1.75;
}

.gallery-hero .button-secondary {
  color: #f3f6fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.gallery-hero-visual {
  min-height: 460px;
  background: rgba(9, 23, 49, 0.86);
}

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

.gallery-section {
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(9, 23, 49, 0.86);
}

.gallery-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.gallery-section-header h2 {
  color: #f6f8fb;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.gallery-section-header p {
  max-width: 34rem;
  margin: 0.5rem 0 0;
  color: #d6dde8;
  line-height: 1.7;
}

.gallery-count {
  color: #c7d0dd;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.gallery-masonry {
  columns: 3 280px;
  column-gap: 1rem;
}

.gallery-card {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-card figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  color: #d6dde8;
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 1040px) {
  body {
    background:
      linear-gradient(180deg, var(--surface) 0 56%, #10264d 56% 100%);
  }

  .hero,
  .service-columns,
  .showcase-layout,
  .about-layout,
  .contact-list,
  .portfolio-strip,
  .hero-notes {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

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

  .hero-image {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    grid-template-columns: auto auto auto;
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(244, 242, 236, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

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

  .nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(9, 21, 43, 0.04);
  }

  .topbar-cta {
    display: none;
  }

  .gallery-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --shell-width: min(100vw - 20px, 1180px);
  }

  main {
    padding-top: 1rem;
  }

  .hero {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-panel {
    padding: 1.4rem;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-image-placeholder {
    margin-left: 0;
    min-height: 320px;
  }

  .hero-image {
    min-height: 320px;
    margin-left: 0;
  }

  .hero-visual-copy {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    margin-bottom: 1rem;
  }

  .hero-grid {
    display: grid;
  }

  .placeholder-large {
    min-height: 300px;
  }

  .showcase-image-large {
    height: 320px;
  }
}
