:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #86868b;
  --line: #d2d2d7;
  --grid-line: rgba(29, 29, 31, 0.035);
  --grid-size: 56px;
  --purple: #7c3aed;
  --purple-deep: #6d28d9;
  --purple-soft: rgba(124, 58, 237, 0.14);
  --yellow: var(--purple);
  --yellow-deep: var(--purple-deep);
  --yellow-soft: var(--purple-soft);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --rose: #e11d48;
  --teal: #06c;
  --mist: var(--yellow);
  --deep: #1d1d1f;
  --accent: var(--yellow);
  --accent-hover: var(--yellow-deep);
  --accent-ink: #ffffff;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 980px;
  --nav-h: 2.75rem;
  --radius: 18px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 4rem;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: none;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M56 0H0M0 0V56' fill='none' stroke='%231d1d1f' stroke-opacity='0.04' stroke-width='1' shape-rendering='crispEdges'/%3E%3C/svg%3E");
  background-size: var(--grid-size) var(--grid-size);
  background-repeat: repeat;
  background-position: 0 0;
}

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
  -webkit-user-drag: none;
}

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

/* NAV — Apple dark frosted bar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1.25rem;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  border-bottom: 0;
}

.nav.is-scrolled {
  background: rgba(22, 22, 23, 0.92);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav__brand {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  opacity: 0.92;
}

.nav__brand:hover {
  opacity: 1;
}

.nav__confidential {
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.tag--confidential {
  color: var(--purple-deep);
  background: var(--purple-soft);
  border: 0;
}

.nav .tag--confidential {
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.28);
  font-size: 0.56rem;
  padding: 0.16rem 0.42rem;
}

.nav__links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.nav__links a:hover {
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}

.nav__toggle span {
  display: block;
  height: 1px;
  background: #f5f5f7;
}

/* HERO — clean white banner */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 0;
  margin: 0;
  padding: calc(var(--nav-h) + 1.75rem) 1.5rem 1.75rem;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero__lede {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero .btn--primary {
  background: var(--purple);
  color: #fff;
  border-radius: 980px;
  font-weight: 600;
  box-shadow: none;
}

.hero .btn--primary:hover {
  background: var(--purple-deep);
}

.hero .btn--ghost {
  border-radius: 980px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.hero .btn--ghost:hover {
  border-color: var(--purple);
  background: #fff;
  color: var(--purple);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-radius: 980px;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--purple-deep);
}

.btn--ghost {
  border-color: rgba(29, 29, 31, 0.18);
  color: var(--ink);
  background: transparent;
  border-radius: 980px;
  font-weight: 600;
}

.btn--ghost:hover {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple);
}

.btn--text {
  min-height: auto;
  padding: 0;
  color: var(--purple);
  font-weight: 600;
  font-size: 1.05rem;
  background: transparent;
  border: 0;
}

.btn--text:hover {
  color: var(--purple-deep);
  text-decoration: underline;
}

.btn--text span {
  margin-left: 0.15rem;
}

/* SECTIONS — trendy panels after hero */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.5rem 6rem;
  max-width: none;
  margin: 0;
}

.section--panel {
  padding-left: max(1.5rem, calc((100vw - 1100px) / 2));
  padding-right: max(1.5rem, calc((100vw - 1100px) / 2));
}

.section--panel::before { content: none; display: none; }

.section--tint {
  background: transparent;
}

.section--tint::before { content: none; display: none; }

.section--deep,
.section--mist {
  max-width: none;
  background: transparent;
  padding-left: max(1.5rem, calc((100vw - 1100px) / 2));
  padding-right: max(1.5rem, calc((100vw - 1100px) / 2));
  border-top: 0;
  border-bottom: 0;
}

.section__head {
  margin: 0 auto 2.75rem;
  max-width: 44rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.section__index {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.32rem 0.7rem;
  border-radius: 0;
  background: var(--yellow);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.section__title::after {
  display: none;
}

.section__sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.section__sub a {
  color: var(--blue);
  text-decoration: none;
}

.section__sub a:hover {
  text-decoration: underline;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 980px;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-link:hover {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-color: rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.section--tint .doc-link {
  background: #fff;
}

.section__title .tag {
  position: relative;
  top: -0.22em;
  margin-left: 0.45rem;
  vertical-align: middle;
}

/* RESUME */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.resume-card,
.timeline__item,
.work,
.ai-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.section--tint .resume-card,
.section--tint .timeline__item,
.section--tint .work,
.section--tint .ai-card {
  background: #fff;
}

.resume-card:hover,
.timeline__item:hover,
.work:hover,
.ai-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.resume-card h3,
.timeline__item h3,
.work h3,
.ai-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.resume-card p,
.timeline__item p,
.work p,
.ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0;
  text-align: center;
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-list a {
  color: var(--purple);
}

.contact-list a:hover {
  color: var(--purple-deep);
  text-decoration: underline;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.skill-chips span {
  border: 0;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 980px;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline__when {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.gallery-label {
  margin: 2.75rem 0 1.1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}

.apps-product__head {
  margin: 0 auto 1.35rem;
  text-align: center;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.22);
  max-width: 44rem;
}

.apps-product__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apps-product__head h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.apps-product__head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 40rem;
}

.apps-hero,
.apps-card,
.apps-journey,
.thumb-card,
.gallery__item,
.bento__card,
.board-card,
.ai-project {
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.ai-project {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

.ai-project__tag {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-project__body h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
}

/* PALETTE leftovers */
.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.swatch {
  min-height: 110px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.82rem;
  border-radius: 16px;
  border: 0;
}

.swatch--deep {
  background: var(--deep);
  color: #fff;
}
.swatch--rose {
  background: var(--rose);
  color: #fff;
}
.swatch--mist {
  background: var(--blue);
  color: #fff;
}
.swatch--lush {
  background: #30d158;
  color: #003d14;
}
.swatch--ivory {
  background: #f5f5f7;
  color: var(--ink);
}

.type-sample {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  padding: 1.4rem;
  border: 0;
  border-radius: 22px;
  background: var(--bg-soft);
}

.label {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.type-sample__display {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.type-sample__body {
  margin: 0;
  color: var(--muted);
}

/* APPS */
.apps-product {
  margin-bottom: 3.5rem;
}

.apps-product:last-child {
  margin-bottom: 0;
}

/* FOLD / ACCORDION */
.fold-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.fold-toolbar__btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.45rem 0.85rem;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fold-toolbar__btn:hover {
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--purple-deep);
  background: var(--purple-soft);
}

.fold {
  margin: 0 0 1rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: clip;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fold[open] {
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 14px 40px rgba(29, 29, 31, 0.05);
}

.fold--product {
  margin-bottom: 1.15rem;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), #fff 7rem);
}

.fold--product:last-child {
  margin-bottom: 0;
}

.fold--wire {
  margin-top: 1.15rem;
  margin-bottom: 0;
  background: #f5f5f7;
  border-color: transparent;
  box-shadow: none;
}

.fold--wire[open] {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.fold--gallery {
  margin-bottom: 1rem;
}

.fold__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.fold__summary::-webkit-details-marker {
  display: none;
}

.fold__summary--product {
  padding: 1.35rem 1.4rem;
}

.fold__summary--wire {
  padding: 1rem 1.15rem;
}

.fold__text {
  min-width: 0;
  text-align: left;
}

.fold__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fold__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 700;
}

.fold__summary--product .fold__title {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
}

.fold__desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 40rem;
}

.fold__meta {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.fold--product .fold__meta {
  background: var(--purple-soft);
  color: var(--purple-deep);
}

.fold__chevron {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.28s ease, background 0.2s ease;
}

.fold__chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.28s ease;
}

.fold[open] > .fold__summary .fold__chevron {
  background: var(--purple-soft);
  transform: rotate(180deg);
}

.fold[open] > .fold__summary .fold__chevron::before {
  border-color: var(--purple-deep);
}

.fold__summary:hover .fold__chevron {
  background: var(--purple-soft);
}

.fold__body {
  padding: 0 1.15rem 1.25rem;
}

.fold--wire .fold__body {
  padding-top: 0.15rem;
}

.fold--product .fold__body {
  padding-bottom: 1.4rem;
}

.apps-product__head {
  margin: 0 auto 1.35rem;
  text-align: center;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.22);
  max-width: 44rem;
}

.apps-product__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apps-product__head h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.apps-product__head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 40rem;
}

.apps-showcase {
  display: grid;
  gap: 1rem;
}

.apps-hero,
.apps-card,
.apps-journey,
.thumb-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease);
}

.apps-hero {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.apps-hero img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #fff;
}

.apps-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.apps-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #fff;
}

.thumb-card {
  aspect-ratio: 4 / 3;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.apps-hero:hover,
.apps-card:hover,
.thumb-card:hover,
.apps-journey:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.apps-hero:hover img,
.apps-card:hover img,
.thumb-card:hover img {
  transform: none;
}

.apps-hero figcaption,
.apps-card figcaption,
.apps-journey figcaption {
  position: static;
  padding: 0.95rem 1.1rem 1.05rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 0;
  pointer-events: none;
  text-align: center;
}

.apps-hero figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  background: #fff;
  text-align: center;
}

.apps-hero figcaption span,
.apps-card figcaption span,
.apps-journey figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.apps-hero figcaption strong,
.apps-journey figcaption strong {
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.apps-hero figcaption em,
.apps-journey figcaption em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.apps-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.apps-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
.apps-grid--one {
  grid-template-columns: 1fr;
}

.apps-grid--one .apps-card img {
  aspect-ratio: 16 / 9;
}

.apps-journey {
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
}

.apps-journey img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.wireframe-block {
  margin-top: 2.25rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: 24px;
  background: #f5f5f7;
}

.wireframe-block__head {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 36rem;
}

.wireframe-block__title {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.wireframe-block__sub {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tag--wireframe {
  color: #3a3a3c;
  background: rgba(0, 0, 0, 0.08);
  display: inline-flex;
  margin: 0;
}

.fold--wire .tag--wireframe {
  margin-bottom: 0.35rem;
}

.wireframe-grid {
  gap: 0.85rem;
}

.wireframe-card {
  background: #fff;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wireframe-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center top;
  background: #fff;
  filter: none;
}

.wireframe-card figcaption {
  background: #fff;
  font-size: 0.88rem;
}

.wireframe-card--wide {
  grid-column: 1 / -1;
  max-width: 36rem;
  width: 100%;
  justify-self: center;
}

@media (max-width: 720px) {
  .fold__summary {
    grid-template-columns: 1fr auto;
  }

  .fold__meta {
    display: none;
  }

  .fold__summary--product,
  .fold__summary {
    padding: 1rem 1.05rem;
  }

  .fold__body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-label {
  margin: 2.75rem 0 1.1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}

.board-hint {
  margin: -0.2rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: auto;
}

/* AI */
.ai-projects {
  display: grid;
  gap: 1.25rem;
}

.ai-project {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ai-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

.ai-project:nth-child(even) {
  grid-template-columns: 0.9fr 1.35fr;
}

.ai-project:nth-child(even) .ai-project__media {
  order: 2;
}

.ai-project:nth-child(even) .ai-project__body {
  order: 1;
}

.ai-project__media {
  display: block;
  overflow: hidden;
  background: #e8e8ed;
  min-height: 260px;
}

.ai-project__media img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.ai-project:hover .ai-project__media img {
  transform: none;
}

.ai-project__body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ai-project__tag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-project__body h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.ai-project__body p {
  margin: 0 auto 1rem;
  color: var(--muted);
  max-width: 28rem;
}

.ai-project__link {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  font-weight: 400;
  font-size: 1.05rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.ai-project__link:hover {
  text-decoration: underline;
  color: var(--blue-hover);
  border-color: transparent;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ai-card__num {
  display: block;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* OTHER WORKS */
#other.section--mist {
  background: var(--bg-soft);
}

#other .section__head {
  margin-bottom: 2rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.bento__card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  cursor: zoom-in;
}

.bento__card--hero,
.bento__card--wide {
  grid-column: auto;
}

.bento__card--hero {
  grid-column: 1 / -1;
}

.bento__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

.bento__card--hero img {
  aspect-ratio: 21 / 9;
}

.bento__card figcaption {
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: #fff;
  text-align: center;
}

.bento__card figcaption span {
  color: var(--muted);
  margin-right: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

#other .gallery-label,
#other .board-hint {
  text-align: center;
}

.board-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.board-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  height: 100%;
  transition: transform 0.35s var(--ease);
}

.board-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.board-card__scroll {
  flex: 0 0 auto;
  height: 340px;
  max-height: none;
  overflow: auto;
  cursor: zoom-in;
  background: #f5f5f7;
  overscroll-behavior: contain;
}

.board-card__scroll img {
  width: 100%;
  height: auto;
  display: block;
}

.board-card figcaption {
  margin-top: auto;
  padding: 1rem 1.15rem 1.1rem;
  font-weight: 600;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink);
  background: #fff;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.board-card figcaption span {
  color: var(--muted);
  margin-right: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* SOFTWARE / TOOLS MARQUEE */
.tools {
  background: var(--purple);
  color: #fff;
  padding: 1.75rem 0 1.9rem;
  overflow: hidden;
  border-top: 0;
}

.tools__inner {
  max-width: none;
}

.tools__label {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tools__marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tools__track {
  display: flex;
  width: max-content;
  animation: tools-marquee 32s linear infinite;
}

.tools__marquee:hover .tools__track {
  animation-play-state: paused;
}

.tools__list {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  list-style: none;
  margin: 0;
  padding: 0 1.75rem;
}

.tools__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  white-space: nowrap;
  opacity: 0.92;
}

.tools__logo {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: block;
}

.tools__logo--spark {
  width: 1.2rem;
  height: 1.2rem;
}

.tools__item span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@keyframes tools-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tools__track {
    animation: none;
  }

  .tools__marquee {
    overflow-x: auto;
  }

  .tools__track {
    width: 100%;
    justify-content: center;
  }

  .tools__list[aria-hidden="true"] {
    display: none;
  }
}

/* FOOTER */
.footer {
  margin: 0;
  padding: 0;
  max-width: none;
  border-top: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.footer__inner {
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
  padding: 1.35rem 1.5rem 2.25rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.footer__brand-block {
  min-width: 0;
}

.footer__brand {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer__role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.35rem;
}

.footer__links a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding-top: 1rem;
}

.footer__confidential {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

/* BACK TO TOP */
.back-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--purple-deep);
}

.back-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  max-width: min(1100px, 92vw);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.lightbox.is-tall {
  align-items: start;
  overflow-y: auto;
  padding: 3rem 1rem;
}

.lightbox.is-tall img {
  max-height: none;
  width: min(520px, 92vw);
  margin: 0 auto;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__close {
  top: 1rem;
  right: 1.25rem;
}
.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding: calc(var(--nav-h) + 1.5rem) 1.25rem 1.5rem;
  }

  .hero__name {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(22, 22, 23, 0.96);
    padding: 0.4rem 0;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    padding: 0.85rem 1.25rem;
    color: #f5f5f7;
  }

  .resume-grid,
  .type-sample,
  .ai-project,
  .ai-project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .ai-project:nth-child(even) .ai-project__media,
  .ai-project:nth-child(even) .ai-project__body {
    order: initial;
  }

  .apps-grid,
  .apps-grid--three,
  .thumb-grid,
  .board-rail,
  .work-grid,
  .ai-grid,
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento__card--hero {
    grid-column: 1 / -1;
  }

  .bento__card,
  .bento__card--wide {
    grid-column: auto;
  }

  .board-card__scroll {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .nav__confidential {
    display: none;
  }

  .section {
    padding: 3.5rem 1.15rem;
  }

  .hero {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .apps-grid,
  .apps-grid--three,
  .apps-grid--two,
  .thumb-grid,
  .board-rail,
  .work-grid,
  .ai-grid,
  .gallery,
  .palette,
  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card,
  .bento__card--hero,
  .bento__card--wide {
    grid-column: auto;
  }

  .bento__card img,
  .bento__card--hero img {
    aspect-ratio: 16 / 10;
  }

  .board-card__scroll {
    height: 280px;
  }

  .footer__inner {
    padding: 1.25rem 1.15rem 2rem;
  }

  .footer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .apps-hero img {
    aspect-ratio: 4 / 3;
  }

  .ai-project__media img {
    max-height: 240px;
  }

  .footer {
    background: var(--bg-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}


/* AI Works — clean flat panel, no sphere wash */
#ai.section--tint {
  background: transparent;
}
#ai::before {
  content: none !important;
  display: none !important;
}
#ai .ai-project {
  background: #f5f5f7;
  border: 0;
  box-shadow: none;
}
#ai .ai-project__tag {
  background: var(--purple);
  color: #fff;
}
#ai .ai-project__link {
  color: var(--purple);
}
#ai .ai-project__link:hover {
  color: var(--purple-deep);
}
