@font-face {
  font-family: "Marcellus";
  src: url("assets/fonts/marcellus-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("assets/fonts/josefin-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("assets/fonts/josefin-sans-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("assets/fonts/josefin-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("assets/fonts/josefin-sans-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1a18;
  --surface-3: #101826;
  --ink: #f2f0e4;
  --muted: #b8b2a2;
  --muted-2: #888888;
  --gold: #d4af37;
  --gold-bright: #f2e8c4;
  --blue: #1e3d59;
  --line: rgba(212, 175, 55, 0.36);
  --line-soft: rgba(212, 175, 55, 0.18);
  --glow: rgba(212, 175, 55, 0.24);
  --error: #ff9a8d;
  --success: #f2e8c4;
  --max: 1180px;
  --header-h: 72px;
  --cut: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 74% 12%, rgba(212, 175, 55, 0.14), transparent 28rem),
    radial-gradient(circle at 20% 2%, rgba(30, 61, 89, 0.55), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.045) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.032) 0 1px, transparent 1px 22px);
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.07), transparent),
    linear-gradient(0deg, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.82));
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 7px;
  left: clamp(1rem, 4vw, 3rem);
  height: 1px;
  background: var(--line-soft);
  content: "";
}

.brand,
.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(10.75rem, 16vw, 13.5rem);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.12));
}

.site-nav {
  position: relative;
  z-index: 1;
  gap: clamp(1rem, 2.8vw, 2.1rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  transition:
    color 260ms ease,
    text-shadow 260ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--glow);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-action {
  color: var(--gold);
}

.menu-button {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 44px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--gold-bright);
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero,
.section,
.scope-strip,
.site-footer {
  width: min(var(--max), calc(100% - clamp(2rem, 7vw, 6rem)));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(760px, calc(100dvh - var(--header-h) - 84px));
  padding: clamp(3.4rem, 6vw, 5.5rem) 0;
}

.hero::before {
  position: absolute;
  top: 4rem;
  right: min(3vw, 2rem);
  width: min(44vw, 31rem);
  aspect-ratio: 1;
  background:
    conic-gradient(from 180deg, transparent 0 8deg, rgba(212, 175, 55, 0.18) 8deg 10deg, transparent 10deg 18deg),
    radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 64%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  opacity: 0.48;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(0rem, 2vw, 1.2rem);
}

.hero-copy::before {
  position: absolute;
  top: 0.2rem;
  bottom: 0.4rem;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--gold), transparent);
  content: "";
}

.kicker {
  width: fit-content;
  margin: 0 0 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.section h2,
.service-card h3,
.start-grid h3 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: clamp(3.25rem, 6.4vw, 5.9rem);
  line-height: 0.97;
}

.lead {
  max-width: 39rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.18rem;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    color 320ms ease,
    transform 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 48%, #9a781e);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
  color: #0a0a0a;
}

.button-primary:hover {
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.38);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.72);
  color: var(--gold-bright);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: rgba(30, 61, 89, 0.72);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.16);
}

.deco-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--gold);
  background: var(--surface);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.14);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.deco-frame::before,
.deco-frame::after,
.service-card::before,
.service-card::after,
.contact-card::before,
.contact-card::after {
  position: absolute;
  width: 2.35rem;
  height: 2.35rem;
  content: "";
  pointer-events: none;
}

.deco-frame::before,
.service-card::before,
.contact-card::before {
  top: 0.55rem;
  left: 0.55rem;
  border-top: 1px solid var(--gold-bright);
  border-left: 1px solid var(--gold-bright);
}

.deco-frame::after,
.service-card::after,
.contact-card::after {
  right: 0.55rem;
  bottom: 0.55rem;
  border-right: 1px solid var(--gold-bright);
  border-bottom: 1px solid var(--gold-bright);
}

.hero-image {
  z-index: 1;
  aspect-ratio: 5 / 4;
  padding: 0.65rem;
}

.hero-image img,
.outputs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.88) sepia(0.38) saturate(0.9) contrast(1.1) brightness(0.82);
  transition:
    filter 500ms ease,
    transform 500ms ease;
}

.hero-image:hover img,
.outputs figure:hover img {
  filter: grayscale(0.55) sepia(0.45) saturate(1.02) contrast(1.08) brightness(0.92);
  transform: scale(1.035);
}

.hero-image img {
  clip-path: polygon(
    0.45rem 0,
    calc(100% - 0.45rem) 0,
    100% 0.45rem,
    100% calc(100% - 0.45rem),
    calc(100% - 0.45rem) 100%,
    0.45rem 100%,
    0 calc(100% - 0.45rem),
    0 0.45rem
  );
}

.scope-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.64);
}

.scope-strip p {
  min-height: 112px;
  margin: 0;
  padding: 1.1rem;
  border-right: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 600;
}

.scope-strip p:last-child {
  border-right: 0;
}

.scope-strip span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.25rem;
}

.section {
  position: relative;
  padding: clamp(4.75rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(12rem, 32vw);
  height: 1px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
}

.section-copy {
  max-width: 49rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2.5rem, 4.9vw, 4.7rem);
  line-height: 1.02;
}

.section-copy p,
.outputs-copy > p,
.contact-copy p {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.14rem);
}

.service-list {
  display: grid;
  grid-auto-rows: minmax(17rem, auto);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.07), transparent 38%),
    var(--surface);
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  overflow: hidden;
  transition:
    border-color 420ms ease,
    box-shadow 420ms ease,
    transform 420ms ease;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.18);
  transform: translateY(-0.35rem);
}

.service-card-featured {
  grid-column: span 7;
  min-height: 17rem;
  background:
    radial-gradient(circle at 70% 18%, rgba(212, 175, 55, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(30, 61, 89, 0.52), transparent 58%),
    var(--surface);
}

.service-card:nth-child(2) {
  grid-column: span 5;
}

.service-card:nth-child(3),
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 4;
}

.service-roman {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: rgba(212, 175, 55, 0.2);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
}

.service-label {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-card h3 {
  max-width: 15ch;
  margin: 0 0 0.9rem;
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  line-height: 1.08;
}

.service-card p:last-child {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.start-grid article {
  position: relative;
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent 46%),
    var(--surface);
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

.start-grid article:nth-child(2) {
  min-height: 23rem;
}

.start-grid article:nth-child(3) {
  min-height: 18rem;
  background:
    linear-gradient(180deg, rgba(30, 61, 89, 0.58), transparent 62%),
    var(--surface);
}

.start-grid article:nth-child(4) {
  min-height: 25rem;
}

.step-roman {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--gold);
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.55rem;
}

.start-grid h3 {
  margin: auto 0 0.8rem;
  font-size: clamp(1.45rem, 2.55vw, 2.25rem);
  line-height: 1.08;
}

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

.outputs {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
}

.outputs figure {
  aspect-ratio: 4 / 5;
  padding: 0.65rem;
  overflow: hidden;
}

.outputs h2,
.contact h2 {
  max-width: 13ch;
}

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

.artifact-list p {
  min-height: 104px;
  display: flex;
  align-items: flex-end;
  margin: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 42%),
    var(--surface);
  color: var(--ink);
  font-weight: 700;
  padding: 1rem;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
  border-bottom: 0;
}

.contact-copy {
  position: sticky;
  top: 6rem;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.07), transparent 38%),
    rgba(20, 20, 20, 0.9);
  padding: clamp(1.35rem, 3vw, 2rem);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

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

.contact-card .service-label {
  color: var(--gold);
}

.email-link {
  width: fit-content;
  max-width: 100%;
  color: var(--gold-bright);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(8rem, 0.25fr) minmax(10rem, 0.25fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--gold);
  font-family: "Marcellus", Georgia, serif;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (prefers-reduced-motion: no-preference) {
  .section-copy,
  .service-card,
  .start-grid article,
  .outputs figure,
  .outputs-copy,
  .contact-copy,
  .contact-card {
    animation: rise-in 680ms ease both;
  }

  .service-card:nth-child(2),
  .start-grid article:nth-child(2),
  .outputs-copy,
  .contact-card {
    animation-delay: 90ms;
  }

  .service-card:nth-child(3),
  .start-grid article:nth-child(3) {
    animation-delay: 150ms;
  }

  .service-card:nth-child(4),
  .start-grid article:nth-child(4) {
    animation-delay: 210ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .outputs,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    width: min(70vw, 28rem);
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-copy::before {
    left: -0.6rem;
  }

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

  .scope-strip p:nth-child(2n) {
    border-right: 0;
  }

  .scope-strip p:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
  }

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

  .service-card,
  .service-card-featured,
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    min-height: 19rem;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --cut: 14px;
  }

  .site-header {
    min-height: var(--header-h);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 1rem auto 1rem;
    display: grid;
    gap: 0;
    border: 1px solid var(--gold);
    background: rgba(10, 10, 10, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 1rem;
  }

  .site-nav a::after {
    bottom: 0.65rem;
  }

  .hero,
  .section,
  .scope-strip,
  .site-footer {
    width: min(100% - 2rem, var(--max));
  }

  .hero {
    gap: 1.35rem;
    padding: 2rem 0 2rem;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  .lead {
    font-size: 1.04rem;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
  }

  .scope-strip,
  .service-list,
  .start-grid,
  .artifact-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .scope-strip p,
  .scope-strip p:nth-child(2n),
  .scope-strip p:last-child {
    min-height: 82px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .scope-strip p:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 4.25rem 0;
  }

  .section h2 {
    max-width: 11.5ch;
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .service-card,
  .service-card-featured,
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    min-height: 16.5rem;
  }

  .start-grid article,
  .start-grid article:nth-child(2),
  .start-grid article:nth-child(3),
  .start-grid article:nth-child(4) {
    min-height: 14.5rem;
  }

  .artifact-list p {
    min-height: 82px;
  }
}
