:root {
  --bg: #050608;
  --bg-soft: #0a0d10;
  --panel: #12161a;
  --panel-2: #171d22;
  --text: #f4f2ec;
  --muted: #b7b8ba;
  --faint: #7d858e;
  --gold: #cd9450;
  --gold-light: #efc27a;
  --forest: #365748;
  --blue: #35536c;
  --line: rgba(239, 194, 122, 0.16);
  --line-strong: rgba(239, 194, 122, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font-body: "Segoe UI", "Trebuchet MS", sans-serif;
  --font-heading: "Bahnschrift", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(205, 148, 80, 0.13), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(53, 83, 108, 0.14), transparent 22rem),
    radial-gradient(circle at 15% 88%, rgba(54, 87, 72, 0.12), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 7rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  font-size: 1.3rem;
}

code {
  color: var(--gold-light);
}

.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-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.86);
  border-color: rgba(239, 194, 122, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  text-transform: uppercase;
}

.brand strong {
  font-size: 0.94rem;
  letter-spacing: 0.18em;
}

.brand small {
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  margin-top: 0.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(244, 242, 236, 0.82);
  font-size: 0.81rem;
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
  color: #120d05;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-weight: 700;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  color: #120d05;
  background: linear-gradient(135deg, #ffe0a0, var(--gold));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 9rem clamp(1rem, 5vw, 4rem) 4rem;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(4, 5, 7, 0.02), rgba(4, 5, 7, 0.9));
}

.hero-content,
.hero-card,
.cta-section div {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: var(--max);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  max-width: 710px;
  margin-top: 1.3rem;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.button-row,
.section-heading.split,
.cta-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-row {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #120d05;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button.ghost.dark {
  background: rgba(255, 255, 255, 0.04);
}

.hero-card {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 4rem;
  width: min(360px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 8px;
}

.hero-card span,
.card-label,
.work-card span,
.case-study span {
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-card strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.3;
}

.section,
.page-hero,
.cta-line,
.cta-section {
  max-width: var(--max);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.page-hero {
  min-height: 62vh;
  display: grid;
  align-content: end;
  gap: 0.8rem;
  padding: 10rem clamp(1rem, 4vw, 2rem) 4rem;
}

.page-hero.compact {
  min-height: 54vh;
}

.about-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
}

.about-hero img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.intro-grid,
.story-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid article,
.service-card,
.info-card,
.journal-card,
.price-card,
.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.stat-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.stat-grid strong,
.card-number,
.service-list > article > span,
.timeline span {
  color: var(--gold-light);
  font-weight: 700;
}

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

.section-heading h2 {
  max-width: 880px;
}

.section-heading.split {
  justify-content: space-between;
  align-items: end;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.auto-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.info-card,
.journal-card,
.price-card,
.link-card {
  padding: 1.35rem;
}

.service-card h3,
.info-card h3,
.journal-card h3,
.link-card h3,
.price-card h3 {
  margin-top: 0.9rem;
}

.service-card p,
.info-card p,
.journal-card p,
.link-card p,
.price-card p,
.work-card p,
.case-study p {
  margin-top: 0.8rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(4rem, 7vw, 5.4rem) clamp(1rem, 5vw, 4rem);
  background:
    linear-gradient(140deg, rgba(53, 83, 108, 0.18), rgba(205, 148, 80, 0.1)),
    var(--panel);
  border-block: 1px solid var(--line);
}

.feature-band > * {
  max-width: 680px;
}

.chapter-band {
  align-items: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.work-card,
.case-study {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.work-card div {
  padding: 1.2rem;
}

.case-study.large {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 1rem;
}

.case-study img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.case-study div {
  align-self: end;
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-list > article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.service-list h2 {
  font-size: clamp(1.55rem, 3vw, 2.75rem);
}

.service-list p {
  margin-top: 0.8rem;
}

.service-list ul,
.contact-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cta-section {
  position: relative;
  min-height: 400px;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: clamp(4rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cta-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36));
}

.cta-section div {
  max-width: 650px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.cta-section p:not(.eyebrow) {
  margin: 1rem 0 1.4rem;
}

.cta-line {
  justify-content: space-between;
  padding: 1.3rem clamp(1rem, 4vw, 2rem);
  margin-bottom: 5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(54, 87, 72, 0.12));
}

.cta-line h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.link-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.link-list a {
  color: var(--gold-light);
  font-weight: 700;
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(239, 194, 122, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
}

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.contact-card div {
  padding: 1.3rem;
}

.contact-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.contact-card a {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: #040506;
}

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

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

.site-footer a {
  color: rgba(244, 242, 236, 0.8);
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(2.7rem, 11vw, 5.4rem);
  }

  .hero {
    min-height: 920px;
    align-items: center;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px;
    margin: 2rem auto 0;
  }

  .intro-grid,
  .story-grid,
  .contact-layout,
  .feature-band,
  .about-hero,
  .case-study.large {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(18px);
  }

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

  .site-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: 860px;
    padding-top: 8rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.55)),
      linear-gradient(180deg, rgba(4, 5, 7, 0.02), rgba(4, 5, 7, 0.92));
  }

  .hero-card {
    max-width: 100%;
    grid-template-columns: 64px 1fr;
    gap: 0.8rem;
  }

  .hero-card span {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .hero-card strong {
    font-size: 0.95rem;
  }

  .service-list > article,
  .stat-grid article {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .stat-grid article {
    display: grid;
  }

  .page-hero {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 2.8rem;
  }

  .button-row,
  .section-heading.split,
  .cta-line {
    align-items: flex-start;
  }
}
