:root {
  --bg: #f4eadc;
  --bg-2: #ede0ce;
  --ink: #1b1714;
  --muted: #716257;
  --brown: #8b3a12;
  --brown-dark: #54230d;
  --brown-soft: #b56a35;
  --cream: #fffaf2;
  --line: rgba(84, 35, 13, 0.16);
  --shadow: 0 24px 80px rgba(60, 29, 14, 0.16);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(139, 58, 18, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(181, 106, 53, 0.22), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  padding-left: 1.1rem;
}

li {
  margin: 0.55rem 0;
}

::selection {
  color: var(--cream);
  background: var(--brown);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(84, 35, 13, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 35, 13, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(181, 106, 53, 0.18), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(84, 35, 13, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 50px rgba(64, 31, 14, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.brand-text {
  color: var(--brown-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
  color: rgba(27, 23, 20, 0.74);
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brown);
  transition: width 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brown);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  border: 1px solid rgba(84, 35, 13, 0.18);
  background: rgba(255, 250, 242, 0.85);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  transform: translateY(-1px);
  border-color: var(--brown);
}

.lang-option.active {
  color: var(--brown);
}

.lang-divider {
  opacity: 0.35;
  margin: 0 2px;
}

.section-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 84px);
  padding: 90px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  gap: 64px;
  align-items: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vertical-word {
  position: absolute;
  right: -10px;
  top: 12%;
  writing-mode: vertical-rl;
  font-weight: 950;
  font-size: clamp(4.6rem, 12vw, 12rem);
  letter-spacing: -0.08em;
  color: rgba(139, 58, 18, 0.055);
}

.ring {
  position: absolute;
  border: 1px solid rgba(139, 58, 18, 0.16);
  border-radius: 50%;
}

.ring-one {
  width: 560px;
  height: 560px;
  left: -260px;
  bottom: -190px;
}

.ring-two {
  width: 280px;
  height: 280px;
  left: 90px;
  bottom: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 10vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  font-weight: 950;
}

h1 span {
  display: block;
}

h1 strong {
  display: block;
  margin-top: 20px;
  color: var(--brown);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.hero-tags,
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
}

.hero-tags span,
.project-stack span {
  border: 1px solid rgba(139, 58, 18, 0.18);
  color: var(--brown-dark);
  background: rgba(255, 250, 242, 0.56);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}

.hero-actions,
.project-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: var(--cream);
  box-shadow: 0 16px 40px rgba(84, 35, 13, 0.24);
}

.btn.ghost {
  color: var(--brown-dark);
  background: rgba(255, 250, 242, 0.7);
  border-color: rgba(84, 35, 13, 0.18);
}

.btn.text {
  color: var(--brown);
  padding-inline: 6px;
}

.btn.download {
  background: var(--cream);
  color: var(--brown-dark);
  border-color: rgba(84, 35, 13, 0.16);
}

.btn.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(139, 58, 18, 0.9) 0 34%, rgba(255, 250, 242, 0.88) 34% 100%);
  border: 1px solid rgba(84, 35, 13, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -70px;
  top: -90px;
}

.avatar-wrap {
  position: relative;
  margin: 18px auto 28px;
  width: min(100%, 286px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5a240b, #a54a16);
  box-shadow:
    0 22px 60px rgba(35, 25, 20, 0.3),
    inset 0 0 0 12px rgba(84, 35, 13, 0.48),
    inset 0 0 0 22px rgba(255, 250, 242, 0.18);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 50%;
}

.avatar {
  width: 82%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px var(--brown-dark);
}

.profile-info {
  text-align: center;
  position: relative;
  z-index: 1;
}

.profile-role {
  color: var(--brown);
  font-weight: 900;
  margin-bottom: 8px;
}

.profile-info h2 {
  margin-bottom: 6px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.profile-info p:not(.profile-role) {
  color: var(--muted);
}

.profile-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-grid div {
  padding: 14px 8px;
  background: rgba(244, 234, 220, 0.8);
  border: 1px solid rgba(84, 35, 13, 0.13);
  border-radius: 18px;
  text-align: center;
}

.profile-grid strong,
.profile-grid span {
  display: block;
}

.profile-grid strong {
  color: var(--brown-dark);
}

.profile-grid span {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -28px;
}

.strip-item {
  border-radius: var(--radius-md);
  padding: 22px;
  background: rgba(255, 250, 242, 0.68);
  border: 1px solid rgba(84, 35, 13, 0.14);
  box-shadow: 0 20px 60px rgba(64, 31, 14, 0.08);
}

.strip-number {
  color: var(--brown);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.strip-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.two-column {
  padding: 110px 0 80px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  margin-bottom: 0;
}

.section-heading.centered {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.section-content {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.availability-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139, 58, 18, 0.1), rgba(255, 250, 242, 0.72));
  border: 1px solid rgba(84, 35, 13, 0.14);
}

.availability-card span,
.availability-card strong {
  display: block;
}

.availability-card span {
  color: var(--brown);
  font-weight: 900;
  margin-bottom: 6px;
}

.availability-card strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.skills-section,
.timeline-section {
  padding: 80px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card,
.info-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(84, 35, 13, 0.14);
  box-shadow: 0 22px 70px rgba(64, 31, 14, 0.08);
  overflow: hidden;
}

.skill-card::after,
.info-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(139, 58, 18, 0.08);
}

.card-index {
  position: absolute;
  right: 22px;
  top: 10px;
  color: rgba(139, 58, 18, 0.12);
  font-size: 6rem;
  font-weight: 950;
  letter-spacing: -0.12em;
}

.skill-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.44rem;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.skill-card ul {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.58;
}

.project-section {
  padding: 80px 0;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  padding: 40px;
  border-radius: 46px;
  background:
    linear-gradient(135deg, rgba(35, 25, 20, 0.96), rgba(84, 35, 13, 0.94)),
    var(--ink);
  color: var(--cream);
  box-shadow: 0 34px 100px rgba(35, 25, 20, 0.24);
  overflow: hidden;
}

.project-card .eyebrow {
  color: #d7ab7a;
}

.project-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  margin-bottom: 22px;
}

.project-copy p {
  color: rgba(255, 250, 242, 0.76);
  font-size: 1.05rem;
  line-height: 1.72;
}

.project-stack span {
  color: var(--cream);
  border-color: rgba(255, 250, 242, 0.18);
  background: rgba(255, 250, 242, 0.08);
}

.feature-list {
  columns: 2;
  column-gap: 32px;
  color: rgba(255, 250, 242, 0.78);
  line-height: 1.55;
  margin-bottom: 30px;
}

.project-actions .btn.ghost {
  color: var(--cream);
  background: rgba(255, 250, 242, 0.1);
  border-color: rgba(255, 250, 242, 0.18);
}

.project-actions .btn.text {
  color: #d7ab7a;
}

.project-visual {
  display: grid;
  place-items: center;
}

.mock-window {
  width: 100%;
  min-height: 420px;
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.42);
}

.dashboard-line,
.task-row,
.dashboard-grid div {
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.18);
}

.dashboard-line {
  height: 18px;
  width: 68%;
  margin-bottom: 14px;
}

.dashboard-line.wide {
  height: 38px;
  width: 90%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0;
}

.dashboard-grid div {
  height: 92px;
  border-radius: 22px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  margin-top: 12px;
  padding: 0 14px;
  background: rgba(255, 250, 242, 0.1);
}

.task-row span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d7ab7a;
}

.task-row strong {
  display: block;
  width: 62%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.25);
}

.timeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 172px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(84, 35, 13, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 36px 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.time {
  color: var(--brown);
  font-weight: 950;
  padding-top: 28px;
}

.timeline-dot {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 30px auto 0;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 0 0 8px rgba(139, 58, 18, 0.12);
  z-index: 1;
}

.timeline-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(84, 35, 13, 0.14);
  box-shadow: 0 18px 60px rgba(64, 31, 14, 0.07);
}

.timeline-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.timeline-card p,
.timeline-card ul {
  color: var(--muted);
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

.education-achievement {
  padding: 60px 0 90px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.info-card {
  min-height: 230px;
}

.info-card h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.info-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.info-card.highlight {
  background: linear-gradient(135deg, rgba(139, 58, 18, 0.96), rgba(84, 35, 13, 0.96));
  color: var(--cream);
}

.info-card.highlight .eyebrow,
.info-card.highlight p {
  color: rgba(255, 250, 242, 0.76);
}

.contact-section {
  padding: 50px 0 90px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding: 40px;
  border-radius: 46px;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(84, 35, 13, 0.14);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: block;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(244, 234, 220, 0.78);
  border: 1px solid rgba(84, 35, 13, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 58, 18, 0.44);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-link strong {
  color: var(--brown-dark);
  overflow-wrap: anywhere;
}

.download-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background: rgba(139, 58, 18, 0.08);
  border: 1px dashed rgba(84, 35, 13, 0.24);
}

.download-card p {
  margin: 0;
  font-weight: 800;
  color: var(--brown-dark) !important;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brown);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 8px 2px 0;
  }

  .hero,
  .two-column,
  .project-card,
  .education-achievement,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
    gap: 36px;
  }

  .profile-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .intro-strip,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-item {
    grid-template-columns: 22px 1fr;
    gap: 14px;
  }

  .timeline-item .time {
    grid-column: 2;
    padding-top: 0;
  }

  .timeline-dot {
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .timeline-card {
    grid-column: 2;
  }

  .feature-list {
    columns: 1;
  }

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

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .brand-text {
    display: none;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .hero-actions,
  .project-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .two-column,
  .skills-section,
  .timeline-section,
  .project-section {
    padding-block: 58px;
  }

  .project-card,
  .contact-panel {
    padding: 24px;
    border-radius: 30px;
  }

  .skill-card,
  .info-card {
    padding: 24px;
  }

  .mock-window {
    min-height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Patch: better anchor scrolling and clearer project preview */
.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

html {
  scroll-padding-top: 104px;
}

.project-copy h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  overflow-wrap: break-word;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.14);
  border: 1px solid rgba(255, 250, 242, 0.12);
}

.mock-header strong,
.mock-header small,
.mock-header em {
  display: block;
}

.mock-header strong {
  color: var(--cream);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.mock-header small {
  margin-top: 4px;
  color: rgba(255, 250, 242, 0.62);
  font-weight: 700;
}

.mock-header em {
  font-style: normal;
  color: #5a240b;
  background: #d7ab7a;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.dashboard-grid div {
  height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-grid div strong {
  color: var(--cream);
  font-size: 1.45rem;
  line-height: 1;
}

.dashboard-grid div span {
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.task-row span {
  flex: 0 0 auto;
}

.task-row strong {
  width: auto;
  height: auto;
  background: transparent;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 136px;
  }

  .project-copy h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
    line-height: 1;
  }
}


/* v3 visual fixes */
h1 {
  line-height: 1.02;
  letter-spacing: -0.075em;
}

h1 strong {
  margin-top: 28px;
  letter-spacing: -0.035em;
}

.project-image-card {
  width: 100%;
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.16);
  box-shadow: 0 24px 80px rgba(27, 23, 20, 0.28);
}

.project-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-image-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: rgba(255, 250, 242, 0.9);
  background: rgba(255, 250, 242, 0.08);
}

.project-image-card figcaption strong {
  color: var(--cream);
  font-size: 1.05rem;
}

.project-image-card figcaption span {
  color: #d7ab7a;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.download-card.compact {
  padding: 20px;
}

.download-card.compact .download-actions {
  margin-top: 0;
}

.btn.download:not(.disabled) {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
  }

  h1 strong {
    margin-top: 24px;
    font-size: 1.28rem;
  }

  .project-image-card figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}
