/*
Theme Name: Emme Kasprzyk
Theme URI: https://example.com/
Author: Codex
Description: Original editorial-style personal website theme for Emme Kasprzyk.
Version: 0.3.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: emme-kasprzyk
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ek-bg: #efe9db;
  --ek-bg-soft: #fbf8ef;
  --ek-ink: #171711;
  --ek-ink-soft: #494a40;
  --ek-line: rgba(24, 22, 21, 0.12);
  --ek-panel: rgba(251, 248, 239, 0.88);
  --ek-accent: #9b5d32;
  --ek-accent-2: #486c48;
  --ek-accent-3: #5e6e54;
  --ek-shadow: 0 20px 60px rgba(24, 22, 21, 0.08);
  --ek-radius: 18px;
  --ek-radius-lg: 28px;
  --ek-wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ek-ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(155, 93, 50, 0.1), transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(72, 108, 72, 0.12), transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(94, 110, 84, 0.1), transparent 44%),
    var(--ek-bg);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 22, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 22, 21, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  background: var(--ek-ink);
  color: #fff;
  border-radius: 0.5rem;
}

.ek-wrap {
  width: min(100% - 2.5rem, var(--ek-wrap));
  margin-inline: auto;
}

.ek-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ek-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ek-bg-soft) 80%, transparent);
  border-bottom: 1px solid var(--ek-line);
}

.ek-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  position: relative;
}

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

.ek-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  position: relative;
  border: 1px solid rgba(24, 22, 21, 0.1);
  background:
    radial-gradient(circle at 35% 30%, rgba(155, 93, 50, 0.7), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(72, 108, 72, 0.62), transparent 62%),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ek-brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(24, 22, 21, 0.14);
}

.ek-brand-copy {
  display: grid;
  gap: 0.05rem;
}

.ek-brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ek-brand-role {
  color: var(--ek-ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ek-menu-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ek-line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ek-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 65;
}

.ek-menu-toggle-bars {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
}

.ek-menu-toggle-bars::before,
.ek-menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}

.ek-menu-toggle-bars::before {
  top: -5px;
}

.ek-menu-toggle-bars::after {
  top: 5px;
}

.ek-menu-toggle[aria-expanded="true"] .ek-menu-toggle-bars {
  background: transparent;
}

.ek-menu-toggle[aria-expanded="true"] .ek-menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.ek-menu-toggle[aria-expanded="true"] .ek-menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.ek-nav {
  margin-left: auto;
}

.ek-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}

.ek-menu li {
  margin: 0;
}

.ek-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.35rem;
  color: var(--ek-ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.ek-menu a:hover,
.ek-menu .current-menu-item > a,
.ek-menu .current_page_item > a {
  color: var(--ek-ink);
}

.ek-header-contact {
  margin-left: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 21, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ek-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ek-header-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 22, 21, 0.08);
}

.ek-nav-contact {
  display: none;
}

.ek-menu-toggle:focus-visible,
.ek-menu a:focus-visible,
.ek-button:focus-visible,
.ek-inline-link:focus-visible {
  outline: 2px solid rgba(72, 108, 72, 0.65);
  outline-offset: 2px;
}

.ek-main {
  flex: 1;
}

.ek-section {
  padding: 3.6rem 0;
}

.ek-hero {
  padding: 2rem 0 3rem;
}

.ek-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
}

.ek-hero-card,
.ek-panel {
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: var(--ek-panel);
  box-shadow: var(--ek-shadow);
  border-radius: var(--ek-radius-lg);
}

.ek-hero-card {
  padding: clamp(1.2rem, 3vw, 2.1rem);
  position: relative;
  overflow: clip;
}

.ek-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(155, 93, 50, 0.14), transparent 70%);
  pointer-events: none;
}

.ek-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--ek-accent-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ek-eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ek-hero-copy {
  max-width: 24ch;
}

.ek-hero-lead {
  font-size: 1.05rem;
  color: var(--ek-ink-soft);
  max-width: 54ch;
}

.ek-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ek-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 21, 0.09);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ek-ink-soft);
}

.ek-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.ek-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

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

.ek-button-primary {
  background: var(--ek-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 22, 21, 0.18);
}

.ek-button-secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(24, 22, 21, 0.1);
  color: var(--ek-ink);
}

.ek-hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  min-height: 100%;
}

.ek-portrait-stage {
  border-radius: calc(var(--ek-radius-lg) - 10px);
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background:
    radial-gradient(circle at 25% 20%, rgba(155, 93, 50, 0.38), transparent 38%),
    radial-gradient(circle at 75% 28%, rgba(94, 110, 84, 0.26), transparent 48%),
    radial-gradient(circle at 55% 78%, rgba(72, 108, 72, 0.3), transparent 54%),
    linear-gradient(140deg, #f7f3ea 0%, #e7dece 100%);
}

.ek-portrait-stage.has-image {
  background: #d7d4cd;
}

.ek-portrait-stage.has-image::before,
.ek-portrait-stage.has-image::after {
  display: none;
}

.ek-portrait-stage .ek-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ek-portrait-stage::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border-radius: 22px;
  border: 1px dashed rgba(24, 22, 21, 0.18);
}

.ek-portrait-stage::after {
  content: "Portrait or signature visual";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 22, 21, 0.08);
  color: var(--ek-ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

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

.ek-stat {
  border: 1px solid rgba(24, 22, 21, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.8rem;
}

.ek-stat-value {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ek-ink);
}

.ek-stat-label {
  display: block;
  color: var(--ek-ink-soft);
  font-size: 0.8rem;
  line-height: 1.25;
}

.ek-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.ek-panel {
  padding: 1.2rem;
}

.ek-panel h2 + p {
  color: var(--ek-ink-soft);
  max-width: 60ch;
}

.ek-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.ek-list li {
  border-top: 1px solid var(--ek-line);
  padding-top: 0.9rem;
}

.ek-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ek-list-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.ek-list-copy {
  margin: 0;
  color: var(--ek-ink-soft);
  font-size: 0.95rem;
}

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

.ek-card {
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.74);
  border-radius: var(--ek-radius);
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(24, 22, 21, 0.04);
}

.ek-card p {
  color: var(--ek-ink-soft);
  margin-bottom: 0;
}

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

.ek-cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.ek-cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.ek-cv-entry {
  border-top: 1px solid var(--ek-line);
  padding-top: 0.85rem;
}

.ek-cv-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.ek-cv-meta {
  margin-bottom: 0.28rem;
  color: var(--ek-accent-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ek-cv-title {
  margin-bottom: 0.15rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.ek-cv-subtitle {
  margin: 0 0 0.4rem;
  color: var(--ek-ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.ek-cv-copy {
  margin: 0;
  color: var(--ek-ink-soft);
}

.ek-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  padding: 0;
}

.ek-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ek-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.ek-material-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ek-material-item {
  border-radius: 14px;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.66);
  padding: 0.75rem;
}

.ek-material-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ek-material-item p {
  margin: 0;
  color: var(--ek-ink-soft);
  font-size: 0.9rem;
}

.ek-quiet-note {
  margin: 0;
  color: var(--ek-ink-soft);
  font-size: 0.88rem;
}

.ek-accent-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--ek-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ek-accent-line::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ek-stack {
  display: grid;
  gap: 1rem;
}

.ek-process {
  counter-reset: step;
}

.ek-process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ek-line);
}

.ek-process-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.ek-process-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(155, 93, 50, 0.12);
  color: var(--ek-accent);
  font-weight: 800;
  font-size: 0.86rem;
}

.ek-process-copy p {
  margin: 0;
  color: var(--ek-ink-soft);
}

.ek-posts {
  display: grid;
  gap: 0.9rem;
}

.ek-post {
  border-radius: var(--ek-radius);
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
}

.ek-post-meta {
  color: var(--ek-ink-soft);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.ek-post-title {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.ek-post-excerpt {
  color: var(--ek-ink-soft);
  margin-bottom: 0.55rem;
}

.ek-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ek-accent-2);
  font-weight: 700;
  font-size: 0.92rem;
}

.ek-inline-link::after {
  content: "↗";
  font-size: 0.95em;
}

.ek-empty {
  color: var(--ek-ink-soft);
}

.ek-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ek-chip {
  border: 1px solid rgba(24, 22, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.38rem 0.7rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ek-ink-soft);
}

.ek-page-header {
  padding: 2rem 0 1rem;
}

.ek-page-banner {
  border-radius: var(--ek-radius-lg);
  border: 1px solid rgba(24, 22, 21, 0.08);
  background:
    radial-gradient(circle at 90% 10%, rgba(155, 93, 50, 0.12), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(72, 108, 72, 0.11), transparent 46%),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--ek-shadow);
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
}

.ek-page-banner h1 {
  max-width: 18ch;
}

.ek-page-subtitle {
  color: var(--ek-ink-soft);
  max-width: 64ch;
}

.ek-content-card {
  border: 1px solid rgba(24, 22, 21, 0.08);
  border-radius: var(--ek-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ek-shadow);
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.ek-content-card > *:last-child {
  margin-bottom: 0;
}

.ek-contact-panel {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.ek-contact-panel .ek-button {
  width: auto;
  justify-self: start;
  border-color: rgba(72, 108, 72, 0.2);
  background:
    linear-gradient(135deg, rgba(72, 108, 72, 0.96), rgba(94, 110, 84, 0.98));
  color: #fff;
  box-shadow: 0 10px 20px rgba(72, 108, 72, 0.16);
}

.ek-contact-panel .ek-button:hover {
  box-shadow: 0 12px 24px rgba(72, 108, 72, 0.2);
}

.ek-content-card,
.ek-post-card {
  overflow-wrap: anywhere;
}

.ek-content-card h2,
.ek-content-card h3,
.ek-content-card h4 {
  margin-top: 1.35rem;
}

.ek-content-card h2:first-child,
.ek-content-card h3:first-child,
.ek-content-card h4:first-child {
  margin-top: 0;
}

.ek-content-card a {
  color: var(--ek-accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.ek-content-card blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(155, 93, 50, 0.55);
  background: rgba(155, 93, 50, 0.05);
  border-radius: 0.7rem;
}

.ek-content-card table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.ek-content-card th,
.ek-content-card td {
  border: 1px solid var(--ek-line);
  padding: 0.55rem;
  text-align: left;
}

.ek-content-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(24, 22, 21, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 0.3rem;
}

.ek-content-card pre {
  max-width: 100%;
  overflow-x: auto;
}

.ek-content-card figure {
  max-width: 100%;
}

.ek-content-card img,
.ek-post-card img {
  max-width: 100%;
  height: auto;
}

.ek-content-card .ek-card img {
  width: 100%;
  border-radius: 12px;
}

.ek-content-card figcaption,
.ek-content-card .wp-caption-text,
.ek-content-card .wp-block-image figcaption {
  color: var(--ek-ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ek-content-card iframe,
.ek-content-card embed,
.ek-content-card object,
.ek-content-card video {
  max-width: 100%;
}

.ek-post-list {
  display: grid;
  gap: 1rem;
}

.ek-post-card {
  border: 1px solid rgba(24, 22, 21, 0.08);
  border-radius: var(--ek-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ek-shadow);
  padding: 1rem;
}

.ek-post-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.35rem;
}

.ek-post-card .ek-post-meta {
  margin-bottom: 0.5rem;
}

.ek-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ek-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ek-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ek-ink-soft);
  font-weight: 600;
}

.ek-pagination .page-numbers.current {
  color: #fff;
  background: var(--ek-ink);
  border-color: var(--ek-ink);
}

.ek-footer {
  padding: 1.25rem 0 2rem;
}

.ek-footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ek-shadow);
  border-radius: var(--ek-radius-lg);
  padding: 1rem;
}

.ek-footer-copy {
  color: var(--ek-ink-soft);
  font-size: 0.92rem;
}

.ek-footer-copy strong {
  color: var(--ek-ink);
}

.ek-footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.ek-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 21, 0.08);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ek-ink-soft);
}

.ek-footer-nav a:hover {
  color: var(--ek-ink);
}

.ek-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ek-modal[hidden] {
  display: none !important;
}

.ek-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(18, 17, 15, 0.48);
  backdrop-filter: blur(3px);
}

.ek-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92svh, 860px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(24, 22, 21, 0.1);
  background: color-mix(in srgb, var(--ek-bg-soft) 92%, white);
  box-shadow: 0 24px 80px rgba(20, 18, 15, 0.24);
  padding: 1rem;
}

.ek-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.ek-modal-header .ek-eyebrow {
  margin-bottom: 0.4rem;
}

.ek-modal-header h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.ek-modal-header .ek-page-subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: 0.95rem;
}

.ek-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 21, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ek-ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.ek-form-alert {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(24, 22, 21, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ek-ink);
}

.ek-form-alert.is-success {
  border-color: rgba(72, 108, 72, 0.25);
  background: rgba(72, 108, 72, 0.08);
}

.ek-form-alert.is-error {
  border-color: rgba(155, 93, 50, 0.28);
  background: rgba(155, 93, 50, 0.08);
}

.ek-contact-form {
  display: grid;
  gap: 0.85rem;
}

.ek-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ek-form-field {
  display: grid;
  gap: 0.35rem;
}

.ek-form-field.is-full {
  grid-column: 1 / -1;
}

.ek-form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ek-ink);
}

.ek-form-field input,
.ek-form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(24, 22, 21, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ek-ink);
  font: inherit;
  line-height: 1.4;
  padding: 0.7rem 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ek-form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.ek-form-field input::placeholder,
.ek-form-field textarea::placeholder {
  color: rgba(73, 74, 64, 0.9);
}

.ek-form-field input:focus-visible,
.ek-form-field textarea:focus-visible,
.ek-modal-close:focus-visible,
.ek-header-contact:focus-visible,
.ek-nav-contact:focus-visible {
  outline: 2px solid rgba(72, 108, 72, 0.65);
  outline-offset: 2px;
}

.ek-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.ek-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.alignwide,
.alignfull {
  width: 100%;
}

@media (max-width: 980px) {
  .ek-hero-grid,
  .ek-layout-grid,
  .ek-cv-grid {
    grid-template-columns: 1fr;
  }

  .ek-hero-visual {
    min-height: 0;
    padding: 0.85rem;
  }

  .ek-portrait-stage {
    min-height: 300px;
  }

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

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

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

  .ek-menu-toggle {
    display: inline-flex;
  }

  .ek-header-contact {
    display: none;
  }

  .ek-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.4rem);
    margin-left: 0;
    z-index: 60;
    border: 1px solid var(--ek-line);
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--ek-shadow);
    padding: 0.55rem;
    display: none;
    max-height: calc(100svh - 6.75rem);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .ek-nav.is-open {
    display: block;
  }

  .ek-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .ek-nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    border: 1px solid rgba(24, 22, 21, 0.1);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ek-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .ek-menu a {
    min-height: 42px;
    padding: 0 0.65rem;
    border-radius: 12px;
  }

  .ek-menu a:hover,
  .ek-menu .current-menu-item > a,
  .ek-menu .current_page_item > a {
    background: rgba(24, 22, 21, 0.05);
  }

  .ek-footer-card {
    grid-template-columns: 1fr;
  }

  .ek-footer-nav {
    justify-content: flex-start;
  }

  .ek-content-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .ek-wrap {
    width: min(100% - 1.1rem, var(--ek-wrap));
  }

  .ek-header-inner {
    min-height: 68px;
    gap: 0.55rem;
  }

  .ek-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .ek-brand-name {
    font-size: 1rem;
  }

  .ek-brand-role {
    display: none;
  }

  .ek-section {
    padding: 2.7rem 0;
  }

  .ek-hero {
    padding-top: 1rem;
  }

  .ek-hero-grid {
    gap: 0.9rem;
  }

  .ek-hero-card,
  .ek-panel,
  .ek-page-banner,
  .ek-content-card,
  .ek-post-card,
  .ek-footer-card {
    border-radius: 16px;
  }

  .ek-hero-visual {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .ek-portrait-stage {
    min-height: 0;
    aspect-ratio: 5 / 6;
  }

  .ek-portrait-stage .ek-portrait-image {
    object-position: 56% 20%;
  }

  .ek-hero-lead {
    font-size: 0.98rem;
  }

  .ek-nav {
    left: 0.55rem;
    right: 0.55rem;
    top: calc(100% + 0.3rem);
    border-radius: 16px;
    padding: 0.45rem;
  }

  .ek-menu-toggle {
    padding: 0.5rem;
    min-width: 42px;
    justify-content: center;
  }

  .ek-menu-toggle > span:last-child {
    display: none;
  }

  .ek-contact-panel {
    padding: 0.8rem;
  }

  .ek-contact-panel .ek-button {
    width: auto;
    justify-self: start;
  }

  .ek-stat-grid {
    grid-template-columns: 1fr;
  }

  .ek-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .ek-cta-row,
  .ek-pill-row,
  .ek-marquee {
    gap: 0.45rem;
  }

  .ek-button {
    width: 100%;
  }

  .ek-modal {
    align-items: end;
    padding: 0.5rem;
  }

  .ek-modal-dialog {
    width: 100%;
    max-height: min(90svh, 760px);
    border-radius: 16px;
    padding: 0.85rem;
  }

  .ek-modal-header {
    gap: 0.55rem;
  }

  .ek-modal-close {
    width: 36px;
    height: 36px;
  }

  .ek-form-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .ek-form-actions {
    flex-direction: column;
  }

  .ek-form-actions .ek-button {
    width: 100%;
  }

  .ek-pagination .page-numbers {
    min-width: 36px;
    min-height: 36px;
    padding-inline: 0.65rem;
  }
}

@media (max-width: 420px) {
  .ek-portrait-stage {
    aspect-ratio: 1 / 1;
  }

  .ek-portrait-stage .ek-portrait-image {
    object-position: 58% 18%;
  }

  .ek-brand-name {
    font-size: 0.95rem;
  }

  .ek-page-banner h1 {
    max-width: 100%;
  }
}

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

body.ek-modal-open {
  overflow: hidden;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
}
