:root {
  --navy: #071827;
  --navy-2: #0b2134;
  --navy-3: #0f2b42;
  --gold: #d49442;
  --gold-2: #b77835;
  --paper: #f6f4f0;
  --card: #ffffff;
  --ink: #142235;
  --muted: #647184;
  --line: rgba(20,34,53,.11);
  --shadow: 0 18px 45px rgba(10, 24, 39, .12);
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.main-nav ul,
.main-nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 5.4vw, 78px);
  color: #fff;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
body.admin-bar .site-header {
  top: 32px;
}
.site-header.scrolled {
  background: rgba(5,18,30,.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--serif);
  font-weight: 700;
}
.brand-mark {
  color: var(--gold);
  font-size: 28px;
  letter-spacing: -.18em;
  transform: skew(-8deg);
}
.brand-name { font-size: 18px; letter-spacing: .14em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  font-size: 13px;
  font-weight: 600;
}
.main-nav a {
  color: rgba(255,255,255,.98);
  opacity: 1;
  padding: 12px 0;
  position: relative;
  text-shadow: 0 1px 3px rgba(0,0,0,.52);
}
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav a:hover {
  color: #f2bd76;
  opacity: 1;
}
.main-nav a.active::after,
.main-nav .current-menu-item > a::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #f2bd76;
  box-shadow: 0 0 12px rgba(212,148,66,.36);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
}
.language-switcher__select {
  appearance: none;
  min-width: 54px;
  height: 32px;
  border: 1px solid rgba(242,189,118,.68);
  border-radius: 6px;
  background: rgba(3,14,24,.50);
  color: #fff;
  padding: 0 22px 0 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 13px, calc(100% - 8px) 13px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.language-switcher--fallback {
  justify-content: center;
  padding: 0 24px 24px;
  background: var(--navy);
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212,148,66,.34);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.translation-live-notice {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(212,148,66,.62);
  border-radius: 8px;
  background: rgba(5,18,30,.96);
  box-shadow: 0 18px 45px rgba(10, 24, 39, .24);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.45;
}
.translation-live-notice[dir="rtl"] {
  text-align: right;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 25;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

.hero {
  height: clamp(480px, 42vw, 552px);
  min-height: clamp(480px, 42vw, 552px);
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5,18,30,.98) 0%, rgba(5,18,30,.90) 31%, rgba(5,18,30,.50) 58%, rgba(5,18,30,.16) 100%),
    url("../images/header-espoo.jpg");
  background-size: 100% 100%, cover;
  background-position: center center, center 40%;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 67% 38%, rgba(255,255,255,.10), transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.12));
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,13,23,.56) 0%, rgba(3,13,23,.20) 45%, rgba(3,13,23,0) 88%);
  z-index: 1;
}
.hero-grid-dot {
  position: absolute;
  z-index: 2;
  top: 76px;
  left: 0;
  width: 150px;
  height: 145px;
  opacity: .20;
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, #000, transparent);
}
.hero-inner {
  position: relative;
  z-index: 4;
  height: clamp(480px, 42vw, 552px);
  min-height: clamp(480px, 42vw, 552px);
  padding-top: 96px;
  padding-bottom: 0;
  display: block;
}
.hero-copy { width: 54%; max-width: 630px; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 4vw, 58px);
  line-height: .99;
  letter-spacing: -.045em;
  max-width: 600px;
}
.lead {
  width: min(535px, 100%);
  margin: 14px 0 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.48;
}
blockquote {
  margin: 0 0 15px;
  padding-left: 30px;
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  position: relative;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -15px;
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
  font-family: var(--serif);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 39px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid rgba(212,148,66,.72);
  font-weight: 700;
  font-size: 12.5px;
}
.button.primary {
  background: linear-gradient(180deg, #e0a050, var(--gold-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(203,132,53,.28);
}
.button.ghost { background: rgba(3,14,24,.36); color: #fff; }
.location { margin-top: 15px; color: rgba(255,255,255,.76); font-size: 12.5px; }
.hero-person {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 9vw, 190px);
  top: clamp(28px, 3.2vw, 42px);
  height: clamp(380px, 34vw, 526px);
  max-height: none;
  width: auto;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.30));
  transition: none;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 7;
}
.stat-card {
  height: 74px;
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 34px 18px;
  align-items: center;
  column-gap: 12px;
  padding: 11px 16px;
  border: 1px solid rgba(212,148,66,.68);
  border-radius: 7px;
  background: rgba(7,24,39,.62);
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.stat-svg {
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: .95;
  white-space: nowrap;
  letter-spacing: -.045em;
  min-width: 0;
}
.stat-card small {
  display: block;
  color: rgba(255,255,255,.86);
  font-weight: 600;
  font-size: 10.9px;
  line-height: 1.05;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.section { padding: 24px 0; }
.cards-strip { margin-top: 0; padding-top: 20px; background: #f8f7f4; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card,
.achievement-card,
.about-card,
.skills-card,
.post-card,
.thought-inner {
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(20,34,53,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
}
.feature-card {
  padding: 20px 22px 18px;
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-content: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card .line-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  grid-row: span 3;
}
.line-icon svg,
.achievement-icon svg,
.service-icon svg,
.case-icon svg,
.role-icon svg,
.accomplish-icon svg,
.how-icon svg,
.mini-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 20px;
}
.feature-card p { margin: 0 0 12px; color: #506073; font-size: 13.5px; }
.feature-card b { font-size: 13.5px; color: var(--navy-2); }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.section-heading h2,
.timeline-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  color: #19263a;
}
.section-heading a { color: var(--navy-2); font-weight: 800; font-size: 13.5px; }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.achievement-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  min-height: 118px;
}
.achievement-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212,148,66,.12);
  color: var(--gold-2);
  padding: 14px;
}
.achievement-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}
ul { margin: 0; padding-left: 18px; color: #4f5c6b; font-size: 13.5px; }

.about-skills { padding-top: 2px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.about-card {
  box-shadow: none;
  border-color: transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  padding: 0 4px 0 0;
}
.about-card > img {
  width: 122px;
  height: 122px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(8,24,39,.18);
}
.about-card h2,
.skills-card h2,
.thought-inner h2,
.site-footer h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 27px;
  color: #17253a;
}
.about-card p { margin: 0 0 12px; font-size: 14px; color: #465467; }
.signature {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 28px !important;
  color: #7890b4 !important;
  transform: rotate(-4deg);
  margin-top: 10px !important;
}
.signature-img {
  height: 62px;
  width: auto;
  margin: 72px 0 0 6px;
  transform: rotate(-30deg);
  transform-origin: left center;
}
.signature-img--light {
  height: 68px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(24%) saturate(846%) hue-rotate(1deg) brightness(101%) contrast(93%);
  margin: 76px 0 0 6px;
}
.skills-card {
  padding: 4px 0 0 0;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}
.skill-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.skill {
  position: relative;
  padding-left: 34px;
  margin-bottom: 15px;
}
.skill::before {
  content: "◌";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-2);
  font-size: 20px;
}
.skill span { display: block; font-size: 13.5px; font-weight: 700; color: #405064; }
.skill i {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: #dfe2e5;
  position: relative;
  overflow: hidden;
}
.skill i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--gold-2), #e0b06d);
}
.timeline-section { padding-top: 18px; }
.timeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  gap: 22px;
  padding-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.timeline::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -1px;
  width: 0;
  height: 0;
  border-left: 9px solid var(--gold-2);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.timeline article { position: relative; }
.timeline article::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--gold-2);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f6f4f0;
}
.timeline time { color: #6a7582; font-size: 11px; font-weight: 700; }
.timeline h3 { margin: 4px 0 1px; font-size: 13.5px; line-height: 1.2; }
.timeline p { margin: 0; color: #566576; font-size: 12px; }

.latest-posts { padding-top: 12px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  min-height: 132px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-thumb { width: 150px; height: 100%; background-size: cover; background-position: center; overflow: hidden; }
.post-thumb--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.post-thumb--1 { background: linear-gradient(145deg, #3f8ee0, #0f2b42); }
.post-thumb--2 { background: linear-gradient(145deg, #8b6ec2, #0f2b42); }
.post-thumb--3 { background: linear-gradient(145deg, var(--gold), #0f2b42); }
.post-card-body { padding: 16px 18px; }
.post-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
.post-card time { display: block; color: #69778a; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.post-card p { margin: 0 0 8px; color: #586577; font-size: 12.5px; }
.post-card span { color: var(--navy-2); font-weight: 800; font-size: 12.5px; }
.thought-panel { padding-top: 0; padding-bottom: 30px; }
.thought-inner {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 28px;
  align-items: center;
}
.thought-inner p { margin: 0; color: #4f5c6a; font-size: 14px; }
.mini-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mini-links a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  column-gap: 10px;
}
.mini-links .mini-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-2);
  grid-row: span 2;
}
.mini-links b { font-family: var(--serif); color: #213047; }
.mini-links small { color: #647184; font-size: 12px; }

.site-footer {
  background: linear-gradient(90deg, #051421, #071b2d 52%, #092237);
  color: rgba(255,255,255,.83);
  padding: 30px 0 22px;
}
.site-footer h2 { color: #fff; font-size: 18px; font-family: var(--serif); }
.footer-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr .9fr;
  gap: 46px;
}
.site-footer p { margin: 8px 0; font-size: 14px; }
.footer-contact-details {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
}
.footer-contact-details a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}
.footer-contact-details a:hover { color: var(--gold); }
.socials { display: flex; gap: 14px; margin-top: 20px; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}
.message-form { border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); padding: 0 34px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  margin-bottom: 10px;
}
textarea { resize: vertical; min-height: 48px; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.55); }
.message-form .button { width: 100%; border: none; cursor: pointer; }
.availability .signature.gold { color: var(--gold) !important; margin-top: 16px !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 26px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.62);
}
.footer-bottom a { margin-left: 22px; }

/* ---------- Sub-page hero (Blogi, CV, Portfolio, ...) ---------- */
.page-hero {
  position: relative;
  height: clamp(480px, 42vw, 552px);
  min-height: clamp(480px, 42vw, 552px);
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5,18,30,.94) 0%, rgba(5,18,30,.88) 55%, rgba(5,18,30,.72) 100%),
    url("../images/header-espoo.jpg");
  background-size: cover, cover;
  background-position: center center, center 35%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.08), transparent 26%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 58px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
}
.page-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
}

/* ---------- Blog listing ---------- */
.blog-listing { padding-top: 46px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.category-filter {
  justify-content: center;
  margin: 0 0 30px;
}
.category-filter a {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.category-filter a:hover { transform: translateY(-1px); border-color: var(--gold-2); color: var(--navy-2); }
.category-filter a.active {
  background: linear-gradient(180deg, #e0a050, var(--gold-2));
  border-color: transparent;
  color: #fff;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.filter-btn:hover { transform: translateY(-1px); border-color: var(--gold-2); color: var(--navy-2); }
.filter-btn.active {
  background: linear-gradient(180deg, #e0a050, var(--gold-2));
  border-color: transparent;
  color: #fff;
}
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 20px;
}
.blog-list-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-list-card.is-hidden { display: none; }
.blog-thumb {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.blog-thumb--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.article-prose > img.wp-post-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 36px;
}
.blog-thumb--1 { background: linear-gradient(145deg, #3f8ee0, #0f2b42); }
.blog-thumb--2 { background: linear-gradient(145deg, #8b6ec2, #0f2b42); }
.blog-thumb--3 { background: linear-gradient(145deg, var(--gold), #0f2b42); }
.blog-thumb--4 { background: linear-gradient(145deg, #647184, #0f2b42); }
.blog-thumb--5 { background: linear-gradient(145deg, #4f8f6b, #0f2b42); }
.blog-thumb--6 { background: linear-gradient(145deg, #b77835, #0f2b42); }
.cat-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(7,24,39,.55);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.35);
}
.blog-list-body { padding: 20px 22px 22px; }
.blog-list-body time { display: block; color: #8b96a5; font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.blog-list-body h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.blog-list-body p { margin: 0 0 12px; color: #586577; font-size: 13.5px; }
.blog-list-body span { color: var(--navy-2); font-weight: 800; font-size: 12.5px; }
.no-results {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
}
.no-results.is-visible { display: block; }

/* ---------- Article page ---------- */
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.article-cat {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
}
.article-meta-row time,
.article-meta-row .read-time {
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  font-weight: 600;
}
.page-hero.article-hero .page-hero-inner { justify-content: flex-end; padding-bottom: 42px; }
.page-hero.article-hero h1 {
  max-width: 920px;
  margin: 14px 0 8px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.08;
}
.article-breadcrumb {
  order: 3;
  max-width: 860px;
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .02em;
  opacity: .86;
}
.article-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-body-section { padding: 56px 0 20px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.article-cover {
  height: 340px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  background: linear-gradient(145deg, #3f8ee0, #0f2b42);
}
.article-prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: #17253a;
  margin: 40px 0 14px;
}
.article-prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: #17253a;
  margin: 30px 0 12px;
}
.article-prose p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #38455a;
  margin: 0 0 20px;
}
.article-prose ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #38455a;
  font-size: 15.5px;
  line-height: 1.75;
}
.article-prose li { margin-bottom: 8px; }
.article-prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--gold-2);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: #26344a;
}
.article-prose blockquote::before { display: none; }
.article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-share span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.article-share a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-2);
  font-weight: 800;
  font-size: 12px;
}
.author-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px;
  margin: 10px 0 50px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.author-box img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.author-box h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; }
.author-box p { margin: 0; color: var(--muted); font-size: 13px; }
.related-section { padding: 10px 0 70px; }
.related-section h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: #19263a;
  margin-bottom: 20px;
}

/* ---------- CV page ---------- */
.cv-intro { padding-top: 50px; }
.cv-summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 10px;
}
.cv-summary-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 26px rgba(8,24,39,.18); }
.cv-summary-card p { margin: 0; color: #38455a; font-size: 15px; line-height: 1.7; }
.cv-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.experience-list { display: flex; flex-direction: column; gap: 22px; }
.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-2);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  padding: 28px 30px;
}
.role-card:nth-child(1) { border-top-color: #3f8ee0; }
.role-card:nth-child(2) { border-top-color: var(--gold-2); }
.role-card:nth-child(3) { border-top-color: #647184; }
.role-card:nth-child(4) { border-top-color: #8b6ec2; }
.role-card:nth-child(5) { border-top-color: #4f8f6b; }
.role-card:nth-child(6) { border-top-color: #b77835; }
.role-card:nth-child(7) { border-top-color: #3f8ee0; }
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
}
.role-title-group { display: flex; align-items: center; gap: 16px; }
.role-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--gold-2);
  padding: 10px;
  background: rgba(212,148,66,.14);
}
.role-card:nth-child(1) .role-icon { background: rgba(63,142,224,.14); }
.role-card:nth-child(3) .role-icon { background: rgba(100,113,132,.14); }
.role-card:nth-child(4) .role-icon { background: rgba(139,110,194,.14); }
.role-card:nth-child(5) .role-icon { background: rgba(79,143,107,.14); }
.role-card:nth-child(6) .role-icon { background: rgba(183,120,53,.14); }
.role-card:nth-child(7) .role-icon { background: rgba(63,142,224,.14); }
.role-head h3 { margin: 0; font-family: var(--serif); font-size: 19px; color: #17253a; }
.role-head time { color: var(--gold-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; padding-top: 4px; }
.role-org { color: var(--muted); font-weight: 700; font-size: 13px; margin: 3px 0 0; }
.role-card ul { margin: 0; padding-left: 19px; color: #4a5568; font-size: 14px; line-height: 1.7; }
.role-card li { margin-bottom: 6px; }

.sub-role {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold-2);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}
.sub-role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 2px;
}
.sub-role-head h4 { margin: 0; font-family: var(--serif); font-size: 15px; color: #17253a; }
.sub-role-head time { color: var(--gold-2); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.sub-role-org { color: var(--muted); font-weight: 700; font-size: 11.5px; margin: 0 0 10px; }
.sub-role ul { margin: 0; padding-left: 18px; color: #4a5568; font-size: 13.5px; line-height: 1.65; }
.sub-role li { margin-bottom: 5px; }

.earlier-experience { padding-top: 8px; }
.earlier-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  padding-top: 24px;
}
.earlier-timeline::before {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.earlier-item { position: relative; padding-top: 4px; }
.earlier-item::before {
  content: "";
  position: absolute;
  top: -22px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px var(--paper);
}
.earlier-item h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: #17253a; }
.earlier-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.skills-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}

.cv-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cv-meta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  padding: 26px 28px;
}
.cv-meta-card h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 17px; color: #17253a; }
.cv-meta-item { padding: 10px 0; border-top: 1px solid var(--line); }
.cv-meta-item:first-of-type { border-top: 0; padding-top: 0; }
.cv-meta-item b { display: block; font-size: 13.5px; color: #26344a; }
.cv-meta-item span { color: var(--muted); font-size: 12.5px; }

/* ---------- Portfolio page ---------- */
.impact-strip { margin-top: -1px; background: var(--navy-2); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.impact-item {
  background: var(--navy-2);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
}
.impact-item strong { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); color: var(--gold); margin-bottom: 6px; }
.impact-item span { color: rgba(255,255,255,.72); font-size: 12.5px; }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  overflow: hidden;
}
.case-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(120deg, var(--navy-2), var(--navy-3));
  color: #fff;
}
.case-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(212,148,66,.18);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
  padding: 10px;
}
.case-head h3 { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.3; }
.case-body { padding: 22px 26px 26px; }
.case-row { margin-bottom: 16px; }
.case-row:last-child { margin-bottom: 0; }
.case-row b { display: block; color: var(--gold-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.case-row p { margin: 0; color: #4a5568; font-size: 13.5px; line-height: 1.65; }

.accomplish-band { background: var(--navy-2); }
.accomplish-band .section-heading h2, .accomplish-band .section-lede { color: #fff; }
.accomplish-band .section-lede { color: rgba(255,255,255,.68); margin: -8px 0 30px; font-size: 14px; max-width: 640px; }
.accomplish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.accomplish-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px;
}
.accomplish-icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.accomplish-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: #fff; }
.accomplish-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 13.5px; line-height: 1.6; }

.foundation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.foundation-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  padding: 24px 26px;
}
.foundation-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 15.5px; color: #17253a; }
.foundation-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.how-i-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { text-align: center; padding: 10px 14px; }
.how-icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(212,148,66,.14);
  display: grid; place-items: center;
  color: var(--gold-2);
  padding: 14px;
}
.how-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: #17253a; }
.how-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.anonymisation-note {
  margin-top: 40px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold-2);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Consulting page ---------- */
.consult-intro { padding-top: 50px; }
.consult-lede {
  max-width: 760px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #38455a;
}
.consult-lede strong { color: var(--navy-2); }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,34,53,.055);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(212,148,66,.14);
  display: grid; place-items: center;
  color: var(--gold-2);
  padding: 14px;
}
.service-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; color: #17253a; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.cta-banner {
  background: linear-gradient(120deg, #0b2134, #071827);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; color: #fff; }
.cta-banner p { margin: 0 auto 24px; max-width: 520px; color: rgba(255,255,255,.75); font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (min-width: 1400px) {
  .container { width: min(1210px, calc(100% - 104px)); }
  .hero { background-position: center center, center 42%; }
  .hero-inner { padding-top: 90px; }
  .stat-card { height: 74px; min-height: 74px; }
}

@media (max-width: 1180px) {
  .container { width: min(1180px, calc(100% - 52px)); }
  .hero-copy { width: min(590px, 57%); }
  .hero h1 { font-size: clamp(42px, 4vw, 52px); max-width: 580px; }
  .stat-card { padding-inline: 13px; grid-template-columns: 36px minmax(0, 1fr); }
  .stat-card strong { font-size: clamp(21px, 2.1vw, 27px); }
}

/* Tablet: stack hero content instead of overlapping person over headline */
@media (max-width: 1080px) {
  .hero {
    height: auto;
    min-height: 0;
    background-position: center center, center 30%;
  }
  .hero-inner {
    height: auto;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-grid-dot { display: none; }
  .hero-person {
    display: block;
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    height: 340px;
    width: auto;
    margin: 90px auto 0;
  }
  .hero-copy { width: 100%; max-width: 620px; }
  .hero h1, .hero-copy .lead, .location { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .blockquote, blockquote { padding-left: 0; }
  blockquote::before { display: none; }
  .stats-row {
    position: relative;
    left: auto; right: auto; bottom: auto;
    margin-top: 26px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card { height: 78px; min-height: 78px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,18,30,.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px clamp(28px, 5.4vw, 78px) 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul,
  .main-nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav li {
    width: 100%;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav .language-switcher {
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
  }
  .main-nav .language-switcher__select {
    width: 100%;
    max-width: 160px;
  }
  .nav-toggle { display: flex; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid, .post-grid { grid-template-columns: 1fr; }
  .about-grid, .thought-inner, .footer-grid { grid-template-columns: 1fr; }
  .message-form { border: 0; padding: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline article::before { top: -13px; }

  .page-hero { height: auto; min-height: 0; }
  .page-hero-inner { padding: 70px 0 26px; }
  .blog-list-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-cover { height: 240px; }

  .cv-summary-card { grid-template-columns: 1fr; text-align: center; }
  .cv-summary-card img { margin: 0 auto; }
  .cv-meta-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .accomplish-grid { grid-template-columns: repeat(2, 1fr); }
  .foundation-grid { grid-template-columns: 1fr; }
  .how-i-work-grid { grid-template-columns: 1fr; }
  .earlier-timeline { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .earlier-timeline::before { display: none; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  .container { width: min(100% - 32px, 1180px); }
  .site-header { height: 66px; padding-inline: 18px; }
  .brand-name { font-size: 14px; }
  .hero-inner { padding-top: 12px; }
  .hero-person { height: 260px; margin-top: 96px; }
  .hero h1 { font-size: 38px; }
  .feature-grid, .achievement-grid, .skill-columns, .post-grid, .mini-links, .footer-grid, .input-row, .stats-row { grid-template-columns: 1fr; }
  .stat-card small { white-space: normal; }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-card > img { margin: 0 auto; }
  .timeline { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 110px 1fr; }
  .post-thumb { width: 110px; }
  .footer-bottom { flex-direction: column; }

  .page-hero { height: auto; min-height: 0; }
  .page-hero-inner { padding: 76px 0 28px; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 12px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box img { margin: 0 auto; }

  .impact-grid { grid-template-columns: 1fr 1fr; }
  .role-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .accomplish-grid { grid-template-columns: 1fr; }
  .earlier-timeline { grid-template-columns: 1fr; }
}

/* RTL layout for Arabic */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .site-header,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .main-nav ul,
html[dir="rtl"] .main-nav-menu {
  direction: rtl;
}
html[dir="rtl"] .site-header {
  flex-direction: row-reverse;
}
html[dir="rtl"] .brand,
html[dir="rtl"] .main-nav ul,
html[dir="rtl"] .main-nav-menu,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cv-actions,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .socials {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero {
  background-image:
    linear-gradient(270deg, rgba(5,18,30,.98) 0%, rgba(5,18,30,.90) 31%, rgba(5,18,30,.50) 58%, rgba(5,18,30,.16) 100%),
    url("../images/header-espoo.jpg");
}
html[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(3,13,23,.56) 0%, rgba(3,13,23,.20) 45%, rgba(3,13,23,0) 88%);
}
html[dir="rtl"] .hero-grid-dot {
  left: auto;
  right: 0;
  mask-image: linear-gradient(270deg, #000, transparent);
}
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .page-hero-inner,
html[dir="rtl"] .article-prose,
html[dir="rtl"] .case-body,
html[dir="rtl"] .consult-lede,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .role-card,
html[dir="rtl"] .foundation-card {
  text-align: right;
}
html[dir="rtl"] .hero-person {
  right: auto;
  left: clamp(20px, 9vw, 190px);
  transform: scaleX(-1);
}
html[dir="rtl"] .hero-copy {
  width: min(54%, 630px);
  margin-left: auto;
  margin-right: 0;
}
html[dir="rtl"] .lead {
  margin-left: 0;
  margin-right: 0;
}
html[dir="rtl"] blockquote {
  padding-left: 0;
  padding-right: 30px;
}
html[dir="rtl"] blockquote::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .language-switcher__select {
  padding: 0 9px 0 22px;
  background-position: 12px 13px, 8px 13px;
}
html[dir="rtl"] .stats-row,
html[dir="rtl"] .feature-grid,
html[dir="rtl"] .achievement-grid,
html[dir="rtl"] .about-grid,
html[dir="rtl"] .skill-columns,
html[dir="rtl"] .post-grid,
html[dir="rtl"] .mini-links,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .case-grid,
html[dir="rtl"] .service-grid,
html[dir="rtl"] .experience-list,
html[dir="rtl"] .foundation-grid,
html[dir="rtl"] .how-i-work-grid,
html[dir="rtl"] .blog-list-grid,
html[dir="rtl"] .article-layout,
html[dir="rtl"] .impact-grid,
html[dir="rtl"] .cv-meta-grid {
  direction: rtl;
}
html[dir="rtl"] .feature-card,
html[dir="rtl"] .achievement-card,
html[dir="rtl"] .post-card,
html[dir="rtl"] .mini-links a,
html[dir="rtl"] .service-card,
html[dir="rtl"] .role-title-group,
html[dir="rtl"] .cv-summary-card,
html[dir="rtl"] .author-box {
  direction: rtl;
}
html[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .skill {
  padding-left: 0;
  padding-right: 34px;
}
html[dir="rtl"] .skill::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .skill i::before {
  inset: 0 0 0 auto;
}
html[dir="rtl"] .timeline::after {
  right: auto;
  left: -1px;
  border-left: 0;
  border-right: 9px solid var(--gold-2);
}
html[dir="rtl"] .timeline article::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .translation-live-notice {
  text-align: right;
}
html[dir="rtl"] .main-nav {
  text-align: right;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}

@media (max-width: 1080px) {
  html[dir="rtl"] .main-nav {
    align-items: flex-end;
  }
  html[dir="rtl"] .hero-inner {
    text-align: center;
  }
  html[dir="rtl"] .hero-person {
    left: auto;
    right: auto;
    transform: scaleX(-1);
  }
  html[dir="rtl"] .hero-copy {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  html[dir="rtl"] .hero-actions {
    justify-content: center;
  }
  html[dir="rtl"] .lead {
    margin-inline: auto;
  }
  html[dir="rtl"] .main-nav a {
    text-align: right;
  }
}

@media (max-width: 720px) {
  html[dir="rtl"] .hero-person {
    left: auto;
    right: auto;
  }
  html[dir="rtl"] .role-head {
    align-items: flex-end;
  }
}
