/* ============================================================
   Mesh — meshtek.com.tr
   Editorial design system. Restraint over decoration.
   ============================================================ */

@import url('/assets/fonts/fonts.css');

:root {
  --bone:          #F4EBD8;
  --bone-deep:     #ECE2CC;
  --paper:         #FAF6EE;
  --charcoal:      #1A1A1A;
  --charcoal-mute: #5C5852;
  --rule:          rgba(26, 26, 26, 0.12);
  --rule-soft:     rgba(26, 26, 26, 0.06);
  --saffron:       #E5A823;
  --saffron-deep:  #C68C18;
  --terracotta:    #8B3E2F;

  --maxw: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
ul, ol { list-style: none; }

/* ---------- Body ---------- */
body {
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Paper grain overlay (whole page) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--charcoal); color: var(--bone);
  padding: 10px 16px; border-radius: 4px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--charcoal);
}
.nav-brand::after { content: '.'; color: var(--saffron); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--charcoal);
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switch a {
  padding: 4px 6px;
  border-radius: 3px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch a[aria-current="true"] {
  color: var(--charcoal);
  font-weight: 600;
}
.lang-switch a:not([aria-current="true"]):hover { color: var(--charcoal); }
.lang-switch span { opacity: 0.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  background: var(--charcoal);
  color: var(--bone);
  border: 1px solid var(--charcoal);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--bone); }
.btn--lg { padding: 14px 28px; font-size: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 49;
  padding: 100px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.mobile-drawer-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s var(--ease), color 0.2s var(--ease);
}
.mobile-drawer-links a:active { padding-left: 8px; color: var(--terracotta); }
.mobile-drawer-meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-mute);
}
.mobile-drawer-meta .lang-switch { font-size: 12px; }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 12vw, 140px) 0 clamp(60px, 10vw, 100px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: end;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--saffron-deep);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  max-width: 540px;
  color: var(--charcoal-mute);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* At-a-glance card */
.glance-card {
  background: var(--bone-deep);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--rule-soft);
}
.glance-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--saffron-deep);
  margin-bottom: 20px;
}
.glance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
}
.glance-row:last-child { border-bottom: none; }
.glance-row .label { color: var(--charcoal-mute); letter-spacing: 0.05em; }
.glance-row .val { color: var(--charcoal); font-weight: 500; text-align: right; }

/* ---------- Section ---------- */
.section {
  padding: clamp(60px, 9vw, 110px) 0;
  border-top: 1px solid var(--rule);
}
.section--no-rule { border-top: none; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 5vw, 60px);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--charcoal-mute);
  max-width: 720px;
  margin-bottom: 60px;
  border-left: 2px solid var(--saffron);
  padding-left: clamp(20px, 2.5vw, 28px);
}

/* ---------- Three things grid ---------- */
.three-things {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: thing;
}
.thing {
  padding: clamp(28px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.thing::before {
  counter-increment: thing;
  content: "0" counter(thing);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  margin-bottom: 24px;
}
.thing:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(26,26,26,0.18); }
.thing h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.thing p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal-mute);
}

/* ---------- Closing CTA block ---------- */
.cta-block {
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: left;
  border-top: 1px solid var(--rule);
}
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  max-width: 18ch;
}
.cta-block h2 em { font-style: italic; color: var(--terracotta); }
.cta-block p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--charcoal-mute);
  max-width: 540px;
  margin-bottom: 36px;
}

/* ---------- About: timeline ---------- */
.story p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 680px;
  margin-bottom: 24px;
}
.story p:last-child { margin-bottom: 0; }

.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--saffron-deep);
  font-weight: 500;
}
.timeline-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--charcoal);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.principles li {
  padding: 24px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding-left: 28px;
}
.principles li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--saffron-deep);
  font-style: normal;
  font-weight: 500;
}

/* ---------- Products ---------- */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.product-block:first-of-type { border-top: none; }
.product-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  margin-bottom: 16px;
}
.product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.product-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4;
  color: var(--charcoal-mute);
  margin-bottom: 24px;
}
.product-body {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--charcoal-mute);
  margin-bottom: 32px;
  max-width: 580px;
}
.product-features {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.product-features li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 14px;
}
.product-features li::before {
  content: "→";
  color: var(--saffron-deep);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.product-list {
  display: flex;
  flex-direction: column;
}
.product-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
}
.product-list li:last-child { border-bottom: none; }
.product-list strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
  color: var(--charcoal);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.product-list span { color: var(--charcoal-mute); }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}
.cta-link:hover { gap: 12px; color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ---------- Services ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.focus-cell {
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
  transition: background 0.3s var(--ease);
}
.focus-cell:hover { background: var(--paper); }
.focus-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  margin-bottom: 16px;
}
.focus-cell h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.focus-cell p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal-mute);
}

.how-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.how-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--charcoal);
  display: flex;
  gap: 16px;
}
.how-list li::before {
  content: "—";
  color: var(--saffron-deep);
  font-weight: 500;
}

/* ---------- Insights ---------- */
.empty-state {
  padding: clamp(60px, 8vw, 100px) 0;
  max-width: 580px;
}
.empty-state p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--charcoal-mute);
  margin-bottom: 32px;
}
.subscribe {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 8px;
  max-width: 480px;
}
.subscribe input {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  background: transparent;
}
.subscribe input::placeholder { color: var(--charcoal-mute); }
.subscribe button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--charcoal);
  color: var(--bone);
  border-radius: 4px;
  transition: background 0.2s var(--ease);
}
.subscribe button:hover { background: var(--terracotta); }

/* ---------- Careers ---------- */
.role-empty {
  padding: clamp(40px, 6vw, 60px);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--charcoal-mute);
  text-align: center;
  margin-bottom: 60px;
}
.profile-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.profile-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4;
  color: var(--charcoal);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.careers-note {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--charcoal-mute);
  max-width: 640px;
  border-left: 2px solid var(--saffron);
  padding-left: 24px;
}
.careers-note a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  font-style: normal;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-mute);
}
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--saffron);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; padding: 14px 0; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231A1A1A' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field-error {
  color: var(--terracotta);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-bottom-color: var(--terracotta);
}
.form-msg {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--charcoal);
  border-left: 2px solid var(--saffron);
  padding: 4px 0 4px 20px;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg.is-error { color: var(--terracotta); border-left-color: var(--terracotta); }

.contact-aside {
  background: var(--bone-deep);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-aside h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  margin-bottom: 4px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-mute);
}
.contact-row .val {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.5;
  word-break: break-word;
}
.contact-row a { border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.contact-row a:hover { border-bottom-color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(60px, 7vw, 100px) 0 32px;
  border-top: 1px solid var(--charcoal);
  background: var(--bone);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--charcoal-mute);
  margin-bottom: 20px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.footer-brand::after { content: '.'; color: var(--saffron); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--charcoal-mute);
  margin-bottom: 24px;
  max-width: 240px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--charcoal-mute);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { color: var(--charcoal); border-color: var(--charcoal); transform: translateY(-2px); }
.footer-social svg { width: 14px; height: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}
.footer-col a:hover { border-bottom-color: var(--charcoal); }

.footer-strip {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-mute);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--charcoal); }

/* ---------- 404 ---------- */
.error-page {
  padding: clamp(80px, 14vw, 200px) 0 clamp(60px, 10vw, 140px);
  text-align: left;
  max-width: 720px;
}
.error-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--terracotta);
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.error-page p {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--charcoal-mute);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: clamp(12px, 2vw, 24px);
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  max-width: 560px;
  background: var(--charcoal);
  color: var(--bone);
  padding: 20px 24px;
  border-radius: 6px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.cookie-banner.is-visible { display: flex; transform: translateY(0); opacity: 1; }
.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  color: var(--bone);
}
.cookie-banner-actions { display: flex; gap: 8px; }
.cookie-btn {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.cookie-btn--accept { background: var(--saffron); color: var(--charcoal); }
.cookie-btn--decline { background: transparent; color: var(--bone); border: 1px solid var(--bone); }
.cookie-btn:hover { opacity: 0.85; }

/* ---------- Legal pages ---------- */
.legal-page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  max-width: 760px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-mute);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 14px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.legal-page p, .legal-page li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 0; }
.legal-page li { padding-left: 22px; position: relative; list-style: none; }
.legal-page li::before { content: "—"; position: absolute; left: 0; color: var(--saffron-deep); }
.legal-page strong { font-weight: 600; }
.legal-page a { border-bottom: 1px solid var(--charcoal); }

/* ---------- Reveal animation (one per page max) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Selection ---------- */
::selection { background: var(--saffron); color: var(--charcoal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .three-things { grid-template-columns: 1fr; }
  .product-block { grid-template-columns: 1fr; gap: 32px; }
  .product-aside { position: static; }
  .focus-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --pad-x: 22px; }

  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }

  .timeline-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .timeline-year { font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-strip { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .footer-legal { gap: 16px; }

  .cookie-banner { padding: 16px 18px; gap: 14px; }
  .cookie-banner p { font-size: 12.5px; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .section-title { font-size: clamp(30px, 9vw, 40px); }
  .btn { padding: 14px 22px; }
}

/* iOS safe-area insets */
@supports (padding: max(0px)) {
  .shell { padding-left: max(var(--pad-x), env(safe-area-inset-left)); padding-right: max(var(--pad-x), env(safe-area-inset-right)); }
  .cookie-banner { bottom: max(clamp(12px, 2vw, 24px), env(safe-area-inset-bottom)); }
}
