:root {
  color-scheme: dark;
  --bg: #10151a;
  --panel: #161e26;
  --line: #34424e;
  --ink: #f2f3ef;
  --muted: #b3bec8;
  --accent: #91c7ff;
  --serif: Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 75% 36rem at 83% 4%, #1a2936 0%, transparent 75%), var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
figure, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: .5rem 1rem; background: var(--bg); }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.06em; text-decoration: none; }
.brand span, .hero h1 span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: .15rem clamp(.9rem, 3vw, 2rem); }
nav a, .site-footer a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: underline transparent;
  transition: color .18s ease, text-decoration-color .18s ease;
}
nav a:is(:hover, :focus-visible) { color: var(--accent); text-decoration-color: currentColor; }
.site-footer a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .52fr);
  align-items: center;
  gap: clamp(1.75rem, 7vw, 6rem);
  padding-block: clamp(3.25rem, 7vw, 6rem);
}
.eyebrow {
  color: var(--accent);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .088em;
  text-transform: uppercase;
}
.location { display: flex; align-items: center; gap: .65rem; }
.location::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.hero h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  margin: .95rem 0 1.25rem;
  font-size: clamp(3rem, 7.8vw, 6.85rem);
  line-height: .91;
  letter-spacing: -.071em;
}
.hero-role { color: var(--accent); font-size: clamp(1rem, 1.63vw, 1.2rem); font-weight: 620; }
.hero-role span { padding-inline: .16em; }
.hero-intro { color: var(--muted); margin-top: .85rem; max-width: 32rem; font-size: 1.07rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: .58rem 1rem;
  border: 1px solid var(--line);
  border-radius: .38rem;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.button:is(:hover, :focus-visible) { border-color: var(--accent); color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #101a24; }
.button.primary:is(:hover, :focus-visible) {
  background: #b3d9ff;
  border-color: #b3d9ff;
  box-shadow: 0 .35rem 1.15rem #91c7ff33;
}
.portrait {
  justify-self: end;
  width: min(100%, 22rem);
  padding: .45rem;
  background: #222d37;
  border: 1px solid #465765;
  border-radius: .58rem;
  box-shadow: 0 1.25rem 3rem #05090d66;
  animation: portrait-enter .52s ease-out both;
}
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 39%; border-radius: .3rem; }

@keyframes portrait-enter {
  from { opacity: .65; transform: translateY(.6rem); }
  to { opacity: 1; transform: none; }
}

.section { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 4rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .55rem 1.5rem; margin-bottom: 1.55rem; }
h2 { margin: 0; font-size: clamp(2.35rem, 4.4vw, 3.65rem); line-height: 1; letter-spacing: -.05em; }
h3 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.03em; }
.text-link { color: var(--accent); font-size: .92rem; font-weight: 700; text-decoration: underline; }
.experience-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.experience-grid article { min-width: 0; padding: .15rem clamp(.9rem, 2.6vw, 2rem); border-left: 1px solid var(--line); }
.experience-grid article:first-child { border-left: 0; padding-left: 0; }
.experience-grid article:last-child { padding-right: 0; }
.experience-grid h3 { margin: .5rem 0 .55rem; }
.experience-grid article > p:last-child { color: var(--muted); }
.experience-grid-client > article:first-child {
  grid-column: 1 / -1;
  padding: 1.35rem clamp(1rem, 3vw, 1.8rem);
  margin-bottom: 1.25rem;
  background: #221c29;
  border: 1px solid #493649;
  border-radius: .55rem;
}
.experience-grid-client > article:first-child .eyebrow { color: #efb8d3; }
.experience-grid-client > article:first-child p:last-child { max-width: 66ch; }
.experience-grid-client > article:nth-child(2) { border-left: 0; padding-left: 0; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow: hidden;
  background: var(--panel);
}
.project-link {
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.project-link:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background-color: #1b2631;
  box-shadow: 0 .55rem 1.4rem #060b1055;
}
.featured-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(1.4rem, 4vw, 3.2rem); }
.featured h3 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; margin: .75rem 0 1rem; }
.featured-copy > p:not(.eyebrow), .project-card > p:not(.eyebrow) { color: var(--muted); }
.featured-copy .text-link, .project-card .text-link { margin-top: 1.3rem; }
.project-image {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3.25vw, 2.25rem);
  background: radial-gradient(ellipse at 65% 5%, #284764, #111c27 78%);
  border-left: 1px solid var(--line);
}
.project-image img {
  width: min(100%, 21rem);
  height: auto;
  border-radius: .35rem;
  border: 1px solid #4a6279;
  box-shadow: 0 .65rem 1.9rem #03080e9e;
  transition: transform .32s ease;
}
.client-feature { margin-bottom: .85rem; }
.client-feature .eyebrow { color: #efb8d3; }
.client-feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.15rem; margin-top: 1.35rem; }
.client-feature-links .text-link { margin: 0; }
.client-feature-links .primary { background: #efb8d3; border-color: #efb8d3; color: #261a28; }
.client-feature-links .primary:is(:hover, :focus-visible) { background: #ffd4e7; }
.client-visual { background: radial-gradient(ellipse at 50% 25%, #694457, #281e30 72%); }
.client-visual img { width: min(100%, 14rem); border: 1px solid #927186; border-radius: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.chips li { border: 1px solid #364858; color: #c9d8e7; background: #18232d; font-size: .8rem; padding: .14rem .55rem; border-radius: .3rem; }
.project-grid { gap: .85rem; margin-top: .85rem; }
.project-card { display: flex; flex-direction: column; align-items: start; gap: .65rem; padding: clamp(1.1rem, 2.3vw, 1.65rem); background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; }
.project-card .chips { margin-top: auto; padding-top: .4rem; }
.project-card .text-link { margin-top: .45rem; }

.toolkit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.toolkit div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .45rem; }
.toolkit dt { font-weight: 650; color: var(--accent); }
.toolkit dd { color: var(--muted); margin-top: .25rem; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1.65rem 2.5rem;
  padding: clamp(1.25rem, 4.5vw, 2.8rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.contact-intro p { margin-top: .65rem; color: var(--muted); }
.contact-details { display: grid; align-content: center; gap: .55rem; color: var(--muted); font: inherit; font-size: .9rem; }
.contact-details a { color: var(--ink); overflow-wrap: anywhere; }
.contact-details p, .email-line { display: flex; gap: .28rem .75rem; flex-wrap: wrap; align-items: center; }
.email-line button { padding: .25rem .6rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--bg); color: var(--accent); font: inherit; cursor: pointer; }
.email-line button:hover { border-color: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--muted); font-size: .86rem; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-card.project-link:hover { transform: translateY(-3px); }
  .featured:hover .project-image img { transform: scale(1.025); }
}

@media (max-width: 53rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(10rem, .47fr); gap: 1.6rem; }
  .hero h1 { font-size: clamp(3rem, 9vw, 5rem); }
  .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .hero { grid-template-columns: 1fr; padding-block: 2.25rem; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.5rem); }
  .portrait { justify-self: start; width: min(100%, 22rem); }
  .portrait img { aspect-ratio: 5 / 4; object-position: 50% 35%; }
  .experience-grid, .project-grid, .featured, .contact { grid-template-columns: 1fr; }
  .experience-grid article { border-left: 0; border-top: 1px solid var(--line); padding: .9rem 0; }
  .experience-grid article:first-child { border-top: 0; padding-top: 0; }
  .experience-grid-client > article:first-child { border-top: 1px solid #493649; padding-top: 1.35rem; margin-bottom: 0; }
  .experience-grid-client > article:nth-child(2) { border-top: 0; }
  .experience-grid article:last-child { padding-bottom: 0; }
  .project-image { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 25rem) {
  .shell { width: calc(100% - 2rem); }
  .site-header { gap: .15rem .7rem; min-height: 4rem; }
  nav { gap: .1rem .72rem; }
  nav a { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait { animation: none; }
  nav a, .button, .project-link, .project-image img { transition: none; }
}
