:root {
  --navy: #0b1c3d;
  --navy-deep: #071429;
  --signal: #3d68ff;
  --signal-soft: #7c9bff;
  --paper: #ffffff;
  --mist: #f3f6fc;
  --steel: #64708a;
  --line: #dce3f0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --ink: #0b1c3d;

  --display: "Fraunces", serif;
  --sans: "Inter", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--signal);
  color: var(--paper);
}

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

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

/* ================= NAV ================= */
header.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(11, 28, 61, 0);
  transition:
    background 0.4s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}
header.site-nav.scrolled {
  background: rgba(11, 28, 61, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logotype {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.logotype .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-soft);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(124, 155, 255, 0.2);
}
nav.links {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
nav.links a:hover {
  color: var(--paper);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--navy-deep) !important;
  background: var(--paper);
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.nav-cta:hover {
  background: var(--signal-soft);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  position: relative;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 210;
}
.menu-btn span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--paper);
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    top 0.35s ease;
}
.menu-btn span:nth-child(1) {
  top: 2px;
}
.menu-btn span:nth-child(2) {
  top: 10px;
}
.menu-btn span:nth-child(3) {
  top: 18px;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s,
    background 0.2s ease,
    border-color 0.2s ease;
}
.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--signal-soft);
}
.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  color: var(--paper);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.08s;
}
.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.14s;
}
.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.26s;
}
.mobile-menu a.nav-cta {
  font-family: var(--mono);
  font-size: 14px;
}
body.menu-locked {
  overflow: hidden;
}

@media (max-width: 780px) {
  nav.links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* ================= HERO ================= */
.hero {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  padding: 160px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 50% at 82% 8%,
      rgba(61, 104, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      40% 40% at 8% 90%,
      rgba(61, 104, 255, 0.16),
      transparent 65%
    );
  z-index: -1;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--signal-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 0.8s 0.1s ease forwards;
}
.hero-eyebrow .rule {
  width: 34px;
  height: 1px;
  background: var(--signal-soft);
}

.hero-grid {
  max-width: 780px;
}

h1.hero-headline {
  font-family: var(--display);
  font-weight: 480;
  font-optical-sizing: auto;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  max-width: 13ch;
  opacity: 0;
  animation: rise 0.9s 0.22s ease forwards;
}
h1.hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--signal-soft);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  max-width: 46ch;
  margin-top: 26px;
  opacity: 0;
  animation: rise 0.9s 0.34s ease forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s 0.44s ease forwards;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 15px 26px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}
.btn-primary {
  background: var(--signal);
  color: var(--paper);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #4d76ff;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--signal-soft);
  transform: translateY(-2px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 128px;
  }
}

/* ================= SECTION SCAFFOLDING ================= */
section {
  position: relative;
}
.section-pad {
  padding: 120px 0;
}
@media (max-width: 640px) {
  .section-pad {
    padding: 80px 0;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--signal);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow .rule {
  width: 30px;
  height: 1px;
  background: var(--signal);
}
.eyebrow.on-dark {
  color: var(--signal-soft);
}
.eyebrow.on-dark .rule {
  background: var(--signal-soft);
}

/* ================= PROJECTS ================= */
.projects {
  background: var(--paper);
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}
.projects-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.projects-note {
  max-width: 30ch;
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
  padding-bottom: 10px;
}

.project-card {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.project-card:last-child {
  border-bottom: 1px solid var(--line);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.project-card-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.project-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 300;
  color: var(--line);
  font-style: italic;
  transition: color 0.35s ease;
}
.project-card:hover .project-num {
  color: var(--signal-soft);
}

.project-info .project-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.project-info .project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-info .project-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--signal);
  background: var(--mist);
  padding: 5px 10px;
  border-radius: 100px;
}
.project-metric {
  text-align: right;
  flex-shrink: 0;
}
.m-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 4px;
}
.project-metric .m-num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}
.project-metric .m-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--steel);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.project-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 3.08 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  padding: 18px;
  box-sizing: border-box;
}
.project-shot img {
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  display: block;
}
.project-shot .shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(61, 104, 255, 0.05) 0 2px,
      transparent 2px 14px
    ),
    var(--mist);
}
.shot-placeholder svg {
  color: var(--steel);
  opacity: 0.6;
}
.shot-placeholder .shot-text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-align: center;
}

.project-desc {
  font-size: 14.5px;
  color: var(--steel);
  line-height: 1.65;
  max-width: 62ch;
}

@media (max-width: 640px) {
  .project-card-top {
    flex-direction: column;
  }
  .project-metric {
    text-align: left;
  }
}

.placeholder-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  background: var(--mist);
  border: 1px dashed var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  margin-top: 8px;
}
.wrap.projects-flag {
  margin-top: -34px;
  margin-bottom: 50px;
}

/* ================= ABOUT ================= */
.about {
  background: var(--mist);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  position: absolute;
  inset: 0;
}
.about-lead {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  color: var(--navy);
  font-weight: 440;
  letter-spacing: -0.01em;
}
.about-lead em {
  font-style: italic;
  color: var(--signal);
  font-weight: 500;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-col h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}
.about-col ul {
  list-style: none;
}
.about-col li {
  font-size: 14.5px;
  color: var(--steel);
  line-height: 1.6;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.about-col li:first-of-type {
  border-top: none;
  padding-top: 0;
}
.about-col li b {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-cols {
    grid-template-columns: 1fr;
  }
}

/* ================= FAQ ================= */
.faq {
  background: var(--paper);
}
.faq-head {
  margin-bottom: 54px;
  max-width: 46ch;
}
.faq-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 480;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.faq-list {
  max-width: 780px;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.faq-q:hover {
  color: var(--signal);
}

.faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--navy);
  transition:
    transform 0.3s ease,
    background 0.2s ease;
}
.faq-toggle::before {
  width: 9px;
  height: 1.4px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 1.4px;
  height: 9px;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}
.faq-item.open .faq-q {
  color: var(--signal);
}
.faq-item.open .faq-toggle {
  border-color: var(--signal);
}
.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after {
  background: var(--signal);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 60ch;
  padding: 0 4px 28px;
}

/* ================= CLOSE / CONTACT ================= */
.close {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 60% at 50% 0%,
    rgba(61, 104, 255, 0.28),
    transparent 65%
  );
}
.close h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 480;
  max-width: 16ch;
  margin: 0 auto 50px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.close h2 em {
  font-style: italic;
  color: var(--signal-soft);
  font-weight: 500;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--signal-soft);
  background: rgba(255, 255, 255, 0.1);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
}

.form-submit {
  justify-self: start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
}

.form-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -4px;
}
.form-note a {
  color: var(--signal-soft);
}

.form-success {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: rgba(110, 231, 168, 0.08);
  border: 1px solid rgba(110, 231, 168, 0.3);
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.form-success.show {
  display: block;
}

.form-error {
  display: none;
  max-width: 560px;
  margin: 16px auto 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  color: #ff9b9b;
}
.form-error.show {
  display: block;
}
.form-error a {
  color: var(--signal-soft);
}
.contact-form.hide {
  display: none;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.5);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.footer-inner a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.footer-inner a:hover {
  color: var(--paper);
}
.footer-links {
  display: flex;
  gap: 22px;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
