@import url("https://fonts.googleapis.com/css2?family=Bitter:opsz,wght@6..72,500;6..72,600;6..72,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap");

:root {
  --ink: #10263d;
  --ink-soft: #345064;
  --muted: #5b6d78;
  --paper: #f4f6f3;
  --surface: #fff;
  --line: #cad5d6;
  --signal: #087e8b;
  --signal-dark: #05636d;
  --copper: #c96b45;
  --mist: #e2eeee;
  --warm: #f3e8de;
  --radius: 10px;
  --shadow: 0 18px 45px rgba(16, 38, 61, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 "DM Sans",
    Arial,
    sans-serif;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 38, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 61, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}
a {
  color: var(--signal);
}
h1,
h2,
h3,
p {
  margin-top: 0;
  /* color: var(--signal-dark); */
}
h1,
h2,
h3 {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
}
h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.35rem, 8vw, 7.5rem);
}
h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 4vw, 4.05rem);
}
h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
}
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
}

.site-header,
.site-footer,
.section-wrap {
  width: min(100%, 1240px);
  margin: auto;
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
}
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font:
    700 1.7rem/1 Bitter,
    Georgia,
    serif;
  letter-spacing: -0.075em;
  text-decoration: none;
}
.brand span,
.eyebrow,
.tag {
  color: var(--signal);
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}
nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
}
nav a[aria-current="page"]::after,
nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-toggle {
  display: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero::after {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 2.25rem;
  width: 36px;
  height: 36px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  content: "";
}
.hero .eyebrow {
  margin-bottom: 1.15rem;
}
.hero h1 {
  max-width: 760px;
}
.hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  filter: drop-shadow(16px 18px 0 rgba(8, 126, 139, 0.13));
}
.eyebrow,
.tag {
  margin-bottom: 0.65rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  line-height: 1.65;
}
.narrow {
  max-width: 630px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.button {
  display: inline-block;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--signal);
  border-radius: 5px;
  background: var(--signal);
  box-shadow: 4px 4px 0 var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}
.button:hover {
  border-color: var(--signal-dark);
  background: var(--signal-dark);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}
.button-quiet {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.text-link,
.project-card a {
  font-weight: 700;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link span,
.project-card a span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.text-link:hover span,
.project-card a:hover span {
  transform: translateX(4px);
}

.section-wrap:not(.hero) {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  margin-bottom: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  border: 1px solid var(--line);
  background: var(--line);
}
.project-card {
  min-height: 295px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  background: var(--surface);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.project-card:first-child {
  background: var(--mist);
}
.project-card:hover {
  background: #f9fcfc;
  transform: translateY(-6px);
}
.project-card:first-child:hover {
  background: #d4e8e9;
}
.project-card p:not(.tag) {
  color: var(--ink-soft);
}
.project-card a {
  margin-top: auto;
}
.project-card h3 {
    color: var(--signal-dark)
}
.home-projects {
  margin-top: clamp(5rem, 11vw, 11rem);
  padding-bottom: 0;
  background: #2d4a5d;
  color: #f4f7f5;
}
.home-projects .section-wrap {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 0;
}
.home-projects .section-heading {
  margin-bottom: 2.5rem;
}
.home-projects .section-heading h2 {
  color: inherit;
}
.home-projects .card-grid {
  gap: 0;
  padding-bottom: 0;
  border: 0;
  background: transparent;
}
.home-projects .project-card {
  min-height: 330px;
  border-right: 1px solid #c4d1d0;
  background: #f4f7f5;
}
.home-projects .project-card:first-child {
  background: #f4f7f5;
}
.home-projects .project-card:last-child {
  border-right: 0;
}
.home-projects .project-card:hover {
  position: relative;
  z-index: 1;
  background: #e5f0ee;
  box-shadow: 0 0px 0 #2d4a5d;
  transform: translateY(-18px);
}
.home-projects .project-card:first-child:hover {
  background: #e5f0ee;
}
.statement {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--ink);
  color: #f2f6f3;
}
.statement::before {
  position: absolute;
  top: -20vw;
  right: -8vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(226, 238, 238, 0.18);
  border-radius: 50%;
  content: "";
}
.statement .section-wrap {
  position: relative;
  padding-top: 0;
}
.statement .eyebrow {
  color: #89d3d8;
}
.statement p:last-child {
  max-width: 940px;
  margin-bottom: 0;
  font:
    600 clamp(2.25rem, 5vw, 5.1rem) / 1.08 Bitter,
    Georgia,
    serif;
  letter-spacing: -0.045em;
}
.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0;
}
.site-footer div {
  display: flex;
  gap: 1.25rem;
}
.site-footer a {
  text-underline-offset: 4px;
}

.page,
.page.section-wrap {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 3rem 0 1rem;
}
.filter-bar span {
  margin-right: 0.3rem;
  color: var(--muted);
}
.filter-button {
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.filter-button:hover,
.filter-button.is-selected {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}
.filter-status {
  min-height: 1.6rem;
  color: var(--muted);
}
.project-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.case-study {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.case-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font:
    5rem Bitter,
    Georgia,
    serif;
}
.visual-trail {
  background: var(--mist);
}
.visual-study {
  background: #e5e1ef;
}
.visual-pantry {
  background: var(--warm);
}
.case-study p {
  color: var(--ink-soft);
}
.case-study .tag {
  color: var(--signal);
}
.case-study ul {
  padding-left: 1.15rem;
}
.case-study[hidden] {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
}
.body-copy {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.body-copy h2 {
  margin-top: 2.5rem;
  color: var(--ink);
  font-size: 2rem;
}
.check-list {
  padding: 0;
  list-style: none;
}
.check-list li {
  margin: 0.8rem 0;
}
.check-list li::before {
  color: var(--signal);
  content: "↗";
  margin-right: 0.7rem;
}
.skills {
  padding-bottom: 6rem;
}
.skills div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.skills span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  font-size: 0.92rem;
}
.resume-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.resume section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.resume section h2 {
  font-size: 1.35rem;
}
.resume article {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.resume article p {
  margin-bottom: 0.35rem;
}
.muted {
  color: var(--muted);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
}
.contact-form {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--signal);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-left: 5rem;
}
.contact-form label {
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.75rem;
  border: 1px solid #aebdc1;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--signal);
  outline: 2px solid rgba(8, 126, 139, 0.16);
}
.contact-form .button {
  justify-self: start;
}
.form-message {
  min-height: 1.6rem;
  margin: 0;
  color: var(--muted);
}
.error-page {
  min-height: calc(100vh - 206px);
  padding-top: 12vh;
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    min-height: 74px;
  }
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    position: absolute;
    z-index: 5;
    top: 73px;
    right: 0;
    left: 0;
    display: none;
    padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 20px rgba(16, 38, 61, 0.08);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .site-header nav.is-open {
    display: flex;
  }
  .hero,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero {
    min-height: auto;
    padding-top: 4rem;
  }
  .hero-art {
    max-width: 290px;
    justify-self: start;
    order: -1;
  }
  .hero::after {
    display: none;
  }
  .section-heading {
    display: block;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    min-height: 240px;
  }
  .project-card:first-child {
    min-height: 270px;
  }
  .home-projects {
    margin-top: 4rem;
  }
  .home-projects .project-card,
  .home-projects .project-card:first-child {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-projects .project-card:last-child {
    border-bottom: 0;
  }
  .home-projects .project-card:hover {
    box-shadow: 0 12px 0 #2d4a5d;
    transform: translateY(-8px);
  }
  .case-study {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.75rem 0;
  }
  .case-visual {
    min-height: 145px;
  }
  .resume-heading,
  .resume article {
    align-items: start;
    flex-direction: column;
  }
  .resume article > p {
    margin: 0;
  }
  .site-footer {
    min-height: 140px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
  .page {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
