:root {
  --bg: #000;
  --tile: #141414;
  --tile-2: #1d1d1d;
  --tile-3: #2a2a2a;
  --line: #2b2b2b;
  --text: #f4f4f4;
  --muted: #b4b4b4;
  --focus: #fff;
  --gap: 16px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip { position: absolute; left: 16px; top: -60px; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; }

.tile {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
}

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; margin-bottom: var(--gap); }
.brand { text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.brand em { font-weight: 400; }
.nav nav { display: flex; gap: 8px; }
.nav nav a { text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: .95rem; padding: 12px 14px; border-radius: 8px; transition: background .2s var(--ease); }
.nav nav a:hover { background: var(--tile-3); }

/* grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.hero { grid-column: 1 / 6; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.role { margin: 0 0 12px; color: var(--muted); font-style: italic; font-size: 1.05rem; }
h1 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.035em;
}

.photo { grid-column: 6 / 9; grid-row: 1; padding: 0; overflow: hidden; position: relative; margin: 0; min-height: 300px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: opacity .5s var(--ease); }

.experience { grid-column: 9 / 13; grid-row: 1 / 4; }
.experience h2 { margin: 0 0 8px; font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.job { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.job h3 { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.job .co { margin: 2px 0 0; font-style: italic; font-weight: 500; }
.job .date { margin: 2px 0 8px; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.job p:last-child { margin: 0 0 8px; color: #dedede; font-size: .95rem; line-height: 1.5; }

.about { grid-column: 1 / 5; grid-row: 2; }
.about p { margin: 0 0 14px; }
.about p:last-child { margin: 0; color: var(--muted); }
.about em { font-weight: 500; }

.email-tile {
  grid-column: 5 / 9; grid-row: 2;
  background: var(--tile-3);
  text-decoration: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.email-tile:hover { background: #fff; color: #000; }
.email-tile .ask { color: inherit; opacity: .85; }
.email-tile .arrow { justify-self: end; transition: transform .25s var(--ease); }
.email-tile:hover .arrow { transform: translate(4px, -4px); }
.email-tile .cta { grid-column: 1 / -1; align-self: end; margin-top: 60px; font-size: 2.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }

.label { grid-column: 1 / 5; grid-row: 3; background: var(--tile); display: flex; align-items: center; padding: 20px 28px; }
.label h2 { margin: 0; font-size: 2rem; font-weight: 500; line-height: 1.1; }

/* skills */
.skill h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; }
.skill ul { list-style: none; margin: 0; padding: 0; }
.skill li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .95rem; color: #e2e2e2; }
.skill li:first-child { border-top: 0; padding-top: 0; }

.systems { grid-column: 5 / 9; grid-row: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill .chips li { border: 1px solid var(--tile-3); background: var(--tile-2); border-radius: 999px; padding: 7px 14px; font-size: .9rem; }
.skill .chips li:first-child { padding-top: 7px; border: 1px solid var(--tile-3); }

.bento > .skill:not(.systems) { grid-column: span 4; }
.bento > .skill:nth-of-type(n) { min-height: 0; }


.contact { grid-column: 1 / 13; padding: 0; overflow: hidden; display: grid; grid-template-columns: 240px 1fr; }
.contact img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.contact-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.contact h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.contact h2 em { font-weight: 500; text-transform: none; }
.contact p { margin: 0; color: var(--muted); max-width: 42ch; }
.btn { align-self: flex-start; background: #fff; color: #000; text-decoration: none; font-weight: 600; padding: 14px 22px; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--tile-3); color: #fff; }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 0 0; }
footer p { margin: 0; }

/* tablet */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .hero { grid-column: 1 / 5; grid-row: auto; }
  .photo { grid-column: 5 / 7; grid-row: auto; }
  .about { grid-column: 1 / 4; grid-row: auto; }
  .email-tile { grid-column: 4 / 7; grid-row: auto; }
  .experience { grid-column: 1 / 7; grid-row: auto; }
  .label { grid-column: 1 / 7; grid-row: auto; }
  .systems { grid-column: span 3; grid-row: auto; }
  .bento > .skill:not(.systems) { grid-column: span 3; }
  .contact { grid-column: 1 / 7; }
}

/* phone */
@media (max-width: 640px) {
  .wrap { padding: 12px 12px 32px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento > *, .bento > .skill:not(.systems) { grid-column: 1 / -1 !important; }
  .tile { padding: 22px; }
  .nav { padding: 12px 16px; flex-wrap: wrap; gap: 4px; }
  .nav nav { flex-wrap: wrap; gap: 0; margin-left: -14px; }
  .brand { font-size: 1.25rem; }
  .hero { min-height: 240px; }
  .photo { aspect-ratio: 4 / 5; min-height: 0; }
  .email-tile { min-height: 200px; }
  .contact { grid-template-columns: 1fr; }
  .contact img { height: 260px; }
  .contact-body { padding: 24px; }
}

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

/* company logos */
.job-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.job-head > div { min-width: 0; }
.logo { flex: 0 0 auto; width: 84px; height: 56px; margin-top: 2px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 4px 6px; overflow: hidden; }
.logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo.logo-fill { width: 56px; padding: 0; background: #0a8cff; }
.logo.logo-fill img { width: 100%; height: 100%; object-fit: cover; }
.logo.logo-crop img { width: 100%; height: 100%; object-fit: contain; object-view-box: inset(32% 8% 30% 8%); }

.copy-note { font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: #000; padding: 12px 20px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 20; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* vertically centre content in the tall tiles */
.about { display: flex; flex-direction: column; justify-content: center; }
.systems { display: flex; flex-direction: column; }
.systems .chips { margin: auto 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid #555; gap: 8px; }
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; }