:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #5d4a57;
  --muted: #8c7481;
  --line: rgba(93, 74, 87, 0.12);
  --primary: #dba8b8;
  --primary-soft: #f7e7ee;
  --accent: #8f6f7e;
  --accent-soft: #fdf2f6;
  --shadow: 0 10px 28px rgba(93, 74, 87, 0.06);
  --bg-gradient:
    radial-gradient(circle at top left, rgba(247, 231, 238, 0.9) 0%, rgba(247, 231, 238, 0) 38%),
    radial-gradient(circle at bottom right, rgba(243, 219, 228, 0.72) 0%, rgba(243, 219, 228, 0) 32%),
    linear-gradient(180deg, #fffdfd 0%, #fff7fa 52%, #fffafc 100%);
  --shell-bg: transparent;
  --header-bg: rgba(249, 237, 242, 0.86);
  --footer-bg: rgba(249, 237, 242, 0.9);
  --button-secondary-bg: #fff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --toggle-bg: rgba(255, 255, 255, 0.86);
  --toggle-icon: #8f6f7e;
  --toggle-border: rgba(143, 111, 126, 0.16);
  --toggle-shadow: 0 16px 34px rgba(93, 74, 87, 0.16);
  --focus-ring: rgba(216, 167, 177, 0.44);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #160f16;
  --surface: rgba(43, 29, 40, 0.92);
  --surface-strong: rgba(54, 37, 50, 0.95);
  --text: #f6e8ee;
  --muted: #d3bcc7;
  --line: rgba(241, 218, 227, 0.14);
  --primary: #d7a2b4;
  --primary-soft: rgba(215, 162, 180, 0.18);
  --accent: #f2bfd0;
  --accent-soft: rgba(80, 54, 69, 0.92);
  --shadow: 0 18px 40px rgba(8, 4, 8, 0.36);
  --bg-gradient:
    radial-gradient(circle at top left, rgba(143, 111, 126, 0.34) 0%, rgba(143, 111, 126, 0) 32%),
    radial-gradient(circle at bottom right, rgba(219, 168, 184, 0.12) 0%, rgba(219, 168, 184, 0) 30%),
    linear-gradient(180deg, #140f14 0%, #1d1520 48%, #120d13 100%);
  --shell-bg: transparent;
  --header-bg: rgba(30, 20, 31, 0.88);
  --footer-bg: rgba(28, 18, 29, 0.92);
  --button-secondary-bg: rgba(255, 255, 255, 0.04);
  --panel-soft: rgba(255, 248, 251, 0.06);
  --toggle-bg: rgba(38, 25, 36, 0.92);
  --toggle-icon: #ffe6a8;
  --toggle-border: rgba(242, 191, 208, 0.18);
  --toggle-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  --focus-ring: rgba(242, 191, 208, 0.3);
}

* {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  transition: background 0.35s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 56px;
  background: var(--shell-bg);
}

.site-header {
  padding: 18px 0;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(219, 168, 184, 0.28);
  backdrop-filter: blur(16px);
}

.full-width {
  width: 100%;
}

.bar-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 88px;
  height: 62px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, #fffafc 0%, #f3e1e8 52%, #e6c8d3 100%);
  border: 1px solid rgba(143, 111, 126, 0.16);
  box-shadow: 0 12px 28px rgba(93, 74, 87, 0.1);
}

.logo-slot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.logo-core {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #5d4a57;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: rgba(219, 168, 184, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  padding: 48px 0 34px;
}

.hero-copy,
.hero-panel,
.feature-card,
.info-card,
.post-card,
.portfolio-card,
.contact-form,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(107, 79, 79, 0.05);
}

.hero-copy {
  padding: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
}

.hero-text,
.page-intro p,
.feature-card p,
.info-card p,
.post-card p,
.portfolio-card p,
.timeline p,
.metric-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: var(--accent);
}

.button-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--line);
}

.hero-panel {
  padding: 28px;
  background: var(--accent-soft);
  color: var(--text);
}

.metric-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(107, 79, 79, 0.08);
}

.metric-card span,
.timeline span,
.project-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(219, 168, 184, 0.22);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.5rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.panel-grid article {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.panel-grid h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section,
.page-intro,
.blog-layout,
.portfolio-grid,
.contact-layout,
.timeline,
.site-footer {
  margin-top: 56px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-intro h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.feature-card,
.info-card,
.post-card,
.portfolio-card,
.contact-form,
.timeline article {
  padding: 30px;
}

.card-number {
  display: inline-block;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

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

.swatch {
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  font-weight: 700;
  border: 1px solid rgba(107, 79, 79, 0.08);
}

.beige {
  background: #f5efe6;
}

.brown {
  background: #8f6f7e;
  color: white;
}

.terracotta {
  background: #dba8b8;
}

.pink {
  background: #f7e7ee;
}

.home-page .page-shell {
  padding-top: 36px;
}

.home-page .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  padding: 18px 0 26px;
}

.home-page .hero-copy {
  padding: 48px;
  background: linear-gradient(180deg, #fffdfd 0%, #fcf6f8 100%);
}

.home-page h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.05;
}

.home-page .hero-text {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1rem;
}

.home-page .hero-panel {
  padding: 22px;
  background: linear-gradient(180deg, #fcf2f6 0%, #f9edf2 100%);
}

.home-page .metric-card {
  padding: 26px;
}

.home-page .metric-card strong {
  margin-top: 14px;
  font-size: 1.25rem;
}

.home-page .panel-grid article {
  min-height: 200px;
  padding: 22px;
}

.home-page .panel-grid h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-page .section {
  margin-top: 64px;
}

.home-page .section-heading {
  margin-bottom: 30px;
  max-width: 760px;
}

.home-page .section-heading h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.15;
}

.home-page .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  grid-auto-flow: dense;
  align-items: stretch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-page .feature-card {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-page .feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
  line-height: 1.25;
}

.home-page .feature-card p {
  margin: 0;
}

.home-page .feature-card-wide {
  grid-column: span 2;
}

.home-page .service-summary {
  min-height: 100%;
}

.home-page .service-summary p {
  line-height: 1.8;
}

.home-page .technical-profile {
  margin-bottom: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 22px;
  align-items: center;
}

.tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 111, 126, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.tech-tags-dark span {
  border-color: rgba(93, 74, 87, 0.18);
  background: #6b5461;
  color: #fff7fa;
  box-shadow: 0 8px 18px rgba(93, 74, 87, 0.12);
}

.technical-palette {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.technical-swatch {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.technical-swatch h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-family: "Manrope", sans-serif;
  line-height: 1.3;
}

.technical-swatch p {
  margin: 0;
  line-height: 1.75;
  font-size: 0.96rem;
  font-weight: 500;
}

.brown.technical-swatch p {
  color: rgba(255, 247, 250, 0.92);
}

.beige.technical-swatch p,
.terracotta.technical-swatch p,
.pink.technical-swatch p {
  color: rgba(93, 74, 87, 0.88);
}

.technical-swatch-wide {
  grid-column: span 2;
  background: linear-gradient(180deg, #fff 0%, #fcf4f7 100%);
}

.about-page .page-shell {
  padding-top: 28px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.about-photo-card,
.about-intro-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(107, 79, 79, 0.05);
}

.about-photo-card {
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(180deg, #fcf2f6 0%, #f9edf2 100%);
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.about-intro-card {
  padding: 34px;
  background: linear-gradient(180deg, #fffdfd 0%, #fcf6f8 100%);
}

.about-page .page-intro h1,
.about-page h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.08;
}

.about-page .two-column {
  margin-top: 28px;
  align-items: start;
}

.about-page .info-card h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.about-page .info-card p + p {
  margin-top: 14px;
}

.about-page .timeline {
  margin-top: 28px;
}

.about-page .timeline article {
  padding: 26px;
}

.about-page .timeline h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
}

.inner-page {
  padding-bottom: 12px;
}

.page-intro {
  padding: 22px 0 8px;
}

.page-intro h1 {
  max-width: 16ch;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.accent-card {
  background: #fcf4f7;
}

.clean-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.timeline span {
  color: var(--accent);
  background: rgba(219, 168, 184, 0.2);
}

.timeline h3 {
  margin: 18px 0 12px;
  font-size: 1.5rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.blog-page .page-intro {
  padding-bottom: 18px;
}

.blog-page .page-intro h1 {
  max-width: none;
}

.blog-page .page-intro p {
  max-width: none;
  width: 100%;
  font-size: 1rem;
}

.blog-page .blog-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.blog-page .post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, #fffafc 0%, #fdf2f6 100%);
  border: 1px solid rgba(219, 168, 184, 0.32);
  box-shadow: 0 18px 36px rgba(93, 74, 87, 0.08);
}

.blog-page .post-card h2,
.blog-page .post-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.blog-page .post-card p {
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.news-date {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.blog-page .text-link {
  margin-top: 20px;
  color: var(--accent);
}

.featured-post {
  grid-row: span 2;
  background: #f3dbe4;
  color: var(--text);
}

.featured-post p,
.featured-post .text-link {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
}

.tag.soft {
  background: rgba(216, 167, 177, 0.2);
  color: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  background: #fffaf7;
}

.portfolio-card h2 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.project-badge {
  color: var(--accent);
  background: rgba(216, 167, 177, 0.2);
}

.portfolio-page .inner-page {
  padding-top: 18px;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-media {
  position: relative;
  min-height: 260px;
  border-bottom: 1px solid rgba(216, 167, 177, 0.2);
  overflow: hidden;
}

.project-video-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(93, 74, 87, 0.1) 0%, rgba(93, 74, 87, 0.32) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #f8dfe8 0%, #e8b7c7 50%, #8f6f7e 100%);
  color: #fff7fa;
}

.project-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #ead6de;
}

.project-video-placeholder span {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-video-placeholder strong {
  max-width: 18ch;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.12;
  font-family: "Playfair Display", serif;
}

.project-card-content {
  padding: 24px 26px 26px;
}

.project-card-content h2 {
  margin-top: 18px;
}

.project-card-content p {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 42px;
  border-radius: 28px;
  border: 1px solid rgba(219, 168, 184, 0.34);
  background: linear-gradient(180deg, #f6dde7 0%, #fdf0f5 100%);
  box-shadow: 0 22px 44px rgba(93, 74, 87, 0.12);
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(216, 167, 177, 0.44);
  border-color: rgba(143, 111, 126, 0.28);
}

.contact-page .page-intro h1 {
  max-width: none;
}

.contact-page .page-intro p {
  max-width: 78ch;
}

.contact-page .contact-layout {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  align-items: start;
  margin-top: 22px;
}

.contact-page .page-intro {
  text-align: center;
}

.contact-page .page-intro p {
  margin-left: auto;
  margin-right: auto;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.checkbox-field a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkbox-field span {
  line-height: 1.5;
}

.contact-page .button-primary {
  min-height: 54px;
  padding: 0 28px;
}

.cv-download-section {
  margin-top: 28px;
}

.cv-download-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 0;
  text-align: center;
}

.cv-download-copy h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.cv-download-eyebrow {
  display: none;
}

.cv-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cv-download-actions .button {
  min-width: 180px;
}

.cv-page-main {
  display: grid;
  gap: 24px;
}

.cv-page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cv-page-intro h1 {
  max-width: none;
}

.cv-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.cv-sheet {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  background: #fbfbfe;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(93, 74, 87, 0.12);
  border: 1px solid rgba(143, 111, 126, 0.1);
}

.cv-sidebar {
  padding: 34px 24px;
  background: linear-gradient(180deg, #bcc0ea 0%, #cfd2f3 100%);
  color: #303048;
}

.cv-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 28px rgba(61, 65, 120, 0.14);
}

.cv-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.cv-side-section {
  margin-top: 18px;
}

.cv-side-section h2,
.cv-content-section h3 {
  margin: 0 0 12px;
  padding: 7px 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  font-weight: 800;
}

.cv-side-section h2 {
  background: rgba(255, 255, 255, 0.9);
  color: #343449;
}

.cv-contact-list,
.cv-bullet-list,
.cv-content-section ul,
.cv-skills-list {
  margin: 0;
}

.cv-contact-list,
.cv-bullet-list,
.cv-skills-list {
  padding-left: 18px;
}

.cv-contact-list li,
.cv-bullet-list li,
.cv-language,
.cv-content-section p,
.cv-content-section li,
.cv-entry-period {
  line-height: 1.45;
}

.cv-bullet-list li + li,
.cv-contact-list li + li,
.cv-skills-list li + li {
  margin-top: 6px;
}

.cv-language + .cv-language {
  margin-top: 10px;
}

.cv-language strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cv-main {
  padding: 32px 34px;
  background: #ffffff;
}

.cv-header {
  margin-bottom: 20px;
  text-align: center;
}

.cv-name {
  margin: 0;
  color: #a7addd;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-family: "Playfair Display", serif;
  line-height: 0.95;
  text-transform: uppercase;
}

.cv-role {
  margin: 8px 0 0;
  color: #4b4b5f;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-content-section + .cv-content-section {
  margin-top: 16px;
}

.cv-content-section h3 {
  background: #c2c6ec;
  color: #fff;
}

.cv-content-section p,
.cv-content-section li {
  color: #464659;
}

.cv-entry + .cv-entry {
  margin-top: 10px;
}

.cv-entry-title,
.cv-entry-subtitle,
.cv-entry-period {
  margin: 0;
}

.cv-entry-title {
  font-size: 0.98rem;
  color: #353547;
  text-transform: uppercase;
}

.cv-entry-subtitle {
  margin-top: 4px;
  font-weight: 800;
  color: #4d4d62;
}

.cv-entry-period {
  margin-top: 4px;
  color: #6a6a80;
}

.cv-content-section ul {
  padding-left: 18px;
}

.cv-skills-list {
  columns: 2;
  column-gap: 28px;
}

.contact-socials-section {
  margin-top: 30px;
  padding: 10px 0 0;
  text-align: center;
}

.contact-socials-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.contact-socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
}

.contact-socials-row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(111, 85, 99, 0.18);
  background: linear-gradient(180deg, #8f6f7e 0%, #6f5563 100%);
  color: #fff7fa;
  box-shadow: 0 12px 28px rgba(54, 37, 45, 0.2);
  transition: 0.25s ease;
}

.contact-socials-row a:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #9a7888 0%, #795e6d 100%);
  border-color: rgba(111, 85, 99, 0.28);
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.contact-social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: var(--footer-bg);
  border-top: 1px solid rgba(219, 168, 184, 0.28);
  color: var(--muted);
  backdrop-filter: blur(16px);
}

.theme-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-icon);
  box-shadow: var(--toggle-shadow);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(16px);
}

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

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.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;
}

html[data-theme="dark"] .logo-slot {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #3a2735 0%, #5c3f4f 54%, #8d6677 100%);
  border-color: rgba(242, 191, 208, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .logo-core {
  color: #fff3f7;
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .hero-tags span,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .timeline span,
html[data-theme="dark"] .project-badge {
  background: rgba(242, 191, 208, 0.14);
}

html[data-theme="dark"] .home-page .hero-copy,
html[data-theme="dark"] .about-intro-card,
html[data-theme="dark"] .blog-page .post-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .technical-swatch-wide,
html[data-theme="dark"] .portfolio-card,
html[data-theme="dark"] .about-photo-card,
html[data-theme="dark"] .home-page .hero-panel,
html[data-theme="dark"] .accent-card {
  background: linear-gradient(180deg, rgba(52, 35, 48, 0.96) 0%, rgba(31, 22, 31, 0.96) 100%);
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .panel-grid article,
html[data-theme="dark"] .tech-tags span {
  background: rgba(255, 248, 251, 0.06);
  border-color: rgba(242, 191, 208, 0.1);
}

html[data-theme="dark"] .beige {
  background: #4b3942;
}

html[data-theme="dark"] .brown {
  background: #7f6070;
}

html[data-theme="dark"] .terracotta {
  background: #ab7284;
}

html[data-theme="dark"] .pink {
  background: #694957;
}

html[data-theme="dark"] .beige,
html[data-theme="dark"] .terracotta,
html[data-theme="dark"] .pink,
html[data-theme="dark"] .beige.technical-swatch p,
html[data-theme="dark"] .terracotta.technical-swatch p,
html[data-theme="dark"] .pink.technical-swatch p,
html[data-theme="dark"] .tag.soft {
  color: #fff1f6;
}

html[data-theme="dark"] .featured-post,
html[data-theme="dark"] .project-video {
  background: #2b1d28;
}

html[data-theme="dark"] .contact-socials-row a {
  background: linear-gradient(180deg, #b38296 0%, #7a5b68 100%);
  border-color: rgba(242, 191, 208, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .contact-socials-row a:hover {
  background: linear-gradient(180deg, #c08ea3 0%, #8a6676 100%);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: rgba(255, 248, 251, 0.06);
  border-color: rgba(242, 191, 208, 0.14);
  color: var(--text);
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
  color: #c9afbb;
}

html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus {
  outline: 2px solid var(--focus-ring);
  border-color: rgba(242, 191, 208, 0.24);
}

html[data-theme="dark"] .cv-download-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(63, 42, 57, 0.96) 0%, rgba(41, 28, 39, 0.98) 100%);
  border-color: rgba(242, 191, 208, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .cv-download-eyebrow {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cv-sheet {
  background: rgba(35, 24, 34, 0.98);
  border-color: rgba(242, 191, 208, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cv-sidebar {
  background: linear-gradient(180deg, #5d4c43 0%, #473932 100%);
  color: #f6e8ee;
}

html[data-theme="dark"] .cv-side-section h2 {
  background: rgba(255, 255, 255, 0.1);
  color: #fff5fa;
}

html[data-theme="dark"] .cv-main {
  background:
    linear-gradient(180deg, rgba(34, 24, 34, 0.96), rgba(26, 19, 28, 0.98)),
    linear-gradient(180deg, #2d1d2a, #1f1720);
}

html[data-theme="dark"] .cv-name {
  color: #e6c39b;
}

html[data-theme="dark"] .cv-role,
html[data-theme="dark"] .cv-content-section p,
html[data-theme="dark"] .cv-content-section li,
html[data-theme="dark"] .cv-entry-subtitle,
html[data-theme="dark"] .cv-entry-period,
html[data-theme="dark"] .cv-contact-list li,
html[data-theme="dark"] .cv-bullet-list li,
html[data-theme="dark"] .cv-language {
  color: #eadfe8;
}

html[data-theme="dark"] .cv-entry-title {
  color: #ffffff;
}

html[data-theme="dark"] .cv-content-section h3 {
  background: rgba(191, 150, 110, 0.5);
}

.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
}

.footer-block {
  min-height: 100%;
  min-width: 0;
}

.footer-socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: flex-end;
  order: 3;
  flex: 0 1 auto;
}

.footer-socials a,
.footer-policy a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.footer-policy {
  display: flex;
  justify-content: center;
  order: 2;
  white-space: nowrap;
}

.footer-copy {
  display: flex;
  justify-content: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
  order: 1;
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .footer-inner {
    width: min(1080px, calc(100% - 56px));
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }

  .footer-copy,
  .footer-policy,
  .footer-socials {
    justify-content: center;
  }

  .footer-socials {
    flex-wrap: wrap;
  }
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 1080px) {
  .hero,
  .spotlight,
  .blog-layout,
  .card-grid,
  .timeline,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .home-page .card-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .home-page .feature-card-wide {
    grid-column: span 1;
  }

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

  .footer-inner {
    width: min(100%, calc(100% - 32px));
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-socials,
  .footer-policy,
  .footer-copy {
    justify-content: flex-start;
    order: initial;
    flex: initial;
  }

  .footer-copy {
    text-align: left;
    white-space: normal;
  }

  .footer-policy {
    white-space: normal;
  }

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

  .about-hero,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-post,
  .tall-card,
  .wide-card {
    grid-row: auto;
    grid-column: auto;
    min-height: 240px;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-socials-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .theme-toggle {
    top: auto;
    right: 16px;
    bottom: 16px;
  }

  .about-intro-card {
    padding: 26px;
  }

  .about-photo {
    min-height: 320px;
  }

  .home-page h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .home-page .hero-copy {
    padding: 26px;
  }

  .home-page .hero-panel,
  .home-page .metric-card,
  .home-page .feature-card {
    padding: 22px;
  }

  .home-page .card-grid,
  .technical-palette {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .cv-download-card,
  .cv-page-intro,
  .cv-sheet {
    grid-template-columns: 1fr;
  }

  .cv-download-card {
    padding: 26px 22px;
  }

  .cv-page-intro {
    align-items: flex-start;
  }

  .cv-page-actions,
  .cv-download-actions {
    justify-content: flex-start;
  }

  .cv-download-actions .button,
  .cv-page-actions .button {
    width: 100%;
  }

  .cv-main {
    padding: 28px 22px;
  }

  .cv-sidebar {
    padding: 26px 22px;
  }

  .cv-skills-list {
    columns: 1;
  }

  .project-media {
    min-height: 220px;
  }

  .project-video {
    min-height: 220px;
  }

  .page-shell {
    width: calc(100% - 18px);
    padding: 24px 0 36px;
  }

  .bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    gap: 10px;
  }

  .site-nav a {
    padding: 9px 14px;
  }

  .logo-slot {
    width: 82px;
    height: 58px;
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .info-card,
  .post-card,
  .portfolio-card,
  .contact-form,
  .timeline article {
    padding: 22px;
    border-radius: 22px;
  }

  .card-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .technical-swatch-wide {
    grid-column: span 1;
  }

  h1 {
    font-size: 2.6rem;
  }

  .post-meta,
  .contact-socials-row a,
  .footer-socials a,
  .footer-policy a {
    flex-wrap: wrap;
  }

  .footer-socials,
  .footer-copy,
  .footer-policy {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .cv-page .site-header,
  .cv-page .site-footer,
  .cv-page .cv-page-intro,
  .cv-page .theme-toggle {
    display: none !important;
  }

  .cv-page,
  .cv-page .page-shell,
  .cv-page .cv-page-main {
    margin: 0;
    padding: 0;
    background: #ffffff !important;
  }

  .cv-sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 72mm 1fr;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cv-sidebar {
    padding: 22px 18px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-main {
    padding: 22px 22px 18px;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-photo {
    aspect-ratio: auto;
    height: 126px;
  }

  .cv-name {
    font-size: 2.15rem;
  }

  .cv-role {
    font-size: 0.82rem;
    margin-top: 5px;
  }

  .cv-side-section h2,
  .cv-content-section h3 {
    margin-bottom: 8px;
    font-size: 0.76rem;
    padding: 5px 8px;
  }

  .cv-content-section p,
  .cv-content-section li,
  .cv-contact-list li,
  .cv-bullet-list li,
  .cv-language,
  .cv-entry-period,
  .cv-entry-subtitle {
    font-size: 0.77rem;
    line-height: 1.18;
  }

  .cv-entry-title {
    font-size: 0.84rem;
  }

  .cv-content-section + .cv-content-section,
  .cv-side-section {
    margin-top: 10px;
  }

  .cv-header {
    margin-bottom: 12px;
  }

  .cv-entry + .cv-entry {
    margin-top: 8px;
  }

  .cv-bullet-list li + li,
  .cv-contact-list li + li,
  .cv-skills-list li + li {
    margin-top: 4px;
  }

  .cv-language + .cv-language {
    margin-top: 8px;
  }

  .cv-skills-list {
    column-gap: 16px;
  }
}
