@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0e0e10;
  --ink-2: #1a1a1f;
  --paper: #ffffff;
  --paper-2: #f4f3f0;
  --muted: #6b6b73;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --line: rgba(14, 14, 16, 0.12);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  color: var(--paper);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
nav a { text-decoration: none; opacity: 0.8; }
nav a:hover { opacity: 1; }
nav .lang { border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
@media (max-width: 720px) { nav a:not(.lang) { display: none; } }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 120px 0 110px; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.35), transparent 65%);
  pointer-events: none;
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(30px, 7vw, 88px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em;
  margin: 18px 0 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .line { white-space: nowrap; }
.rotate .scr { opacity: 0.45; }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 52ch; opacity: 0.85; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 700; padding: 16px 28px; border-radius: 999px; transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn::after { content: "\2192"; }

/* Stats */
.stats { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,0.1); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 36px 0; }
.stat b { display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.stat span { opacity: 0.7; font-size: 15px; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: 1fr; } .stat { padding: 20px 0; } }

/* Sections */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 44ch; font-size: 18px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 32px; }
.service .num { color: var(--accent); font-weight: 700; font-size: 14px; }
.service h3 { font-size: 22px; font-weight: 700; margin: 14px 0 10px; letter-spacing: -0.01em; }
.service p { color: var(--muted); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:not(:nth-child(3n+1)) { padding: 28px 0; border-right: none !important; }
}

/* Cases */
.cases-section { background: var(--paper-2); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--paper); border-radius: 18px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.case .tag { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.case h3 { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.case p { color: var(--muted); }
.case .result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

/* Logos */
.logos-section { padding: 80px 0; background: var(--paper-2); }
.logos-section h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); max-width: none; margin-bottom: 40px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: 44px 32px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } .logo { max-width: 100%; } }
.logo {
  display: block; height: 30px; aspect-ratio: var(--ar, 3);
  background-color: var(--ink); opacity: 0.4; transition: opacity 0.2s;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.logo:hover { opacity: 0.9; }
.logos.anim { grid-template-columns: repeat(var(--n), 1fr); }
.slot { display: flex; align-items: center; justify-content: center; height: 96px; width: 100%; perspective: 600px; }
.slot > .logo { transition: transform 0.3s ease, opacity 0.3s ease; max-width: 100%; }
.slot.out > .logo { transform: rotateX(90deg); opacity: 0; }
.logo-img { height: 30px; width: auto; filter: grayscale(1); opacity: 0.45; transition: opacity 0.2s; }
.logo-img:hover { opacity: 0.9; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.person h3 { font-size: 22px; font-weight: 700; }
.person .role { color: var(--accent); font-weight: 600; margin: 4px 0 14px; }
.person p { color: var(--muted); }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--accent); color: var(--accent-ink); }
.contact h2 { max-width: 18ch; }
.contact p { font-size: 20px; margin-top: 18px; max-width: 48ch; opacity: 0.95; }
.contact .mail {
  display: inline-block; margin-top: 36px; font-size: clamp(26px, 4vw, 44px); font-weight: 800;
  text-decoration: none; border-bottom: 3px solid currentColor; letter-spacing: -0.02em;
}

/* Linked service cards on home */
a.service { text-decoration: none; color: inherit; transition: background 0.2s; }
a.service:hover { background: var(--paper-2); }
a.service:hover h3 { color: var(--accent); }
.section-head p a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Smaller hero for sub pages */
.hero-sm { padding: 96px 0 80px; }
.hero-sm h1 { font-size: clamp(38px, 6vw, 72px); max-width: 18ch; }

/* Dark band + pillars */
section.dark { background: var(--ink); color: var(--paper); }
section.dark .section-head p { color: rgba(255,255,255,0.7); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillars > div { border-top: 2px solid var(--accent); padding-top: 22px; }
.pillars h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pillars p { opacity: 0.75; }
.pillars.light p { color: var(--muted); opacity: 1; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

.pillars.four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 1100px) { .pillars.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .pillars.four { grid-template-columns: 1fr; } }

/* Service detail page */
.detail-list { padding-top: 40px; }
.detail { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.detail-head .num { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.detail-head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.detail .lead { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.detail ul { list-style: none; }
.detail li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); }
.detail li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 2px; background: var(--accent); }
.done { margin-top: 28px; background: var(--paper-2); border-radius: 14px; padding: 22px 26px; }
.done b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.done li { border-bottom: none; color: var(--muted); padding: 5px 0 5px 26px; }
.done li::before { top: 14px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; } }

/* Values (about page) */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.value { padding: 34px 0; border-top: 1px solid var(--line); }
.value .num { color: var(--accent); font-weight: 700; font-size: 14px; }
.value h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin: 10px 0 10px; }
.value p { color: var(--muted); font-size: 17px; max-width: 52ch; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job { background: var(--paper); border-radius: 18px; padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.job .tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.job h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.job p { color: var(--muted); }
.job b { margin-top: 8px; font-size: 14px; }
.job ul { padding-left: 18px; color: var(--muted); font-size: 15px; }
.job li { margin: 4px 0; }
@media (max-width: 1000px) { .jobs { grid-template-columns: 1fr; } }
.jobs-teaser { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.jobs-teaser .section-head { margin-bottom: 0; }

/* White button on the orange CTA band */
.btn-light { background: var(--paper); color: var(--ink); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.contact-side h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 10px; }
.contact-side h3 + * { margin-bottom: 40px; }
.mail-dark { font-size: 26px; font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--accent); display: inline-block; }
.contact-side ol { padding-left: 20px; color: var(--muted); }
.contact-side li { margin: 8px 0; }
.form { background: var(--paper-2); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .btn { margin-top: 6px; align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form .fine { font-size: 13px; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; }
.form-ok, .form-err { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-ok { background: #e7f6ec; color: #145c2e; }
.form-err { background: #fdeaea; color: #8a1c1c; }
@media (max-width: 900px) { .contact-grid, .form .row { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.6); font-size: 14px; padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .brand { color: var(--paper); font-size: 18px; }
