:root {
  --ivory: #f3efe4;
  --paper: #fbf8ef;
  --petrol: #0d3f40;
  --petrol-deep: #072e30;
  --ochre: #d49a28;
  --ochre-soft: #e7bc60;
  --ink: #153a3a;
  --line: rgba(13, 63, 64, .18);
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.section-shell,
.site-header,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-decoration: none;
}
.brand span { color: var(--ochre); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.main-nav a:hover { color: var(--ochre); }
.nav-github { border: 1px solid var(--petrol); padding: 10px 15px; }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(38px, 7vw, 100px);
  align-items: center;
  padding-block: 72px;
}

.eyebrow,
.section-index {
  color: var(--ochre);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--petrol-deep);
  font-size: clamp(3.7rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .88;
  margin: 24px 0 32px;
}
.hero h1 em { color: var(--ochre); font-weight: 500; }
.hero-lead { max-width: 610px; font-size: 1.08rem; color: rgba(21,58,58,.76); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.button { display: inline-block; text-decoration: none; padding: 15px 22px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.button-primary { background: var(--petrol); color: var(--paper); }
.button-primary:hover { background: var(--ochre); color: var(--petrol-deep); }
.text-link { font-weight: 750; text-underline-offset: 5px; }

.hero-art { position: relative; padding: 34px 24px 28px 52px; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  background: var(--ochre);
  border-radius: 50%;
  top: -4%;
  right: -5%;
  opacity: .95;
}
.image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 47% 53% 49% 51% / 58% 42% 58% 42%;
  box-shadow: 0 28px 70px rgba(7,46,48,.18);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.floating-note {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--petrol-deep);
  padding: 9px 12px;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.note-top { top: 12%; left: 0; }
.note-top span { color: var(--ochre); margin-right: 6px; }
.note-bottom { bottom: 7%; right: -2%; }

.statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 100px;
  display: grid;
  grid-template-columns: .35fr 1.65fr;
  gap: 40px;
}
.statement h2,
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--petrol-deep);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.statement h2 { font-size: clamp(2.7rem, 5vw, 5rem); margin: 0; }
.statement h2 span { color: var(--ochre); }
.statement div > p { max-width: 690px; margin-top: 28px; color: rgba(21,58,58,.72); }

.projects { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5.3rem); margin: 10px 0 0; }
.section-heading > p { color: rgba(21,58,58,.7); margin: 0 0 9px; max-width: 500px; }
.project-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.project-card {
  min-height: 540px;
  padding: clamp(25px, 4vw, 45px);
  border: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-featured { background: var(--petrol); color: var(--paper); }
.project-next { background: #e8dfca; color: var(--petrol-deep); }
.project-number { font-family: Georgia, serif; font-size: 1.2rem; opacity: .72; }
.project-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.project-card h3 { font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; margin: 16px 0 18px; }
.project-featured h3 { color: var(--ochre-soft); }
.project-description { max-width: 560px; opacity: .75; margin: 0; }
.bus-graphic { position: absolute; inset: 80px 35px auto 35px; height: 185px; }
.route-line { position: absolute; top: 86px; left: 5%; width: 90%; height: 2px; background: var(--ochre); transform: rotate(-6deg); }
.route-dot { position: absolute; width: 16px; height: 16px; background: var(--paper); border: 5px solid var(--ochre); border-radius: 50%; }
.dot-a { left: 8%; top: 94px; }.dot-b { left: 49%; top: 50px; }.dot-c { right: 9%; top: 74px; }
.bus-icon { position: absolute; left: 58%; top: 84px; background: var(--ochre); color: var(--petrol-deep); padding: 8px 11px; font-size: .63rem; font-weight: 900; letter-spacing: .1em; }
.next-symbol { position: absolute; right: 9%; top: 17%; font-family: Georgia, serif; color: var(--ochre); font-size: 11rem; font-weight: 300; line-height: .5; }
.project-featured:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(7,46,48,.18); }
.project-card { transition: transform .25s ease, box-shadow .25s ease; }

.contact { background: var(--ochre); color: var(--petrol-deep); padding: 80px; display: grid; grid-template-columns: .35fr 1.65fr; gap: 40px; margin-bottom: 70px; }
.contact .section-index { color: var(--petrol-deep); }
.contact-content p { margin-top: 0; text-transform: uppercase; font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.contact-content a { font-family: Georgia, serif; font-size: clamp(2.1rem, 5vw, 4.6rem); letter-spacing: -.045em; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-footer { min-height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .section-shell, .site-header, .site-footer { width: min(calc(100% - 30px), var(--max-width)); }
  .site-header { height: 76px; }
  .menu-toggle { display: block; border: 0; background: transparent; color: var(--petrol); font-size: 1.35rem; cursor: pointer; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); padding: 22px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .main-nav.open { display: flex; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 60px 80px; }
  .hero h1 { font-size: clamp(3.6rem, 16vw, 6rem); }
  .hero-art { padding: 20px 12px 20px 28px; }
  .statement, .contact { grid-template-columns: 1fr; }
  .statement { padding-block: 72px; }
  .section-heading, .project-grid { grid-template-columns: 1fr; }
  .projects { padding-block: 75px; }
  .project-card { min-height: 490px; }
  .contact { padding: 45px 28px; margin-bottom: 40px; }
  .site-footer { padding-block: 25px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card { transition: none; }
}
