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

:root {
  --bg: #F7F6F3;
  --bg2: #EEECEA;
  --surface: #FFFFFF;
  --border: #E3E2DF;
  --text: #37352F;
  --text-secondary: #5F5D58;
  --green: #58CC02;
  --green-dark: #46A302;
  --green-light: #D7F5B1;
  --blue: #1CB0F6;
  --blue-light: #DDF4FF;
  --gold: #FFC800;
  --red: #FF4B4B;
  --radius-sm: 5px;
  --radius: 5px;
  --radius-lg: 5px;
}

html { scroll-behavior: smooth; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  z-index: 1000;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--green); outline-offset: 2px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.accent { color: var(--green); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 60px;
}
.nav__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.04em;
}
.nav__logo-dot { color: var(--green); }
.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 100px;
  background: transparent;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active {
  color: var(--green-dark);
  background: var(--green-light);
}
.nav__link:focus-visible,
.nav__cta:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav__cta {
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.nav__cta:hover { background: var(--green-dark); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: stretch;
}
.nav__toggle:hover { background: var(--bg2); }
.nav__toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav__toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(20px, 10vw, 160px) 80px;
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  pointer-events: none;
}
.hero__glow--green {
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,204,2,.12) 0%, transparent 70%);
}
.hero__glow--blue {
  bottom: -60px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(28,176,246,.08) 0%, transparent 70%);
}
.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: 100%;
}
.hero__inner {
  max-width: 780px;
  position: relative;
}
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.hero__visual dotlottie-wc {
  display: block;
  width: 100%;
  height: 100%;
}

/* fanned hand of screenshots — poker-style spread */
.hero__fan {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__card {
  position: absolute;
  bottom: 4%;
  width: 44%;
  margin: 0;
  aspect-ratio: 270 / 585;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(55, 53, 47, .08);
  box-shadow:
    0 18px 44px rgba(55, 53, 47, .20),
    0 4px 12px rgba(55, 53, 47, .10);
  overflow: hidden;
  transform-origin: 50% 130%;
  transform: rotate(calc(var(--i) * 13deg));
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__card:hover {
  transform: rotate(calc(var(--i) * 13deg)) translateY(-22px) scale(1.04);
  box-shadow:
    0 30px 60px rgba(55, 53, 47, .26),
    0 8px 18px rgba(55, 53, 47, .12);
  z-index: 5;
}
@media (prefers-reduced-motion: reduce) {
  .hero__card { transition: none; }
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.045em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero__ship {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 0 14px;
  border-radius: var(--radius);
}

/* word-swap: "quantity" struck out, "quality" rises in */
.hero__swap {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}
.hero__swap-word {
  grid-area: 1 / 1;
  align-self: end;
}
.hero__swap-word--out {
  position: relative;
  animation: swap-out 5s ease-in-out infinite;
}
.hero__swap-word--out::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: 100%;
  height: .07em;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  animation: swap-strike 5s ease-in-out infinite;
}
.hero__swap-word--in {
  transform: translateY(110%);
  animation: swap-in 5s ease-in-out infinite;
}
@keyframes swap-strike {
  0%, 8%   { transform: scaleX(0); }
  22%, 92% { transform: scaleX(1); }
  100%     { transform: scaleX(0); }
}
@keyframes swap-out {
  0%, 30%  { transform: translateY(0); opacity: 1; }
  45%, 92% { transform: translateY(-110%); opacity: 0; }
  100%     { transform: translateY(0); opacity: 1; }
}
@keyframes swap-in {
  0%, 30%  { transform: translateY(110%); opacity: 0; }
  45%, 92% { transform: translateY(0); opacity: 1; }
  100%     { transform: translateY(110%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__swap-word--out,
  .hero__swap-word--out::after,
  .hero__swap-word--in { animation: none; }
  .hero__swap-word--out { display: none; }
  .hero__swap-word--in { position: static; transform: none; opacity: 1; }
}
.hero__copy {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 60px;
}

/* ── BUTTONS ── */
.btn {
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  display: inline-block;
}
.btn--dark {
  background: var(--text);
  color: var(--bg);
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(55, 53, 47, .2);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg2);
  border-color: #ccc;
}

/* ── PILLAR ── */
.pillar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 220px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: #B3E77A;
  box-shadow: 0 10px 24px rgba(55, 53, 47, .08);
}
.pillar__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  padding-left: 16px;
}
.pillar__label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.4;
}

/* ── SECTIONS ── */
.section {
  padding: 100px clamp(20px, 10vw, 160px);
  scroll-margin-top: 68px;
}
.section--surface {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
}
.section--bg {
  background: var(--bg);
  border-top: 1.5px solid var(--border);
}
.section__inner {
  max-width: 960px;
  margin: 0 auto;
}
.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.section__copy {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 15px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
/* ── SHOWCASE ── */
.showcase { padding-bottom: 110px; }
.showcase__head { text-align: left; }
.showcase__copy {
  max-width: 560px;
  margin-top: 12px;
  margin-bottom: 0;
}
.showcase__marquee {
  margin-top: 56px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.showcase__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 24px;
  animation: showcase-scroll 70s linear infinite;
}
.showcase__marquee:hover .showcase__track,
.showcase__track:focus-within { animation-play-state: paused; }
@keyframes showcase-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__track { animation: none; }
}

.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.phone-frame {
  position: relative;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: #111;
  border-radius: 34px;
  border: 2px solid #1a1a1a;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 24px 60px rgba(55, 53, 47, .15),
    0 4px 14px rgba(55, 53, 47, .08);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}
.phone-frame__inner {
  position: absolute;
  inset: 7px;
  border-radius: 26px;
  overflow: hidden;
  display: block;
}
.phone-frame__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screen-card[data-color="green"] .phone-frame__inner { background: linear-gradient(160deg, #D7F5B1 0%, #58CC02 100%); }
.screen-card[data-color="blue"]  .phone-frame__inner { background: linear-gradient(160deg, #DDF4FF 0%, #1CB0F6 100%); }
.screen-card[data-color="gold"]  .phone-frame__inner { background: linear-gradient(160deg, #FFF4CC 0%, #FFC800 100%); }
.screen-card[data-color="red"]   .phone-frame__inner { background: linear-gradient(160deg, #FFE8E8 0%, #FF4B4B 100%); }

.screen-card__meta {
  text-align: center;
  max-width: 220px;
}
.screen-card__app {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.screen-card__screen {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.discipline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.discipline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
}
.discipline--green { background: var(--green-light); border-color: #B3E77A; }
.discipline--blue  { background: var(--blue-light);  border-color: #93D9FA; }
.discipline--gold  { background: #FFF4CC;            border-color: #FFD966; }
.discipline__icon { font-size: 20px; }
.discipline__label {
  font-weight: 700;
  font-size: 14px;
}
.discipline--green .discipline__label { color: var(--green-dark); }
.discipline--blue  .discipline__label { color: #0A7CB8; }
.discipline--gold  .discipline__label { color: #9A6E00; }
.discipline__detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ── CODE CARD ── */
.code-card {
  background: #1E1E1E;
  border-radius: var(--radius-lg);
  border: 1.5px solid #333;
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid #333;
  background: #252526;
}
.code-card__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.code-card__file {
  margin-left: 8px;
  font-size: 11px;
  color: #666;
}
.code-card__body {
  padding: 20px 24px;
  color: #D4D4D4;
  white-space: pre;
}
.code-line { min-height: 1em; }
.code-line--spacer { height: 8px; min-height: 8px; }
.tok-keyword { color: #569CD6; }
.tok-class   { color: #4EC9B0; }
.tok-punct   { color: #D4D4D4; }
.tok-comment { color: #6A9955; }
.tok-var     { color: #9CDCFE; }
.tok-fn      { color: #DCDCAA; }
.tok-str     { color: #CE9178; }

/* ── TERMINAL ── */
.terminal__body {
  min-height: 380px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.75;
}
.term-line {
  min-height: 1.75em;
  white-space: pre-wrap;
  display: block;
}
.term-prompt {
  color: var(--green);
  font-weight: 600;
  margin-right: 10px;
  user-select: none;
}
.term-cmd { color: #E8E8E8; }
.term-line--out { color: #9CDCFE; }
.term-ok {
  color: var(--green);
  font-weight: 700;
  display: inline-block;
  width: 18px;
  user-select: none;
}
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: #E8E8E8;
  vertical-align: -3px;
  margin-left: 1px;
}
.term-cursor--blink { animation: term-blink 1s steps(2) infinite; }
@keyframes term-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── SKILLS ── */
.skills__head { margin-bottom: 52px; }
.skills__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.skill-group {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.skill-group__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
}
.skill-group__tag--green { background: var(--green-light); border-color: #B3E77A; }
.skill-group__tag--blue  { background: var(--blue-light);  border-color: #93D9FA; }
.skill-group__tag--gold  { background: #FFF4CC;            border-color: #FFD966; }
.skill-group__icon { font-size: 13px; }
.skill-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.skill-group__tag--green .skill-group__label { color: var(--green-dark); }
.skill-group__tag--blue  .skill-group__label { color: #0A7CB8; }
.skill-group__tag--gold  .skill-group__label { color: #9A6E00; }
.skill-group__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background .18s, border-color .18s, color .18s;
  cursor: default;
}
.skill-group[data-color="green"] .chip:hover { background: var(--green-light); border-color: #B3E77A; color: var(--green-dark); }
.skill-group[data-color="blue"]  .chip:hover { background: var(--blue-light);  border-color: #93D9FA; color: #0A7CB8; }
.skill-group[data-color="gold"]  .chip:hover { background: #FFF4CC;            border-color: #FFD966; color: #9A6E00; }

/* ── PROFICIENCY ── */
.proficiency {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.proficiency__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.proficiency__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.lean {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1.5px solid var(--border);
}
.lean__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.lean__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.lean__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.lean__tag--green { background: var(--green-light); color: var(--green-dark); border-color: #B3E77A; }
.lean__tag--blue  { background: var(--blue-light);  color: #0A7CB8;           border-color: #93D9FA; }
.lean__tag--gold  { background: #FFF4CC;            color: #9A6E00;           border-color: #FFD966; }
.lean__note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── PROJECTS ── */
.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 16px;
}
.projects__years {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
.project {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 1px 4px rgba(55, 53, 47, .04);
}
.project:hover {
  background: var(--accent);
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(55, 53, 47, .1);
}
.project__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.project__year {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.project__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 11px;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.project__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}
.metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.metric {
  padding: 4px 10px;
  background: rgba(55, 53, 47, .06);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ── TAG ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
}
.tag--green { background: var(--green-light); color: var(--green-dark); border-color: #B3E77A; }
.tag--blue  { background: var(--blue-light);  color: #0A7CB8;           border-color: #93D9FA; }
.tag--gold  { background: #FFF4CC;            color: #9A6E00;           border-color: #FFD966; }
.tag--red   { background: #FFE8E8;            color: #C02020;           border-color: #FFAAAA; }
.tag--purple{ background: #EFE5FF;            color: #5B2EBE;           border-color: #C5A3FF; }

/* ── EXPERIENCE ── */
.experience__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.experience__copy {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
  margin-top: 20px;
}
.experience__list {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.experience-row {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.experience-row--last {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.experience-row__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.experience-row__main { flex: 1; min-width: 0; }
.experience-row__title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.experience-row__company {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.experience-row__note {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg2);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.experience-row__role {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.experience-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.experience-row__period {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.experience-row__toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  font-size: 16px;
  color: var(--text-secondary);
  user-select: none;
}
.experience-row[data-open="true"] .experience-row__toggle {
  transform: rotate(45deg);
}
.experience-row__bullets {
  display: none;
  margin-top: 12px;
  padding-left: 18px;
  flex-direction: column;
  gap: 6px;
}
.experience-row__bullets li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.experience-row[data-open="true"] .experience-row__bullets {
  display: flex;
}

/* ── PROCESS / BOOK ── */
.process { overflow: hidden; }
.process__head { margin-bottom: 48px; }
.process__copy { max-width: 580px; }

.book__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 22px);
  max-width: 1060px;
  margin: 0 auto;
}
.book {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 920px;
  perspective: 2400px;
}
.book:focus-visible { outline: none; }
.book:focus-visible .book__stage {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.book__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 10;
  background: linear-gradient(#fdfcf8, #f4f1e8);
  border: 1.5px solid #e2ddcf;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(55, 53, 47, .02),
    0 30px 64px rgba(55, 53, 47, .18),
    0 8px 22px rgba(55, 53, 47, .10);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* spine + page-edge crease */
.book__spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(55, 53, 47, 0) 0%,
    rgba(55, 53, 47, .09) 44%,
    rgba(55, 53, 47, .20) 50%,
    rgba(55, 53, 47, .09) 56%,
    rgba(55, 53, 47, 0) 100%);
}
.book__page--left::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 34px;
  background: linear-gradient(to right, transparent, rgba(55, 53, 47, .07));
  pointer-events: none;
}
.book__page--right::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 34px;
  background: linear-gradient(to left, transparent, rgba(55, 53, 47, .07));
  pointer-events: none;
}

.book__page {
  position: relative;
  padding: clamp(20px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.book__page--left {
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease;
}
.book__page--left.is-fading { opacity: 0; }
.book__page--right { justify-content: center; }

/* left page — screenshot */
.book-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.book-shot__phone.phone-frame {
  width: clamp(140px, 17vw, 196px);
  transform: rotate(-3deg);
  transition: transform .3s ease;
}
.book-shot:hover .book-shot__phone.phone-frame { transform: rotate(0); }
.book-shot__sticky {
  position: absolute;
  z-index: 4;
  top: -4px;
  right: clamp(0px, 3vw, 18px);
  background: #FFF3B0;
  color: #7a5d00;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
  transform: rotate(4deg);
  box-shadow: 0 8px 16px rgba(55, 53, 47, .18);
}
.book-shot__caption { text-align: center; }
.book-shot__app {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.book-shot__screen {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
}

/* left page — contact card */
.book-card {
  width: min(86%, 300px);
  background: var(--text);
  color: #F7F6F3;
  border-radius: 12px;
  padding: 26px 26px 28px;
  box-shadow: 0 26px 54px rgba(55, 53, 47, .3);
  transform: rotate(-2deg);
}
.book-card__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.book-card__logo span { color: var(--green); }
.book-card__tag {
  font-size: 12px;
  color: rgba(247, 246, 243, .55);
  margin-bottom: 18px;
}
.book-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 11px;
  font-weight: 500;
}
.book-card__row a { color: #F7F6F3; text-decoration: none; }
.book-card__row a:hover { color: var(--green); }

/* right page — text */
.book-text {
  max-width: 440px;
  font-family: Georgia, 'Times New Roman', serif;
}
.book-text__chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.book-text__rule {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, #cfc7b2, transparent);
}
.book-text__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.book-text__icon { font-size: .9em; }
.book-text__lead {
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.book-text__body {
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 12px;
}
.book-text__body em { color: var(--text); font-style: italic; }
.book-text__folio {
  position: absolute;
  bottom: clamp(16px, 2.4vw, 30px);
  right: clamp(20px, 3vw, 42px);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #a89f88;
}
.book__page--right[data-accent="blue"] .book-text__chapter { color: #0A7CB8; }
.book__page--right[data-accent="gold"] .book-text__chapter { color: #9A6E00; }

/* store badges */
.book-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: 9px 15px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: #bdbdbd;
  box-shadow: 0 8px 20px rgba(55, 53, 47, .1);
}
.store-badge__ic { font-size: 17px; }
.store-badge__sub {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  line-height: 1.2;
}

/* contact details (right page) */
.book-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.book-contact a {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.book-contact a:hover { color: var(--green-dark); }
.book-contact__ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--green-light);
  border: 1.5px solid #B3E77A;
  font-size: 17px;
}

/* turning leaf */
.book__leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 6;
  display: none;
  pointer-events: none;
  will-change: transform;
}
.book__leaf.is-anim { display: block; }
.book__leaf.turn-fwd  { animation: leaf-fwd .72s cubic-bezier(.42, .04, .26, 1) forwards; }
.book__leaf.turn-back { animation: leaf-back .72s cubic-bezier(.42, .04, .26, 1) forwards; }
.book__leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: clamp(20px, 3vw, 42px);
  overflow: hidden;
  background: linear-gradient(#fdfcf8, #f4f1e8);
  box-shadow: -10px 0 26px rgba(55, 53, 47, .12);
}
.book__leaf-back {
  transform: rotateY(180deg);
  background: linear-gradient(#f6f3ea, #efeadd);
}
.book__leaf-back::after {
  content: '\276E';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #d9d1bd;
}
@keyframes leaf-fwd  { from { transform: rotateY(0deg); }    to { transform: rotateY(-178deg); } }
@keyframes leaf-back { from { transform: rotateY(-178deg); } to { transform: rotateY(0deg); } }

/* nav arrows */
.book__nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s, opacity .2s;
}
.book__nav:hover { background: var(--bg2); transform: scale(1.07); }
.book__nav:disabled { opacity: .3; cursor: default; transform: none; }
.book__nav:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* bookmark tabs */
.book__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}
.book__tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.book__tab:hover { color: var(--text); border-color: #ccc; }
.book__tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.book__tab.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.book__tab-n {
  opacity: .5;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .book__leaf { display: none !important; }
  .book__page--left { transition: none; }
}
@media (max-width: 760px) {
  .book__stage {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .book { perspective: none; }
  .book__spine,
  .book__leaf,
  .book__page--left::after,
  .book__page--right::before { display: none !important; }
  .book__page--left { padding-bottom: 8px; }
  .book__page--right { align-items: flex-start; }
  .book-text { max-width: none; }
  .book-text__folio { position: static; display: block; margin-top: 18px; text-align: right; }
}
@media (max-width: 520px) {
  .book__frame { gap: 6px; }
  .book__nav { width: 40px; height: 40px; font-size: 22px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(247, 246, 243, .55);
  padding: 44px clamp(20px, 10vw, 160px);
  border-top: 1.5px solid rgba(255, 255, 255, .1);
}
.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #F7F6F3;
  text-decoration: none;
  letter-spacing: -.04em;
}
.footer__socials {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__socials a {
  font-size: 14px;
  color: rgba(247, 246, 243, .55);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.footer__socials a:hover { color: #F7F6F3; }
.footer__socials a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.footer__notice {
  font-size: 12px;
  color: rgba(247, 246, 243, .35);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px clamp(20px, 5vw, 80px) 24px;
    background: rgba(247, 246, 243, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 12px 16px;
    font-size: 15px;
  }
  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    padding: 12px 20px;
  }
}
@media (max-width: 640px) {
  .about__grid,
  .experience__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills__groups {
    grid-template-columns: 1fr;
  }
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .proficiency__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
