:root {
  --ink: #1f2328;
  --graphite: #2b2d31;
  --body: #444b55;
  --mid: #6a7079;
  --line: #e4e6ea;
  --cobalt: #2f5bea;
  --white: #fff;
  --fog: #f5f6f8;
  --w: 1280px;
  --gutter: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
ul { margin: 0; padding-left: 18px; }
li { margin: 0 0 .3em; }
.w { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--mid); font-size: 15px; }
h2 { font-size: 15px; font-weight: 600; color: var(--mid); margin: 0 0 30px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: 0; }
.big { font-size: 24px; line-height: 1.4; color: var(--ink); margin: 0 0 18px; }

/* nav */
nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-weight: 500; }
nav div { display: flex; gap: 30px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { font-weight: 600; }
.bar { border-bottom: 1px solid var(--line); }
.bar nav { height: 68px; }

/* hero */
.hero { position: relative; height: 860px; color: #fff; background: #2b2d31 url(/img/hero-photo.jpg) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.65)); }
.hero nav { position: relative; z-index: 1; height: 84px; }
.hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 56px; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { font-size: 120px; font-weight: 600; line-height: .9; letter-spacing: -.055em; }
.hero p { margin: 18px 0 0; font-size: 21px; max-width: 34ch; color: #e5e7eb; }

/* intro */
.intro { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 120px; padding-bottom: 100px; }
.intro img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; }
.intro .big { color: var(--ink); font-size: 40px; line-height: 1.25; font-weight: 500; letter-spacing: -.025em; max-width: 28ch; margin-bottom: 20px; }
.intro p { color: var(--mid); max-width: 62ch; margin: 0; }
.intro .facts { margin-top: 18px; font-size: 15px; color: var(--body); }

/* featured work */
.cs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.cs.flip { grid-template-columns: 1fr 1.4fr; }
.cs.flip > a { order: 2; }
.cs img { width: 100%; aspect-ratio: 4 / 3; object-position: center top; object-fit: cover; border-radius: 10px; }
.cs h3 { font-size: 44px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 16px; }
.cs h3 a { text-decoration: none; }
.cs h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.k { display: block; color: var(--cobalt); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.cs p { color: var(--body); margin: 0 0 18px; }
.cs ul { color: var(--body); font-size: 15px; margin-bottom: 18px; }
.more-link { font-weight: 600; font-size: 15px; color: var(--cobalt); text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
img.contain { object-fit: contain; background: #f4f4f5; padding: 8%; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 110px; }
.tile { text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 12px; transition: transform .3s ease; }
.tile:hover img { transform: translateY(-3px); }
.tile b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile span { color: var(--mid); font-size: 15px; }

/* experience */
.fog { background: var(--fog); padding: 100px 0; }
.xp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.xp div { background: var(--white); padding: 28px; }
.xp .y { color: var(--mid); font-size: 14px; }
.xp h3 { margin: 6px 0 4px; font-size: 19px; }
.c { display: block; color: var(--cobalt); font-weight: 500; font-size: 15px; }
.xp p { margin: 10px 0 0; font-size: 15px; color: var(--body); }
.side-by-side { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.brd .c { font-weight: 600; margin-bottom: 8px; }
.brd h3 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.brd p { margin: 10px 0 0; color: var(--body); max-width: 60ch; }

/* quotes */
.quotes { padding-top: 120px; }
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.recs figure { margin: 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.recs blockquote { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--body); }
.recs blockquote::before { content: "“"; display: block; font-size: 48px; line-height: .6; color: var(--cobalt); margin-bottom: 14px; font-weight: 600; }
.recs figcaption { display: flex; flex-direction: column; font-size: 15px; }
.recs figcaption span { color: var(--mid); }
.quotes .muted { margin: 40px 0 0; }
.quotes .muted a { color: var(--cobalt); }

/* skills */
.skills { padding-top: 120px; padding-bottom: 120px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; margin-bottom: 100px; }
.caps h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.caps p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; }
.tools { margin: 0; }
.tools div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.tools div:last-child { border-bottom: 1px solid var(--line); }
.tools dt { font-weight: 600; font-size: 15px; }
.tools dd { margin: 0; color: var(--body); }

/* contact */
.ct { background: var(--graphite); color: #fff; padding: 100px 0 0; }
.ct-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 100px; }
.ct h2 { border: 0; padding: 0; margin: 0 0 14px; color: #9ca3af; }
.ct p { margin: 0; color: #c9cdd3; max-width: 36ch; }
.ct-links a { display: block; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-decoration: none; }
.ct-links a + a { color: #9ca3af; }
.ct-links a:hover { text-decoration: underline; text-underline-offset: 8px; }

/* footer */
.site-footer { background: var(--graphite); color: #9ca3af; padding: 0 0 36px; }
.site-footer .w { border-top: 1px solid #3f434a; padding-top: 32px; }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-brand { display: flex; flex-direction: column; }
.f-brand .brand { color: #fff; text-decoration: none; }
.f-brand span { font-size: 14px; }
.f-nav { display: flex; gap: 24px; font-size: 15px; }
.f-nav a { text-decoration: none; color: #d1d5db; }
.f-nav a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3f434a; color: #d1d5db; }
.social a:hover { border-color: #fff; color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.f-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; }
/* project pages sit on white, so give them the same dark footer band with a top margin */
main.project + .site-footer { margin-top: 0; }

/* project pages */
.project { padding: 72px var(--gutter) 100px; }
.project h1 { font-size: 64px; font-weight: 600; letter-spacing: -.04em; margin: 0 0 32px; }
.pg { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-bottom: 110px; }
.hero-img { width: 100%; border-radius: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 20px; border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project h2 { margin-top: 28px; }
.project ul { color: var(--body); }
.details { display: grid; gap: 14px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.details dt { color: var(--mid); font-size: 15px; }
.details dd { margin: 0; font-weight: 500; }
.details a { color: var(--cobalt); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: -60px 0 110px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gallery img.wide { grid-column: span 2; aspect-ratio: 3 / 1; }

/* mobile */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .hero { height: 640px; }
  .hero nav { height: 68px; }
  .hero nav div { gap: 18px; font-size: 15px; }
  .hero-text { bottom: 36px; }
  .hero h1 { font-size: 60px; }
  .hero p { font-size: 18px; }
  .intro { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
  .intro img { width: 120px; height: 120px; }
  .intro .big { font-size: 28px; }
  .cs, .cs.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .cs.flip > a { order: 0; }
  .cs h3 { font-size: 32px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 56px; }
  .tile b { font-size: 15px; }
  .tile span { font-size: 13px; }
  .fog { padding: 56px 0; }
  .xp { grid-template-columns: 1fr; }
  .xp div { padding: 20px; }
  .side-by-side { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .brd h3 { font-size: 26px; }
  .quotes, .skills { padding-top: 64px; }
  .skills { padding-bottom: 64px; }
  .ct { padding-top: 56px; }
  .ct-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; }
  .ct-links a { font-size: 22px; }
  .recs { grid-template-columns: 1fr; gap: 28px; }
  .tools div { grid-template-columns: 1fr; gap: 4px; }
  .caps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .f-row { flex-direction: column; align-items: flex-start; }
  .f-meta { flex-direction: column; gap: 6px; }
  .project { padding-top: 40px; padding-bottom: 56px; }
  .project h1 { font-size: 40px; }
  .pg { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin: -28px 0 56px; }
  .gallery img.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
  .details div { grid-template-columns: 70px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
