/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-alt: #f1ede7;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e7e2dc;
  --border-strong: #d3ccc4;
  --accent: #0f1720;
  --accent-hover: #1d2835;
  --accent-soft: rgba(15, 23, 32, 0.08);
  --tag-bg: rgba(15, 23, 32, 0.06);
  --tag-text: #2d3440;

  --max-w: 1280px;
  --content-w: 72ch;
  --section-gap: clamp(3.25rem, 6vw, 5.75rem);
  --stack-gap: clamp(1rem, 2vw, 1.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(17, 17, 17, 0.03);
  --shadow-hover: 0 10px 26px rgba(17, 17, 17, 0.055);
  --transition: 180ms ease;
  --transition-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

main { flex: 1; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(17, 17, 17, 0.28);
  transition: color var(--transition), text-decoration-color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 2px solid rgba(15, 23, 32, 0.7);
  outline-offset: 3px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.page-hero + .section {
  padding-top: clamp(1.75rem, 3vw, 3rem);
}

.section--alt {
  background: rgba(255, 255, 255, 0.46);
  border-block: 1px solid rgba(231, 226, 220, 0.9);
}

.page-shell {
  padding-block: clamp(2rem, 4vw, 4rem);
}

/* ============================================================
   Header / Footer
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(247, 245, 242, 0.94);
  border-bottom: 1px solid rgba(231, 226, 220, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.95rem;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.site-logo:hover { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  position: relative;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link--active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
}

.nav-toggle {
  display: none;
}

.site-footer {
  background: #10161b;
  color: rgba(247, 245, 242, 0.92);
  padding-block: clamp(2.2rem, 5vw, 4rem) 1.4rem;
  margin-top: auto;
}

.footer-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid rgba(247, 245, 242, 0.14);
}

.footer-cta p {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
}

.footer-meta {
  display: flex;
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
  flex-wrap: wrap;
}

.footer-copy,
.footer-link {
  font-size: 0.84rem;
  color: rgba(247, 245, 242, 0.62);
}

.footer-links {
  display: grid;
  gap: 0.32rem;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  color: rgba(247, 245, 242, 0.95);
}

.footer-label {
  margin-bottom: 0.45rem;
  color: rgba(247, 245, 242, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-focus {
  display: flex;
  max-width: 34rem;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: rgba(247, 245, 242, 0.76);
  font-size: 0.86rem;
}

.footer-focus li::after {
  content: "/";
  margin-left: 0.8rem;
  color: rgba(247, 245, 242, 0.25);
}

.footer-focus li:last-child::after {
  content: "";
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.68rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--footer {
  border: 1px solid rgba(247, 245, 242, 0.22);
  background: rgba(247, 245, 242, 0.94);
  color: #10161b;
}

.btn--footer:hover {
  background: #fff;
  color: #10161b;
}

.btn svg,
.project-link svg,
.about-social svg {
  flex-shrink: 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(2.5rem, 5vw, 4.8rem) clamp(2.4rem, 5vw, 4.2rem);
}

.hero-inner,
.about-layout,
.resume-layout,
.project-hero__inner {
  display: grid;
  gap: clamp(1.75rem, 3.2vw, 3rem);
}

.hero-inner {
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: start;
}

.hero-kicker,
.page-kicker {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  max-width: 18ch;
  margin-bottom: 0.95rem;
  font-size: clamp(2.35rem, 3.7vw, 3.35rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.page-title {
  max-width: 12ch;
  font-size: clamp(2.25rem, 3.7vw, 3.25rem);
  line-height: 0.98;
}

.hero-tagline,
.page-subtitle,
.hero-bio {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-tagline {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.15;
  color: var(--text);
}

.hero-bio {
  max-width: 36rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-frame,
.about-photo__frame,
.project-hero__visual,
.resume-download,
.intro-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface);
}

.hero-frame__image {
  width: 100%;
  height: clamp(20rem, 30vw, 25rem);
  object-fit: cover;
  object-position: center 42%;
}

.hero-frame__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-frame__caption strong {
  color: var(--text);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stat {
  display: inline-flex;
  gap: 0.35rem;
}

.hero-stat + .hero-stat::before {
  content: "•";
  color: var(--border-strong);
}

.hero-stat__value {
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header,
.page-header,
.resume-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 0.96;
}

.section-more,
.back-link,
.project-link,
.about-social {
  color: var(--muted);
  text-decoration: none;
}

.section-more:hover,
.back-link:hover,
.project-link:hover,
.about-social:hover {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Projects
   ============================================================ */
.projects-grid {
  display: grid;
  gap: 1.1rem;
}

.projects-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.project-card[hidden] {
  display: none !important;
}

.project-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.project-card__link {
  display: block;
  text-decoration: none;
}

.project-card__link:focus-visible {
  outline: 0;
}

.project-card__media {
  position: relative;
  display: flex;
  min-height: 8.75rem;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.14)),
    linear-gradient(160deg, #f1ece5, #dfd6cc);
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.78), rgba(15, 23, 32, 0.2) 62%, rgba(15, 23, 32, 0.08)),
    linear-gradient(0deg, rgba(15, 23, 32, 0.6), rgba(15, 23, 32, 0.08) 68%);
}

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

.experience-card__media {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    linear-gradient(160deg, #f0ebe4, #ddd4c8);
}

.experience-card__media::after {
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.76), rgba(15, 23, 32, 0.2) 58%, rgba(15, 23, 32, 0.06)),
    linear-gradient(0deg, rgba(15, 23, 32, 0.54), rgba(15, 23, 32, 0.08) 60%);
}

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

.project-card__media-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 1rem;
}

.project-card__media-title {
  max-width: min(18ch, calc(100% - 1rem));
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.project-card__media-meta,
.experience-card__period {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.company-logo {
  display: block;
  max-width: none;
  object-fit: contain;
  filter: grayscale(1) contrast(0.84);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.company-logo[src*="tallmaker"] {
  filter: grayscale(1) brightness(0.52) contrast(1.08);
  opacity: 0.56;
}

.project-card__placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.project-card__placeholder span {
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.project-card__badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-card__media .project-card__badge {
  background: rgba(255, 255, 255, 0.88);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 1rem 1.05rem 1.05rem;
}

.project-card__title {
  font-size: clamp(1.24rem, 1.6vw, 1.45rem);
  line-height: 1.02;
}

.project-card__title a {
  color: inherit;
  text-decoration: none;
}

.project-card__summary {
  color: var(--muted);
  max-width: 58ch;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.experience-card .project-card__summary {
  -webkit-line-clamp: 4;
}

.project-card__category {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.58rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-empty {
  padding-block: 2rem;
  text-align: center;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  min-height: auto;
  padding: 0.1rem 0 0.22rem;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color var(--transition), color var(--transition);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn--active {
  border-color: var(--accent);
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-list--large .tag {
  min-height: 26px;
}

/* ============================================================
   Project Detail
   ============================================================ */
.project-detail {
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.project-hero {
  padding-block: clamp(2rem, 4vw, 3.6rem) clamp(2rem, 4vw, 3.5rem);
}

.project-hero__inner {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
}

.project-hero__title {
  max-width: 14ch;
  font-size: clamp(2.35rem, 3.6vw, 3.45rem);
}

.project-hero__summary {
  max-width: 35rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-hero__visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.project-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__panel {
  padding: 1.35rem;
}

.experience-hero-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22)),
    linear-gradient(160deg, #f0ebe4, #ddd4c8);
}

.project-hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.project-hero .tag-list {
  margin-top: 0.95rem;
}

.project-hero .hero-actions {
  margin-top: 1.25rem;
}

.project-images {
  padding-bottom: 1.5rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.project-content-section {
  padding-top: 0;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, var(--content-w)) minmax(220px, 290px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
  border-top: 1px solid var(--border);
}

.project-sidebar {
  position: sticky;
  top: 6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--border);
}

.project-sidebar__title {
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.project-details div {
  display: grid;
  gap: 0.18rem;
}

.project-details dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.project-details dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ============================================================
   About
   ============================================================ */
.page-hero {
  padding-block: clamp(1.75rem, 3.2vw, 2.9rem) clamp(0.9rem, 2vw, 1.4rem);
}

.page-title {
  font-size: clamp(2.25rem, 3.7vw, 3.25rem);
}

.page-subtitle {
  max-width: 38rem;
  margin-top: 0.55rem;
  font-size: 0.96rem;
}

.page-intro {
  max-width: 42rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.about-layout {
  grid-template-columns: minmax(250px, 315px) minmax(0, 1fr);
  align-items: start;
}

.about-photo__frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 25rem;
  background: var(--surface);
}

.about-photo__frame img {
  width: 100%;
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
  object-position: center 38%;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.about-content {
  max-width: var(--content-w);
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.about-image-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.about-image-grid img {
  width: 100%;
  height: clamp(9rem, 18vw, 13rem);
  object-fit: cover;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

/* ============================================================
   Resume
   ============================================================ */
.resume-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  align-items: start;
}

.resume-main,
.resume-aside {
  min-width: 0;
}

.resume-section-title {
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.resume-block {
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}

.resume-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.resume-entry {
  padding-block: 0.3rem 1.75rem;
}

.resume-entry + .resume-entry {
  border-top: 1px solid rgba(231, 226, 220, 0.65);
}

.resume-entry__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.resume-entry__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.company-logo--resume {
  width: 6.25rem;
  height: 2.55rem;
  margin-top: 0.08rem;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(231, 226, 220, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  filter: grayscale(1) contrast(0.92);
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.company-logo--resume[src*="tallmaker"] {
  filter: grayscale(1) contrast(0.92);
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.company-logo--resume[src*="visma"] {
  padding: 0.42rem 0.58rem;
}

.resume-entry__title {
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.05;
}

.resume-entry__org,
.resume-entry__date,
.resume-entry__desc,
.contact-list {
  color: var(--muted);
}

.resume-entry__org {
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.resume-entry__date {
  white-space: nowrap;
  font-size: 0.9rem;
}

.resume-entry__desc {
  max-width: 62ch;
}

.resume-entry__desc + .resume-entry__desc {
  margin-top: 0.65rem;
}

.resume-experience-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.resume-experience-link {
  display: grid;
  gap: 0.28rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-strong);
  color: inherit;
  text-decoration: none;
}

.resume-experience-link__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
}

.resume-experience-link:hover .resume-experience-link__title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.resume-experience-link__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.1;
}

.resume-experience-link__period {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.resume-experience-link__summary {
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.resume-highlights {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.resume-highlights li {
  position: relative;
  padding-left: 1rem;
}

.resume-highlights li::before {
  content: "";
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}

.contact-list {
  display: grid;
  gap: 0.45rem;
}

.skill-group {
  display: grid;
  gap: 0.55rem;
}

.skill-group + .skill-group {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(231, 226, 220, 0.7);
}

.skill-group__title {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-list li {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.86rem;
}

.resume-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
}

.resume-download__copy {
  display: grid;
  gap: 0.15rem;
}

.resume-download__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

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

/* ============================================================
   Prose
   ============================================================ */
.prose {
  max-width: var(--content-w);
  font-size: 1rem;
  line-height: 1.85;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.prose h3 {
  margin-top: 1.9rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--muted);
}

.prose li {
  padding-left: 0.1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose code {
  padding: 0.15rem 0.38rem;
  border-radius: 6px;
  background: rgba(15, 23, 32, 0.06);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-style: italic;
}

.prose .lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

/* ============================================================
   Navigation / Mobile
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner,
  .project-hero__inner,
  .about-layout,
  .resume-layout,
  .project-content {
    grid-template-columns: 1fr;
  }

  .hero-name {
    max-width: 12ch;
  }

  .hero-frame__image {
    height: clamp(20rem, 52vw, 27rem);
  }

  .about-photo__frame,
  .about-photo__frame img {
    min-height: 22rem;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid--featured,
  .projects-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-sidebar {
    position: static;
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-nav {
    gap: 1.15rem;
  }

  .resume-aside {
    order: -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.25rem, var(--max-w));
  }

  .section {
    padding-block: clamp(2.5rem, 9vw, 3.5rem);
  }

  .header-inner {
    position: relative;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.8rem) 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(247, 245, 242, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 999px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 44px;
  }

  .filter-btn {
    min-height: 40px;
  }

  .projects-grid--featured,
  .projects-grid--catalog {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-header,
  .resume-header {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .resume-entry__header {
    flex-direction: column;
    align-items: start;
  }

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

  .about-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-frame__image {
    height: 20rem;
  }

  .hero-frame__caption {
    flex-direction: column;
    align-items: start;
  }

  .project-card__body {
    padding: 1.15rem;
  }

  .project-hero__title,
  .page-title {
    max-width: none;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .project-hero__visual,
  .project-images,
  .btn,
  .resume-download {
    display: none !important;
  }

  .section,
  .page-hero,
  .hero {
    padding-block: 1.5rem;
  }

  .prose {
    max-width: none;
  }
}
