/* ---------- Fonts ---------- */
/* Geist (SIL OFL), self-hosted variable font — one file covers 100–900 */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("Fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("Fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --text: #0e0e0e;
  --text-muted: #4a4a48;
  --orange: #fa3e1d;
  --radius: 20px;
  --pad: clamp(22px, 6vw, 96px);
  --page-max: 1440px;

  /* one type system for every page: Geist for display, Inter for text */
  --font-display: "Geist", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* display face: the wordmark and every headline */
.nav__title,
.hero__headline,
.card__title {
  font-family: var(--font-display);
}

a { color: inherit; text-decoration: none; }

/* centered container so content never stretches edge-to-edge on wide screens */
.page {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0 var(--pad);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.95rem;
}

.nav__role { color: #8a8a88; }
.nav__title { font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: 1rem;
  font-weight: 500;
}

.nav__links a { display: inline-flex; align-items: center; gap: 4px; }
.nav__links a:hover { opacity: 0.6; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }

.hero__headline {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 400;
}

/* the name links to LinkedIn, underlined in the brand orange */
.hero__name {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.08em;
  transition: color 0.2s ease;
}
.hero__name:hover { color: var(--orange); }

.hero__bio {
  max-width: 46ch;
  margin: clamp(18px, 2vw, 28px) 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-muted);
}

/* inline black pill, like the "Rivian" chip */
.pill {
  display: inline-block;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 0.85em;
  padding: 2px 14px 3px;
  border-radius: 999px;
  vertical-align: 1px;
}


/* ---------- Work ---------- */
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  padding-bottom: 40px;
}

/* the whole card is one link */
.card { display: block; color: inherit; }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: var(--radius); }

/* the lead card spans full width, like the big feature images */
.card--wide { grid-column: 1 / -1; }
.card--wide .card__media { aspect-ratio: 16 / 8; }

/* side projects: personal and student work, three across */
.side { margin-top: clamp(40px, 5vw, 72px); }
.side__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work--side { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 0; }

.card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card__media { transform: scale(0.99); }

/* AI CPQ: clean brand canvas, screenshot centered */
.card__media--cpq {
  background: linear-gradient(150deg, #e8f1fd 0%, #f4f9ff 45%, #dbeafd 100%);
}

/* quiet gallery-label tag in the corner */
.card__tag {
  position: absolute;
  top: clamp(16px, 2vw, 26px);
  left: clamp(16px, 2vw, 26px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c3d6e;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* a real photo of the work fills its card */
.card__media--photo { background: var(--photo-bg, #f1ddbe); }  /* set per card to match its photo */
.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* the whole object in view, on a matching ground */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* screenshot shown whole, centered in the canvas */
.card__shot {
  width: 46%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(28, 61, 110, 0.18));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card__shot,
.card:hover .card__photo { transform: scale(1.04); }

/* 3D scenes fill their cards (spindle + tongs) */
.tongs {
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tongs canvas {
  width: 100%;
  height: 100%;
  display: block;
}


.spindle {
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.spindle canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.card:hover .spindle { transform: scale(1.04); }

/* Ono app icon badge overlapping the iPad's bottom-right corner */
.ono-icon {
  position: absolute;
  right: -12%;
  bottom: -5%;
  width: 30%;
  border-radius: 22%;
  box-shadow: 0 10px 22px rgba(30, 30, 40, 0.3);
}

/* iPad frame for the Ono Diary demo video */
.ipad {
  position: relative;
  height: 84%;
  aspect-ratio: 1668 / 2326;
  background: #17171a;
  border: 3px solid #3a3a40;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(30, 30, 40, 0.28);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ipad video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #000;
}

.card:hover .ipad { transform: scale(1.04); }

/* pause/play control, revealed on hover in the bottom-right corner */
.spindle__pause {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1f5232;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.card__media:hover .spindle__pause,
.app-stage:hover .spindle__pause,
.spindle__pause:focus-visible {
  opacity: 1;
}

.spindle__pause:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  /* the canvas scenes stop themselves, so their control is redundant — but the
     Ono video still autoplays, so keep its control reachable */
  .spindle__pause { display: none; }
  .card__media:has(.ipad) .spindle__pause,
  .app-stage .spindle__pause { display: flex; opacity: 1; }
}

/* Case Management: teal canvas with the phone screens */
.card__media--cm {
  background: linear-gradient(150deg, #e3f4f2 0%, #f2faf9 45%, #cde9e6 100%);
}

/* soft brand-pulled canvases for cards awaiting artwork */
.card__media--dusk {
  background:
    linear-gradient(150deg, rgba(230, 246, 232, 0.88) 0%, rgba(245, 251, 246, 0.85) 45%, rgba(205, 233, 212, 0.88) 100%),
    url("Images/Homepage/Featured-Images-How-to-Read-a-Topographic-Map.webp") center / cover no-repeat;
}
.card__media--sand {
  background: linear-gradient(150deg, #eaeef4 0%, #f5f7fa 45%, #d7e0ec 100%);
}
.card__media--night {
  background: linear-gradient(150deg, #faf1e4 0%, #fdf8ef 45%, #f1ddbe 100%);
}
.card__media--rose {
  background: linear-gradient(150deg, #efeafd 0%, #f8f5ff 45%, #ded2f9 100%);
}

/* the impact-ui artwork is dense — let it render larger for legibility */
.card__media--rose .card__shot {
  width: 68%;
  max-height: 90%;
}

.card__brand {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card__media--dusk .card__brand  { color: #4c3a80; }
.card__media--sand .card__brand  { color: #2e4360; }
.card__media--night .card__brand { color: #7d5a2e; }
.card__media--rose .card__brand  { color: #8c422f; }

.card__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 6px;
}

.card__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card__outcome {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}
.card__meta {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #6b6b68;   /* 5.3:1 on white, past the 4.5:1 minimum */
}
/* a card with no page yet: not a link, so no hover and a status instead of an arrow */
.card--static:hover .card__media,
.card--static:hover .card__shot,
.card--static:hover .ipad { transform: none; }
.card__status {
  flex: none;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f0ec;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.card__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--text);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.card:hover .card__link { color: var(--orange); border-color: var(--orange); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dddddb;
  margin-top: 40px;
  padding: 28px 0 44px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer a:hover { color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .work--side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  /* "View work" drops below the text so the tagline keeps the full width */
  .card__caption { flex-direction: column; gap: 10px; }
}

@media (max-width: 860px) {
  .work,
  .work--side { grid-template-columns: 1fr; }
  /* every card the same shape on phones */
  .card--wide .card__media { aspect-ratio: 4 / 3; }
  .nav__links { gap: 16px; font-size: 0.95rem; }
}
