/* ===================================================================
   Anjali Ravi — Portfolio
   =================================================================== */

:root {
  --bg: #f3f2f5;
  --card: #ffffff;
  --ink: #2a2a2e;
  --ink-soft: #4a4a52;
  --ink-mute: #8b8b93;
  --line: #e8e7eb;
  --btn: #2c2c30;
  --btn-ink: #f7f6fa;
  --accent: oklch(82% 0.08 305);     /* lavender */
  --accent-2: oklch(88% 0.06 320);   /* pink-tint */
  --accent-hover: color-mix(in oklch, var(--accent) 55%, oklch(35% 0.18 305)); /* darker purple for hovers */
  --shadow-card: 0 30px 80px -30px rgba(20, 18, 30, 0.18),
                 0 4px 18px -8px rgba(20, 18, 30, 0.06);
  --shadow-pill: 0 10px 30px -8px rgba(20, 18, 30, 0.18);
  --shadow-btn:  0 8px 18px -6px rgba(20, 18, 30, 0.35);
  --r-card: 32px;
  --r-pill: 999px;
  --r-soft: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 36px 32px 0;
}
.nav-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -90px;
  background: color-mix(in oklch, var(--bg) 35%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  mask-image: linear-gradient(to bottom,
    black 0,
    black calc(100% - 110px),
    rgba(0,0,0,0.6) calc(100% - 70px),
    rgba(0,0,0,0.25) calc(100% - 30px),
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    black 0,
    black calc(100% - 110px),
    rgba(0,0,0,0.6) calc(100% - 70px),
    rgba(0,0,0,0.25) calc(100% - 30px),
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.nav-wrap > .nav { position: relative; z-index: 1; }
.nav {
  max-width: 1280px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-pill);
}
.nav-logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .25s ease;
}
.nav-logo:hover { transform: translateY(-2px); }
.nav-links {
  display: flex;
  gap: 42px;
  align-items: center;
}
.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  padding: 6px 2px;
  transition: color .25s ease, transform .25s ease;
}
.nav-link:hover { transform: translateY(-2px); }
.nav-link:hover, .nav-link.active { color: var(--accent-hover); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .25s ease;
}
.nav-link::after { display: none; }

.nav-burger {
  display: none;
  background: none; border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 220px 32px 0;
  text-align: center;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(820px, 70vw);
  height: 460px;
  background: radial-gradient(ellipse at center,
    color-mix(in oklch, var(--accent) 78%, transparent) 0%,
    color-mix(in oklch, var(--accent) 30%, transparent) 40%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-greeting {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
  align-self: flex-start;
}
.hero-name, .hero-role { position: relative; z-index: 1; }
.hero-role {
  align-self: stretch;
  text-align: center;
}
.hero-name {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
  color: var(--ink);
}
.hero-role {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  margin: 28px 0 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-role span { padding: 0 12px; opacity: 0.8; }

/* ---------- Project showcase cards ---------- */
.showcases {
  padding: 220px 0 146px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.showcase {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.showcases > div:nth-child(1) .showcase {
  margin-left: 150px;
  margin-right: -120px;
  padding: 64px 270px 64px 72px;
}
.showcases > div:nth-child(2) .showcase {
  margin-left: -120px;
  margin-right: 150px;
  padding: 64px 72px 64px 270px;
}
.showcase-text h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.showcase-text p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 280px;
  margin: 0 0 36px;
  font-weight: 300;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn);
  color: var(--btn-ink);
  border: none;
  padding: 14px 36px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -8px rgba(20, 18, 30, 0.45);
  background: #1a1a1d;
}
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--ink);
  color: var(--btn-ink);
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 150px 60px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: start;
}
.footer-headline {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 60px;
  letter-spacing: -0.01em;
  max-width: 360px;
}
.footer-name { font-size: 18px; color: var(--ink-soft); }
.footer-col h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.footer-col a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-col a:hover { color: var(--accent-hover); transform: translateX(3px); }

/* ---------- Page wrappers (for transitions) ---------- */
.page {
  animation: pageIn .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .8s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1),
              transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Generic page heads ---------- */
.page-head {
  padding: 100px 150px 40px;
  margin: 0;
}
.page-eyebrow {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.page-title {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.page-lede {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 32px 0 0;
  line-height: 1.5;
}

/* ---------- Projects grid ---------- */
.projects-grid {
  max-width: 1280px;
  margin: 40px auto 100px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-tile {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 460px;
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px -30px rgba(20, 18, 30, 0.28),
              0 6px 22px -8px rgba(20, 18, 30, 0.10);
}
.project-tile h3 {
  font-size: 36px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.project-tile p {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  max-width: 320px;
}
.project-tile .tile-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tile-tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #f1f0f3;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.tile-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: gap .3s ease;
}
.project-tile:hover .tile-arrow { gap: 14px; }

.tile-preview {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.tile-preview-jolt {
  background: linear-gradient(135deg,
    color-mix(in oklch, var(--accent) 30%, white),
    color-mix(in oklch, var(--accent-2) 60%, white));
}
.tile-preview-jam {
  background: linear-gradient(135deg, #1a1a1f, #2c2c34);
}

/* ---------- Projects index (stacked rows) ---------- */
.projects-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 150px 48px;
}
.projects-title {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.projects-rows {
  padding: 10px 0 146px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.projects-row {
  background: var(--card);
  border-radius: 0;
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.projects-rows > div:nth-child(odd) .projects-row {
  margin-left: 0;
  margin-right: -240px;
  padding: 64px 390px 64px 150px;
}
.projects-rows > div:nth-child(even) .projects-row {
  margin-left: -240px;
  margin-right: 0;
  padding: 64px 150px 64px 390px;
}
.projects-row-text {
  text-align: left;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.projects-row-text h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.projects-row-text p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 280px;
  margin: 0 0 36px;
  font-weight: 300;
}
.projects-row-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  padding: 0;
}
@media (max-width: 940px) {
  .projects-head { padding: 80px 16px 48px; }
  .projects-rows { padding: 40px 16px 60px; }
  .projects-rows > div:nth-child(odd) .projects-row,
  .projects-rows > div:nth-child(even) .projects-row {
    margin: 0;
    padding: 44px 28px;
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .projects-row-text { text-align: center; }
  .projects-row-text p { margin-left: auto; margin-right: auto; }
  .projects-row-phones { gap: 10px; }
}

/* ---------- Case study ---------- */
.cs-hero {
  margin: 0;
  padding: 0 0 40px;
  text-align: center;
}
.cs-title {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  text-align: left;
}
.cs-hero-stage {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
}
.cs-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    color-mix(in oklch, var(--accent) 70%, transparent) 0%,
    transparent 60%);
  filter: blur(50px);
}
.cs-hero-phones {
  position: relative; z-index: 1;
  display: flex; gap: 30px;
}
.cs-section {
  max-width: none;
  margin: 0;
  padding: 50px 150px;
}
.cs-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.cs-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.cs-section p, .cs-section li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 8px;
}
.cs-section ul { padding-left: 20px; margin: 0 0 12px; }
.cs-section strong { font-weight: 600; }

.cs-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  margin-top: 8px;
}
.cs-avatar {
  width: 80px; height: 80px;
  border-radius: 999px;
  margin: 0 auto 12px;
}
.cs-member-name { font-size: 14px; font-weight: 600; }
.cs-member-role { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }

.cs-timeline { margin-top: 16px; padding-bottom: 8px; }
.cs-timeline-row { padding: 4px 0; }
.cs-timeline-bar {
  background: color-mix(in oklch, var(--accent) 50%, white);
  border-left: 3px solid var(--ink);
  padding: 6px 12px;
  font-size: 12px;
  display: flex; flex-direction: column;
  border-radius: 4px;
}
.cs-timeline-week { color: var(--ink-mute); font-size: 11px; }
.cs-timeline-axis {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 8px;
  font-size: 12px; color: var(--ink-mute);
}

.cs-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 8px;
}
.cs-role-icon {
  font-size: 36px; margin-bottom: 8px;
}
.cs-role-title { font-size: 14px; font-weight: 600; }
.cs-role-sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; line-height: 1.3; }

.cs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #ececef;
  padding: 24px 32px;
  border-radius: 8px;
  margin-top: 8px;
}
.cs-stat-n { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.cs-stat-l { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

.cs-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: none;
}
.cs-feature-phone { display: flex; justify-content: center; }

.cs-sketch-row, .cs-screens-row, .cs-result-row {
  max-width: none;
  margin: 30px 0 0;
  padding: 0 150px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.cs-sketch {
  width: 220px; height: 460px;
  border-radius: 12px;
  border: 2px dashed #c0bdc4;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  background: #fafafa;
}

.cs-award-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.cs-award {
  aspect-ratio: 4/3;
  border-radius: 4px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .cs-team, .cs-roles, .cs-stats, .cs-feature, .cs-award-row { grid-template-columns: 1fr; }
  .cs-hero-phones { flex-direction: column; gap: 12px; }
}

/* ---------- Project detail ---------- */
.detail-hero {
  max-width: none;
  margin: 0;
  padding: 80px 150px 40px;
}
.detail-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0 0;
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.detail-meta span strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  margin-top: 6px;
  letter-spacing: 0;
}
.detail-section {
  max-width: none;
  margin: 0;
  padding: 60px 150px;
}
.detail-section h3 {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 20px;
}
.detail-section p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0 0 16px;
}
.detail-banner {
  max-width: none;
  margin: 40px 0;
  padding: 0 150px;
}
.detail-banner-inner {
  border-radius: var(--r-card);
  padding: 80px 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.detail-banner-inner.light {
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--accent) 22%, white),
    color-mix(in oklch, var(--accent-2) 18%, white));
}
.detail-banner-inner.dark { background: linear-gradient(180deg, #1c1c22, #2c2c34); }

.next-project {
  max-width: none;
  margin: 60px 0 80px;
  padding: 60px 150px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  cursor: pointer;
  transition: padding-left .3s ease;
}
.next-project:hover { padding-left: 174px; }
.next-project span { color: var(--ink-mute); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.next-project h2 {
  font-size: clamp(40px, 6vw, 80px);
  margin: 8px 0 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- About ---------- */
.about-grid {
  max-width: 1080px;
  margin: 40px auto 100px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(135deg,
    color-mix(in oklch, var(--accent) 35%, white),
    color-mix(in oklch, var(--accent-2) 50%, white));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-portrait::after {
  content: 'portrait';
  font-family: 'JetBrains Mono', monospace;
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: rgba(40, 30, 60, 0.35);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.about-body p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 22px;
}
.about-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}
.about-list h4 {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 16px;
  grid-column: 1 / -1;
}
.about-list li {
  list-style: none;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 300;
}

/* ---------- Contact ---------- */
.contact-simple {
  padding: 80px 150px 160px;
}
.contact-simple-title {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.contact-simple-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--ink);
  margin: 32px 0 0;
  max-width: 760px;
}
.contact-simple-block {
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.contact-simple-block h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.contact-simple-block a {
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.contact-simple-block a:hover { color: var(--accent-hover); }

/* ---------- Resume ---------- */
.resume-page {
  padding: 80px 150px 120px;
}
.resume-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.resume-download {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.resume-download:hover {
  background: var(--ink);
  color: #fff;
}
.resume-frame {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.resume-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 940px) {
  .resume-page { padding: 60px 24px 90px; }
}

@media (max-width: 940px) {
  .contact-simple { padding: 60px 24px 120px; }
  .contact-simple-block { margin-top: 56px; }
}

.contact-grid {
  max-width: none;
  margin: 40px 0 100px;
  padding: 0 150px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info h4 {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 8px;
}
.contact-info a, .contact-info p {
  font-size: 22px;
  font-weight: 300;
  margin: 0;
  color: var(--ink);
}
.contact-info a { transition: color .2s; }
.contact-info a:hover { color: var(--accent-hover); }

.contact-form {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input, .field textarea {
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  padding: 10px 2px;
  outline: none;
  resize: none;
  transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.error input, .field.error textarea { border-color: #d65a5a; }
.field-msg { font-size: 12px; color: #d65a5a; min-height: 14px; }
.form-success {
  background: color-mix(in oklch, var(--accent) 30%, white);
  padding: 14px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  text-align: center;
}

/* ---------- About page (v2 — matches reference) ---------- */
.about-page {
  max-width: none;
  margin: 0;
  padding: 60px 150px 80px;
}
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0 100px;
}
.about-hero-text { max-width: 560px; }
.about-hi {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}
.about-lede {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.about-portrait-wrap {
  width: 100%;
  max-width: 288px;
  margin-left: auto;
  aspect-ratio: 449 / 730;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-block {
  max-width: none;
  margin: 0;
  padding: 56px 0;
}
.about-h2 {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 500;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}
.about-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}
.about-bullets li {
  position: relative;
  padding-left: 22px;
}
.about-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--ink);
}
.about-para {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  max-width: 820px;
}
.off-clock-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.off-clock-img {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in oklch, var(--accent) 30%, white),
    color-mix(in oklch, var(--accent-2) 40%, white));
}
.off-clock-img:nth-child(2) {
  background: linear-gradient(180deg, #b9d2e6, #e8eef3);
}
.off-clock-caption {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  margin: 18px 0 0;
}
@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .about-portrait-wrap { margin: 0; max-width: 320px; }
  .off-clock-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone bezel container ---------- */
.phone {
  margin: 0 auto;
}

/* ---------- Paper grain (toggle) ---------- */
.grain-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--card);
    border-radius: 24px;
    padding: 20px;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-pill);
  }
  .nav { position: relative; }
  .nav-burger { display: block; }
  .showcase {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    gap: 36px;
    text-align: center;
  }
  .showcase-text p { margin-left: auto; margin-right: auto; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-list { grid-template-columns: 1fr; }
  .hero { padding: 60px 24px 40px; }
  .showcases { padding: 40px 16px 60px; }
  .nav-wrap { padding: 0 16px; }

  .footer { padding: 80px 24px 60px; }
  .about-page { padding: 60px 24px 80px; }
  .contact-grid { padding: 0 24px; }
  .cs-section, .detail-hero, .detail-section, .next-project { padding-left: 24px; padding-right: 24px; }
  .detail-banner, .cs-sketch-row, .cs-screens-row, .cs-result-row { padding-left: 24px; padding-right: 24px; }
  .projects-head { padding: 80px 24px 48px; }
}
@media (max-width: 540px) {
  .phones-row { gap: 8px; }
  .container, .showcase, .page-head { padding-left: 16px; padding-right: 16px; }
  .showcase { padding: 32px 18px; }
  .hero-glow { height: 320px; }
}
