/* =========================================================
   Samer — personal site
   Design language adapted from the "Prisma" reference:
   black canvas, warm cream type, film-grain noise, inset rounded hero.
   Type: Fraunces for display and storytelling moments,
   Manrope for interface, body, and everything underneath.
   ========================================================= */
:root {
  --bg: #000000;
  --card: #101010;
  --card-2: #212121;
  --cream: #E1E0CC;          /* primary text */
  --primary: #DEDBC8;        /* accents, buttons */
  --primary-70: rgba(222, 219, 200, 0.7);
  --primary-50: rgba(222, 219, 200, 0.5);
  --nav-link: rgba(225, 224, 204, 0.8);
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --line: rgba(225, 224, 204, 0.1);
  --line-strong: rgba(225, 224, 204, 0.18);
  --container: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-card: cubic-bezier(0.22, 1, 0.36, 1);
  --inset: 16px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
@media (min-width: 768px) { :root { --inset: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
button, input, textarea, select { font: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: #000; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 300; }
.display-serif { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; }
.muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }

/* ---------- Noise textures ---------- */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Small label ---------- */
.label {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .label { font-size: 12px; } }

/* ---------- Pill button with arrow circle ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: gap .3s var(--ease-out);
}
.pill-btn:hover { gap: 12px; }
.pill-btn__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #000;
  color: var(--cream);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-out);
}
.pill-btn:hover .pill-btn__icon { transform: scale(1.1); }
.pill-btn__icon svg { width: 18px; height: 18px; }
.pill-btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill-btn--ghost .pill-btn__icon { background: var(--card-2); }
@media (min-width: 640px) {
  .pill-btn { font-size: 16px; }
  .pill-btn__icon { width: 40px; height: 40px; }
}

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   HERO — inset rounded frame, hanging nav, giant title
   ========================================================= */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: var(--inset);
}
.hero--page { height: 78vh; height: 78svh; min-height: 520px; }
.hero__frame {
  position: relative;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0906;
}
@media (min-width: 768px) { .hero__frame { border-radius: 2rem; } }

/* Cinematic backdrop: warm light leaks that drift slowly */
.hero__media {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 78% 18%, rgba(214, 168, 108, 0.55), transparent 70%),
    radial-gradient(45% 55% at 12% 78%, rgba(122, 68, 38, 0.55), transparent 72%),
    radial-gradient(35% 40% at 52% 48%, rgba(225, 224, 204, 0.14), transparent 70%),
    linear-gradient(160deg, #1d1712 0%, #0a0806 60%, #040303 100%);
}
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero__media::before {
  width: 60vmax; height: 40vmax;
  right: -10vmax; top: -12vmax;
  background: radial-gradient(closest-side, rgba(236, 196, 140, 0.45), transparent);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero__media::after {
  width: 50vmax; height: 36vmax;
  left: -14vmax; bottom: -14vmax;
  background: radial-gradient(closest-side, rgba(150, 84, 48, 0.5), transparent);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.hero__media--b {
  background:
    radial-gradient(50% 60% at 20% 20%, rgba(214, 168, 108, 0.42), transparent 70%),
    radial-gradient(45% 55% at 88% 80%, rgba(110, 62, 36, 0.5), transparent 72%),
    linear-gradient(200deg, #1a1511 0%, #090706 60%, #040303 100%);
}
@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(10vmax, -6vmax) scale(1.1); } }

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__noise {
  position: absolute; inset: 0;
  opacity: 0.49; /* 30% lighter than the reference 0.7 */
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), transparent 45%, rgba(0,0,0,.6));
  pointer-events: none;
}

/* Hanging pill navigation */
.topnav {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border-radius: 0 0 16px 16px;
  padding: 8px 16px;
  white-space: nowrap;
}
.topnav::before,
.topnav::after {
  /* concave "ears" so the pill melts into the frame edge */
  content: "";
  position: absolute; top: 0;
  width: 16px; height: 16px;
}
.topnav::before { left: -16px; background: radial-gradient(circle at 0 100%, transparent 15.5px, #000 16px); }
.topnav::after { right: -16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, #000 16px); }
.topnav a {
  font-size: 10px;
  font-weight: 500;
  color: var(--nav-link);
  transition: color .2s ease;
  line-height: 1.6;
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--cream); }
.topnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.topnav__logo { flex: 0 0 auto; display: block; }
.topnav__logo img {
  max-width: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
@media (max-width: 379px) { .topnav__logo { display: none; } }
@media (min-width: 640px) {
  .topnav { gap: 24px; }
  .topnav a { font-size: 12px; }
}
@media (min-width: 768px) {
  .topnav { gap: 48px; padding: 10px 32px; border-radius: 0 0 24px 24px; }
  .topnav::before, .topnav::after { width: 24px; height: 24px; }
  .topnav::before { left: -24px; background: radial-gradient(circle at 0 100%, transparent 23.5px, #000 24px); }
  .topnav::after { right: -24px; background: radial-gradient(circle at 100% 100%, transparent 23.5px, #000 24px); }
  .topnav a { font-size: 14px; }
  .topnav__logo img { width: 26px; height: 26px; }
}
@media (min-width: 1024px) { .topnav { gap: 56px; } }

/* Bottom-aligned hero content */
.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 16px 24px;
  padding: 0 16px 16px;
}
.hero__title {
  grid-column: span 12;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 72; /* sturdier strokes than the 144 display cut at this size */
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-size: 29vw;
  margin-left: -0.02em;
}
.hero__title.hero__title--md { font-size: 25vw; } /* inner-page titles are ~3.3em wide in Fraunces */
.hero__aside {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 8px;
}
.hero__aside p {
  color: var(--primary-70);
  font-size: 12px;
  line-height: 1.2;
  max-width: 420px;
}
.hero__aside .pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) {
  .hero__title { font-size: 27vw; }
  .hero__aside p { font-size: 14px; }
}
@media (min-width: 768px) {
  .hero__content { padding: 0 32px 28px; }
  .hero__title { font-size: 22vw; grid-column: span 8; }
  .hero__title.hero__title--md { font-size: 17.5vw; }
  .hero__aside { grid-column: span 4; padding-bottom: 2vw; }
  .hero__aside p { font-size: 16px; }
}
@media (min-width: 1024px) { .hero__title { font-size: 22vw; } }
@media (min-width: 1280px) { .hero__title { font-size: 21vw; } }
@media (min-width: 1536px) { .hero__title { font-size: 22vw; } }

/* the superscript asterisk on the final letter */
.asterisk-host { position: relative; }
.asterisk {
  position: absolute;
  top: 0.65em;
  right: -0.3em;
  font-size: 0.31em;
  line-height: 1;
}

/* =========================================================
   ANIMATION PRIMITIVES (only active when JS is running)
   ========================================================= */
.js [data-pullup] .pw {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + var(--pull-delay, 0ms));
}
.js [data-pullup].is-in .pw { opacity: 1; transform: none; }

.js .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .fade-up.is-in { opacity: 1; transform: none; }

.js [data-stagger] > * {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity .9s var(--ease-card), transform .9s var(--ease-card);
  transition-delay: calc(var(--i, 0) * 150ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

.scroll-text .word { display: inline-block; white-space: nowrap; }
.scroll-text .ch { opacity: 0.2; }
.no-scroll-fx .scroll-text .ch { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media::before, .hero__media::after { animation: none; }
  .js [data-pullup] .pw, .js .fade-up, .js [data-stagger] > *, .js .reveal {
    opacity: 1; transform: none; transition: none;
  }
  .scroll-text .ch { opacity: 1; }
}

/* =========================================================
   ABOUT (centered statement card)
   ========================================================= */
.section { padding: 0 var(--inset); }
.section + .section { margin-top: var(--inset); }
.about-sec { background: #000; padding: 64px 16px; }
@media (min-width: 768px) { .about-sec { padding: 96px 24px; } }
.about-card {
  max-width: 72rem;
  margin: 0 auto;
  background: var(--card);
  text-align: center;
  padding: 80px 20px;
}
@media (min-width: 768px) { .about-card { padding: 112px 48px; } }
@media (min-width: 1024px) { .about-card { padding: 128px 64px; } }
.statement {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cream);
}
@media (min-width: 640px) { .statement { font-size: 36px; line-height: 0.98; } }
@media (min-width: 768px) { .statement { font-size: 48px; } }
@media (min-width: 1024px) { .statement { font-size: 60px; } }
@media (min-width: 1280px) { .statement { font-size: 72px; } }
.statement .serif { letter-spacing: -0.02em; }

.scroll-text {
  max-width: 36rem;
  margin: 40px auto 0;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.5;
}
@media (min-width: 640px) { .scroll-text { font-size: 14px; } }
@media (min-width: 768px) { .scroll-text { font-size: 16px; margin-top: 48px; } }

/* =========================================================
   FEATURES (areas of focus)
   ========================================================= */
.features-sec {
  position: relative;
  min-height: 100vh;
  background: #000;
  padding: 80px 0 96px;
  overflow: hidden;
}
.features-sec__noise { position: absolute; inset: 0; opacity: 0.15; pointer-events: none; }
.skills-sec__noise {
  position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.features-wrap { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .features-wrap { padding: 0 24px; } }
.features-head {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 44rem;
  margin: 0 0 40px;
  color: var(--cream);
}
@media (min-width: 640px) { .features-head { font-size: 24px; } }
@media (min-width: 768px) { .features-head { font-size: 30px; margin-bottom: 56px; } }
@media (min-width: 1024px) { .features-head { font-size: 36px; } }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .cards { gap: 8px; } }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 4px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); height: 480px; } }
.fcard {
  position: relative;
  background: var(--card-2);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 360px;
  overflow: hidden;
}
@media (min-width: 640px) { .fcard { padding: 24px; } }
@media (min-width: 1024px) { .fcard { min-height: 0; } }
.fcard__top { display: flex; flex-direction: column; gap: 16px; }
.fcard__icon {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(145deg, #3a3228, #1a1714);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
  color: var(--primary);
  font-size: 20px;
}
@media (min-width: 640px) { .fcard__icon { width: 48px; height: 48px; font-size: 22px; } }
.fcard__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fcard h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--cream); }
.fcard__title span { font-size: 12px; color: var(--gray-500); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray-400); font-size: 13px; line-height: 1.4; }
.checks .icon { flex: 0 0 auto; color: var(--primary); font-size: 14px; margin-top: 2px; }
.more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--primary);
}
.more .icon { transform: rotate(-45deg); transition: transform .3s var(--ease-out); }
.more:hover .icon { transform: rotate(0deg); }

/* video card */
.fcard--media { padding: 0; justify-content: flex-end; background: #0b0906; }
.fcard--media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard--media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.6));
  pointer-events: none;
}
.fcard--media p { position: relative; z-index: 1; padding: 20px; color: var(--cream); font-size: 15px; line-height: 1.25; max-width: 16rem; }
@media (min-width: 640px) { .fcard--media p { padding: 24px; } }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  text-align: center;
  background: var(--card);
  border-radius: 16px;
  padding: 88px 20px;
  overflow: hidden;
}
@media (min-width: 768px) { .cta { border-radius: 2rem; padding: 120px 40px; } }
.cta__glow {
  position: absolute; left: 50%; bottom: -40%;
  width: 900px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214, 168, 108, 0.18), transparent 70%);
  pointer-events: none;
}
.cta__noise { position: absolute; inset: 0; opacity: 0.25; mix-blend-mode: overlay; pointer-events: none; }
.cta h2 {
  position: relative;
  max-width: 40rem;
  margin: 0 auto 40px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cta .pill-btn { position: relative; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: var(--inset); }
.footer__card {
  padding: 64px 4px 0;
  max-width: var(--container);
  margin: 0 auto;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--cream); }
.logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.footer__brand p { color: var(--gray-500); max-width: 300px; margin-top: 18px; font-size: 14px; line-height: 1.6; }
.footer h4 { font-size: 12px; color: var(--primary); margin-bottom: 16px; font-weight: 600; }
.footer li { margin-bottom: 12px; }
.footer li a { color: var(--gray-400); font-size: 14px; transition: color .2s; }
.footer li a:hover { color: var(--cream); }
.footer__bar {
  margin-top: 64px; border-top: 1px solid var(--line);
  padding: 24px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-500);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-2);
  display: grid; place-items: center; color: var(--cream);
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--primary); color: #000; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }

/* =========================================================
   PORTFOLIO — experience, projects, skills, education
   ========================================================= */
.block { max-width: var(--container); margin: 0 auto; padding: 96px var(--inset); }
@media (min-width: 768px) { .block { padding: 120px var(--inset); } }
.block--tight { padding-top: 0; }
.block-head { text-align: center; margin-bottom: 48px; }
.block-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.timeline { background: var(--card); border-radius: 16px; padding: 8px 20px; }
@media (min-width: 768px) { .timeline { border-radius: 2rem; padding: 16px 48px; } }
.job {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: 0; }
@media (min-width: 860px) { .job { grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; } }
.job__when { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.job__when b { display: block; color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.job h3 { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--cream); }
.job__co { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--primary-70); margin: 4px 0 18px; }
.job__co .dim { font-family: var(--font); font-style: normal; font-size: 13px; color: var(--gray-500); }
.job ul { display: flex; flex-direction: column; gap: 10px; }
.job li { position: relative; padding-left: 20px; color: var(--gray-400); font-size: 15px; line-height: 1.6; }
.job li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--primary); }

.skills-sec { position: relative; overflow: hidden; }
.skills-sec > .block { position: relative; }
.skills { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .skills { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.skill-card { background: var(--card-2); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.skill-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--cream); display: flex; align-items: baseline; gap: 8px; }
.skill-card h3 sup { font-size: 11px; color: var(--gray-500); letter-spacing: 0; }
.skill-card .sub { font-size: 12px; color: var(--gray-500); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--cream);
  background: rgba(225, 224, 204, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip--accent { background: var(--primary); color: #000; box-shadow: none; }

.projects { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { background: var(--card); border-radius: 16px; padding: 28px 24px; }
.project h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--cream); }
.project p { margin-top: 12px; color: var(--gray-400); font-size: 15px; line-height: 1.6; }

.edu {
  max-width: 720px; margin: 0 auto;
  background: var(--card); border-radius: 16px; padding: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
}
.edu b { font-size: 19px; font-weight: 600; color: var(--cream); letter-spacing: -0.01em; }
.edu span { font-size: 14px; color: var(--gray-400); }
.edu em { font-family: var(--serif); font-weight: 300; font-size: 18px; color: var(--primary-70); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-card {
  max-width: 720px; margin: 0 auto;
  background: var(--card); border-radius: 16px; padding: 12px 20px 28px;
}
@media (min-width: 768px) { .contact-card { border-radius: 2rem; padding: 16px 40px 40px; } }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--card-2);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 20px;
}
.contact-item small { display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 17px; color: var(--cream); word-break: break-word; }
.contact-item a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.contact-card .pill-btn { margin-top: 32px; }

/* ---------- Booking (Cal.com inline embed) ---------- */
.block-head__sub { max-width: 34rem; margin: 20px auto 0; color: var(--gray-400); font-size: 15px; line-height: 1.6; }
#book { scroll-margin-top: 24px; }
.booking {
  max-width: 1040px; margin: 0 auto;
  background: var(--card); border-radius: 16px; padding: 12px;
}
@media (min-width: 768px) { .booking { border-radius: 2rem; padding: 20px; } }
.booking__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 4px 16px;
}
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #000; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg__btn {
  border: 0; cursor: pointer;
  background: transparent; color: var(--gray-400);
  border-radius: 999px; padding: 10px 16px;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.seg__btn span { font-weight: 400; opacity: .7; margin-left: 4px; }
.seg__btn:hover { color: var(--cream); }
.seg__btn[aria-selected="true"] { background: var(--primary); color: #000; }
.seg__btn:focus-visible { outline-offset: 2px; border-radius: 999px; }
.booking__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); padding-right: 8px; }
.booking__meta .icon { font-size: 16px; color: var(--primary); }
.booking__panel { position: relative; min-height: 460px; border-radius: 12px; overflow: hidden; }
@media (min-width: 768px) { .booking__panel { border-radius: 1.25rem; } }
.booking__panel[hidden] { display: none; }
.booking__panel iframe { display: block; width: 100%; }
.booking__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gray-500); font-size: 14px;
}
.booking__panel.is-ready .booking__loading { display: none; }
.booking__fallback { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-500); }
.booking__fallback a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.booking__fallback a:hover { color: var(--cream); }
@media (max-width: 479px) {
  .seg { width: 100%; }
  .seg__btn { flex: 1; padding: 10px 8px; }
}
