/*
Theme Name: Ceravolo Software
Theme URI: https://ceravolosoftware.com/
Author: Ceravolo Software
Description: Custom theme for Ceravolo Software — photoreal 3D office hero and the site's look. Page content lives in the block editor, navigation in Appearance → Menus; English, Portuguese and Spanish via Polylang.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: ceravolo
*/

:root {
  --teal: #0e2b2b;
  --teal-2: #173f3d;
  --cream: #f4f1ea;
  --paper: #fbfaf6;
  --orange: #e8661a;
  --orange-2: #f07a2e;
  --muted: #586764;
  --line: rgba(14, 43, 43, .14);
  --night: #120d0a;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  --icon-linkedin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9.75h4v11H3zM9.5 9.75h3.8v1.6h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1v5.35h-4v-4.75c0-1.13-.02-2.6-1.58-2.6-1.59 0-1.83 1.24-1.83 2.52v4.83h-4z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); }
body {
  font-family: var(--font-body);
  color: var(--teal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--cream);
  transition: background .45s ease, color .45s ease, box-shadow .45s ease, padding .45s ease;
}
.nav__logo img { height: 30px; width: auto; display: block; }
.nav .logo-dark { display: none; }
.nav.is-light {
  background: rgba(244, 241, 234, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--teal);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.nav.is-light .logo-dark { display: block; }
.nav.is-light .logo-light { display: none; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.nav__links a:hover { opacity: 1; color: var(--orange-2); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--orange); border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav__cta:hover { background: var(--orange); color: #fff; }
@media (max-width: 1000px) { .nav__links { display: none; } }
@media (max-width: 520px) {
  .nav { padding: 16px; }
  .nav__logo img { height: 24px; }
  .nav__cta { padding: 9px 14px; font-size: 13px; }
}

/* ---------- INTRO / STAGE ---------- */
.intro { position: relative; height: 560vh; }
.mode-simple .intro { height: auto; }

.stage {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  background: var(--night);
}
.mode-simple .stage { position: relative; height: 100svh; min-height: 580px; }

#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.css3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 8, 5, .92) 0%, rgba(12, 8, 5, .78) 28%, rgba(12, 8, 5, .4) 46%, rgba(12, 8, 5, 0) 62%),
    linear-gradient(180deg, rgba(12, 8, 5, .55) 0%, rgba(12, 8, 5, 0) 20%);
}

.hero {
  position: absolute; left: clamp(20px, 6.5vw, 120px); top: 50%;
  transform: translateY(-44%);
  max-width: 620px; color: var(--cream);
  will-change: opacity, transform;
}
.hero__eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: rgba(244, 241, 234, .72); margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); }
.hero h1 {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(38px, min(4.2vw, 7.4vh), 68px); line-height: 1.05; letter-spacing: -.025em;
}
.hero h1 em { font-style: normal; font-weight: 600; color: var(--orange-2); }
.hero__lede strong { font-weight: 500; color: var(--cream); }
.hero__lede--sub { margin-top: 12px; font-size: clamp(14.5px, min(1vw, 2vh), 17px); color: rgba(244, 241, 234, .68); }
.hero__sign { margin-top: 18px; font-size: 13px; letter-spacing: .02em; color: rgba(244, 241, 234, .6); }
.hero__lede {
  margin-top: clamp(16px, 2.8vh, 26px); max-width: 500px;
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6;
  color: rgba(244, 241, 234, .8);
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--orange { margin-top: clamp(20px, 3.6vh, 36px); background: var(--orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 102, 26, .7); }
.btn--orange:hover { background: var(--orange-2); }
.btn--teal { background: var(--teal); color: var(--cream); }
.btn--teal:hover { background: var(--teal-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(244, 241, 234, .55);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--orange);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.dock { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dock:empty { display: none; }

.loader {
  position: absolute; inset: 0; z-index: 30; background: var(--night);
  display: grid; place-items: center; transition: opacity .8s ease .1s;
}
.loader span { width: 120px; height: 2px; background: rgba(244, 241, 234, .15); position: relative; overflow: hidden; }
.loader span::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--orange); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loader.is-done { opacity: 0; pointer-events: none; }

/* mobile hero composition: text at the bottom */
@media (max-width: 820px) {
  .hero { top: auto; bottom: max(36px, 5svh); right: 20px; transform: none; }
  .hero__eyebrow { margin-bottom: 16px; font-size: 11px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .hero__lede { margin-top: 16px; font-size: 15px; }
  .btn--orange, .hero .wp-block-buttons { margin-top: 22px; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(12, 8, 5, .94) 0%, rgba(12, 8, 5, .7) 38%, rgba(12, 8, 5, 0) 66%),
      linear-gradient(180deg, rgba(12, 8, 5, .6) 0%, rgba(12, 8, 5, 0) 18%);
  }
  .scroll-cue { display: none; }
}

/* ---------- SCENE 3 : THE BIG PICTURE ---------- */
.bp {
  position: relative; overflow: hidden;
  background: var(--cream); color: var(--teal);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.bp::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 6% -12%, rgba(232, 102, 26, .09), transparent 62%),
    radial-gradient(900px 640px at 104% 112%, rgba(14, 43, 43, .07), transparent 60%);
}
/* glass reflection while the page is still "inside the monitor" */
.bp::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: var(--glare, 0);
  background:
    linear-gradient(112deg, rgba(255, 236, 210, 0) 28%, rgba(255, 236, 210, .32) 40%, rgba(255, 236, 210, 0) 54%),
    linear-gradient(180deg, rgba(24, 14, 8, .42), rgba(24, 14, 8, .18));
}
.bp.is-docked {
  position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important;
  transform: none !important; pointer-events: auto;
}
.bp.is-docked .bp__inner { opacity: var(--content, 1); }
.bp.is-flow { pointer-events: auto; }

.bp__inner {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 96px); align-items: center;
  padding: clamp(84px, 13vh, 130px) clamp(24px, 6.5vw, 120px) clamp(36px, 7vh, 72px);
}
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--teal);
}
.kicker::before { content: ''; flex: none; width: 30px; height: 2px; background: var(--orange); }
.bp h2 {
  margin-top: clamp(14px, 2.4vh, 24px);
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(30px, min(3.3vw, 6vh), 60px); line-height: 1.06;
}
.bp h2 span, .bp h2 em { font-style: normal; color: var(--teal-2); font-weight: 500; }
.bp__lede {
  margin-top: clamp(12px, 2.2vh, 22px); max-width: 520px;
  font-size: clamp(15px, min(1.15vw, 2.2vh), 19px); line-height: 1.6; color: var(--muted);
}
.bp .btn--teal, .bp .wp-block-buttons { margin-top: clamp(14px, 2.6vh, 28px); }

/* detail panel (changes on hover) */
.detail { margin-top: clamp(14px, 2.6vh, 28px); min-height: clamp(150px, 25vh, 220px); position: relative; }
.detail__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.detail__tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.detail__empty {
  border-left: 2px solid var(--line); padding: 4px 0 4px 20px;
  font-size: clamp(14px, 1vw, 16px); line-height: 1.6; color: var(--muted); max-width: 500px;
}
.detail__empty strong { color: var(--teal); font-weight: 600; }
.detail__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(14px, 2.2vh, 22px) clamp(16px, 1.6vw, 24px);
  box-shadow: 0 18px 40px -28px rgba(14, 43, 43, .45);
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.detail__cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; }
.detail h3 { font-family: var(--font-head); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.detail ul { list-style: none; display: grid; gap: 6px; }
.detail li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.detail li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 2px; background: var(--orange); }
.detail p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.detail__link {
  display: inline-flex; margin-top: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--orange); text-decoration: none;
}
.detail__link:hover { text-decoration: underline; }

/* system map */
.bp__visual { position: relative; }
.map {
  position: relative; width: 100%; aspect-ratio: 600 / 460;
  max-height: 64vh; margin-inline: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 1px 1px, rgba(14, 43, 43, .13) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15));
  border: 1px solid var(--line);
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire {
  fill: none; stroke: rgba(14, 43, 43, .28); stroke-width: 1.6;
  stroke-dasharray: 5 6; animation: flow 1.6s linear infinite;
  transition: stroke .3s, opacity .3s, stroke-width .3s;
}
@keyframes flow { to { stroke-dashoffset: -22; } }
.pulses circle { fill: var(--orange); opacity: .85; }
.map[data-active] .wire { opacity: .35; }
.map[data-active="finance"] .wire[data-k="finance"],
.map[data-active="operations"] .wire[data-k="operations"],
.map[data-active="data"] .wire[data-k="data"],
.map[data-active="sales"] .wire[data-k="sales"] {
  opacity: 1; stroke: var(--orange); stroke-width: 2.4; stroke-dasharray: none;
}

.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 31.6%; padding: clamp(10px, 1.6vh, 16px) 12px;
  border-radius: 16px; background: var(--teal); color: var(--cream);
  text-align: center; box-shadow: 0 24px 50px -24px rgba(14, 43, 43, .8);
}
.hub strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(13px, 1.15vw, 18px); }
.hub small { display: block; margin-top: 3px; font-size: clamp(10px, .75vw, 12px); letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 234, .6); }
.hub__dot {
  position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 0 rgba(232, 102, 26, .6); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 102, 26, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232, 102, 26, 0); } }

.node {
  position: absolute; transform: translate(-50%, -50%);
  width: 25%; display: flex; align-items: center; gap: 10px;
  padding: clamp(10px, 1.6vh, 15px) clamp(10px, 1.1vw, 16px);
  border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-head); font-weight: 500; font-size: clamp(12px, 1.05vw, 16px); text-align: left;
  cursor: pointer; box-shadow: 0 12px 26px -20px rgba(14, 43, 43, .6);
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.node svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--teal-2); transition: color .25s; }
.node:hover, .node:focus-visible { border-color: rgba(232, 102, 26, .6); outline: none; transform: translate(-50%, -50%) translateY(-2px); }
.node.is-active { background: var(--teal); color: var(--cream); border-color: var(--teal); box-shadow: 0 18px 34px -18px rgba(14, 43, 43, .9); }
.node.is-active svg { color: var(--orange-2); }
.map__hint { margin-top: 12px; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(14, 43, 43, .45); }

/* entrance once the camera arrives */
.bp .node, .bp .hub { opacity: 0; }
.bp.is-live .hub { animation: pop .6s ease .05s both; }
.bp.is-live .node { animation: pop .6s ease both; }
.bp.is-live .node[data-k="finance"] { animation-delay: .15s; }
.bp.is-live .node[data-k="operations"] { animation-delay: .25s; }
.bp.is-live .node[data-k="data"] { animation-delay: .35s; }
.bp.is-live .node[data-k="sales"] { animation-delay: .45s; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* flow layout (mobile / reduced motion) */
.bp.is-flow .bp__inner { padding-top: 96px; padding-bottom: 88px; }
@media (max-width: 820px) {
  .bp__inner, .bp.is-flow .bp__inner { grid-template-columns: 1fr; gap: 28px; padding: 72px 20px 64px; }
  .bp__copy { display: contents; }
  .bp .kicker { order: 1; } .bp h2 { order: 2; } .bp__lede { order: 3; }
  .bp__visual { order: 4; }
  .detail { order: 5; min-height: 0; margin-top: 0; }
  .bp .btn--teal, .bp .wp-block-buttons { order: 6; justify-self: start; margin-top: 0; }
  .bp h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .map { max-height: none; border-radius: 18px; }
  .node { width: 30%; gap: 6px; padding: 9px 8px; font-size: 12px; border-radius: 11px; }
  .node svg { width: 16px; height: 16px; }
  .node[data-k="finance"], .node[data-k="data"] { left: 18.5% !important; }
  .node[data-k="operations"], .node[data-k="sales"] { left: 81.5% !important; }
  .hub { width: 36%; }
  .detail__cols { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .wire, .scroll-cue span, .hub__dot { animation: none; }
  .pulses { display: none; }
  .bp .node, .bp .hub { opacity: 1; animation: none !important; }
  .detail__card { animation: none; }
}

/* capture mode: renders the second fold exactly as it appears on the monitor (used as the 3D screen texture) */
.screen-capture .intro, .screen-capture main > :not(.bp), .screen-capture .foot, .screen-capture .skip, .screen-capture .mnav, .screen-capture .flow-slot { display: none !important; }
.screen-capture body { overflow: hidden; }
.screen-capture .bp { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; visibility: visible !important; }
.screen-capture .bp .node, .screen-capture .bp .hub { opacity: 1; animation: none !important; }
.screen-capture .pulses { display: none; }
.screen-capture .nav { background: rgba(244, 241, 234, .88); color: var(--teal); box-shadow: 0 1px 0 var(--line); padding-top: 16px; padding-bottom: 16px; }
.screen-capture .nav .logo-dark { display: block; }
.screen-capture .nav .logo-light { display: none; }

/* photoreal hero still (mobile / reduced motion) */
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.mode-cinema .bp.is-docked { will-change: opacity; }

.detail__empty p + p { margin-top: 10px; }
.detail__hint { font-size: .92em; }

/* ====================================================================== */
/* SITE: navigation extras                                                 */
/* ====================================================================== */
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
.nav__links a[aria-current="page"] { color: var(--orange); opacity: 1; }
.nav__group { position: relative; }
.nav__menu {
  position: absolute; left: -18px; top: 100%; margin-top: 14px; width: 330px;
  display: grid; gap: 2px; padding: 10px;
  background: var(--paper); color: var(--teal); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(14, 43, 43, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease;
}
.nav__menu a { display: grid !important; gap: 2px; padding: 10px 12px; border-radius: 10px; opacity: 1 !important; }
.nav__menu a:hover { background: var(--cream); color: var(--teal) !important; }
.nav__menu strong { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.nav__menu small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.nav__menu a[aria-current="page"] strong { color: var(--orange); }
.nav__menu-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; font-size: 13px; color: var(--orange); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-right: -10px;
}
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; transition: transform .3s ease, top .3s ease; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .nav { background: var(--cream); color: var(--teal); box-shadow: 0 1px 0 var(--line); }
.menu-open .nav .logo-dark { display: block; }
.menu-open .nav .logo-light { display: none; }
.menu-open body { overflow: hidden; }

.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--cream); color: var(--teal);
  padding: 96px 24px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  opacity: 0; transform: translateY(-8px); overflow-y: auto;
  /* Closed menu must not cover the page or take clicks */
  visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.mnav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .3s ease, transform .3s ease; }
.mnav nav { display: grid; }
.mnav nav a {
  font-family: var(--font-head); font-size: 24px; font-weight: 500; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mnav nav a.mnav__sub { font-size: 16px; padding: 10px 0 10px 18px; color: var(--muted); }
.mnav nav a[aria-current="page"] { color: var(--orange); }
.mnav .btn { align-self: flex-start; margin: 0; }

@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 560px) { .nav__cta { display: none; } }

/* ====================================================================== */
/* SITE: layout + components                                               */
/* ====================================================================== */
.wrap, .wrap.wp-block-group { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 6.5vw, 120px); box-sizing: content-box; }
@media (min-width: 1500px) { .wrap { padding-inline: 72px; } }

.sec { padding-block: clamp(72px, 10vw, 140px); background: var(--cream); position: relative; }
.sec--paper { background: var(--paper); border-block: 1px solid var(--line); }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

h2.h, .sec h2, .cta-band h2, .phero h1 {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em; line-height: 1.08;
}
.sec h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 50px); }
.sec h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; }

.prose p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 16px; }
.prose .prose__lead { font-family: var(--font-head); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--teal); font-weight: 500; letter-spacing: -.01em; }
.prose .prose__strong { color: var(--teal); font-weight: 600; }

a.text-link, .text-link a, .phero__copy p a { display: inline-flex; font-weight: 600; color: var(--orange); text-decoration: none; }
a.text-link, .text-link { margin-top: 18px; }
a.text-link:hover, .text-link a:hover, .phero__copy p a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* page hero (inner pages) */
.phero {
  position: relative; overflow: hidden; background: var(--cream);
  padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(64px, 9vw, 120px);
}
.phero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 0% -10%, rgba(232, 102, 26, .1), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(14, 43, 43, .1) 1px, transparent 1.4px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.25) 55%, transparent 80%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.25) 55%, transparent 80%);
}
.phero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(32px, 6vw, 110px); align-items: end; }
.phero__inner > .kicker { grid-column: 1 / -1; }
.phero h1 { margin-top: 22px; font-size: clamp(38px, 4.6vw, 70px); max-width: 15ch; }
.phero__copy { padding-bottom: 8px; }
.phero__copy p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--muted); }
.phero__copy p + p { margin-top: 14px; }
.phero__lede { font-family: var(--font-head); font-size: clamp(19px, 1.6vw, 24px) !important; line-height: 1.45 !important; color: var(--teal) !important; font-weight: 500; }
.phero .btn--orange, .phero .wp-block-buttons { margin-top: 28px; }
.phero__index { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.phero__index { list-style: none; counter-reset: cv-case; }
.phero__index li { counter-increment: cv-case; }
.phero__index a { display: flex; gap: 14px; padding: 18px 18px 0 0; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 15px; }
.phero__index a::before { content: counter(cv-case, decimal-leading-zero); flex: none; color: var(--orange); font-size: 13px; padding-top: 2px; }
.phero__index a:hover { color: var(--orange); }

/* statement band (home) */
.statement .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.statement__lead { font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.3; letter-spacing: -.02em; }
.statement__side p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.statement__side .statement__strong { margin-top: 14px; color: var(--teal); font-weight: 600; font-family: var(--font-head); font-size: 19px; line-height: 1.45; }

/* cards */
.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 2.2vw, 34px); text-decoration: none; color: var(--teal);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sec:not(.sec--paper) .card { background: var(--paper); }
a.card:hover, .card--link:hover { border-color: rgba(232, 102, 26, .55); transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(14, 43, 43, .55); }
.card__num, .card .card__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--orange); }
.card h3 { margin-top: 18px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.card__link, .card .card__link { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--orange); }
.card__link a { color: inherit; text-decoration: none; }
.card__link a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */

/* solutions list */
.solutions { border-top: 1px solid var(--line); }
.solution {
  display: grid; grid-template-columns: 60px minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line);
}
.solution .card__num { padding-top: 8px; }
.solution h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.solution__sub { margin-top: 10px; font-family: var(--font-head); font-size: 17px; color: var(--teal-2); }

/* split */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.split__head { position: sticky; top: 120px; }

/* features (why) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: clamp(28px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(odd) { border-right: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); }
.feature svg { grid-row: span 2; width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
/* icon picked with a CSS class on the feature group: icon-person, icon-chat, icon-heart, icon-star */
.feature[class*="icon-"]::before { content: ''; grid-row: span 2; width: 34px; height: 34px; background: var(--orange); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-person { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c1-4 4-6 7.5-6s6.5 2 7.5 6'/%3E%3C/svg%3E"); }
.icon-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 5h11v8H9l-4 3v-3H4z'/%3E%3Cpath d='M15 9h5v8h-1v3l-4-3h-4v-2'/%3E%3C/svg%3E"); }
.icon-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.icon-star { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3l2.6 5.4 5.9.8-4.3 4.1 1 5.8L12 16.4l-5.2 2.7 1-5.8L3.5 9.2l5.9-.8z'/%3E%3C/svg%3E"); }
.feature h3 { font-size: 19px; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.proof h2 { max-width: 18ch; margin-bottom: 28px; }
.proof .btn--teal, .proof .wp-block-buttons { margin-top: 32px; }
.proof__stat {
  aspect-ratio: 1; border-radius: 28px; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-content: center; text-align: center; padding: 32px;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 43, 43, .1) 1px, transparent 1.4px); background-size: 22px 22px;
}
.proof__stat strong, .proof__stat .proof__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(90px, 11vw, 170px); line-height: .9; letter-spacing: -.05em; }
.proof__stat strong span, .proof__num sup { color: var(--orange); font-size: inherit; vertical-align: baseline; line-height: inherit; }
.proof__stat small, .proof__stat .proof__label { display: block; margin: 18px auto 0; max-width: 22ch; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* steps + principles */
.steps, .principles { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps { grid-template-columns: repeat(5, 1fr); }
.steps > * { padding: 28px 22px 8px 0; }
.steps > * + * { padding-left: 22px; border-left: 1px solid var(--line); }
.steps span, .principles span, .steps .step__num, .principles .step__num { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--orange); }
.steps h3 { margin-top: 18px; font-size: 21px; }
.steps p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.principles > * { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: baseline; }
.principles h3 { font-size: clamp(19px, 1.6vw, 24px); }
.principles p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* cases */
.case__head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.case__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 28px; }
.case__grid h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.case__grid p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.case__grid p + p { margin-top: 12px; }
.case__takeaway {
  margin-top: clamp(32px, 4vw, 52px); padding: 22px 26px; border-radius: 16px;
  background: var(--teal); color: var(--cream);
  font-family: var(--font-head); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; font-weight: 500;
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
}
.case__takeaway span, .case__takeaway strong { font-family: var(--font-body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-2); font-weight: 600; }

/* about: office image + languages */
.office { margin: 0 auto; max-width: calc(1280px + 240px); padding-inline: clamp(0px, 3vw, 48px); }
.office img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 45%; border-radius: clamp(0px, 2vw, 28px); }
.langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.langs span, .langs li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--paper); }

/* final CTA band */
.cta-band {
  position: relative; overflow: hidden; background: var(--cream);
  padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 420px at 85% 120%, rgba(232, 102, 26, .16), transparent 65%);
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 110px); align-items: end; }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 64px); max-width: 14ch; }
.cta-band p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.cta-band p + p { margin-top: 12px; }
.cta-band .cta-band__lead { font-family: var(--font-head); font-size: 22px; color: var(--teal); font-weight: 500; }
.cta-band .btn--orange, .cta-band .wp-block-buttons { margin-top: 26px; }

/* contact */
.contact { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.contact__intro { position: sticky; top: 130px; }
.contact__intro > p:not(.kicker):not(.phero__lede):not(.linkedin) { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.contact__intro .phero__lede { margin-top: 24px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; box-shadow: 0 40px 80px -60px rgba(14, 43, 43, .5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 600; color: var(--teal); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--teal);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 102, 26, .15); }
.was-validated .field input:invalid, .was-validated .field textarea:invalid { border-color: #c0392b; }
.field legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--cream); transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232, 102, 26, .3); }
.form .btn--orange { margin-top: 4px; justify-self: start; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__legal { font-size: 13px; color: var(--muted); }
.form__legal a { color: var(--teal); }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; background: var(--cream); border: 1px solid var(--line); }
.form__status[data-state="error"] { border-color: rgba(192, 57, 43, .4); color: #8e2a1f; }
.form__status[data-state="ok"] { border-color: rgba(14, 43, 43, .35); }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.foot__inner, .foot__base { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 6.5vw, 120px); box-sizing: content-box; }
@media (min-width: 1500px) { .foot__inner, .foot__base { padding-inline: 72px; } }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); }
.foot__logo { height: 30px; width: auto; display: block; }
.foot__brand p { margin-top: 20px; max-width: 40ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
.foot__brand .foot__tag { margin-top: 12px; font-family: var(--font-head); color: var(--teal); font-weight: 500; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: start; font-size: 15px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--orange); }
.foot__cta p { font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.foot__cta .btn--orange { margin-top: 18px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot__base a { color: inherit; }
.foot__lang { display: flex; gap: 16px; }
.foot__lang a[aria-current] { color: var(--teal); font-weight: 600; text-decoration: none; }
.foot__lang span[aria-disabled] { opacity: .55; cursor: default; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .features .reveal:nth-child(2), .steps .reveal:nth-child(2), .case__grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .features .reveal:nth-child(3), .steps .reveal:nth-child(3), .case__grid .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .features .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }

/* responsive */
@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps > *, .steps > * + * { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; }
  .steps > * h3 { margin-top: 0; }
  .steps > * p { grid-column: 2; }
  .steps .step__num { grid-column: 1; grid-row: span 2; padding-top: 6px; }
}
@media (max-width: 900px) {
  .phero__inner, .split, .statement .wrap, .proof, .cta-band__inner, .contact, .foot__inner { grid-template-columns: 1fr; }
  .phero h1 { max-width: none; }
  .phero__copy { margin-top: 24px; }
  .split__head, .contact__intro { position: static; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .solution { grid-template-columns: 1fr; gap: 12px; }
  .case__grid { grid-template-columns: 1fr; }
  .principles > * { grid-template-columns: 44px 1fr; }
  .principles > * p { grid-column: 2; }
  .principles .step__num { grid-column: 1; }
  .proof__stat { aspect-ratio: auto; padding: 44px 24px; }
  .phero__index { grid-template-columns: 1fr; }
  .phero__index a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cards--4, .cards--3, .cards--2, .form__row { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0 !important; }
  .office img { aspect-ratio: 4 / 3; border-radius: 0; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ====================================================================== */
/* Founder                                                                 */
/* ====================================================================== */
.founder { background: var(--cream); padding-bottom: clamp(72px, 10vw, 140px); }
.founder__photo, .founder .founder__photo { margin: 0 auto; max-width: calc(1280px + 240px); padding-inline: clamp(0px, 3vw, 48px); }
.founder__photo img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1116; object-fit: cover; object-position: 35% 30%; border-radius: clamp(0px, 2vw, 28px); }
.founder__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); padding-top: clamp(40px, 5vw, 72px); }
.founder h2 { margin-top: 18px; font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(32px, 3.4vw, 50px); }
.founder__quote { margin: 0 0 28px; padding-left: 22px; border-left: 2px solid var(--orange); }
.founder__quote p { font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.4; letter-spacing: -.015em; color: var(--teal); }

.cta-person { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.cta-person h2 { font-size: clamp(34px, 4.4vw, 64px); max-width: 14ch; margin-bottom: 26px; }
.cta-person__photo, .cta-person .cta-person__photo { margin: 0; justify-self: end; width: min(100%, 400px); }
.cta-person__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -50px rgba(14, 43, 43, .7); }
.cta-person__photo figcaption, .cta-person .cta-person__photo figcaption { margin: 16px 0 0; display: block; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: left; }
.cta-person__photo strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--teal); }
.cta-person__photo a { display: inline-flex; align-items: center; gap: 8px; margin: 8px 18px 0 0; color: var(--orange); font-weight: 600; text-decoration: none; }
.cta-person__photo a:hover { text-decoration: underline; text-underline-offset: 4px; }

.person { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; transition: border-color .2s; }
.person:hover { border-color: rgba(232, 102, 26, .55); }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.person strong, .person .person__name { display: block; margin: 0; font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.person small, .person .person__role { display: block; margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .founder__grid, .cta-person { grid-template-columns: 1fr; }
  .cta-person__photo { justify-self: start; width: min(100%, 360px); }
}
@media (max-width: 640px) {
  .founder__photo img { aspect-ratio: 4 / 5; object-position: 38% 0%; border-radius: 0; }
}

.linkedin { margin-top: 18px; }
a.linkedin, .linkedin a, .cta-person__photo a[href*="linkedin.com"] { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.linkedin svg { width: 18px; height: 18px; fill: #0a66c2; }
.linkedin a::before, .cta-person__photo a[href*="linkedin.com"]::before { content: ''; flex: none; width: 18px; height: 18px; background: #0a66c2; -webkit-mask: var(--icon-linkedin) center / contain no-repeat; mask: var(--icon-linkedin) center / contain no-repeat; }
a.linkedin:hover, .linkedin a:hover, .cta-person__photo a[href*="linkedin.com"]:hover { color: #0a66c2; }
.cta-person__links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cta-person__links a { margin-top: 0 !important; }
.cta-person__links .linkedin { color: var(--teal) !important; }
.contact__intro .linkedin { display: inline-block; margin-left: 14px; vertical-align: middle; margin-top: 32px; }

/* language switcher */
.cv-lang { display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; margin-right: -10px; }
.nav__links { margin-inline: auto; }
.cv-lang a { text-decoration: none; padding: 6px 7px; border-radius: 6px; opacity: .6; transition: opacity .2s, color .2s; }
.cv-lang a:hover { opacity: 1; color: var(--orange-2); }
.cv-lang a[aria-current] { opacity: 1; color: var(--orange); }
.nav .cv-lang + .nav__cta { margin-left: 0; }
.cv-lang--m { margin: 0; gap: 16px; font-size: 15px; letter-spacing: 0; font-weight: 500; }
.cv-lang--m a { padding: 0; }
.mnav__foot { display: grid; gap: 22px; justify-items: start; }
.foot__lang a { text-decoration: none; }
.foot__lang a[aria-current] { color: var(--teal); font-weight: 600; }
@media (max-width: 1000px) { .nav .cv-lang { display: none; } }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ====================================================================== */
/* Blog                                                                    */
/* ====================================================================== */
.phero--blog { padding-bottom: clamp(40px, 6vw, 72px); }
.cats { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--paper); transition: border-color .2s, background .2s, color .2s; }
.cats a:hover { border-color: rgba(232, 102, 26, .55); }
.cats a[aria-current] { background: var(--teal); color: var(--cream); border-color: var(--teal); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.posts--3 { grid-template-columns: repeat(3, 1fr); }
.posts__empty { font-family: var(--font-head); font-size: clamp(20px, 1.8vw, 26px); color: var(--muted); }
.post-card { min-width: 0; }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--teal); background: var(--cream); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.post-card__link:hover { border-color: rgba(232, 102, 26, .55); transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(14, 43, 43, .55); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.post-card__link:hover .post-card__media img { transform: scale(1.03); }
.post-card__ph { display: block; width: 100%; height: 100%; background: radial-gradient(500px 260px at 15% 0%, rgba(232, 102, 26, .35), transparent 60%), radial-gradient(circle at 1px 1px, rgba(244, 241, 234, .14) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--teal); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.post-card__meta span:first-child:not(:only-child) { color: var(--orange); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; padding-top: 1px; }
.post-card h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--orange); }
.post-card--featured { grid-column: 1 / -1; }
.post-card--featured .post-card__link { display: grid; grid-template-columns: 1.15fr .85fr; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 360px; }
.post-card--featured .post-card__body { padding: clamp(28px, 3.4vw, 52px); justify-content: center; }
.post-card--featured h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; }
.pager { margin-top: 48px; display: flex; justify-content: space-between; font-weight: 600; }
.pager a { color: var(--orange); text-decoration: none; }

/* article */
.phero--article { padding-bottom: clamp(36px, 5vw, 60px); }
.article__head { max-width: 860px; }
.article__back { display: inline-block; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.article__back:hover { color: var(--orange); }
.article__head .kicker a { text-decoration: none; }
.article__head h1 { margin-top: 18px; font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(34px, 4vw, 58px); max-width: none; }
.article__lede { margin-top: 20px; font-family: var(--font-head); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--teal-2); }
.article__meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.article__meta span:first-child { color: var(--teal); font-weight: 600; }
.article__cover { margin: 0 auto; max-width: calc(1280px + 240px); padding-inline: clamp(0px, 3vw, 48px); }
.article__cover img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: clamp(0px, 2vw, 28px); }
.sec--article { padding-top: clamp(40px, 5vw, 72px); }
.article__body { max-width: 760px; }
.article__foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.article__foot .linkedin { margin-top: 0; }
.author { display: flex; gap: 16px; align-items: flex-start; }
.author__img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.author strong { display: block; margin-top: 2px; font-family: var(--font-head); font-size: 18px; }
.author p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* WordPress content */
.entry { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.8; color: #2c3d3b; }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--font-head); color: var(--teal); letter-spacing: -.02em; line-height: 1.25; margin-top: 2em; }
.entry h2 { font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; }
.entry h3 { font-size: clamp(21px, 1.7vw, 24px); font-weight: 600; }
.entry a { color: var(--orange); text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--orange); }
.entry blockquote, .entry .wp-block-quote, .entry .wp-block-pullquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--orange); font-family: var(--font-head); font-size: 1.15em; line-height: 1.5; color: var(--teal); }
.entry blockquote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 14px; font-style: normal; color: var(--muted); }
.entry img, .entry video, .entry iframe { max-width: 100%; height: auto; border-radius: 14px; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.entry .alignwide { margin-inline: min(-8vw, -120px); max-width: none; }
.entry .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry .alignfull img { border-radius: 0; }
.entry pre, .entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.entry pre { background: var(--teal); color: var(--cream); padding: 20px 22px; border-radius: 14px; overflow-x: auto; }
.entry :not(pre) > code { background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.entry table { width: 100%; border-collapse: collapse; font-size: .92em; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

@media (max-width: 1000px) {
  .posts, .posts--3 { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured .post-card__link { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .entry .alignwide { margin-inline: 0; }
}
@media (max-width: 640px) {
  .posts, .posts--3 { grid-template-columns: 1fr; }
  .article__cover img { border-radius: 0; }
}

/* ====================================================================== */
/* Block content (pages edited in the block editor)                        */
/* ====================================================================== */
/* Buttons block: style "Orange" (default) or "Teal" */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero .wp-block-buttons { margin-top: clamp(20px, 3.6vh, 36px); }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 102, 26, .7);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.wp-block-button .wp-block-button__link::after { content: ''; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); background: var(--orange-2); color: #fff; }
.wp-block-button.is-style-teal .wp-block-button__link { background: var(--teal); color: var(--cream); box-shadow: none; }
.wp-block-button.is-style-teal .wp-block-button__link:hover { background: var(--teal-2); color: var(--cream); }

/* numbers and links that were inline elements before keep their old line height */
.card .card__num, .steps .step__num, .principles .step__num { line-height: normal; }
.prose p.text-link, p.text-link { margin-top: 18px; font-size: 16px; line-height: normal; }
.steps .step__num { line-height: 20px; }
.contact__intro p.linkedin { display: inline-flex; line-height: normal; }

/* images: the theme's figures set their own spacing */
.wp-block-image img { display: block; }
.person .person__photo { margin: 0; flex: none; }
.person__name a { text-decoration: none; color: inherit; }
.person__name a::after { content: ''; position: absolute; inset: 0; border-radius: 999px; } /* whole pill is the link */
.founder__quote.wp-block-quote { margin: 0 0 28px; }

/* the home page's map texts are read by the theme, never shown as blocks */
.system-map { display: none; }
