@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #0b1826;
  --navy-900: #13233a;
  --navy-800: #1b3149;
  --gold-500: #c99a3f;
  --gold-300: #e6c878;
  --ivory-50: #f6f2e8;
  --ivory-100: #efe6d3;
  --ink-900: #1a1f26;
  --ink-600: #565f6b;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink-900);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.08;
}

a { color: inherit; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: var(--navy-950);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(11,24,38,0.25);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-mark {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  letter-spacing: 0.03em;
  color: var(--ivory-50);
}
.nav-mark strong { color: var(--gold-300); font-weight: 500; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ivory-50);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  text-decoration: none;
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-950); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--ivory-50);
  padding: 176px 0 120px;
  overflow: hidden;
}
.hero-blueprint {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-blueprint path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 3.2s ease-out forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 2; }
.hero-logo {
  width: 128px;
  height: auto;
  display: block;
  margin: 0 0 36px;
  opacity: 0;
  animation: rise 0.9s ease-out forwards 0.15s;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 15ch;
  opacity: 0;
  animation: rise 0.9s ease-out forwards 0.4s;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
}
.hero-sub {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.65;
  color: #c7cedb;
  opacity: 0;
  animation: rise 0.9s ease-out forwards 0.6s;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s ease-out forwards 0.8s;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(246,242,232,0.35); color: var(--ivory-50); }
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }

/* ---------- Legacy strip ---------- */
.legacy {
  background: var(--navy-900);
  color: var(--ivory-50);
  padding: 30px 0;
  border-top: 1px solid var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
}
.legacy .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.legacy-since {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--gold-300);
}
.legacy-divider { color: var(--navy-800); }
.legacy-line { font-size: 14px; letter-spacing: 0.03em; color: #b9c1cf; }

/* ---------- Section rhythm ---------- */
section { padding: 110px 0; }
.section-light { background: var(--ivory-50); }
.section-cream { background: var(--ivory-100); }
.section-dark { background: var(--navy-950); color: var(--ivory-50); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.section-head p { margin: 18px 0 0; color: var(--ink-600); font-size: 16px; line-height: 1.7; }
.section-dark .section-head p { color: #b9c1cf; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-copy p { font-size: 16.5px; line-height: 1.85; color: var(--ink-600); margin: 0 0 18px; }
.pillars { display: flex; flex-direction: column; gap: 30px; }
.pillar { border-left: 2px solid var(--gold-500); padding-left: 22px; }
.pillar h3 { font-size: 20px; color: var(--navy-950); }
.pillar p { margin: 8px 0 0; font-size: 15px; color: var(--ink-600); line-height: 1.6; }

/* ---------- Project spotlight ---------- */
.project-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.project-card .eyebrow { color: var(--gold-300); }
.project-card h3 {
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ivory-50);
  margin-top: 12px;
}
.project-card p {
  color: #b9c1cf;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 56ch;
  margin: 16px 0 0;
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ded2ae;
  border: 1px solid #ded2ae;
}
.why-item {
  background: var(--ivory-50);
  padding: 40px 32px;
}
.why-item .glyph {
  width: 34px; height: 34px;
  stroke: var(--gold-500);
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 20px;
}
.why-item h3 { font-size: 17.5px; }
.why-item p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-600); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info h3 { font-size: 22px; color: var(--ivory-50); margin-bottom: 22px; }
.info-row { margin-bottom: 20px; }
.info-row .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); display: block; margin-bottom: 4px; }
.info-row .value { font-size: 16px; color: #dfe4ec; }
.info-row a { text-decoration: none; color: #dfe4ec; }
.info-row a:hover { color: var(--gold-300); }

form { display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa5b3;
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  color: var(--ivory-50);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold-500); }
.field textarea { resize: vertical; min-height: 90px; }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #8fd19e; }
.form-msg.err { color: #e19a8f; }
.contact-submit { align-self: flex-start; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-950);
  color: #8b95a3;
  padding: 44px 0;
  border-top: 1px solid var(--navy-800);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mark { font-family: 'Fraunces', serif; color: var(--ivory-50); font-size: 16px; }
.footer-mark strong { color: var(--gold-300); font-weight: 500; }
footer small { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-card { grid-template-columns: 1fr; text-align: left; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 148px 0 88px; }
  section { padding: 76px 0; }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}

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