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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(255, 250, 243, 0.92), rgba(243, 237, 227, 0.98) 42%, #ece4d8 100%);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: none;
}

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

:root {
  color-scheme: light;
  --shadow-soft: 0 18px 45px rgba(24, 34, 45, 0.08);
  --shadow-strong: 0 32px 80px rgba(24, 34, 45, 0.14);
  --shadow-hero: 0 35px 90px rgba(5, 9, 14, 0.3);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --surface-veil: rgba(255, 250, 243, 0.78);
  --surface-veil-strong: rgba(255, 250, 243, 0.9);
  --surface-tint: rgba(140, 159, 89, 0.08);
  --ink-panel: linear-gradient(145deg, rgba(24, 34, 45, 0.98), rgba(39, 47, 58, 0.92));
  --project-card-bg: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.82));
  --project-card-border: rgba(24, 34, 45, 0.12);
  --project-card-shadow: 0 18px 45px rgba(24, 34, 45, 0.12);
  --project-card-hover-border: rgba(140, 159, 89, 0.55);
  --project-card-title: var(--color-text);
  --project-card-text: var(--color-text-muted);
  --project-card-tag-bg: rgba(140, 159, 89, 0.12);
  --project-card-tag-text: var(--color-text);
  --project-card-tag-border: rgba(140, 159, 89, 0.22);
  --project-card-link-bg: rgba(255, 250, 243, 0.82);
  --project-card-link-border: rgba(24, 34, 45, 0.12);
  --project-card-link-text: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.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.js .reveal-section,
html.js .reveal-card {
  opacity: 0;
  transform: translateY(2rem);
}

html.js .reveal-section.is-visible,
html.js .reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0, 1);
}

/* Header */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 90;
  padding: 0;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  min-height: calc(var(--header-height) - 1.2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.2);
  background: rgba(255, 250, 243, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

body.is-scrolled .header-inner,
body:not(.page-home) .header-inner {
  background: rgba(255, 250, 243, 0.88);
  border-color: rgba(24, 34, 45, 0.08);
  box-shadow: 0 18px 35px rgba(24, 34, 45, 0.08);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.4rem;
  color: rgba(255, 250, 243, 0.92);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

body.is-scrolled .header-brand,
body:not(.page-home) .header-brand {
  color: var(--color-text);
}

.brand-avatar-wrap {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 250, 243, 0.55), rgba(255, 250, 243, 0.12));
  box-shadow: 0 10px 24px rgba(5, 9, 14, 0.16);
}

body.is-scrolled .brand-avatar-wrap,
body:not(.page-home) .brand-avatar-wrap {
  background: linear-gradient(145deg, rgba(24, 34, 45, 0.16), rgba(140, 159, 89, 0.22));
  box-shadow: 0 10px 24px rgba(24, 34, 45, 0.08);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 243, 0.3);
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.7rem 0.55rem 0;
}

.nav-menu li {
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

body.is-scrolled .nav-link,
body:not(.page-home) .nav-link {
  color: var(--color-text);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 250, 243, 0.16);
  color: #fff;
}

body.is-scrolled .nav-link:hover,
body.is-scrolled .nav-link.active,
body:not(.page-home) .nav-link:hover,
body:not(.page-home) .nav-link.active {
  background: rgba(140, 159, 89, 0.12);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  width: 3.1rem;
  height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 243, 0.26);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 250, 243, 0.86);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

body.is-scrolled .nav-toggle,
body:not(.page-home) .nav-toggle {
  color: var(--color-text);
  border-color: rgba(24, 34, 45, 0.1);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -5px;
}

.hamburger::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-5px) rotate(-45deg);
}

.header-action {
  flex-shrink: 0;
  padding-right: 0.6rem;
}

.nav-cta-item {
  display: none;
}

.nav-cta-link {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn-sm {
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
}

.btn-md {
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 1rem 1.45rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 16px 32px rgba(107, 123, 61, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 20px 38px rgba(107, 123, 61, 0.28);
}

.btn-outline {
  background: rgba(255, 250, 243, 0.08);
  border-color: rgba(255, 250, 243, 0.22);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 250, 243, 0.16);
}

body:not(.page-home) .btn-outline {
  background: rgba(140, 159, 89, 0.08);
  border-color: rgba(140, 159, 89, 0.18);
  color: var(--color-text);
}

/* Layout */
.site-main {
  flex: 1;
  padding: 0 0 8rem;
}

.page-home .site-main {
  padding-bottom: 9rem;
}

.main-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.main-grid-fullbleed {
  max-width: none;
  padding-inline: 0;
}

.main-grid.has-sidebar.sidebar-right {
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
}

.main-grid.has-sidebar.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.site-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 0.75rem);
  align-self: start;
}

.page-content {
  min-width: 0;
}

.breadcrumb {
  margin: 0 0 1.25rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: rgba(24, 34, 45, 0.32);
}

.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--color-primary-dark);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--color-text);
}

.sidebar-widget {
  padding: 1.4rem;
  background: rgba(255, 250, 243, 0.75);
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Shared sections */
.page-header,
.home-panel,
.about-page,
.projects-page,
.contact-page,
.post-article,
.post-newsletter {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface-veil);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.page-header::before,
.home-panel::before,
.about-page::before,
.projects-page::before,
.contact-page::before,
.post-article::before,
.post-newsletter::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(140, 159, 89, 0.14), transparent 72%);
  pointer-events: none;
}

.home-panel-dark {
  background: var(--ink-panel);
  border-color: rgba(255, 250, 243, 0.08);
  box-shadow: var(--shadow-strong);
  color: rgba(255, 250, 243, 0.92);
  --project-card-bg: linear-gradient(180deg, rgba(255, 250, 243, 0.14), rgba(255, 250, 243, 0.08));
  --project-card-border: rgba(255, 250, 243, 0.15);
  --project-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --project-card-hover-border: rgba(213, 154, 100, 0.5);
  --project-card-title: #fffaf3;
  --project-card-text: rgba(255, 250, 243, 0.72);
  --project-card-tag-bg: rgba(255, 250, 243, 0.1);
  --project-card-tag-text: rgba(255, 250, 243, 0.88);
  --project-card-tag-border: rgba(255, 250, 243, 0.14);
  --project-card-link-bg: rgba(255, 250, 243, 0.08);
  --project-card-link-border: rgba(255, 250, 243, 0.18);
  --project-card-link-text: rgba(255, 250, 243, 0.78);
}

.home-panel-soft {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.88), rgba(248, 244, 234, 0.92)),
    radial-gradient(circle at top right, rgba(213, 154, 100, 0.12), transparent 42%);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title,
.page-title,
.hero-headline,
.post-title,
.about-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-copy,
.page-subtitle,
.post-lead,
.hero-body,
.feature-body,
.testimonial-role,
.testimonial-company,
.footer-bio,
.empty-state {
  color: var(--color-text-muted);
}

.section-copy {
  max-width: 32rem;
  margin: 0;
  line-height: 1.7;
}

.section-link {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(140, 159, 89, 0.08);
}

.section-link:hover {
  background: rgba(140, 159, 89, 0.14);
}

.home-panel-dark .section-kicker,
.home-panel-dark .section-link {
  color: rgba(255, 250, 243, 0.86);
}

.home-panel-dark .section-title,
.home-panel-dark .section-copy,
.home-panel-dark .newsletter-title,
.home-panel-dark .newsletter-body {
  color: rgba(255, 250, 243, 0.92);
}

.home-panel-dark .section-link {
  background: rgba(255, 250, 243, 0.08);
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.page-subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: var(--font-size-lg);
}

/* Home */
.home-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 1rem);
  padding:
    clamp(3.5rem, 8vw, 7rem)
    clamp(1.2rem, 4vw, 2.5rem)
    clamp(10rem, 14vw, 12rem);
  border-radius: 0 0 clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
  color: #fff;
  --hero-shift: 0px;
  --hero-glow: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 10, 15, 0.9) 8%, rgba(7, 10, 15, 0.62) 48%, rgba(7, 10, 15, 0.78) 100%),
    url("/assets/images/intro.jpg") center center / cover no-repeat;
  transform: translate3d(0, var(--hero-shift), 0) scale(1.12);
  transform-origin: center center;
  will-change: transform;
  z-index: -2;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(213, 154, 100, calc(0.24 * var(--hero-glow))), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 3.5rem 3.5rem, 3.5rem 3.5rem;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  width: min(var(--container-max), calc(100vw - clamp(2.4rem, 8vw, 5rem)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
}

.hero-box {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 250, 243, 0.16), rgba(255, 250, 243, 0.07));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-hero);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-eyebrow {
  margin: 0;
  color: rgba(255, 250, 243, 0.76);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(3.4rem, 10vw, 7rem);
  color: #fffaf3;
}

.hero-sub {
  margin: 0;
  color: rgba(255, 250, 243, 0.84);
  font-family: var(--font-mono);
  font-size: clamp(0.94rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-body {
  max-width: 38rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 250, 243, 0.88);
}

.hero-body p:last-child {
  margin-bottom: 0;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 1.2rem;
  background: rgba(255, 250, 243, 0.08);
}

.hero-proof-value {
  color: #fffaf3;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 0.95;
}

.hero-proof-label {
  color: rgba(255, 250, 243, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.08);
  color: rgba(255, 250, 243, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}

.hero-portrait-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-card {
  position: relative;
  width: min(100%, 23rem);
  padding: 1rem;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background: rgba(255, 250, 243, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-hero);
}

.hero-portrait-image {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: calc(var(--radius-md) + 0.1rem);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-portrait-copy {
  padding: 1.2rem 0.35rem 0.3rem;
}

.hero-portrait-kicker {
  margin: 0 0 0.5rem;
  color: rgba(255, 250, 243, 0.74);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-portrait-title {
  margin: 0;
  color: #fffaf3;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.12;
}

.hero-portrait-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: rgba(255, 250, 243, 0.84);
  line-height: 1.65;
}

.hero-portrait-list li + li {
  margin-top: 0.45rem;
}

.hero-note {
  position: relative;
  max-width: 16rem;
  padding: 1rem 1.15rem;
  border-radius: 1.2rem;
  background: rgba(255, 250, 243, 0.9);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-note-top {
  align-self: flex-start;
  margin-inline-start: 0.5rem;
}

.hero-note-bottom {
  align-self: flex-end;
  margin-inline-end: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
}

.scroll-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.08);
  color: rgba(255, 250, 243, 0.85);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.stats-bar {
  position: relative;
  z-index: 2;
  margin: -4.75rem auto 0;
  width: min(var(--container-max), calc(100vw - clamp(2.4rem, 8vw, 5rem)));
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: calc(var(--radius-lg) + 0.1rem);
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
}

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

.stat-item {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.72)),
    var(--surface-tint);
  border: 1px solid rgba(24, 34, 45, 0.08);
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 0.92;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.features-section,
.skills-section,
.projects-section,
.blog-section,
.testimonials-section,
.speaking-section,
.oss-section,
.newsletter-section,
.home-cta-section {
  margin-inline: auto;
  width: min(var(--container-max), calc(100vw - clamp(2.4rem, 8vw, 5rem)));
}

.features-grid,
.projects-grid,
.blog-grid,
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

.features-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 18rem;
  padding: 1.7rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.78)),
    radial-gradient(circle at top right, rgba(140, 159, 89, 0.14), transparent 40%);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 159, 89, 0.36);
  box-shadow: 0 24px 55px rgba(24, 34, 45, 0.12);
}

.feature-card:nth-child(1) {
  grid-column: span 4;
}

.feature-card:nth-child(2) {
  grid-column: span 4;
}

.feature-card:nth-child(3) {
  grid-column: span 4;
}

.feature-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(140, 159, 89, 0.12);
  font-size: 1.6rem;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feature-index,
.feature-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-index {
  color: var(--color-primary-dark);
}

.feature-eyebrow {
  color: rgba(24, 34, 45, 0.42);
}

.feature-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.02;
}

.feature-body {
  font-size: 1rem;
  line-height: 1.75;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.skill-group {
  padding: 1.6rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.skill-group-title {
  margin: 0 0 0.8rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.05;
}

.skill-level {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-level-expert {
  background: rgba(77, 138, 96, 0.14);
  color: var(--color-success);
}

.skill-level-proficient {
  background: rgba(140, 159, 89, 0.14);
  color: var(--color-primary-dark);
}

.skill-level-familiar {
  background: rgba(24, 34, 45, 0.08);
  color: var(--color-text-muted);
}

.skill-tags,
.tag-list,
.post-tags,
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(140, 159, 89, 0.16);
  border-radius: 999px;
  background: rgba(140, 159, 89, 0.08);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}

.projects-grid > * {
  min-width: 0;
}

.legacy-card-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: calc(var(--radius-md) + 0.1rem);
  overflow: hidden;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.legacy-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140, 159, 89, 0.28);
  box-shadow: 0 28px 55px rgba(24, 34, 45, 0.14);
}

.legacy-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.legacy-card:hover .legacy-card-cover {
  transform: scale(1.05);
}

.legacy-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.45rem;
}

.legacy-card-meta {
  margin: 0;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legacy-card-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1.02;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.writing-start-card,
.signature-card {
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.writing-start-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(24, 34, 45, 0.96), rgba(36, 45, 56, 0.92)),
    radial-gradient(circle at top left, rgba(213, 154, 100, 0.18), transparent 42%);
  color: rgba(255, 250, 243, 0.92);
}

.writing-start-kicker,
.blog-feed-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.writing-start-kicker {
  color: rgba(255, 250, 243, 0.72);
}

.writing-start-title {
  margin: 0 0 0.75rem;
  color: #fffaf3;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.04;
}

.writing-start-copy,
.signature-copy {
  margin: 0;
  line-height: 1.75;
}

.writing-start-copy {
  color: rgba(255, 250, 243, 0.8);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.signature-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.76)),
    radial-gradient(circle at top right, rgba(140, 159, 89, 0.14), transparent 45%);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.signature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 159, 89, 0.36);
  box-shadow: 0 24px 55px rgba(24, 34, 45, 0.12);
}

.signature-label {
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signature-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.02;
}

.signature-copy {
  color: var(--color-text-muted);
}

.blog-feed-head {
  margin-bottom: 1.2rem;
}

.blog-feed-kicker {
  color: var(--color-primary-dark);
}

.legacy-card-text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card {
  position: relative;
  height: 100%;
  padding: 1.8rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.2rem;
  left: 1rem;
  color: rgba(140, 159, 89, 0.18);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
}

.testimonial-body {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
}

.testimonial-footer cite {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.testimonial-role,
.testimonial-company {
  font-size: 0.88rem;
}

.oss-body,
.newsletter-body {
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.newsletter-inner {
  display: grid;
  gap: 1rem;
}

.newsletter-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.98;
}

.newsletter-form {
  margin-top: 0.5rem;
}

.home-cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.home-cta-copy .section-copy {
  max-width: 40rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.home-cta-secondary {
  background: rgba(140, 159, 89, 0.08);
  border-color: rgba(140, 159, 89, 0.18);
  color: var(--color-text);
}

.home-cta-secondary:hover {
  background: rgba(140, 159, 89, 0.14);
}

/* About */
.about-page {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.about-hero-text {
  position: relative;
  z-index: 1;
}

.about-tagline {
  margin: 0.75rem 0 0;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-body {
  max-width: 70ch;
}

.about-portrait-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(28rem, 42vw, 35rem);
  padding: 2rem 0.8rem;
}

.about-portrait-shell::before,
.about-portrait-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: -2;
}

.about-portrait-shell::before {
  width: clamp(16rem, 32vw, 22rem);
  height: clamp(16rem, 32vw, 22rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 154, 100, 0.28), rgba(213, 154, 100, 0.04) 58%, transparent 74%);
  top: 1rem;
  left: 0;
  filter: blur(6px);
}

.about-portrait-shell::after {
  width: 72%;
  height: 78%;
  border-radius: calc(var(--radius-lg) + 0.6rem);
  border: 1px solid rgba(24, 34, 45, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 250, 243, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(24, 34, 45, 0.035) 0,
      rgba(24, 34, 45, 0.035) 1px,
      transparent 1px,
      transparent 18px
    );
  top: 2.2rem;
  right: 0.5rem;
  transform: rotate(-7deg);
  z-index: -1;
}

.about-portrait-card {
  position: relative;
  width: min(100%, 24rem);
  padding: 0.9rem;
  border-radius: calc(var(--radius-lg) + 0.5rem);
  border: 1px solid rgba(24, 34, 45, 0.1);
  background:
    linear-gradient(155deg, rgba(24, 34, 45, 0.97), rgba(56, 63, 72, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow:
    0 24px 60px rgba(24, 34, 45, 0.2),
    0 40px 90px rgba(213, 154, 100, 0.16);
  transform: rotate(4deg);
  overflow: hidden;
}

.about-portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at top left, rgba(255, 250, 243, 0.12), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-portrait-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-md) + 0.2rem);
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  filter: saturate(1.03) contrast(1.04);
}

.about-speaker-card {
  padding: 1rem;
}

.about-speaker-composition {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-md) + 0.2rem);
}

.about-speaker-composition::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, transparent 58%, rgba(14, 20, 28, 0.16));
  pointer-events: none;
}

.about-speaker-shot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 0.05rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  filter: saturate(1.03) contrast(1.04);
}

.about-speaker-shot-primary {
  grid-column: 1;
  grid-row: 1 / span 3;
  object-position: center 22%;
}

.about-speaker-shot-selfie {
  grid-column: 2;
  grid-row: 1;
  object-position: center 30%;
}

.about-speaker-shot-stage {
  grid-column: 2;
  grid-row: 2;
  object-position: center 32%;
}

.about-speaker-shot-interview {
  grid-column: 2;
  grid-row: 3;
  object-position: center 18%;
}

.about-speaker-shot-accent {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  width: 34%;
  height: auto;
  aspect-ratio: 4 / 3;
  transform: rotate(-7deg);
  border-color: rgba(255, 250, 243, 0.34);
  object-position: center 30%;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.26),
    0 0 0 0.35rem rgba(24, 34, 45, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .speaking-visual .about-speaker-composition {
    transition: none;
  }
}

.about-portrait-badge,
.about-portrait-caption {
  position: absolute;
  z-index: 2;
  max-width: 13rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.about-portrait-badge {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-portrait-badge-top {
  top: 0.4rem;
  left: 0;
  transform: rotate(-7deg);
}

.about-portrait-badge-middle {
  top: 28%;
  right: 0;
  transform: rotate(9deg);
}

.about-portrait-badge-bottom {
  bottom: 3.5rem;
  left: 0.8rem;
  transform: rotate(-4deg);
}

.about-portrait-caption {
  right: 0.3rem;
  bottom: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: 1.4rem;
}

.about-portrait-caption-kicker {
  display: inline-block;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-portrait-caption p {
  margin: 0.55rem 0 0;
  color: var(--color-text);
  font-size: 0.94rem;
  line-height: 1.55;
}

.speaking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.speaking-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.speaking-copy .section-title,
.speaking-copy .prose,
.speaking-copy .prose p,
.speaking-copy .prose li,
.speaking-copy .prose a {
  overflow-wrap: anywhere;
}

.speaking-visual {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  overflow: visible;
  z-index: 0;
}

.speaking-visual .about-speaker-composition {
  max-width: 30rem;
  margin-left: auto;
  transition: transform 480ms ease, box-shadow 480ms ease;
  box-shadow:
    0 24px 60px rgba(24, 34, 45, 0.16),
    0 40px 90px rgba(213, 154, 100, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .speaking-visual:hover .about-speaker-composition,
  .speaking-visual:focus-within .about-speaker-composition {
    transform: translateX(clamp(-12rem, -18vw, -6rem));
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Projects */
.projects-page {
  padding-bottom: calc(var(--header-height) + 3.5rem);
}

.projects-page dev-project-grid {
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-bio {
  margin: 0 0 1.5rem;
  line-height: 1.75;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--color-text);
}

.contact-channel:hover {
  background: rgba(140, 159, 89, 0.08);
}

.channel-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
}

.contact-form,
.contact-form-wrapper {
  width: 100%;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at top right, rgba(140, 159, 89, 0.14), transparent 42%);
  box-shadow: var(--shadow-soft);
}

.contact-form-panel .section-kicker {
  margin: 0;
}

.contact-form-panel ferrosite-contact-form {
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form[aria-busy="true"] {
  opacity: 0.82;
}

.contact-form-status {
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: rgba(24, 34, 45, 0.04);
  color: var(--color-text);
  line-height: 1.6;
}

.contact-form-status[hidden] {
  display: none;
}

.contact-form-status:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(140, 159, 89, 0.16);
}

.contact-form-status-success {
  border-color: rgba(20, 138, 98, 0.22);
  background: rgba(20, 138, 98, 0.08);
  color: #147458;
}

.contact-form-status-error {
  border-color: rgba(196, 76, 70, 0.22);
  background: rgba(196, 76, 70, 0.08);
  color: #9f3f3a;
}

.contact-form-redirect-message {
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(24, 34, 45, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(140, 159, 89, 0.44);
  box-shadow: 0 0 0 4px rgba(140, 159, 89, 0.12);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  min-height: 3.25rem;
  padding-inline: 1.35rem;
}

/* Blog */
.blog-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-page-header {
  margin-bottom: 0;
}

.blog-start-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.5fr);
  gap: 1.25rem;
}

.blog-guide-card,
.blog-topic-card {
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.blog-guide-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(24, 34, 45, 0.96), rgba(36, 45, 56, 0.92)),
    radial-gradient(circle at top left, rgba(213, 154, 100, 0.18), transparent 42%);
  color: rgba(255, 250, 243, 0.92);
}

.blog-guide-kicker,
.blog-topic-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-guide-kicker {
  color: rgba(255, 250, 243, 0.72);
}

.blog-guide-title,
.blog-topic-title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.04;
}

.blog-guide-title {
  color: #fffaf3;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.blog-guide-copy {
  margin: 0;
  color: rgba(255, 250, 243, 0.8);
  line-height: 1.75;
}

.blog-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.78)),
    radial-gradient(circle at top right, rgba(140, 159, 89, 0.14), transparent 45%);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-topic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 159, 89, 0.36);
  box-shadow: 0 24px 55px rgba(24, 34, 45, 0.12);
}

.blog-topic-label {
  color: var(--color-primary-dark);
}

.blog-topic-title {
  color: var(--color-text);
  font-size: 1.5rem;
}

.blog-topic-copy {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.blog-topic-link {
  margin-top: auto;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.blog-cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.blog-cta-copy .section-copy {
  max-width: 40rem;
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

/* Blog / Post */
.post-article {
  max-width: min(860px, 100%);
  margin-inline: auto;
}

.post-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.post-category {
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.post-subheadline {
  margin: -0.2rem 0 0;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.post-meta-sep {
  opacity: 0.4;
}

.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--project-card-link-border, var(--color-border));
  border-radius: 999px;
  background: var(--project-card-link-bg, transparent);
  color: var(--project-card-link-text, var(--color-text-muted));
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.post-link-pill:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.post-cover {
  overflow: hidden;
  margin-block: 2.25rem;
  border-radius: calc(var(--radius-md) + 0.1rem);
  box-shadow: var(--shadow-soft);
}

.post-cover-img {
  width: 100%;
  object-fit: cover;
}

.prose {
  max-width: 72ch;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2.1em;
  margin-bottom: 0.8em;
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.prose h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.prose h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.prose p,
.prose li {
  color: var(--color-text);
  line-height: 1.88;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote,
.prose pre,
.prose img {
  margin-block: 0 1.4rem;
}

.prose a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.prose code {
  padding: 0.18em 0.45em;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: 0.55rem;
  background: var(--color-code-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 1.35rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  border-radius: var(--radius-md);
  background: rgba(248, 241, 232, 0.92);
}

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

.prose blockquote {
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 3px solid rgba(140, 159, 89, 0.5);
  color: var(--color-text-muted);
  font-style: italic;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(24, 34, 45, 0.08);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.64);
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(24, 34, 45, 0.12);
  margin-block: 2rem;
}

.prose img {
  border-radius: calc(var(--radius-md) + 0.1rem);
  box-shadow: var(--shadow-soft);
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(24, 34, 45, 0.08);
}

.post-updated,
.share-label {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.post-share {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: auto;
  padding-block: 3rem 7rem;
  background:
    radial-gradient(circle at top, rgba(213, 154, 100, 0.16), transparent 30%),
    linear-gradient(180deg, #1a2530, #111821);
  color: rgba(255, 250, 243, 0.84);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin: 0 0 0.6rem;
  color: #fffaf3;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 0.95;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 999px;
  color: rgba(255, 250, 243, 0.88);
  background: rgba(255, 250, 243, 0.06);
}

.social-link:hover {
  background: rgba(255, 250, 243, 0.14);
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.footer-col-title {
  margin: 0 0 0.8rem;
  color: rgba(255, 250, 243, 0.56);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav-col a {
  color: rgba(255, 250, 243, 0.82);
}

.footer-nav-col a:hover,
.footer-bottom a:hover {
  color: #fffaf3;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
  color: rgba(255, 250, 243, 0.58);
  font-size: 0.86rem;
}

/* Utility */
.empty-state {
  padding: 2rem 0;
  text-align: center;
}

.site-dock {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 70;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait-shell {
    align-items: stretch;
  }

  .hero-portrait-card {
    width: min(100%, 22rem);
  }

  .hero-note-bottom {
    margin-inline-end: 0;
  }

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

  .writing-layout,
  .blog-start-grid,
  .blog-cta-section,
  .home-cta-section {
    grid-template-columns: 1fr;
  }

  .blog-topic-grid,
  .signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    grid-column: span 1;
  }

  .skill-groups,
  .legacy-card-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-grid.has-sidebar.sidebar-right,
  .main-grid.has-sidebar.sidebar-left,
  .contact-grid,
  .footer-top,
  .about-hero,
  .stats-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .section-link {
    justify-self: start;
  }

  .home-cta-actions {
    justify-content: flex-start;
  }

  .blog-cta-actions {
    justify-content: flex-start;
  }

  .stats-bar {
    margin-top: -3.5rem;
  }

  .hero-note {
    position: static;
    max-width: none;
  }

  .about-portrait-shell {
    min-height: 0;
    padding: 1rem 0 0;
    flex-direction: column;
    gap: 0.9rem;
  }

  .about-portrait-badge,
  .about-portrait-caption {
    position: static;
    transform: none;
    max-width: 100%;
  }

  .about-portrait-card {
    width: min(100%, 26rem);
  }

  .about-speaker-composition {
    aspect-ratio: 6 / 7;
  }

  .about-speaker-shot-accent {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 32%;
  }

  .speaking-layout {
    grid-template-columns: 1fr;
  }

  .speaking-visual {
    position: static;
  }

  .speaking-visual .about-speaker-composition {
    max-width: min(100%, 28rem);
    margin-left: 0;
  }

  .about-portrait-badge-top {
    align-self: flex-start;
  }

  .about-portrait-badge-middle {
    align-self: flex-end;
  }

  .about-portrait-badge-bottom {
    align-self: flex-start;
  }

  .about-portrait-caption {
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    bottom: 0.75rem;
  }

  .header-inner {
    padding-inline: 0.3rem;
  }

  .header-brand {
    padding-left: 1rem;
    gap: 0.65rem;
  }

  .brand-avatar-wrap {
    width: 2rem;
    height: 2rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-right: 0.2rem;
  }

  .nav-menu {
    position: absolute;
    top: auto;
    bottom: calc(100% + 0.85rem);
    right: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(24, 34, 45, 0.08);
    border-radius: 1.6rem;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem) scale(0.98);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    color: var(--color-text);
  }

  .nav-cta-item {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(24, 34, 45, 0.08);
  }

  .header-action {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(140, 159, 89, 0.1);
    color: var(--color-text);
  }

  .hero-section {
    padding-bottom: 7rem;
  }

  .hero-box,
  .page-header,
  .home-panel,
  .about-page,
  .projects-page,
  .contact-page,
  .post-article,
  .post-newsletter {
    padding: 1.5rem;
    border-radius: 1.8rem;
  }

  .features-grid,
  .projects-grid,
  .blog-topic-grid,
  .signature-grid,
  .legacy-card-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .projects-page,
  .speaking-section {
    width: min(100%, calc(100vw - 1.5rem));
  }

  .speaking-copy .prose {
    max-width: 100%;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-headline,
  .page-title,
  .post-title {
    line-height: 1;
  }

  .section-title,
  .page-title,
  .prose h2,
  .prose h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .projects-grid {
    gap: 1rem;
  }

  .hero-trust {
    gap: 0.55rem;
  }

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

  .hero-trust-item,
  .skill-tag,
  .tag,
  .contact-channel,
  .social-link {
    width: 100%;
    justify-content: center;
  }

  .legacy-card-title {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-section,
  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .scroll-chevron,
  .legacy-card,
  .feature-card,
  .btn,
  .nav-link,
  .legacy-card-cover {
    animation: none;
    transition: none;
  }

  .hero-section::before {
    transform: none;
  }
}
