:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #9eb1bb;
  --bg: #071a27;
  --panel: #0d2838;
  --panel-strong: #12384b;
  --line: rgba(183, 221, 232, 0.18);
  --accent: #c4142f;
  --accent-dark: #7e0b1c;
  --accent-light: #ff9c72;
  --cyan: #7ee8e3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(20, 104, 126, 0.34), transparent 33rem),
    linear-gradient(180deg, #061722 0%, var(--bg) 48%, #06151f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand img { width: 72px; height: 38px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }
.site-header .contact-link { color: var(--ink); border: 1px solid var(--line); padding: .55rem .9rem; }

main { overflow: hidden; }
.hero, .portfolio, .about, .contact, footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 4rem;
  padding: 6rem 0;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 780px; font-size: clamp(4rem, 9vw, 8.2rem); }
h2 { font-size: clamp(2.35rem, 5vw, 4.7rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.hero-text { max-width: 700px; margin: 2rem 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: .9rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 7px 7px 0 var(--accent-dark);
}
.button:hover, .button:focus-visible { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--accent-dark); }
.hero-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--panel-strong), rgba(8, 29, 41, .45));
  border: 1px solid var(--line);
  box-shadow: 24px 24px 0 rgba(126, 232, 227, .08);
}
.hero-mark img { width: 84%; image-rendering: pixelated; }

.portfolio { padding: 7rem 0; }
.section-heading { max-width: 780px; margin-bottom: 3rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.project-grid { display: grid; gap: 2rem; }
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.project-card:nth-child(even) { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); }
.project-card:nth-child(even) > img { order: 2; }
.project-card > img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; background: #0a2231; }
.project-copy { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.project-copy > p:not(.project-number) { color: var(--muted); }
.project-number { margin: 0 0 1.6rem; color: var(--accent-light); font-weight: 900; letter-spacing: .14em; }
.project-copy ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.project-copy li { padding: .5rem 0; border-top: 1px solid var(--line); color: #d4e1e5; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}
.about-copy { color: var(--muted); font-size: 1.12rem; }
.about-copy p:first-child { margin-top: 0; }

.contact {
  padding: clamp(3rem, 8vw, 7rem);
  background: var(--accent);
  color: white;
  margin-bottom: 5rem;
}
.contact .eyebrow { color: white; opacity: .75; }
.contact p { margin-bottom: .5rem; }
.contact-options { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.3rem; }
.contact-options a { font-size: clamp(1.05rem, 2.5vw, 1.65rem); font-weight: 850; text-underline-offset: .25em; overflow-wrap: anywhere; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header { min-height: 80px; }
  .site-header nav a:not(.contact-link) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 4rem 0 6rem; }
  .hero-mark { max-width: 500px; width: 100%; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) > img { order: 0; }
  .project-card > img { aspect-ratio: 3 / 2; height: auto; }
  .about { grid-template-columns: 1fr; gap: 2rem; padding: 6rem 0; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .hero, .portfolio, .about, .contact, footer, .site-header { width: min(calc(100% - 1.2rem), var(--max)); }
  h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .project-copy { padding: 1.5rem; }
  .contact { padding: 2rem 1.5rem; }
  footer { flex-direction: column; }
}

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