/* Railway Engineering — visual identity taken from the 2026 corporate presentation:
   #000000 / #121212 / #FFDE59 / #FFFFFF / #E8E8E8 / #737373, Telegraf Regular + Bold.
   Archivo stands in until the Telegraf files are added to /fonts — then uncomment:
   @font-face { font-family: "Telegraf"; src: url("fonts/Telegraf-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
   @font-face { font-family: "Telegraf"; src: url("fonts/Telegraf-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; } */

:root {
  --black: #000000;
  --ink: #121212;
  --yellow: #FFDE59;
  --white: #FFFFFF;
  --text: #E8E8E8;
  --muted: #9A9A9A;
  --rule: #737373;
  --rule-soft: #2A2A2A;
  --font: "Telegraf", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 10vw, 160px); }

/* ---------- Type ---------- */

.display {
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: var(--white);
}
.display span, .display b { display: block; }
.display b { font-weight: 700; }
.display--hero { font-size: clamp(46px, 8.4vw, 136px); }
.display--lg { font-size: clamp(44px, 6.4vw, 104px); }
.display--inline span, .display--inline b { display: inline; }

.label {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.label--tri { position: relative; padding-left: 22px; }
.label--tri .tri { position: absolute; left: 0; top: 2px; }

.lead { font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -.015em; color: var(--white); }
.prose p + p, .about__body p + p { margin-top: 1.2em; }

/* ---------- Motifs from the deck ---------- */

.bar { display: block; height: 8px; background: var(--yellow); }
.bar--v { width: 10px; height: auto; }

.tri { display: inline-block; flex: none; width: 13px; height: 13px; background: var(--yellow); }
.tri--bl { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.tri--br { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tri--tl { clip-path: polygon(0 0, 100% 0, 0 100%); }
.tri--tr { clip-path: polygon(0 0, 100% 0, 100% 100%); }

.panel { background: var(--ink); }
.panel--yellow { background: var(--yellow); color: var(--ink); }

.photo { position: relative; overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }

/* ---------- Buttons ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow::before { background: var(--white); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--ghost::before { background: var(--yellow); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1px var(--yellow); }
.btn--sm { padding: 12px 18px; font-size: 12px; }

/* ---------- Header ---------- */

.header { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--rule-soft); }
.header__inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); height: var(--header-h); padding-inline: var(--gutter); }

.logo { color: var(--white); font-size: 19px; letter-spacing: -.045em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--text); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--black); visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule-soft); font-size: clamp(30px, 8vw, 56px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; text-decoration: none; color: var(--white); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu__nav a small { font-size: 12px; font-weight: 700; color: var(--yellow); letter-spacing: .02em; }
.menu__nav .menu__contact { font-weight: 700; color: var(--yellow); }
.menu.is-open .menu__nav a, .menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .06s); }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu__foot a { text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Hero ---------- */

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100svh; padding-top: var(--header-h); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.14); animation: heroZoom 2.2s var(--ease) forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 42%, rgba(0,0,0,.38) 100%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8vw, 110px); }
.hero__label { opacity: 0; animation: fadeIn .8s var(--ease) .1s forwards; margin-bottom: clamp(24px, 3vw, 44px); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(112%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.18s + var(--i) * .11s); }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
.hero__lead { max-width: 560px; margin-top: clamp(28px, 3.2vw, 44px); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; color: var(--text); opacity: 0; animation: fadeIn .9s var(--ease) .7s forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 44px); opacity: 0; animation: fadeIn .9s var(--ease) .9s forwards; }

.hero__bar { transform: scaleX(0); transform-origin: left; animation: grow 1.4s var(--ease) .9s forwards; }
@keyframes grow { to { transform: none; } }
.hero__meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fadeIn .8s var(--ease) 1.3s forwards; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.scroll-hint i { position: relative; width: 40px; height: 1px; background: var(--rule); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: translateX(-100%); animation: slideLine 1.8s var(--ease) infinite; }
@keyframes slideLine { 40% { transform: none; } 100% { transform: translateX(100%); } }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; background: var(--yellow); color: var(--ink); padding-block: 15px; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.marquee .tri { background: var(--ink); width: 11px; height: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */

.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 32px clamp(40px, 6vw, 96px); margin-bottom: clamp(44px, 5vw, 80px); }
.section-head .label { margin-bottom: 22px; }
.section-head__intro { max-width: 520px; font-size: clamp(16px, 1.2vw, 19px); color: var(--muted); padding-bottom: .4em; }

/* ---------- About ---------- */

.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 8vw, 128px); }
.about__side .label { margin-bottom: 22px; }
.about__photo { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 4 / 5; max-width: 480px; }
.about__photo img { object-position: 50% 30%; }
.about__photo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--yellow); z-index: 1; }
.about__body { padding-top: clamp(8px, 1.2vw, 20px); }
.about__body .lead { margin-bottom: 1.4em; }
.about__who { margin-top: clamp(36px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule-soft); }
.about__who .label { margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { padding: 10px 16px; border: 1px solid var(--rule); font-size: 14px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: var(--white); }
.chips--yellow li { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.chips--yellow li::before { content: ""; display: inline-block; width: .4em; height: .75em; margin: 0 .75em .1em .1em; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* ---------- Services ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 460px; padding: 30px 28px 32px; background: var(--ink); color: var(--text); overflow: hidden; transition: color .45s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.card:hover::before, .card:focus-within::before { transform: scaleY(1); }
.card:hover, .card:focus-within { color: var(--ink); }
.card__num { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--yellow); transition: color .45s var(--ease); }
.card h3 { margin: clamp(56px, 6vw, 96px) 0 20px; font-size: clamp(22px, 1.75vw, 28px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--white); transition: color .45s var(--ease); }
.card p { font-size: 16px; line-height: 1.45; }
.card p + p { margin-top: 1em; }
.card:hover .card__num, .card:hover h3, .card:focus-within .card__num, .card:focus-within h3 { color: var(--ink); }
.card__link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 32px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--yellow); transition: color .45s var(--ease); }
.card:hover .card__link, .card:focus-within .card__link { color: var(--ink); }
.card__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; transition: transform .4s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Mission & values ---------- */

.mission { background: var(--ink); }
.mission__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 8vw, 128px); align-items: start; }
.mission__side { position: sticky; top: calc(var(--header-h) + 32px); }
.mission__side .label { margin-bottom: 22px; }
.mission__tri { margin-top: clamp(32px, 4vw, 56px); }
.mission .panel { background: var(--black); }
.mission .panel--yellow { background: var(--yellow); }
.block { padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(30px, 3vw, 46px); }
.block + .block { margin-top: 12px; }
.block h3 { margin-bottom: 1.2em; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); }
.panel--yellow h3 { color: var(--ink); }
.block p { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; letter-spacing: -.01em; }
.block p + p { margin-top: .9em; }
.block h4 { margin-bottom: .35em; font-size: clamp(19px, 1.5vw, 24px); font-weight: 700; letter-spacing: -.025em; }
.block__item + .block__item { margin-top: 1.6em; padding-top: 1.4em; border-top: 1px solid rgba(18, 18, 18, .22); }
.block__item p { font-size: 17px; }
.mission__stack .bar { margin-top: 12px; }

/* ---------- Expertise ---------- */

.expertise { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 190px); background: var(--black); }
.expertise__bg { position: absolute; inset: -14% 0; z-index: -1; will-change: transform; }
.expertise__bg img { width: 100%; height: 100%; object-fit: cover; }
.expertise__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.86) 45%, rgba(0,0,0,.6) 100%), linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.7) 100%); }
.expertise__inner .label { margin-bottom: 22px; }
.expertise__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 8vw, 128px); margin-top: clamp(44px, 5vw, 80px); }
.expertise__lists > div + div { margin-top: clamp(32px, 4vw, 56px); }
.expertise__lists .label { margin-bottom: 8px; }

.list { list-style: none; padding: 0; }
.list li { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -.015em; color: var(--white); transition: padding-left .4s var(--ease); }
.list li:hover { padding-left: 10px; }
.list li span { flex: none; min-width: 2.4em; padding-top: .32em; font-size: 12px; font-weight: 700; color: var(--yellow); }

/* ---------- Process & quality ---------- */

.process__caption { margin-bottom: 36px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding-top: 40px; list-style: none; }
.steps::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--rule); }
.steps::after { content: ""; position: absolute; left: 0; top: -3px; width: 100%; height: 7px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .15s; }
.steps.is-active::after { transform: scaleX(1); }
.step { position: relative; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.3s + var(--i) * .3s); }
.steps.is-active .step { opacity: 1; transform: none; }
.step::before { content: ""; position: absolute; left: 0; top: -34px; width: 13px; height: 13px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 0 100%); }
.step__num { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--yellow); }
.step h3 { margin: 12px 0 8px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--white); }
.step p { font-size: 15px; line-height: 1.4; color: var(--muted); }

.quality { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(72px, 8vw, 128px); }
.quality__photo { aspect-ratio: 16 / 10; }
.quality__list { list-style: none; padding: 0; }
.quality__list li { padding: 24px 0; border-top: 1px solid var(--rule); }
.quality__list li:last-child { border-bottom: 1px solid var(--rule); }
.quality__list h3 { margin-bottom: 8px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--white); }
.quality__list p { font-size: 16px; color: var(--muted); }

/* ---------- Use case ---------- */

.usecase { background: var(--ink); }
.usecase__panel { background: var(--black); padding: clamp(28px, 3.4vw, 56px); }
.usecase__context { max-width: 1100px; font-size: clamp(20px, 2vw, 32px); line-height: 1.22; letter-spacing: -.025em; color: var(--white); }
.usecase__context b { color: var(--yellow); }
.usecase__img { margin: clamp(32px, 4vw, 56px) auto 0; max-width: 760px; }
.usecase__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 4.6vw, 72px); }
.usecase__cols h3 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 22px; font-size: 16px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 9px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 0 100%); }
.usecase__value { margin-top: clamp(36px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule-soft); }
.usecase__value .label { margin-bottom: 14px; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 42fr) 10px minmax(0, 58fr); min-height: 100svh; }
.contact__photo { position: relative; overflow: hidden; min-height: 420px; background: var(--ink); }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(80px, 9vw, 140px) var(--gutter) clamp(64px, 7vw, 110px) clamp(32px, 6vw, 96px); }
.contact__tri { position: absolute; top: clamp(28px, 4vw, 56px); right: var(--gutter); }
.contact__body .label { margin-bottom: 22px; }
.contact__text { max-width: 620px; margin-top: clamp(28px, 3vw, 44px); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(28px, 3vw, 44px); padding-block: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.contact__mail { position: relative; font-size: clamp(20px, 2.1vw, 34px); letter-spacing: -.03em; text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.copy { padding: 8px 12px; background: none; border: 1px solid var(--rule); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.copy:hover, .copy.is-done { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.form { margin-top: clamp(28px, 3vw, 44px); max-width: 620px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); font: inherit; font-size: 17px; color: var(--white); border-radius: 0; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.form .btn { margin-top: 8px; }
.form__hint { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer { padding-block: clamp(56px, 6vw, 96px) 32px; border-top: 1px solid var(--rule-soft); }
.footer__brand { overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); font-size: clamp(34px, 7.1vw, 118px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.footer__brand span { display: block; }
.footer__brand b { font-weight: 700; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 22px; border-top: 1px solid var(--rule-soft); }
.footer__row--bottom { font-size: 13px; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a, .footer__mail { font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.footer__nav a:hover, .footer__mail:hover, .totop:hover { color: var(--yellow); }
.footer__mail { text-transform: none; letter-spacing: 0; color: var(--white); }
.totop { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--text); transition: color .3s; }
.totop i { width: 11px; height: 11px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* ---------- Scroll reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; transition: none; }
[data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
[data-reveal="clip"].is-visible > img { clip-path: inset(0 0 0 0); }
[data-reveal="bar"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
[data-reveal="bar"].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-reveal="clip"] > img, .line > span, .hero__label, .hero__lead, .hero__actions, .hero__meta, .step { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .card { min-height: 0; padding: 26px 22px 28px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: block; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-head__intro { padding-bottom: 0; }
  .about__grid, .mission__grid, .expertise__grid, .quality { grid-template-columns: minmax(0, 1fr); }
  .mission__side { position: static; }
  .mission__tri { display: none; }
  .about__photo { max-width: 100%; aspect-ratio: 16 / 10; }
  .about__photo img { object-position: 50% 42%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card h3 { margin-top: 36px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .step { padding: 18px 0 0 22px; border-top: 1px solid var(--rule); }
  .step::before { left: 0; top: 24px; }
  .usecase__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .contact__photo { aspect-ratio: 16 / 9; min-height: 0; }
  .contact__bar { width: auto; height: 10px; }
  .contact__body { padding-left: var(--gutter); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .hero__bg img { object-position: 70% 50%; }
  .hero__content { padding-block: 40px 56px; }
  .display--hero { font-size: 12.4vw; }
  .hero__meta span { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__brand { white-space: normal; }
  .footer__brand b { display: block; }
}
