:root {
  --paper: #f4f0ec;
  --paper-strong: #fffdf9;
  --ink: #17151b;
  --muted: #69646c;
  --line: rgba(23, 21, 27, 0.17);
  --indigo: #4b4aa9;
  --indigo-deep: #303078;
  --plum: #6e315f;
  --teal: #0e7c7b;
  --gold: #d89b31;
  --serif: ui-serif, Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(33, 27, 41, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 8%, rgba(75, 74, 169, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 236, 0.91);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border-radius: 11px;
  background: var(--indigo);
}
.wordmark-mark i { width: 4px; border-radius: 99px; background: var(--paper-strong); }
.wordmark-mark i:nth-child(1) { height: 7px; }
.wordmark-mark i:nth-child(2) { height: 12px; }
.wordmark-mark i:nth-child(3) { height: 18px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.site-header nav a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:not(.nav-contact):hover { color: var(--indigo); }
.nav-contact {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-contact:hover { background: var(--ink); color: white; }

.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
}
.profile-rail {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
  align-self: start;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 64px);
  border-right: 1px solid var(--line);
}
.portrait-wrap { margin: 0 0 28px; position: relative; width: min(100%, 315px); }
.portrait-wrap img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 46% 46% 22% 22% / 34% 34% 18% 18%;
  filter: saturate(0.92) contrast(1.03);
}
.portrait-wrap figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow, .project-type {
  margin: 0 0 12px;
  color: var(--indigo-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.84;
}
.profile-copy h1 span { color: var(--plum); }
.intro { max-width: 310px; margin: 24px 0 8px; font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.18; }
.supporting { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}
.button-primary { border-color: var(--ink); background: var(--ink); color: white; }
.button-primary:hover { border-color: var(--indigo); background: var(--indigo); }
.button-quiet:hover { color: var(--indigo); border-color: var(--indigo); }
.micro-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 28px; }
.micro-stack span, .project-tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.portfolio-column { min-width: 0; padding: clamp(28px, 4vw, 68px); }
.portfolio-intro {
  margin-bottom: 38px;
}
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-kicker::after { content: ""; flex: 1; order: 1; height: 1px; background: var(--line); }
.section-kicker span:first-child { order: 0; }
.section-kicker span:last-child { order: 2; }
.portfolio-intro h2, .section-heading h2, .about-copy h2, .capabilities h2, .site-footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.portfolio-intro h2 em, .about-copy h2 em { color: var(--plum); font-weight: 500; }
.portfolio-context { max-width: 650px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.work-stack { display: grid; gap: clamp(58px, 7vw, 96px); }
.project-card { scroll-margin-top: 110px; }
.project-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #eef1f5;
  color: white;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.browser-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(23, 21, 27, 0.12);
  background: var(--paper-strong);
}
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #bbb4bc; }
.browser-bar span:first-child { background: var(--plum); }
.browser-bar span:nth-child(2) { background: var(--gold); }
.browser-bar span:nth-child(3) { background: var(--teal); }
.browser-bar b { margin-left: 7px; color: #55505a; font-size: 11px; font-weight: 700; }
.iframe-window { position: relative; overflow: hidden; background: white; }
.iframe-dashboard { height: clamp(350px, 43vw, 580px); }
.iframe-window iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 142.86%;
  height: 142.86%;
  border: 0;
  transform: scale(0.7);
  transform-origin: top left;
  pointer-events: none;
}
.project-preview::after {
  content: "";
  position: absolute;
  inset: 40px 0 0;
  background: linear-gradient(to top, rgba(18, 16, 23, 0.42), transparent 32%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.preview-action {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23, 21, 27, 0.92);
  color: white;
  font-size: 13px;
  font-weight: 760;
  transform: translateY(6px);
  opacity: 0;
  transition: 220ms ease;
}
.project-preview:hover::after, .project-preview:focus-visible::after { opacity: 1; }
.project-preview:hover .preview-action, .project-preview:focus-visible .preview-action { transform: none; opacity: 1; }
.project-preview:focus-visible { outline: 4px solid rgba(75, 74, 169, 0.35); outline-offset: 4px; }
.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-top: 24px;
}
.project-copy h3, .creative-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.project-copy > div > p:last-child, .creative-copy > p:last-child { max-width: 670px; margin: 0; color: var(--muted); }
.project-tags { max-width: 260px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin: 0; padding: 0; list-style: none; }

.impact-section { margin: clamp(72px, 9vw, 128px) 0; }
.impact-heading { margin-bottom: 28px; }
.impact-heading h2 { font-size: clamp(40px, 4.5vw, 60px); }
.impact-context { max-width: 650px; margin: 16px 0 0; color: var(--muted); }
.impact-strip {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.impact-strip div { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border-right: 1px solid var(--line); }
.impact-strip div:last-child { border-right: 0; }
.impact-strip strong { font-family: var(--serif); color: var(--indigo-deep); font-size: clamp(42px, 5vw, 68px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.impact-strip span { max-width: 190px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.section-heading { margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(40px, 5vw, 66px); }
.creative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.compact-preview { border-radius: 18px; box-shadow: 0 18px 50px rgba(33, 27, 41, 0.1); }
.iframe-creative { height: clamp(250px, 28vw, 400px); }
.iframe-creative iframe { width: 166.66%; height: 166.66%; transform: scale(0.6); }
.peace-preview iframe { top: -24px; }
.creative-copy { padding: 20px 4px 0; }
.creative-copy h3 { font-size: clamp(30px, 3.5vw, 44px); }
.creative-copy p { font-size: 14px; }

.about-section {
  margin: clamp(86px, 11vw, 150px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}
.about-image { position: relative; }
.about-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 22px 20px -18px;
  background: var(--indigo);
  border-radius: 28px;
  transform: rotate(-2.5deg);
}
.about-image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
}
.about-image span {
  position: absolute;
  right: -8px;
  bottom: 18px;
  padding: 8px 12px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-copy h2 { font-size: clamp(44px, 5vw, 70px); }
.about-notes { margin: 36px 0 0; }
.about-notes div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.about-notes dt { font-size: 13px; font-weight: 800; }
.about-notes dd { margin: 0; color: var(--muted); font-size: 14px; }

.capabilities {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  padding: 64px 0;
  border-block: 1px solid var(--line);
}
.capabilities h2 { font-size: clamp(38px, 4.5vw, 60px); }
.capabilities ul { margin: 0; padding: 0; list-style: none; }
.capabilities li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.capabilities li:last-child { border-bottom: 0; }
.capabilities li span { color: var(--plum); font-family: var(--serif); font-weight: 600; }

.site-footer {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 50px;
  padding: 90px 0 36px;
}
.site-footer h2 { max-width: 770px; font-size: clamp(48px, 6vw, 82px); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.footer-links > a:not(.button) { color: var(--muted); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.footer-links > a:not(.button):hover { color: var(--indigo); }
.copyright { grid-column: 1 / -1; align-self: end; margin: 50px 0 0; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .page-shell { grid-template-columns: 290px minmax(0, 1fr); }
  .profile-rail { padding: 34px 28px; }
  .profile-copy h1 { font-size: 58px; }
  .portrait-wrap img { max-height: 280px; }
  .portfolio-column { padding: 38px 30px; }
  .iframe-dashboard { height: 430px; }
  .project-copy { grid-template-columns: 1fr; }
  .project-tags { justify-content: flex-start; max-width: none; }
  .creative-grid { grid-template-columns: 1fr; gap: 54px; }
  .iframe-creative { height: 430px; }
  .about-section { grid-template-columns: 1fr; }
  .about-image { width: min(76%, 500px); }
  .capabilities { grid-template-columns: 1fr; gap: 35px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 10px 18px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .nav-contact { padding: 8px 12px; }
  .page-shell { display: block; }
  .profile-rail { position: relative; top: auto; height: auto; min-height: 0; padding: 34px 20px 54px; border-right: 0; border-bottom: 1px solid var(--line); }
  .portrait-wrap { width: min(64vw, 270px); min-width: 190px; margin-bottom: 28px; }
  .portrait-wrap img { max-height: 290px; }
  .profile-copy h1 { font-size: clamp(54px, 15vw, 74px); line-height: 0.88; }
  .intro { max-width: 370px; font-size: 26px; }
  .micro-stack { margin-top: 26px; padding-top: 0; }
  .portfolio-column { padding: 42px 18px; }
  .portfolio-intro { margin-bottom: 30px; }
  .portfolio-intro h2, .section-heading h2, .about-copy h2, .capabilities h2, .site-footer h2 { font-size: clamp(40px, 13vw, 60px); }
  .project-preview { border-radius: 14px; }
  .iframe-dashboard { height: 340px; }
  .iframe-window iframe { width: 200%; height: 200%; transform: scale(0.5); }
  .preview-action { right: 10px; bottom: 10px; opacity: 1; transform: none; padding: 8px 11px; }
  .project-copy { padding-top: 18px; }
  .project-copy h3 { font-size: 39px; }
  .impact-strip { grid-template-columns: 1fr; }
  .impact-strip div { min-height: 138px; border-right: 0; border-bottom: 1px solid var(--line); }
  .impact-strip div:last-child { border-bottom: 0; }
  .iframe-creative { height: 320px; }
  .about-section { margin-block: 96px; }
  .about-image { width: 100%; }
  .about-notes div { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { min-height: 560px; padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
