:root {
  --ink: #111216;
  --paper: #f7f7f5;
  --blue: #d7e5ff;
  --blue-deep: #315da8;
  --muted: #62646a;
  --line: rgba(17, 18, 22, 0.18);
  --max: 1230px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 68px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; }
.monogram { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.site-logo { display: block; width: 154px; height: auto; flex: none; }
@media (max-width: 520px) { .site-logo { width: 122px; } }
.monogram:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 4px; }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { border-bottom: 1px solid transparent; padding-block: 4px; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--ink); }
.menu {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero {
  width: min(calc(100% - 72px), 1230px);
  min-height: 760px;
  margin: 36px auto 90px;
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 50px rgba(25, 27, 33, 0.11);
}
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(64px, 7vw, 108px) clamp(58px, 7vw, 112px);
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  color: var(--blue-deep);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 690px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero-line { display: block; }
.overview-rule {
  width: 100%;
  height: 1px;
  margin: 28px 0 38px;
  background: rgba(17, 18, 22, 0.52);
}
.overview-copy {
  max-width: 640px;
}
.overview-copy p {
  margin-bottom: 26px;
  color: #282b31;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
}
.overview-copy p:last-child {
  margin-bottom: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 24px;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.button.primary { background: var(--ink); color: white; }
.button:hover, .button:focus-visible { background: var(--blue-deep); border-color: var(--blue-deep); color: white; }
.hero-rail {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: 54% 46%;
  background: white;
}
.portrait-frame { overflow: hidden; background: #aeb6c1; }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 36%; }
.portrait-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px clamp(34px, 4.5vw, 62px);
}
.portrait-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 5.3vw, 5.4rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.portrait-meta strong::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 23px 0 18px;
  background: var(--blue);
}
.portrait-roles { display: grid; gap: 10px; color: var(--blue-deep); font-size: clamp(0.75rem, 1.05vw, 0.9rem); font-weight: 800; letter-spacing: 0.18em; line-height: 1.35; text-transform: uppercase; }
.portrait-roles span { display: block; }
.portrait-cta {
  min-width: 210px;
  margin-top: 34px;
}

.proof { border-block: 1px solid var(--line); background: white; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item {
  min-height: 150px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proof-item:last-child { border-right: 0; }
.proof strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--blue-deep);
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof span { color: var(--muted); font-size: 0.8rem; }

.section { padding: clamp(90px, 11vw, 150px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 58px;
  margin-bottom: 64px;
}
.kicker {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin-bottom: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.section-intro { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 1.1rem; }

.project-list { border-top: 1px solid var(--ink); }
.project {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 58px;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.project-summary { display: flex; flex-direction: column; align-items: flex-start; }
.project-index { color: var(--blue-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.project-title {
  margin: 30px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.project-role { color: var(--muted); font-size: 0.85rem; }
.status {
  margin-top: auto;
  padding-top: 42px;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status span { border-top: 1px solid var(--blue-deep); padding-top: 8px; }
.project-detail, .project.open .project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 48px;
  padding: 0;
}
.project-detail h3 {
  margin-bottom: 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-detail p { max-width: 610px; color: #42454b; line-height: 1.72; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag { padding: 6px 10px; border: 1px solid var(--line); color: #50535a; font-size: 0.7rem; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-link:hover, .project-link:focus-visible { color: var(--blue-deep); border-color: var(--blue-deep); }
.impact { align-self: start; padding: 30px; background: var(--blue); }
.impact strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--blue-deep);
  font-size: 3.8rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}
.impact p { margin: 12px 0 0; color: #30343c; font-size: 0.85rem; }

.process { background: var(--ink); color: white; }
.process h2 { color: white; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.28); }
.step { min-height: 245px; padding: 32px 30px 28px 0; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.step + .step { padding-left: 30px; }
.step:last-child { border-right: 0; }
.step b { color: var(--blue); font-size: 0.72rem; letter-spacing: 0.12em; }
.step h3 { margin: 70px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; }
.step p { margin: 0; color: #adafb5; font-size: 0.86rem; }

.experience { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: 90px; }
.experience-list { border-top: 1px solid var(--ink); }
.experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.experience-item h3 { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-weight: 400; }
.experience-item p, .experience-item time { margin: 0; color: var(--muted); font-size: 0.82rem; }
.experience-item time { text-align: right; }

.statement { padding: clamp(90px, 11vw, 145px) 0; background: var(--blue); }
.statement h2 { max-width: 1000px; }
.statement h2 span { color: var(--blue-deep); font-style: italic; }
.statement p { max-width: 700px; margin-top: 30px; color: #343842; font-size: 1.08rem; }
.statement .button.secondary { border-color: #555b68; color: var(--ink); }
.footer { padding: 32px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer small { color: var(--muted); }

.resume-hero { padding: 95px 0 68px; border-bottom: 1px solid var(--line); background: var(--blue); }
.resume-hero h1 {
  max-width: 950px;
  margin: 28px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
}
.resume-hero .lede {
  max-width: 700px;
  margin: 0;
  color: #323640;
  font-size: 1.05rem;
  line-height: 1.7;
}
.resume-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 90px; padding: 80px 0 120px; }
.resume-sidebar section { margin-bottom: 38px; }
.resume-sidebar h2, .resume-main > h2 {
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.resume-sidebar p, .resume-sidebar li { color: #50535a; font-size: 0.86rem; }
.resume-sidebar ul { margin: 0; padding: 0; list-style: none; }
.resume-sidebar li { padding: 4px 0; }
.resume-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.resume-entry h3 { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; }
.resume-entry .company { color: #4f5258; font-size: 0.88rem; font-weight: 700; }
.resume-entry ul { padding-left: 18px; color: #50535a; }
.resume-entry time { color: var(--muted); font-size: 0.75rem; text-align: right; }
.print-only { display: none; }

/* Horizontal OnGrid case-study portfolio */
.portfolio-section { padding: clamp(76px, 9vw, 124px) 0 88px; background: #fff; border-top: 1px solid var(--line); }
.portfolio-heading { display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 0.7fr); align-items: end; gap: 72px; padding-bottom: 34px; border-bottom: 1px solid var(--ink); }
.portfolio-heading h2 { margin-top: 20px; font-size: clamp(3.2rem, 6vw, 6rem); }
.portfolio-lede { max-width: 580px; margin: 0 0 6px; color: #42454b; font-size: 1.05rem; line-height: 1.65; }
.portfolio-note { margin: 17px 0 34px; color: var(--muted); font-size: 0.9rem; }
.case-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 25px 0 42px; background: #a7b5d0; border: 1px solid #a7b5d0; }
.case-summary > div { padding: 24px 21px 27px; background: #f2f5fc; }
.case-summary span { color: #385c93; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.case-summary p { margin: 17px 0 0; color: #30394a; font-size: 0.98rem; line-height: 1.55; }
.case-carousel { --carousel-ink: #101217; color: var(--carousel-ink); }
.carousel-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.carousel-label, .slide-count { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.slide-count { min-width: 70px; display: flex; align-items: center; justify-content: center; gap: 7px; font-variant-numeric: tabular-nums; }
.count-divider { color: #a4a6aa; }
.slide-control { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.slide-control:hover:not(:disabled), .slide-control:focus-visible { background: var(--ink); border-color: var(--ink); color: white; }
.slide-control:disabled { opacity: 0.35; cursor: default; }
.slide-track { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; background: #f3f4f5; outline-offset: 4px; }
.slide-track::-webkit-scrollbar { display: none; }
.case-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.case-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.carousel-footer { min-height: 102px; display: grid; grid-template-columns: minmax(210px, 1fr) minmax(120px, 0.6fr) auto; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.slide-copy { min-width: 0; }
.slide-eyebrow { display: block; margin-bottom: 5px; color: var(--blue-deep); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.slide-copy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 2vw, 1.55rem); font-weight: 400; letter-spacing: -0.02em; }
.carousel-progress { height: 3px; overflow: hidden; background: #e3e5e8; }
.carousel-progress-fill { display: block; width: 10%; height: 100%; background: var(--blue-deep); transition: width 240ms ease; }
.slide-pagination { display: flex; align-items: center; gap: 7px; }
.slide-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c5c8ce; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.slide-dot[aria-current="true"] { transform: scale(1.25); background: var(--blue-deep); }
.slide-dot:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 4px; }
.portfolio-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; }
.portfolio-footer span { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.03em; }
.portfolio-footer a { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portfolio-footer a:hover, .portfolio-footer a:focus-visible { color: var(--blue-deep); border-color: var(--blue-deep); }
.ongrid-workflow { margin-top: clamp(66px, 8vw, 110px); }
.ongrid-workflow-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr); align-items: end; gap: 32px; padding-bottom: 28px; }
.ongrid-workflow-heading h3 { margin: 17px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.5vw, 4.8rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.055em; }
.ongrid-workflow-heading p { max-width: 460px; margin: 0 0 5px; color: #42454b; font-size: 1rem; line-height: 1.6; }
.ongrid-flow-map { padding: clamp(22px, 3vw, 38px); background: #f2f5fc; border: 1px solid #a7b5d0; }
.flow-label { margin: 0 0 15px; color: #385c93; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.flow-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.flow-source { min-width: 0; min-height: 180px; padding: 24px; background: #fff; border-top: 3px solid var(--blue-deep); }
.flow-source-planned { border-top-color: #6f83a5; }
.flow-source span, .flow-system span { color: #385c93; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.flow-source h4 { margin: 17px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.04em; }
.flow-source p { max-width: 520px; margin: 0; color: #424b5b; font-size: 0.98rem; line-height: 1.55; }
.flow-bridge { display: grid; justify-items: center; gap: 8px; padding: 0 0 28px; color: #385c93; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.flow-bridge::before { content: ""; display: block; width: 2px; height: 25px; background: var(--blue-deep); }
.flow-bridge span::after { content: "↓"; display: block; margin-top: 2px; text-align: center; font-size: 1.25rem; line-height: 1; }
.flow-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.flow-stages li { position: relative; min-width: 0; min-height: 218px; padding: 20px 18px 24px; background: #fff; border: 1px solid #a7b5d0; }
.flow-stages li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -16px; width: 18px; color: var(--blue-deep); font-size: 1.4rem; font-weight: 700; line-height: 1; transform: translateY(-50%); }
.flow-stages span, .flow-growth span { color: #385c93; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.flow-stages h4 { margin: 28px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 1.9vw, 1.9rem); font-weight: 400; line-height: 1.13; letter-spacing: -0.035em; }
.flow-stages p { margin: 0; color: #424b5b; font-size: 0.92rem; line-height: 1.52; }
.flow-system { display: grid; grid-template-columns: auto minmax(120px, 0.28fr) minmax(0, 1fr); align-items: center; gap: 18px; margin: 16px 0 43px; padding: 16px 22px; background: #e1e9fa; border-left: 3px solid var(--blue-deep); }
.flow-system strong { font-size: 1rem; }
.flow-system p { margin: 0; color: #424b5b; font-size: 0.9rem; line-height: 1.5; }
.flow-growth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #7f91b1; border: 1px solid #7f91b1; }
.flow-growth > div { position: relative; min-width: 0; padding: 24px 26px 30px; background: #243955; }
.flow-growth > div:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -12px; color: #fff; font-size: 1.35rem; line-height: 1; transform: translateY(-50%); }
.flow-growth span { color: #aecaed; }
.flow-growth p { max-width: 330px; margin: 18px 0 0; color: #fff; font-size: 1rem; line-height: 1.55; }
.flow-return { margin: 0; padding: 18px 4px 0; color: #385c93; font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
.flow-return span { display: inline-block; margin-right: 8px; font-size: 1.4rem; line-height: 0.8; vertical-align: middle; }
.nav-links a[aria-current="page"] { border-color: var(--ink); }
.relationships-section { padding: clamp(70px, 9vw, 120px) 0; background: #e1e9fa; }
.relationships-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr); align-items: end; gap: clamp(28px, 6vw, 90px); padding-bottom: 46px; }
.relationships-intro h2 { margin: 20px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.8vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -0.055em; }
.relationships-intro p { max-width: 530px; margin: 0 0 5px; color: #343e50; font-size: 1.06rem; line-height: 1.65; }
.relationships-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #8e9bb2; border-left: 1px solid #8e9bb2; }
.relationship-item { min-width: 0; padding: clamp(22px, 3vw, 38px); border-right: 1px solid #8e9bb2; border-bottom: 1px solid #8e9bb2; }
.relationship-item span { color: #385c93; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.relationship-item h3 { margin: 38px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 400; letter-spacing: -0.04em; }
.relationship-item p { margin: 0 0 16px; color: #465064; font-size: 0.98rem; line-height: 1.6; }
.relationship-item .relationship-detail { margin-top: 20px; }
.relationship-item .relationship-status { margin: 8px 0 18px; color: #385c93; font-size: 0.84rem; font-weight: 800; }
.relationship-image { margin: 24px 0 0; max-width: 430px; }
.relationship-image img { display: block; width: 100%; height: auto; }
.relationship-image figcaption { margin-top: 9px; color: #465064; font-size: 0.78rem; line-height: 1.4; }
.relationship-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.contact-page { min-height: calc(100vh - 170px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 130px); padding-block: clamp(70px, 9vw, 135px); }
.contact-intro h1 { margin: 18px 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 7vw, 7rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.06em; }
.contact-intro > p { max-width: 460px; color: #42454b; font-size: 1.12rem; line-height: 1.65; }
.contact-direct { display: grid; gap: 8px; margin-top: 75px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-direct span { color: var(--blue-deep); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-direct a { width: fit-content; border-bottom: 1px solid var(--ink); font-size: 1.08rem; }
.contact-panel { padding: clamp(28px, 4vw, 60px); background: var(--blue); }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-field { display: grid; gap: 9px; margin-bottom: 22px; }
.contact-field label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid #8c9bb5; border-radius: 0; padding: 14px 15px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.contact-field textarea { min-height: 175px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.contact-panel button { cursor: pointer; }
.contact-panel button:disabled { cursor: wait; opacity: 0.7; }
.contact-status { min-height: 1.5em; margin: 18px 0 0; color: #243955; font-size: 0.95rem; line-height: 1.5; }
.contact-status.error { color: #842525; }
.contact-hint { max-width: 460px; margin: 18px 0 0; color: #3e4552; font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 900px) {
  .contact-page { grid-template-columns: 1fr; gap: 35px; }
  .contact-direct { margin-top: 32px; }
  .shell { width: min(calc(100% - 38px), var(--max)); }
  .hero { width: min(calc(100% - 38px), 720px); min-height: 0; grid-template-columns: 1fr; margin: 20px auto 70px; }
  .hero-rail, .hero-copy { grid-column: 1; }
  .hero-rail { grid-row: 1; grid-template-columns: 48% 52%; grid-template-rows: 360px; }
  .hero-copy { grid-row: 2; padding: 58px 44px 64px; }
  .portrait-meta { padding: 40px 32px; }
  .portrait-meta strong { font-size: clamp(2.8rem, 9vw, 4.6rem); }
  .section-head, .project, .experience, .resume-grid { grid-template-columns: 1fr; gap: 34px; }
  .portfolio-heading { grid-template-columns: 1fr; gap: 20px; }
  .case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ongrid-workflow-heading { grid-template-columns: 1fr; gap: 18px; }
  .flow-stages { grid-template-columns: 1fr; }
  .flow-stages li { min-height: 0; }
  .flow-stages li:not(:last-child)::after { top: auto; right: 50%; bottom: -17px; transform: translateX(50%); content: "↓"; }
  .flow-stages h4 { margin-top: 16px; }
  .flow-system { grid-template-columns: 1fr; gap: 5px; }
  .flow-growth { grid-template-columns: 1fr; }
  .flow-growth > div:not(:last-child)::after { top: auto; right: 50%; bottom: -12px; transform: translateX(50%); content: "↓"; }
  .status { margin-top: 24px; padding-top: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
}

@media (max-width: 650px) {
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-page { padding-block: 58px 80px; }
  body { padding-top: 62px; }
  .nav { width: 100%; }
  .nav-inner { min-height: 62px; }
  .menu { display: block; }
  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .hero { width: 100%; margin-top: 0; box-shadow: none; }
  .hero-rail { grid-template-columns: 1fr; grid-template-rows: 380px auto; }
  .portrait-meta { padding: 42px 24px 48px; }
  .hero-copy { padding: 56px 24px 62px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-actions .button { width: 100%; }
  .portfolio-section { padding: 68px 0 54px; }
  .portfolio-heading { padding-bottom: 25px; }
  .portfolio-heading h2 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .portfolio-lede { font-size: 1rem; }
  .case-summary { grid-template-columns: 1fr; margin: 20px 0 30px; }
  .case-summary > div { padding: 18px 20px; }
  .case-summary p { margin-top: 8px; }
  .carousel-toolbar { min-height: 58px; }
  .slide-control { width: 38px; height: 38px; }
  .carousel-footer { min-height: 118px; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 19px 0; }
  .carousel-progress { grid-column: 1; grid-row: 2; }
  .slide-pagination { grid-column: 2; grid-row: 2; gap: 6px; }
  .slide-dot { width: 7px; height: 7px; }
  .portfolio-footer { align-items: flex-start; flex-direction: column; }
  .flow-sources { grid-template-columns: 1fr; }
  .flow-source { min-height: 0; }
  .ongrid-flow-map { padding: 18px; }
  .relationships-intro { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; }
  .relationships-grid { grid-template-columns: 1fr; }
  .relationship-item { min-height: 160px; }
  .relationship-item h3 { margin-top: 28px; }
  .relationship-actions .button { width: 100%; }
  .proof-grid, .process-grid, .project-detail, .project.open .project-detail { grid-template-columns: 1fr; }
  .proof-item { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step { min-height: 210px; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .step + .step { padding-left: 0; }
  .step h3 { margin-top: 46px; }
  .experience-item, .resume-entry { grid-template-columns: 1fr; gap: 10px; }
  .experience-item time, .resume-entry time { grid-row: 1; text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: white; }
  .nav, .hero-actions, .footer { display: none; }
  .resume-hero { padding: 30px 0; }
  .resume-grid { padding: 35px 0; gap: 40px; }
  .resume-entry { break-inside: avoid; }
  .print-only { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-track { scroll-behavior: auto; }
  .slide-control, .slide-dot, .carousel-progress-fill { transition: none; }
}

.portfolio-heading .ongrid-wordmark{width:min(100%,460px);line-height:1;margin:24px 0 0}.ongrid-wordmark img{display:block;width:100%;height:auto} @media(max-width:700px){.portfolio-heading .ongrid-wordmark{width:min(100%,340px);margin-top:20px}}

/* Blog */
.blog-page { min-height: calc(100vh - 178px); padding-top: clamp(66px, 11vw, 150px); padding-bottom: 100px; }
.blog-intro { max-width: 900px; padding-bottom: clamp(60px, 10vw, 125px); }
.blog-intro h1 { font: 400 clamp(3.8rem, 9vw, 8rem)/1.02 Georgia, serif; letter-spacing: -.055em; margin: 24px 0 28px; }
.blog-intro p { font-size: clamp(1.125rem, 2.1vw, 1.55rem); line-height: 1.55; max-width: 675px; color: #45474d; margin: 0; }
.blog-empty { border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 28px; padding: 24px 0 80px; }
.blog-empty-number { color: var(--blue-deep); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.blog-empty p { font: 400 clamp(1.5rem, 3vw, 2.25rem)/1.25 Georgia, serif; margin: 0; }
@media (max-width: 650px) { .blog-page { padding-top: 68px; }.blog-empty { grid-template-columns: 1fr; gap: 24px; } }

.blog-page:has(.blog-entry) { padding-top: clamp(56px, 8vw, 110px); }
.blog-page:has(.blog-entry) .blog-intro { padding-bottom: clamp(56px, 8vw, 100px); }
.blog-entry { border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.3fr); gap: clamp(28px, 5vw, 70px); padding-top: 25px; }
.blog-entry-meta { display: flex; flex-direction: column; gap: 14px; color: var(--blue-deep); font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.blog-entry-meta time { color: var(--muted); letter-spacing: .03em; text-transform: none; font-weight: 500; }
.blog-entry-body { max-width: 850px; }
.blog-entry h2 { font: 400 clamp(2.1rem, 4.3vw, 4.2rem)/1.08 Georgia, serif; letter-spacing: -.035em; margin: 0 0 26px; }
.blog-entry p { font-size: 1.0625rem; line-height: 1.7; max-width: 700px; }
.blog-entry-lede { font-size: clamp(1.125rem, 2vw, 1.35rem)!important; color: #45474d; margin: 0 0 38px; }
.blog-video { width: 100%; aspect-ratio: 16 / 9; background: #0b203a; }
.blog-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.blog-video-link { margin: 12px 0 55px; font-size: .875rem!important; }
.blog-entry a { text-decoration: underline; text-underline-offset: 4px; }
.blog-entry a:hover { color: var(--blue-deep); }
.blog-entry h3 { font: 400 clamp(1.65rem, 3vw, 2.35rem)/1.18 Georgia, serif; margin: 0 0 18px; }
.blog-source { color: var(--muted); font-size: .875rem!important; margin-top: 28px; }
@media (max-width: 700px) { .blog-entry { grid-template-columns: 1fr; gap: 28px; }.blog-entry-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }.blog-entry-lede { margin-bottom: 30px; } }
