@property --orb-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

:root {
  --black:   #0a0906;
  --dark:    #1e1c18;
  --accent:  #c8513a;
  --accent-press: #b5452f;
  --deep:    #7a2318;
  --cream:   #e8e4dc;
  --light:   #f0efeb;
  --gray:    #928d84;
  --silver:  #9a9890;
  --serif:   'Instrument Serif', Georgia, serif;
  --sans:    'Outfit', sans-serif;
  --error:   #e07060;

  --accent-rgb: 200, 81, 58;
  --black-rgb:  10, 9, 6;
  --orb-core:   #120403;
  --orb-mid:    #e8784a;
  --orb-edge:   #f5b898;
  --logo-sheen: 232, 160, 130;

  --dur-fast: 250ms;
  --dur-std:  550ms;
  --dur-slow: 700ms;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  ease-out;
}

html { scroll-behavior: smooth; }
html.lang-ru { --sans: 'Montserrat', sans-serif; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  transition: background .4s, padding .4s, opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}

nav.scrolled {
  background: rgba(var(--black-rgb),.92);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
  border-bottom: 1px solid rgba(var(--accent-rgb),.15);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--light);
  letter-spacing: .02em;
  line-height: 1;
}
.logo-circle {
  display: inline-block;
  position: relative;
  width: .72em;
  height: .72em;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 .03em;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-circle::before {
  content: '';
  position: absolute;
  top: 14%; left: 16%;
  width: 44%; height: 40%;
  border-radius: 50%;
  background: rgba(var(--logo-sheen),.38);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ─── HERO ────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  top: 50%; right: 6%;
  transform: translateY(-50%);
  width: min(50vw, 960px);
  aspect-ratio: 1;
  border-radius: 50%;
  --orb-angle: 0deg;
  background:
    radial-gradient(circle at 50% 50%, rgba(245,185,150,.55) 0%, transparent 45%),
    conic-gradient(from var(--orb-angle),
      var(--orb-core)  0deg,
      var(--deep)      50deg,
      var(--accent)    100deg,
      var(--orb-mid)   140deg,
      var(--orb-edge)  170deg,
      var(--orb-mid)   200deg,
      var(--accent)    240deg,
      var(--deep)      290deg,
      var(--orb-core)  340deg,
      var(--orb-core)  360deg
    );
  opacity: 0;
  filter: blur(52px);
  animation: solarSpin 26s linear infinite, orbEnter 1.4s var(--ease-expo) 0.05s forwards;
  z-index: 1;
}
@keyframes orbEnter { to { opacity: .38; } }
@keyframes solarSpin {
  to { --orb-angle: 360deg; }
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 400;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 11rem);
  line-height: 1.05;
  color: var(--light);
  max-width: min(900px, 62vw);
  margin-bottom: 40px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1rem;
  color: var(--silver);
  max-width: min(500px, 38vw);
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gray), transparent);
  animation: scrollBounce 2s ease-in-out 1.2s infinite;
  transform-origin: top;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1);   opacity: .5; }
  50%       { transform: scaleY(.7); opacity: 1;  }
}

/* ─── PAGE HEADER (inner pages) ──────── */
.page-header {
  padding: 160px 60px 80px;
  background: var(--dark);
  border-bottom: 1px solid rgba(var(--accent-rgb),.12);
}
.page-header .section-label { margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  color: var(--light);
  line-height: 1.05;
  max-width: 700px;
}
.page-header h1 em { font-style: italic; color: var(--accent); }

/* ─── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  color: var(--light);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--accent-press); color: var(--light); }
.btn-ghost {
  border-color: rgba(var(--accent-rgb),.4);
  color: var(--silver);
}
.btn-ghost:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
/* Primary CTA — "Start a conversation". More prominent always, azulejo reveal on hover. */
.btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: var(--accent);
  color: var(--light);
  background: rgba(var(--accent-rgb),.12);
}
.btn-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url(assets/azulejo/azulejo-sol-ink.svg);
  background-size: 78px 78px;
  background-repeat: repeat;
  opacity: 0;
  transition: opacity .4s var(--ease-expo);
  pointer-events: none;
}
.btn-cta:hover { background: var(--accent-press); color: var(--light); border-color: var(--accent-press); }
.btn-cta:hover::before { opacity: .12; }

/* ─── SECTION BASE ─────────────────────── */
section { padding: 120px 60px; }
.section-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  color: var(--light);
  max-width: 640px;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-body {
  color: var(--silver);
  max-width: 520px;
  line-height: 1.75;
}
.divider {
  height: 1px;
  background: linear-gradient(to right, rgba(var(--accent-rgb),.3), transparent);
  margin: 0 60px;
}


/* ─── ABOUT ───────────────────────────── */
.about {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-right: 0;
}
.about .section-body + .section-body { margin-top: 16px; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.value-item {
  padding-top: 20px;
  border-top: 1px solid rgba(var(--accent-rgb),.15);
  position: relative;
  overflow: hidden;
}
.value-num {
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.value-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--light);
  margin-bottom: 6px;
}
.value-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.6;
}


/* ─── LEVELS ──────────────────────────── */
.levels { background: var(--black); }
.levels-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 16px;
  margin-top: 64px;
  align-items: stretch;
}
.level-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--accent-rgb),.3);
  flex-shrink: 0;
}
.level-connector svg { width: 22px; height: 22px; }
.level-connector svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.level-connector.fade-up.visible svg path:nth-child(1) { stroke-dashoffset: 0; transition-delay: 0.42s; }
.level-connector.fade-up.visible svg path:nth-child(2) { stroke-dashoffset: 0; transition-delay: 0.58s; }
.level-card {
  padding: 52px 40px;
  border: 1px solid rgba(var(--accent-rgb),.25);
  background: var(--dark);
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.level-card:hover { border-color: var(--accent); }
.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
}
.level-card-l1::before { background: rgba(var(--accent-rgb),.35); transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.30s; }
.level-card-l3::before { background: var(--accent);        transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.68s; }
.level-card.fade-up.visible::before { transform: scaleX(1); }

.levels-grid .level-card-l1.fade-up   { transition-delay: 0s; }
.levels-grid .level-connector.fade-up { transition-delay: 0.20s; }
.levels-grid .level-card-l3.fade-up   { transition-delay: 0.38s; }

.level-card-l2 { border-top: 3px solid var(--accent); }
.level-card-l3 {
  border-color: rgba(var(--accent-rgb),.5);
  background: radial-gradient(ellipse at 40% -10%, rgba(var(--accent-rgb),.11) 0%, var(--dark) 65%);
}
.level-card-l3 .level-num { color: rgba(var(--accent-rgb),.15); }
.level-card-l3::after {
  background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 30%), rgba(var(--accent-rgb),.26) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.level-card-l3:hover::after { opacity: 1; }
.level-num {
  font-size: 5rem;
  font-family: var(--serif);
  color: rgba(var(--accent-rgb),.08);
  position: absolute;
  top: 20px; right: 30px;
  line-height: 1;
}
.level-tag {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.level-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--light);
  margin-bottom: 16px;
  line-height: 1.1;
}
.level-desc {
  font-size: .85rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 28px;
}
.level-price {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
}

/* ─── SERVICES ────────────────────────── */
.services { background: var(--dark); }
.services-tabs {
  display: flex;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(var(--accent-rgb),.15);
}
.tab-btn {
  padding: 14px 32px;
  min-height: 44px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--silver); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

@keyframes tabEnterForward {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tabEnterBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tab-panel.tab-entering-forward { animation: tabEnterForward 0.42s var(--ease-expo) both; }
.tab-panel.tab-entering-back    { animation: tabEnterBack    0.42s var(--ease-expo) both; }

.l1-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.l1-sub-left { display: flex; flex-direction: column; }
.l1-sub-left .l1-tier-desc { margin-bottom: 0; }
.l1-sub-grid .l1-meta { margin-top: 28px; }
.l1-doc-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--light);
  margin-bottom: 20px;
  line-height: 1.2;
}
.included-list .il-extended::after {
  content: 'Extended';
  font-size: .52rem;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .6;
  margin-left: 10px;
  text-transform: uppercase;
  vertical-align: middle;
}
.lang-ru .included-list .il-extended::after {
  content: 'Расширенная';
}
.l1-tier-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 4px;
}
.inc-sep-label {
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: .35;
  padding: 6px 0 2px;
  border-bottom: none !important;
  gap: 0;
}
.inc-sep-label::before { display: none; }
.l1-info h3 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--light);
  margin-bottom: 20px;
}
.l1-info p {
  font-size: .88rem;
  color: var(--silver);
  line-height: 1.75;
  margin-bottom: 16px;
}
.l1-meta { margin-top: 28px; }
.l1-meta-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(var(--accent-rgb),.1);
  font-size: .82rem;
}
.l1-meta-item .key { color: var(--gray); min-width: 100px; }
.l1-meta-item .val { color: var(--cream); }
.included-list { list-style: none; }
.included-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb),.08);
  font-size: .84rem;
  color: var(--silver);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  position: relative;
}
@keyframes l1ItemReveal {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.included-list.l1-pending li { opacity: 0; }
.included-list.l1-revealed li {
  animation: l1ItemReveal var(--dur-std) var(--ease-expo) forwards;
}
.included-list.l1-revealed li:nth-child(1) { animation-delay:   0ms; }
.included-list.l1-revealed li:nth-child(2) { animation-delay:  80ms; }
.included-list.l1-revealed li:nth-child(3) { animation-delay: 160ms; }
.included-list.l1-revealed li:nth-child(4) { animation-delay: 240ms; }
.included-list.l1-revealed li:nth-child(5) { animation-delay: 320ms; }
.included-list.l1-revealed li:nth-child(6) { animation-delay: 400ms; }
.included-list.l1-revealed li:nth-child(7) { animation-delay: 480ms; }
.included-list.l1-revealed li:nth-child(8) { animation-delay: 560ms; }
.included-list.l1-revealed li:nth-child(9) { animation-delay: 640ms; }
.included-list li::before {
  content: '\2733\FE0E';
  color: var(--accent);
  font-size: .7rem;
  margin-top: 3px;
  flex-shrink: 0;
}





/* ─── L3 CUSTOM SYSTEM ─────────────────── */
.l3-custom { }
.l3-philosophy,
.l3-elements-title,
.l3-process,
.l3-custom > .btn { max-width: 900px; }
.l3-philosophy { margin-bottom: 48px; }
.l3-philosophy h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--light); margin-bottom: 20px; line-height: 1.2; }
.l3-philosophy p { font-size: .88rem; color: var(--silver); line-height: 1.75; margin-bottom: 12px; }
.l3-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 18px;
  border: 1px solid rgba(var(--accent-rgb),.35);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.l3-elements-title {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-std) var(--ease-expo), transform var(--dur-std) var(--ease-expo);
  transition-delay: 160ms;
}
.l3-custom.elements-revealed .l3-elements-title { opacity: 1; transform: none; }


.l3-process { margin-bottom: 40px; }
.l3-process-title {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 20px;
}
.l3-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process-step {
  padding: 20px;
  border: 1px solid rgba(var(--accent-rgb),.08);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-std) var(--ease-expo), transform var(--dur-std) var(--ease-expo);
}
.l3-process-steps.revealed .process-step { opacity: 1; transform: none; }
.l3-process-steps.revealed .process-step:nth-child(2) { transition-delay: 90ms; }
.l3-process-steps.revealed .process-step:nth-child(3) { transition-delay: 180ms; }
.l3-process-steps.revealed .process-step:nth-child(4) { transition-delay: 270ms; }
.step-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: rgba(var(--accent-rgb),.35);
  display: block;
  margin-bottom: 10px;
}
.process-step p { font-size: .78rem; color: var(--silver); line-height: 1.55; }

/* ─── FOR WHOM ─────────────────────────── */
.forwhom { position: relative; overflow: hidden; background: var(--black); }
/* Azulejo Estrela — stars, the communities you build. Ghost texture. */
.forwhom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(assets/azulejo/azulejo-estrela-ink.svg);
  background-size: 116px 116px;
  background-repeat: repeat;
  opacity: .08;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 90% at 100% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.forwhom > * { position: relative; z-index: 1; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.industry-card {
  padding: 32px;
  border: 1px solid rgba(var(--accent-rgb),.08);
  transition: border-color .3s, background .3s;
}
.industries-grid .industry-card:nth-child(2) { transition-delay: 55ms; }
.industries-grid .industry-card:nth-child(3) { transition-delay: 110ms; }
.industries-grid .industry-card:nth-child(4) { transition-delay: 165ms; }
.industries-grid .industry-card:nth-child(5) { transition-delay: 220ms; }
.industries-grid .industry-card:nth-child(6) { transition-delay: 275ms; }
.industry-card:hover { border-color: rgba(var(--accent-rgb),.2); background: rgba(var(--accent-rgb),.03); }
.ind-icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--silver);
  transition: color var(--dur-fast) ease;
}
.industry-card:hover .ind-icon { color: var(--accent); }
.ind-title { font-family: var(--serif); font-size: 1.1rem; color: var(--light); margin-bottom: 8px; }
.ind-desc { font-size: .78rem; color: var(--gray); line-height: 1.6; }

/* ─── CONTACT ─────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
/* Azulejo Maré — the tide. Reach out, the Atlantic of Porto. Ghost texture. */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(assets/azulejo/azulejo-mare-ink.svg);
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: .09;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 0% 100%, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse 75% 85% at 0% 100%, #000 0%, transparent 68%);
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(var(--accent-rgb),.03);
  border: 1px solid rgba(var(--accent-rgb),.18);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color .25s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(var(--accent-rgb),.55);
  background: rgba(var(--accent-rgb),.04);
  transition: border-color 0.22s ease, background 0.22s ease;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark); color: var(--cream); }
/* ─── MARQUEE STRIP ───────────────────── */
.marquee-strip {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(var(--accent-rgb),.12);
  border-bottom: 1px solid rgba(var(--accent-rgb),.12);
  background: var(--black);
}
.l3-marquee {
  margin: 40px -60px;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: mq-scroll 36s linear infinite;
}
.mq-item {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 0 28px;
}
.mq-sep {
  color: var(--accent);
  font-size: .72rem;
  flex-shrink: 0;
}
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CONTACT CHANNELS ────────────────── */
.contact-channels {
  display: flex;
  gap: 10px;
}
.channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(var(--accent-rgb),.25);
  background: var(--dark);
  color: var(--silver);
  text-decoration: none;
  transition: background .6s var(--ease-expo), border-color .6s var(--ease-expo), color .4s;
  flex-shrink: 0;
}
.channel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--light);
}

.contact-detail { padding: 20px 0; border-bottom: 1px solid rgba(var(--accent-rgb),.1); }

.contact-item { margin-top: 32px; }
.contact-item-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--light);
  text-decoration: none;
  line-height: 1.15;
  margin-top: 6px;
  transition: color .3s;
}
.contact-item-value:hover { color: var(--accent); }
.contact-direct-channels {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.contact-detail .label,
.contact-item .label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.contact-detail a, .contact-detail p { font-size: .95rem; color: var(--cream); text-decoration: none; transition: color .2s; }
.contact-detail a:hover { color: var(--accent); }

/* ─── FOOTER ──────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(var(--accent-rgb),.12);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  text-decoration: none;
  line-height: 1;
}
.footer-copy { font-size: .75rem; color: var(--gray); letter-spacing: .04em; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { white-space: nowrap; }
.footer-links a {
  font-size: .72rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── ANIMATIONS ──────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ─── PAGE TRANSITION ─────────────────── */
body { animation: pageIn var(--dur-slow) var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ─── HERO BG (photo + parallax) ─────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--accent-rgb),.06) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
  pointer-events: none;
}
.hero-orb { z-index: 1; }
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

/* Hero content stagger */
.hero-content .fade-up { transform: translateY(22px); }
.hero-content .fade-up.visible { transform: none; }
.hero-content .fade-up:nth-child(1) { transition-delay: .12s; }
.hero-content .fade-up:nth-child(2) { transition-delay: .28s; }
.hero-content .fade-up:nth-child(3) { transition-delay: .44s; }
.hero-content .fade-up:nth-child(4) { transition-delay: .60s; }
.hero .hero-scroll.fade-up { transition-delay: .76s; }


/* ─── ENHANCED CARD HOVERS ───────────── */
.level-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 30%), rgba(var(--accent-rgb),.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.level-card:hover::after { opacity: 1; }

.industry-card { position: relative; overflow: hidden; }
.industry-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transition: left .6s ease;
}
.industry-card:hover::before { left: 100%; }
.industry-card:hover .ind-icon { transform: scale(1.15); }
.ind-icon { display: inline-block; transition: transform .3s ease, color var(--dur-fast) ease; line-height: 0; }
.ind-icon svg { display: block; }
.industry-card--featured {
  border-color: rgba(var(--accent-rgb),.3);
  background: rgba(var(--accent-rgb),.06);
}
.industry-card--featured .ind-title { color: var(--accent); }
.industry-card--featured .ind-icon  { color: var(--accent); }


/* ─── MAGNETIC CARD TILT ─────────────── */

.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgba(var(--accent-rgb),.16) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.industry-card:hover::after { opacity: 1; }

.value-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgba(var(--accent-rgb),.1) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.value-item:hover::after { opacity: 1; }

.process-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgba(var(--accent-rgb),.14) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.process-step:hover::after { opacity: 1; }


/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 900px) {
  .l3-marquee { margin-left: -28px; margin-right: -28px; }
  nav { padding: 24px 28px; }
  nav.scrolled { padding: 16px 28px; }
  .nav-links { display: none; }
  section { padding: 80px 28px; }
  .hero { padding: 0 28px 60px; }
  .page-header { padding: 120px 28px 60px; }
  .hero-orb {
    width: min(88vw, 420px);
    top: 18%;
    right: 50%;
    transform: translateX(50%);
    opacity: .16;
    filter: blur(60px);
  }
  .about { grid-template-columns: 1fr; gap: 40px; padding-right: 28px; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .levels-grid { grid-template-columns: 1fr; gap: 24px; }
  .level-connector { display: none; }
  .l1-sub-grid { grid-template-columns: 1fr; }
  .l3-process-steps { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 22px; text-align: center; padding: 44px 24px; }
  .footer-links { justify-content: center; gap: 8px 20px; }
  .footer-links a { padding: 8px 6px; display: inline-block; }
  .forwhom::before { background-size: 96px 96px; }
  .contact::before { background-size: 100px 100px; }
  .divider { margin: 0 28px; }
  /* герой: снять десктопные узкие ограничения ширины, дать тексту дышать */
  .hero h1 { max-width: 90vw; }
  .hero-sub { max-width: min(460px, 86vw); }
}
@media (max-width: 560px) {
  .industries-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); max-width: 94vw; }
  .hero-sub { max-width: 94vw; font-size: .95rem; }
  .hero { min-height: 75vh; }
  .l3-process-steps { grid-template-columns: 1fr; }
  .marquee-strip { animation-duration: 22s; }
  .tab-btn { padding: 12px 18px; }
  .level-name { font-size: 1.4rem; }
}
@media (max-width: 375px) {
  .l3-marquee { margin-left: -16px; margin-right: -16px; }
  section { padding: 80px 16px; }
  nav { padding: 24px 16px; }
  nav.scrolled { padding: 16px 16px; }
  .divider { margin: 0 16px; }
  .hero { padding: 0 16px 60px; }
  .nav-drawer { padding: 80px 28px 40px; }
  .nav-drawer ul a { font-size: 1.5rem; }
  .nav-drawer ul { gap: 20px; }
}


/* ─── FOUNDERS' EXPERIENCE ───────────── */
.experience { background: var(--black); }
.experience-intro { max-width: 560px; margin-bottom: 64px; }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.exp-item { overflow: hidden; cursor: default; }
.exp-item-img {
  position: relative;
  overflow: hidden;
}
.exp-item-img > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(.82) contrast(1.05) saturate(.75);
  transition: filter .5s ease, transform .5s ease;
}
.exp-item:hover .exp-item-img > img {
  filter: brightness(.45) saturate(.3);
  transform: scale(1.04);
}
.exp-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity .4s ease;
  background: color-mix(in srgb, var(--black) 82%, transparent);
}
/* Десктоп (есть наведение): лого/инфо по hover */
@media (hover: hover) {
  .exp-item:hover .exp-item-overlay { opacity: 1; }
}
/* Тач (нет наведения): появляются при листании, когда карточка в зоне видимости */
@media (hover: none) {
  .exp-item.in-view .exp-item-overlay { opacity: 1; }
  .exp-item.in-view .exp-item-img > img { filter: brightness(.45) saturate(.3); }
}
.exp-logo-dark,
.exp-logo-light,
.exp-logo-white {
  width: 130px;
  height: 65px;
  object-fit: contain;
}
.exp-logo-light {
  filter: brightness(0) invert(1);
}
.exp-item-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--light);
  letter-spacing: .06em;
  font-weight: 400;
  text-align: center;
  margin: 0;
}
.exp-item-service {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 400;
  text-align: center;
  padding: 0 16px;
  margin: 0;
}

@media (max-width: 900px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .exp-grid { grid-template-columns: 1fr; }
  .exp-item-img > img { height: 220px; }
}

/* ─── SCROLLBAR ──────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),.35); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── HAMBURGER ──────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform .35s ease, opacity .25s ease, transform .35s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── NAV OVERLAY ────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--black-rgb),.65);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.visible { opacity: 1; }

/* ─── NAV DRAWER ─────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(80vw, 300px);
  height: 100%;
  background: var(--dark);
  border-left: 1px solid rgba(var(--accent-rgb),.15);
  z-index: 160;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 44px 60px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.open { transform: none; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 36px; }
.nav-drawer ul a {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
  display: block;
  white-space: nowrap;
}
.nav-drawer ul a:hover { color: var(--accent); }

/* ─── ABOUT PAGE ─────────────────────── */
.about-img-wrap { overflow: hidden; align-self: stretch; }
.about-img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center top; display: block; }
/* Azulejo wash — a faint pattern that melts in from the outer corner. Light, natural. */
.about-azulejo {
  width: 100%; height: 100%; min-height: 560px;
  background-image: url(assets/azulejo/azulejo-sol-ink.svg);
  background-size: 168px 168px;
  background-repeat: repeat;
  opacity: .12;
  filter: saturate(.92);
  -webkit-mask-image:
    linear-gradient(to left, #000 0%, #000 44%, rgba(0,0,0,.28) 86%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 15%, #000 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, #000 0%, #000 44%, rgba(0,0,0,.28) 86%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 15%, #000 85%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
}
.about-cta { background: var(--dark); padding: 120px 60px; text-align: center; }
.about-cta-title { max-width: 520px; margin: 0 auto 40px; }
.label-optional { font-size: .75em; color: var(--gray); font-weight: 300; }

@media (max-width: 900px) {
  .about-img { min-height: 360px; }
  /* Азулежу на мобилке — тонкая горизонтальная полоса-текстура, а не пустой блок */
  .about-azulejo {
    min-height: 104px;
    background-size: 110px 110px;
    background-position: center;
    opacity: .18;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .about-cta { padding: 80px 28px; }
}
@media (max-width: 560px) {
  .about-img { min-height: 260px; }
  .about-azulejo { min-height: 86px; background-size: 96px 96px; }
  .about-cta { padding: 60px 20px; }
}

/* ─── REDUCED MOTION ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .fade-up          { opacity: 1; transform: none; }
  .included-list li { opacity: 1; }
  .tab-panel.tab-entering-forward,
  .tab-panel.tab-entering-back { animation: none; }
  .included-list.l1-revealed li { animation: none; }
  .process-step     { opacity: 1; transform: none; transition: none; }
  .l3-elements-title { opacity: 1; transform: none; transition: none; }
  .hero-orb         { animation: none; opacity: .38 !important; }
  .hero-scroll::after { animation: none; }
  .hero-content .fade-up { transform: translateY(0); }
  .level-card::before { transition: none; transform: scaleX(1); }
  .level-connector svg path { transition: none; stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .level-card, .industry-card, .value-item, .process-step {
    will-change: auto;
    transform: none !important;
  }
  .level-card::after, .industry-card::after, .value-item::after, .process-step::after {
    display: none;
  }
}

/* ─── SKIP LINK ──────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--light);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ─── FOCUS VISIBLE ─────────────────── */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}
.tab-btn:focus-visible { outline-offset: -2px; }

/* form error text */
.form-error-text { font-size: .85rem; color: var(--error); }

/* ─── LOGO SIZE OVERRIDES ────────────── */
.exp-logo-xl {
  width: 200px;
  height: 100px;
}
.exp-logo-xxl {
  width: 240px;
  height: 120px;
}

/* ─── PUZZLE MOBILE ──────────────────── */
@media (max-width: 560px) {
  .piece-label-inner { font-size: 9px; }
}

/* ─── HAMBURGER SHOW ─────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

/* ─── LARGE SCREENS ──────────────────── */
@media (min-width: 1800px) {
  .hero { padding: 0 100px 100px; }
}

/* ─── NAV ACTIONS ────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── LANG TOGGLE ────────────────────── */
.lang-toggle {
  background: none;
  border: 1px solid rgba(var(--accent-rgb),.35);
  color: var(--silver);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  padding: 14px 16px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Cookie consent banner (нижняя плашка, острые углы по бренду) ───── */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--dark);
  border-top: 1px solid rgba(var(--accent-rgb), .3);
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  font-family: var(--sans);
  animation: cookieIn .45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes cookieIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
#cookie-banner .cookie-text {
  flex: 1 1 auto;
  max-width: 620px;
  margin: 0;
  color: var(--cream);
  font-size: .8rem;
  line-height: 1.45;
}
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
#cookie-banner .cookie-btn {
  cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), .4);
  background: transparent;
  color: var(--silver);
  padding: 10px 22px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  min-height: 42px;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
#cookie-banner .cookie-decline:hover { border-color: var(--accent); color: var(--accent); }
#cookie-banner .cookie-accept { border-color: var(--accent); color: var(--light); }
#cookie-banner .cookie-accept:hover { background: var(--accent); }
@media (max-width: 560px) {
  #cookie-banner { padding: 14px 18px; gap: 12px; }
  #cookie-banner .cookie-text { flex-basis: 100%; text-align: center; }
  #cookie-banner .cookie-actions { width: 100%; }
  #cookie-banner .cookie-btn { flex: 1 1 0; }
}

