:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #171917;
  --muted: #5b625f;
  --line: #d9dcd5;
  --accent: #b63628;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -5rem; left: 1.25rem; z-index: 10; padding: 0.65rem 0.85rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 0.5rem; color: #fff; }
.shell { width: min(100%, 94rem); margin: auto; padding: 0 clamp(1.25rem, 3.3vw, 3.6rem); }
.topline { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.small-mark { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.83rem; font-weight: 720; letter-spacing: -0.035em; }
.small-mark::before { content: ""; width: 2px; height: 1.2rem; background: var(--accent); }
.topline-note { color: var(--muted); font-size: 0.72rem; font-weight: 640; letter-spacing: 0.16em; text-transform: uppercase; }

.masthead { padding: clamp(3rem, 5.5vw, 5.7rem) 0 clamp(2.5rem, 4vw, 4rem); }
.masthead h1 { margin: 0; font-size: clamp(4.8rem, 9.7vw, 10.6rem); font-weight: 650; line-height: 0.88; letter-spacing: -0.08em; }
.masthead h1 span { display: block; }
.masthead h1 .domain { display: inline; margin-left: 0.18em; color: var(--accent); font-family: var(--sans); font-size: 0.22em; font-weight: 680; letter-spacing: -0.06em; vertical-align: baseline; }

.mission { padding: clamp(2.4rem, 4vw, 4.5rem) 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.mission p { max-width: 61rem; margin: 0 0 1.35rem; font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.6; letter-spacing: -0.013em; }
.mission p:first-child { max-width: 74rem; margin-bottom: 2.1rem; font-size: clamp(2.2rem, 3.3vw, 3.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.055em; }
.mission p:nth-last-child(2) { margin-top: 2.1rem; font-size: clamp(1.55rem, 2vw, 2.2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.045em; }
.mission p:last-child { margin: 1.8rem 0 0; color: var(--accent); font-weight: 700; }

.projects { padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(2.8rem, 4.5vw, 4.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.project { display: flex; min-height: 16.4rem; flex-direction: column; justify-content: space-between; padding: 1.55rem; border: 1px solid var(--line); border-radius: 1.25rem; background: #fcfbf8; transition: border-color 150ms ease; }
.project:hover { border-color: var(--accent); color: var(--ink); }
.project-icon { display: block; width: 4.7rem; height: 4.7rem; margin-inline: auto; border-radius: 1rem; object-fit: cover; }
.project h2 { margin: 1.3rem 0 0.45rem; font-size: clamp(2.2rem, 3.3vw, 3.9rem); font-weight: 600; line-height: 1; letter-spacing: -0.065em; text-align: center; }
.project p { max-width: 20rem; margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

.bottom-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; padding: 1.35rem 0 2.2rem; border-top: 1px solid var(--line); }
.info-tile { display: flex; min-height: 10rem; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 1.35rem 1.55rem; border: 1px solid var(--line); border-radius: 1.25rem; background: #fcfbf8; font-size: clamp(1.8rem, 2.4vw, 2.7rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.055em; transition: border-color 150ms ease, color 150ms ease; }
.info-icon { display: block; width: 3.5rem; height: 3.5rem; margin-inline: auto; }
.info-tile span { text-align: center; }
.info-tile:hover { border-color: var(--accent); }

@media (max-width: 760px) {
  .topline-note { display: none; }
  .masthead { padding-top: 4.4rem; }
  .masthead h1 { font-size: clamp(4.15rem, 13.2vw, 6.5rem); }
  .section-head { display: block; }
  .section-head p { margin-top: 0.35rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project { min-height: 13.5rem; }
  .bottom-nav { grid-template-columns: 1fr; }
  .info-tile { min-height: 8.5rem; }
}
@media (max-width: 390px) {
  .masthead h1 { font-size: 13vw; }
  .masthead h1 .domain { margin-left: 0.12em; }
}
