/* Prajwal Premdas — portfolio. Warm paper, near-black ink, monochrome.
   Faithful to the reel: serif display titles, periodic table, flip card,
   vertical timeline with giant years, sideways achievements. */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VF.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper2: #efe6d0;
  --card: #fdfaf1;
  --ink: #191510;
  --mut: #7a6f5c;
  --line: #ddd0ae;
  --watermark: #e9dec3;
  --pill: #1b1712;
  --tile-dark: #222a44;
  --tile-dim: #e9dfc6;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); }
a { color: inherit; }
img { -webkit-user-drag: none; }

.serif-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.serif-title em { font-style: italic; font-weight: 500; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem 2rem;
  background: rgba(246, 241, 231, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mono {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .5px;
}
.brand-name { font-weight: 600; font-size: .95rem; letter-spacing: -.2px; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--mut); font-size: .82rem;
  letter-spacing: .6px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.7rem;
  background: var(--pill); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: .9rem; letter-spacing: .3px;
  border: 1px solid var(--pill); border-radius: 999px;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-pill { border-radius: 999px; }
.btn-small { padding: .55rem 1.2rem; font-size: .8rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--pill); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 5.5rem 2rem 2.5rem;
}
.watermark {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 21vw, 22rem);
  font-weight: 800; letter-spacing: -.04em;
  color: var(--watermark);
  white-space: nowrap; user-select: none;
  pointer-events: none; line-height: 1;
  will-change: transform;
}
.hero-portrait {
  position: absolute; top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 58vw);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(25, 21, 16, .18);
  background: var(--card);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05);
}
.hero-bottom {
  margin-top: auto; position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; max-width: 1200px; width: 100%; margin-inline: auto;
}
.hero-name {
  font-family: var(--mono); font-size: .78rem; letter-spacing: 3px;
  color: var(--mut); margin-bottom: .8rem;
}
.hero-headline {
  font-size: clamp(2.8rem, 8.5vw, 6.2rem);
  line-height: 1; letter-spacing: -2.5px; font-weight: 800;
  margin-bottom: 1rem;
}
.hero-tag { color: var(--mut); font-size: 1.02rem; max-width: 26rem; }
.hero-right { text-align: right; flex-shrink: 0; }
.hero-links { display: flex; gap: 1.6rem; justify-content: flex-end; margin-top: 1rem; }
.hero-links a {
  font-size: .88rem; color: var(--mut); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.hero-links a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 5.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; margin-bottom: .8rem; }
.section-sub { color: var(--mut); margin-bottom: 2.5rem; max-width: 40rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .85fr); gap: 3rem; align-items: start; }
.about-text p { margin-bottom: 1.1rem; color: #3d362a; }
.about-btns { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.idcard-wrap { perspective: 1200px; display: flex; flex-direction: column; align-items: center; }
/* pendulum sway — the "cool animation"; flip happens on the inner element so they compose */
.badge-sway { transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; width: 100%; max-width: 300px; }
@keyframes sway { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
.lanyard { display: flex; flex-direction: column; align-items: center; }
.lanyard .strap {
  width: 36px; height: 68px; border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(90deg, #232c4e 0 5px, #161c36 5px 10px);
  border: 1px solid #141a33; border-bottom: 0;
}
.lanyard .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 6px solid #c3c8d4; margin-top: -9px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), 0 2px 5px rgba(25,21,16,.25);
  position: relative; z-index: 2;
}
.idcard {
  display: block; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  margin-top: -11px; position: relative; z-index: 1;
}
.idcard-inner {
  display: block; position: relative; width: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.35, .1, .25, 1);
}
.idcard.flipped .idcard-inner { transform: rotateY(180deg); }
.idcard-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fffdf6;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 50px rgba(25, 21, 16, .18);
  overflow: hidden;
}
.idcard-front { position: relative; }
.idcard-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; }
.badge-head { display: flex; align-items: center; gap: .7rem; background: #1d2748; color: #f5f1e6; padding: .8rem 1.1rem; }
.badge-mono {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #f5f1e6; color: #1d2748;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; letter-spacing: .5px;
}
.badge-title { display: block; font-weight: 800; letter-spacing: 2px; font-size: .82rem; }
.badge-sub { display: block; font-size: .62rem; letter-spacing: 1px; opacity: .65; margin-top: 2px; }
.badge-photo { display: block; margin: 1.1rem 1.1rem 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3.2; border: 1px solid var(--line); background: var(--paper2); }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; filter: grayscale(1) contrast(1.05); }
.badge-name { display: block; text-align: center; font-weight: 800; letter-spacing: 2.5px; font-size: .98rem; margin: .95rem 1rem 0; }
.badge-role { display: block; text-align: center; color: var(--mut); font-size: .85rem; margin-top: .15rem; }
.badge-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 1.1rem 0; padding-top: .9rem; border-top: 1px dashed var(--line); text-align: center; }
.badge-field .f-label { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: 1.5px; color: var(--mut); text-transform: uppercase; }
.badge-field .f-val { font-weight: 700; font-size: .8rem; }
.badge-barcode { display: block; height: 34px; margin: 1rem 1.1rem 1.2rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 7px, transparent 7px 11px); opacity: .72; }
.idcard-back-rows { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.3rem 1.4rem; }
.idcard-field { display: block; font-size: .9rem; line-height: 1.35; }
.f-label { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; }
.f-val { font-weight: 600; }
.flip-hint {
  display: flex; align-items: center; gap: .45rem; justify-content: center;
  margin-top: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: 1px;
  color: var(--mut);
}
/* quick facts panel beside the badge */
.quick-facts { padding-top: .4rem; }
.qf-kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--mut); margin-bottom: 1.1rem; }
.qf-rows { display: flex; flex-direction: column; }
.qf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.qf-row dt { font-size: .82rem; color: var(--mut); flex-shrink: 0; }
.qf-row dd { font-size: .88rem; font-weight: 600; text-align: right; margin: 0; }
.qf-quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-top: 1.4rem; line-height: 1.5; }

/* ---------- periodic table ---------- */
.ptabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.ptab {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .6px;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--mut);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ptab .sw { width: 10px; height: 10px; border-radius: 3px; }
.ptab[aria-selected="true"] { background: var(--pill); color: var(--paper); border-color: var(--pill); }
.ptable-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.4rem; align-items: start; }
.ptable {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(8, 1fr);
}
.pelem {
  border: 1px solid transparent; border-radius: 10px;
  padding: .65rem .4rem .6rem; cursor: pointer; text-align: left;
  font-family: inherit; aspect-ratio: 1 / 1.12; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s ease, opacity .2s ease, filter .2s ease, box-shadow .18s ease;
  opacity: 0; transform: translateY(14px);
}
.pelem .num { display: block; font-family: var(--mono); font-size: .58rem; opacity: .55; line-height: 1; }
.pelem .sym { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.pelem .nm { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .7px; opacity: .72; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pelem.fam-Languages { background: #1d2748; border-color: #1d2748; color: #f5f1e6; }
.pelem.fam-Frontend { background: #333d5c; border-color: #333d5c; color: #f5f1e6; }
.pelem.fam-Backend { background: #c9a186; border-color: #c9a186; color: #2a2118; }
.pelem.fam-Databases { background: #dcc0a6; border-color: #dcc0a6; color: #2a2118; }
.pelem.fam-Tools { background: #e9ddc2; border-color: #e9ddc2; color: #2a2118; }
.pelem.fam-Core { background: #f8f3e5; border-color: var(--line); color: #2a2118; }
.pelem.dim { opacity: .32 !important; filter: saturate(.3); }
#ptable.tiles-in .pelem { animation: tileIn .45s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes tileIn { to { opacity: 1; transform: translateY(0); } }
.pelem.done { animation: none; opacity: 1; transform: none; }
.pelem:hover, .pelem[aria-pressed="true"] { transform: translateY(-3px); }
.pelem[aria-pressed="true"] { box-shadow: 0 10px 24px rgba(25, 21, 16, .28); }
.ptable-detail {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem 1.4rem; background: var(--card);
  position: sticky; top: 6rem; min-height: 16rem;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.ptable-detail .d-sym {
  font-size: 3.4rem; font-weight: 800; letter-spacing: -2px; line-height: 1;
}
.ptable-detail h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.ptable-detail .d-cat {
  align-self: flex-start; font-family: var(--mono); font-size: .66rem; letter-spacing: 2px;
  text-transform: uppercase; background: var(--pill); color: var(--paper);
  padding: .3rem .8rem; border-radius: 999px;
}
.ptable-detail p { color: var(--mut); font-size: .92rem; }
.ptable-hint { color: var(--mut); font-family: var(--mono); font-size: .85rem; }

/* ---------- work panels ---------- */
.panels { display: flex; flex-direction: column; gap: 1rem; }
.panel {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  overflow: hidden; transition: box-shadow .2s;
}
.panel.open { box-shadow: 0 18px 44px rgba(25, 21, 16, .12); }
.panel-head {
  width: 100%; display: flex; align-items: center; gap: 1.2rem;
  background: none; border: 0; padding: 1.1rem 1.4rem; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.panel-rail {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: .68rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mut); white-space: nowrap;
  border-right: 1px solid var(--line); padding-right: 1rem; flex-shrink: 0;
  min-height: 64px; display: flex; align-items: center;
}
.panel-num { font-family: var(--mono); font-size: .72rem; color: var(--mut); flex-shrink: 0; }
.panel-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.2px; flex: 1; }
.panel-tags { font-family: var(--mono); font-size: .64rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); }
.panel-plus {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 1.2rem; line-height: 1; color: var(--ink);
  transition: transform .25s, background .15s, color .15s;
}
.panel.open .panel-plus { transform: rotate(45deg); background: var(--pill); color: var(--paper); border-color: var(--pill); }
.panel-body { display: none; padding: 0 1.6rem 1.8rem 4.6rem; }
.panel.open .panel-body { display: block; }
.panel-body p { color: #4a4234; font-size: .94rem; margin-bottom: 1rem; max-width: 44rem; }
.panel-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.6rem; margin-bottom: 1.2rem; max-width: 44rem; }
.panel-bullets li { font-size: .88rem; color: #4a4234; list-style: none; padding-left: 1rem; position: relative; }
.panel-bullets li::before { content: "–"; position: absolute; left: 0; color: var(--mut); }
.panel-stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.panel-stack span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .5px;
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; color: var(--mut);
}

/* ---------- always learning ---------- */
.learn-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.learn-rows { list-style: none; border-top: 1px solid var(--line); }
.learn-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.15rem 1.2rem; border-bottom: 1px solid var(--line);
  border-radius: 12px; cursor: default;
  transition: background .18s, color .18s;
}
.learn-row:hover, .learn-row.sel { background: var(--pill); color: var(--paper); }
.learn-idx { font-family: var(--mono); font-size: .78rem; color: var(--mut); }
.learn-row:hover .learn-idx, .learn-row.sel .learn-idx { color: var(--paper); opacity: .6; }
.learn-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.2px; }
.learn-org { font-size: .84rem; color: var(--mut); }
.learn-row:hover .learn-org, .learn-row.sel .learn-org { color: var(--paper); opacity: .65; }
.learn-tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; color: var(--mut);
  white-space: nowrap;
}
.learn-row:hover .learn-tag, .learn-row.sel .learn-tag { border-color: var(--paper); color: var(--paper); opacity: .8; }

/* ---------- journey / vertical timeline ---------- */
.journey { list-style: none; position: relative; max-width: 880px; margin: 0 auto; padding: 1rem 0; }
.journey::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--line); transform: translateX(-50%);
}
.jstop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; margin-bottom: 3.2rem; align-items: center; }
.jstop:last-child { margin-bottom: 0; }
.jstop .jdot {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
  transform: translate(-50%, -50%); z-index: 1;
}
.jyear {
  font-size: clamp(3.4rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -3px; line-height: 1;
  color: var(--ink);
}
.jstop:nth-child(odd) .jyear { grid-column: 1; text-align: right; }
.jstop:nth-child(odd) .jcard { grid-column: 2; }
.jstop:nth-child(even) .jcard { grid-column: 1; grid-row: 1; text-align: right; }
.jstop:nth-child(even) .jyear { grid-column: 2; grid-row: 1; text-align: left; }
.jstop:nth-child(even) .jcard .jchips { justify-content: flex-end; }
.jstop:nth-child(even) .jcard ul { text-align: left; }
.jcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem; box-shadow: 0 14px 34px rgba(25, 21, 16, .08);
}
.jkicker {
  display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: 2px;
  text-transform: uppercase; background: var(--pill); color: var(--paper);
  padding: .32rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.jcard h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.2px; margin-bottom: .3rem; }
.jorg { color: var(--mut); font-size: .9rem; margin-bottom: .8rem; }
.jcard ul { list-style: none; margin-bottom: 1rem; }
.jcard ul li { font-size: .9rem; color: #4a4234; padding-left: 1rem; position: relative; margin-bottom: .35rem; }
.jcard ul li::before { content: "–"; position: absolute; left: 0; color: var(--mut); }
.jchips { display: flex; flex-wrap: wrap; gap: .45rem; }
.jchips span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .5px;
  border: 1px solid var(--line); border-radius: 999px; padding: .28rem .75rem; color: var(--mut);
}
.jstop.jnext .jcard { text-align: center; border-style: dashed; }
.jstop.jnext .jyear { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.jnext-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- achievements strip ---------- */
.strip-wrap { position: relative; }
.strip {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.2rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.ach-card {
  flex: 0 0 250px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem 1.5rem; min-height: 190px;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.ach-n { font-size: 2.6rem; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.ach-n span { color: var(--mut); }
.ach-l { color: var(--mut); font-size: .88rem; line-height: 1.5; }
.strip-nav { display: flex; gap: .6rem; margin-top: .4rem; justify-content: flex-end; }
.strip-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: background .15s, color .15s;
}
.strip-btn:hover { background: var(--pill); color: var(--paper); border-color: var(--pill); }

/* ---------- contact / footer ---------- */
.contact { text-align: center; }
.contact-big { font-size: clamp(2.6rem, 7.5vw, 5rem); margin-bottom: 2.2rem; }
.contact-links { margin-bottom: 1.6rem; }
.contact-social { display: flex; gap: 2rem; justify-content: center; }
.contact-social a { color: var(--mut); text-decoration: none; font-family: var(--mono); font-size: .9rem; letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-social a:hover { color: var(--ink); border-color: var(--ink); }
.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem; border-top: 1px solid var(--line);
  color: var(--mut); font-size: .8rem; max-width: 1100px; margin: 0 auto;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .idcard-inner { transition: none; }
  .hero-portrait { animation: none; }
  .badge-sway { animation: none; }
  #ptable.tiles-in .pelem { animation: none; opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ptable { grid-template-columns: repeat(6, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-text { order: -1; }
  .idcard { max-width: 400px; margin-inline: auto; }
  .flip-hint { text-align: center; }
  .hero { justify-content: flex-start; }
  .watermark { top: 30%; }
  .hero-portrait {
    position: static; transform: none;
    margin: 1.2rem auto 0; width: min(280px, 58vw);
    animation: float 7s ease-in-out infinite;
  }
  .hero-bottom { margin-top: 2.2rem; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .hero-right { text-align: left; }
  .hero-links { justify-content: flex-start; }
  .ptable-grid { grid-template-columns: 1fr; }
  .ptable { grid-template-columns: repeat(4, 1fr); }
  .ptable-detail { position: static; min-height: 0; }
  .learn-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .journey::before { left: 12px; transform: none; }
  .jstop { grid-template-columns: 1fr; gap: 1rem; padding-left: 2.6rem; }
  .jstop .jdot { left: 12px; top: 2.2rem; transform: translate(-50%, 0); }
  .jstop:nth-child(odd) .jyear, .jstop:nth-child(even) .jyear { grid-column: 1; grid-row: auto; text-align: left; font-size: 2.8rem; }
  .jstop:nth-child(odd) .jcard, .jstop:nth-child(even) .jcard { grid-column: 1; grid-row: auto; text-align: left; }
  .jstop:nth-child(even) .jcard .jchips { justify-content: flex-start; }
  .panel-body { padding-left: 1.4rem; }
  .panel-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: .8rem 1.2rem; gap: 1rem; }
  .brand-name { display: none; }
  .nav .btn-small { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); display: none; margin-left: 0;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; }
  .hero { padding: 5rem 1.2rem 2rem; }
  .watermark { top: 26%; font-size: 26vw; }
  .hero-portrait { width: min(230px, 56vw); margin-top: 1rem; }
  .hero-headline { letter-spacing: -1.5px; }
  .section { padding: 4rem 1.2rem; }
  .ach-card { flex-basis: 220px; min-height: 170px; }
  .learn-row { grid-template-columns: 2.4rem 1fr; }
  .learn-tag { display: none; }
}
