/* === Design tokens === */
:root {
  --bg: #f6f4ef;
  --bg-2: #efece4;
  --ink: #1a1a2e;
  --ink-soft: #3a3a52;
  --muted: #6b6b80;
  --line: #d8d4c8;
  --line-soft: #e7e3d8;
  --violet: #6c6db0;
  --violet-deep: #4f508c;
  --violet-soft: #d8d4e8;
  --cream: #faf8f3;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Geist', 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif; font-weight: 400; letter-spacing: -0.015em; }
.serif-italic { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--violet-deep);
}

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
  padding: 14px 40px;
}
.site-header.cover-mode { color: #fff; }
.site-header.cover-mode .nav a { color: rgba(255,255,255,0.85); }
.site-header.cover-mode .nav a:hover { color: #fff; }
.site-header.cover-mode .lang button { color: rgba(255,255,255,0.7); }
.site-header.cover-mode .lang button.active { color: #fff; }
.site-header.cover-mode .brand-text { color: #fff; }

.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-mark { width: 44px; height: 26px; display: block; }
.brand-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-text .last { font-style: italic; }

.nav {
  display: flex; align-items: center; gap: 36px;
}
.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--violet-deep); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; letter-spacing: 0.08em; }
.lang button {
  padding: 4px 6px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.lang button.active { color: var(--ink); }
.lang .sep { color: var(--muted); opacity: 0.5; }

.cta-mini {
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.cta-mini:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cover-mode .cta-mini:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* === Cover === */
.cover {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('assets/avion-ciudad.jpeg');
  will-change: transform;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.cover-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,25,0.45) 0%, rgba(10,10,25,0.15) 30%, rgba(10,10,25,0.35) 65%, rgba(10,10,25,0.85) 100%);
}
.cover-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 140px 56px 56px;
}

.cover-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.cover-meta .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #b8e986; margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 12px rgba(184, 233, 134, 0.6);
}

.cover-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 80px;
  align-items: end;
}
.cover-logo-block {
  display: flex; align-items: center; gap: 18px;
}
.cover-logo-block .mark { width: 80px; height: 48px; }
.cover-logo-block .name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}
.cover-logo-block .name .last { font-style: italic; opacity: 0.85; display: block; }
.cover-logo-block .tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-weight: 500;
}

.cover-text {
  max-width: 720px;
}
.cover-text h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.cover-text h1 em {
  font-style: italic;
  color: var(--violet-soft);
}
.cover-text p {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  font-weight: 300;
}

.cover-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.cover-cta:hover { background: var(--violet); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(108,109,176,0.45); }
.cover-cta .arrow { transition: transform 0.3s; }
.cover-cta:hover .arrow { transform: translateX(4px); }

.cover-scroll {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cover-scroll .line {
  width: 1px; height: 36px; background: rgba(255,255,255,0.4);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* === Section base === */
section { position: relative; }
.section {
  padding: 120px 56px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .label {
  display: flex; align-items: center; gap: 12px;
}
.section-head .label .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--violet);
}
.section-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--violet-deep); }

/* === About === */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px -30px rgba(79, 80, 140, 0.5);
}
.about-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(26,26,46,0.4), transparent 60%);
}
.about-portrait .mark-big {
  position: relative;
  z-index: 2;
  width: 60%;
  opacity: 0.95;
}
.about-portrait .corner {
  position: absolute;
  bottom: 24px; left: 24px;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.about-portrait .corner.tr {
  bottom: auto; top: 24px; left: auto; right: 24px;
}

.about-copy h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
  text-wrap: balance;
}
.about-copy h3 em { font-style: italic; color: var(--violet-deep); }
.about-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 540px;
}

.signature {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.signature-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}
.signature-role {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* === Values === */
.values {
  background: var(--bg-2);
  padding: 120px 56px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value {
  background: var(--bg-2);
  padding: 44px 36px 48px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background 0.3s, transform 0.3s;
  cursor: default;
}
.value:hover { background: var(--cream); }
.value-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--violet);
}
.value h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.value p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.value-icon { width: 28px; height: 28px; color: var(--violet); }

/* === Solutions === */
.solutions {
  background: var(--bg);
  padding: 120px 56px;
}
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.tab {
  padding: 18px 0;
  margin-right: 56px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.25s;
}
.tab .tab-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--violet);
  opacity: 0.6;
}
.tab.active { color: var(--ink); }
.tab.active .tab-num { opacity: 1; }
.tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.tab.active::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }

.tab-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: start;
}
.tab-intro h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tab-intro h3 em { font-style: italic; color: var(--violet-deep); }
.tab-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(26,26,46,0.18);
  border-color: var(--violet-soft);
}
.service-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.service-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,26,46,0.25) 100%);
}
.service-body {
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.service-eye {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet);
  font-weight: 500;
}
.service h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.service-arrow {
  margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--violet-deep);
  transition: gap 0.3s;
}
.service:hover .service-arrow { gap: 14px; }

/* === Why International === */
.why {
  background: var(--ink);
  color: var(--bg);
  padding: 130px 56px;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(108,109,176,0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(108,109,176,0.08), transparent 50%);
  pointer-events: none;
}
.why-inner { position: relative; z-index: 2; }
.why .section-head h2 { color: var(--bg); }
.why .section-head h2 em { color: var(--violet-soft); }
.why .section-head .label .num { color: var(--violet-soft); }
.why .eyebrow { color: var(--violet-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.why-item {
  background: var(--ink);
  padding: 40px 32px 44px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s;
}
.why-item:hover { background: #232340; }
.why-item .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--violet-soft);
  margin-bottom: 6px;
}
.why-item h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.why-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246,244,239,0.6);
}

/* === Contact === */
.contact {
  background: var(--bg);
  padding: 0;
  position: relative;
}
.contact-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 56px 110px;
  position: relative;
  overflow: hidden;
}
.contact-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(108,109,176,0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(108,109,176,0.10), transparent 50%);
  pointer-events: none;
}
.contact-banner-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
  max-width: 1400px;
  margin: 0 auto;
}
.contact-banner .eyebrow { color: var(--violet-soft); display: block; margin-bottom: 18px; }
.contact-banner h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--bg);
  text-wrap: balance;
}
.contact-banner h2 em { font-style: italic; color: var(--violet-soft); }
.contact-banner .lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(246,244,239,0.7);
  max-width: 520px;
  font-weight: 300;
  margin-top: 4px;
}

.contact-body {
  padding: 100px 56px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-card {
  display: flex; flex-direction: column;
  background: var(--bg);
}
.contact-card .eyebrow { display: block; margin-bottom: 16px; }
.contact-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.contact-card h3 em { font-style: italic; color: var(--violet-deep); }
.contact-card .intro {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

.margarita-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(216,212,232,0.35), rgba(246,244,239,0.4));
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 36px;
}
.margarita-card .avatar {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 24px -8px rgba(79,80,140,0.4);
}
.margarita-card .avatar svg { width: 42px; height: 26px; }
.margarita-card .info { flex: 1; min-width: 0; }
.margarita-card .name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.margarita-card .role {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-deep);
  margin-top: 4px;
  font-weight: 500;
}
.margarita-card .creds {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}

.quick-contacts {
  display: flex; flex-direction: column;
}
.qc-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 16px 18px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
}
.qc-row:last-child { border-bottom: 1px solid var(--line); }
.qc-row:hover { padding-left: 14px; background: var(--cream); border-color: var(--violet-soft); }
.qc-row .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
.qc-row:hover .ico { background: var(--violet); color: #fff; }
.qc-row .ico svg { width: 16px; height: 16px; }
.qc-row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qc-row .label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.qc-row .value {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qc-row .value.email { font-size: 16px; }
.qc-row .arrow { color: var(--muted); transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
.qc-row:hover .arrow { transform: translateX(4px); color: var(--violet-deep); }

.response-note {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.response-note .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6db07d;
  box-shadow: 0 0 0 0 rgba(109, 176, 125, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 176, 125, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(109, 176, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 176, 125, 0); }
}

/* Form */
.contact-form {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 36px 32px;
}
.contact-form .eyebrow { margin-bottom: 10px; display: block; }
.contact-form h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 14.5px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  resize: none;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 14px, calc(100% - 7px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.3s, transform 0.3s;
}
.btn-submit:hover { background: var(--violet-deep); transform: translateY(-1px); }

.success-card {
  text-align: center;
  padding: 40px 20px;
}
.success-card .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-card h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}
.success-card p { color: var(--ink-soft); font-size: 14px; }

/* === Footer === */
.footer {
  background: var(--ink);
  color: rgba(246,244,239,0.7);
  padding: 60px 56px 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h5 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer-mark { width: 72px; height: 42px; margin-bottom: 22px; opacity: 0.92; }
.footer-brand .name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer-brand .name em { font-style: italic; opacity: 0.8; }
.footer-brand p { font-size: 13.5px; max-width: 360px; line-height: 1.55; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .mono { letter-spacing: 0.05em; }

/* === Animations === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* === Responsive === */
@media (max-width: 1100px) {
  .section, .values, .solutions, .why, .contact { padding-left: 32px; padding-right: 32px; }
  .site-header, .site-header.scrolled { padding-left: 24px; padding-right: 24px; }
  .cover-inner { padding: 120px 32px 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .contact-body { grid-template-columns: 1fr; gap: 60px; }
  .contact-banner { padding: 80px 32px 90px; }
  .contact-banner-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-body { padding: 70px 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cover-bottom { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tab { margin-right: 32px; white-space: nowrap; }
  .tab-intro { grid-template-columns: 1fr; gap: 24px; }
}

/* ════════════════════════════════════════════════════════════
   v2 — Fluid spacing, mobile menu, responsive overhaul
   These rules come after the originals so they cascade win.
   ════════════════════════════════════════════════════════════ */

/* ── Fluid section padding (clamp keeps it sane across viewports) ── */
.section,
.values,
.solutions,
.why { padding: clamp(64px, 9vw, 130px) clamp(20px, 4.5vw, 56px); }
.contact-banner { padding: clamp(56px, 8vw, 110px) clamp(20px, 4.5vw, 56px) clamp(64px, 9vw, 120px); }
.contact-body { padding: clamp(56px, 8vw, 100px) clamp(20px, 4.5vw, 56px); }
.footer { padding: clamp(40px, 6vw, 64px) clamp(20px, 4.5vw, 56px) clamp(24px, 3vw, 36px); }
.site-header { padding: clamp(14px, 2vw, 22px) clamp(20px, 4.5vw, 40px); }
.site-header.scrolled { padding: clamp(10px, 1.4vw, 14px) clamp(20px, 4.5vw, 40px); }
.cover-inner { padding: clamp(90px, 13vw, 140px) clamp(20px, 4.5vw, 56px) clamp(36px, 5vw, 56px); }

/* ── Cover height: use small viewport unit to dodge mobile chrome ── */
.cover {
  height: 100vh;
  height: 100svh;
  min-height: clamp(560px, 92vh, 880px);
}

/* ── Smooth scroll behavior fallback for browsers without Lenis ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── Gate hover-only effects to devices that actually hover ── */
@media (hover: none) {
  .service:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }
  .service:hover .service-arrow { gap: 8px; }
  .value:hover { background: var(--bg-2); }
  .why-item:hover { background: var(--ink); }
  .qc-row:hover { padding-left: 0; background: transparent; border-color: var(--line); }
  .qc-row:hover .ico { background: var(--violet-soft); color: var(--violet-deep); }
  .qc-row:hover .arrow { transform: none; color: var(--muted); }
  .cover-cta:hover { background: #fff; color: var(--ink); transform: none; box-shadow: none; }
  .btn-submit:hover { background: var(--ink); transform: none; }
  .nav a:hover::after { transform: scaleX(0); }
}

/* ── Touch target sizing on small screens ── */
@media (max-width: 768px) {
  .qc-row { padding: 22px 16px 22px 0; }
  .lang button { padding: 8px 8px; }
  .cta-mini { padding: 11px 20px; }
}

/* ── Mobile menu toggle (hamburger) ── */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  margin-left: 4px;
  border-radius: 50%;
  transition: background 0.25s;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
  transform-origin: center;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; width: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Slide-in mobile nav ── */
.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav nav {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 24px 32px;
  width: 100%; max-width: 480px;
}
.mobile-nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav a .num {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-soft);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  min-width: 28px;
}
.mobile-nav .mobile-cta {
  margin-top: 18px;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  justify-content: center;
}
.mobile-nav .mobile-cta .num { display: none; }

/* ── Misc niceties for very small phones ── */
@media (max-width: 480px) {
  .brand-text { display: none; }
  .cover-meta { font-size: 9.5px; }
  .cover-meta > div + div { display: none; }
  .cover-logo-block .mark { width: 64px; height: 38px; }
  .cover-logo-block .name { font-size: 22px; }
  .cover-text h1 { font-size: clamp(30px, 9vw, 44px); }
  .cover-cta { padding: 14px 22px; font-size: 12.5px; }
  .section-head { margin-bottom: 48px; gap: 16px; }
  .about { padding-top: 70px; padding-bottom: 70px; }
  .about-portrait { aspect-ratio: 1/1; max-width: 360px; margin: 0 auto; }
  .signature { margin-top: 24px; padding-top: 20px; }
  .contact-banner h2 { font-size: clamp(36px, 11vw, 48px); }
  .contact-card h3 { font-size: 26px; }
  .contact-form { padding: 28px 22px; }
  .quick-contacts .qc-row .value { font-size: 17px; }
  .quick-contacts .qc-row .value.email { font-size: 13.5px; }
  .margarita-card { padding: 20px 20px; gap: 16px; }
  .margarita-card .avatar { width: 56px; height: 56px; }
  .margarita-card .avatar svg { width: 34px; height: 22px; }
  .margarita-card .name { font-size: 19px; }
  .footer-mark { width: 60px; height: 36px; }
  .footer-brand .name { font-size: 19px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; }
}

/* ── Tablet portrait ── */
@media (min-width: 641px) and (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ── Tablet landscape / small laptop: hide desktop nav, show hamburger ── */
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .cta-mini { display: none; }
  .header-right { gap: 14px; }
  .cover-bottom { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .cover-bottom .cover-cta { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .contact-banner-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-body { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .tabs { gap: 0; padding-bottom: 4px; }
  .tab { margin-right: 28px; padding: 16px 0; font-size: 13.5px; }
  .signature { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Large desktop polish: wider content rails ── */
@media (min-width: 1600px) {
  .section, .values, .solutions, .why { padding-left: clamp(56px, 6vw, 120px); padding-right: clamp(56px, 6vw, 120px); }
  .contact-banner, .contact-body { max-width: 1600px; }
}

/* ── Tilt cards need transform-style ── */
.service { transform-style: preserve-3d; will-change: transform; }
.service-img { transition: transform 0.5s ease; }

/* ── Lenis: html lock-up rules (recommended) ── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

