/* RufaTech — rufatech.dev. Land-of-Fire dark, pixel office, editorial type. */
:root {
  --bg: #0c0a09;
  --bg-2: #141110;
  --bg-3: #1c1715;
  --line: rgba(242, 235, 225, .09);
  --line-2: rgba(242, 235, 225, .16);
  --fg: #f2ebe1;
  --fg-2: #b9ada0;
  --fg-3: #7f746a;
  --f1: #ff4d1a;
  --f2: #ff8a2b;
  --f3: #ffc861;
  --flame: linear-gradient(100deg, var(--f1) 0%, var(--f2) 45%, var(--f3) 100%);
  --paper: #f1e9dc;
  --paper-2: #e8ddcb;
  --ink: #1a1412;
  --burgundy: #8b2d42;
  --gold: #c49a2c;
  --display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "Silkscreen", var(--mono);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--display); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html, body { overflow-x: clip; }
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img, canvas, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: .98; }
p { margin: 0; }
::selection { background: var(--f2); color: #160c06; }
:focus-visible { outline: 2px solid var(--f3); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--fg-3); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.flame-text {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ec98a; box-shadow: 0 0 0 3px rgba(78, 201, 138, .18); }
.dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(196, 154, 44, .2); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 24px;
  border-radius: 999px; background: var(--flame); color: #1a0b03; font-weight: 650; text-decoration: none;
  letter-spacing: -.01em; box-shadow: 0 10px 30px -10px rgba(255, 106, 31, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 106, 31, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.btn--small { --h: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(12, 10, 9, .72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 19px; height: 24px; filter: drop-shadow(0 0 10px rgba(255, 110, 40, .55)); }
.brand__word { font-weight: 750; font-size: 21px; letter-spacing: -.04em; }
.nav__links { display: flex; gap: 26px; margin-left: 28px; }
.nav__links a { text-decoration: none; color: var(--fg-2); font-size: 15px; white-space: nowrap; transition: color .2s; }
.nav .btn { white-space: nowrap; }
.nav__links a:hover { color: var(--fg); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.clock { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; }
.clock b { color: var(--fg); font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) 72px; }
.hero__glow {
  position: absolute; z-index: -1; right: -10%; top: 30%; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(255, 92, 26, .22), rgba(255, 138, 43, .07) 55%, transparent 72%);
  filter: blur(10px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08) translate(-2%, 2%); opacity: .8; } }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--f2); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--f2); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero__title { margin-top: 24px; font-size: clamp(54px, 10.4vw, 150px); font-weight: 760; letter-spacing: -.055em; line-height: .9; }
.hero__title .line { display: block; }
.hero__title .flame-text { font-size: 1.06em; line-height: .8; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 4.5vw, 56px); align-items: start; }
.hero__copy { padding-top: 8px; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--fg); max-width: 34ch; }
.lede strong { font-weight: 650; }
.lede--dim { color: var(--fg-2); margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* office window */
.office {
  margin: 0; border-radius: 16px; overflow: hidden; background: #0f0c0b;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(255, 90, 26, .45), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.office__bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #151110; font: 500 12px/1 var(--mono); }
.office__dots { display: flex; gap: 6px; }
.office__dots i { width: 9px; height: 9px; background: #3a302b; }
.office__dots i:first-child { background: var(--f1); }
.office__title { color: var(--fg-2); }
.office__live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.office__live .dot { background: var(--f1); box-shadow: 0 0 0 3px rgba(255, 77, 26, .2); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.office__stage { background: #0f0c0b; }
#office { width: 100%; height: auto; aspect-ratio: 320 / 184; image-rendering: pixelated; }
.log { list-style: none; margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #0d0b0a; height: 136px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font: 400 12.5px/1.45 var(--mono); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
.log li { display: grid; grid-template-columns: 64px 92px 1fr; gap: 10px; white-space: nowrap; animation: logIn .45s var(--ease) both; }
.log li:not(:last-child) { opacity: .55; }
.log time { color: var(--fg-3); }
.log .who { color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.log .what { overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.log li:last-child .what { color: var(--fg); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }
.office__cap { padding: 0 14px 14px; background: #0d0b0a; font: 400 12px/1.4 var(--mono); color: var(--fg-3); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: slide 38s linear infinite; font-size: clamp(22px, 2.6vw, 34px); font-weight: 650; letter-spacing: -.03em; white-space: nowrap; }
.marquee__track b { color: var(--f2); font-weight: 400; }
.marquee__track span:nth-of-type(3n+2) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--fg-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 8px 28px 8px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { display: block; font-size: clamp(56px, 7vw, 104px); font-weight: 760; letter-spacing: -.06em; line-height: 1; background: linear-gradient(180deg, var(--fg) 30%, #8d8178); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { display: block; margin-top: 14px; color: var(--fg-2); font-size: 15px; max-width: 24ch; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--pad); }
.section__head h2, .rufesto h2, .contact__title { font-size: clamp(40px, 6vw, 84px); letter-spacing: -.045em; }
.section__head h2 .serif, .rufesto h2 .serif { color: var(--fg-2); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--f2); margin-bottom: 22px; }
.eyebrow--dark { color: var(--burgundy); }
.section__sub { margin-top: 26px; color: var(--fg-2); font-size: 18px; max-width: 56ch; }

/* team */
.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.card {
  --c: var(--f2); position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before { content: ""; position: absolute; left: -30%; top: -60%; width: 90%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent); opacity: .5; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; letter-spacing: -.03em; margin: 6px 0 8px; }
.card p:not(.tag) { color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.tag { font: 500 10.5px/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.avatar { width: 48px; height: 72px; flex: none; image-rendering: pixelated; position: relative; }
.c-lead { --c: #b48cf2; } .c-frontend { --c: #5ab0f0; } .c-backend { --c: #4ec98a; } .c-database { --c: #e0a458; } .c-devops { --c: #f08a4b; }
.c-security { --c: #f06b6b; } .c-scribe { --c: #c9a7ff; } .c-qa { --c: #3fc1b0; } .c-council { --c: #e27fd0; }
.defs { position: absolute; }
.card--human { grid-column: span 2; --c: var(--f3); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 138, 43, .16), transparent 60%), var(--bg-2); border-color: rgba(255, 168, 80, .3); }
.card--human .avatar { width: 64px; height: 96px; }
.card--human h3 { font-size: 30px; }
.tag--human { color: var(--f3); }
.card--council { grid-column: span 2; }
.avatars { display: flex; gap: 2px; flex: none; }
.avatars .avatar { width: 40px; height: 60px; }

/* process */
.process { border-top: 1px solid var(--line); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
.process__head { position: sticky; top: 120px; align-self: start; }
.rail { margin-top: 40px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 360px; }
.rail__fill { height: 100%; width: 0; background: var(--flame); transition: width .5s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 34px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-on { opacity: 1; }
.step__n { font: 500 13px/1.9 var(--mono); color: var(--fg-3); }
.step.is-on .step__n { color: var(--f2); }
.step h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; margin-bottom: 10px; }
.step p { color: var(--fg-2); max-width: 46ch; }

/* ---------- rufesto (paper) ---------- */
.rufesto { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.rufesto::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 40%, rgba(139, 45, 66, .12), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(196, 154, 44, .14), transparent 70%); pointer-events: none; }
.rufesto__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.rufesto h2 .serif { color: var(--burgundy); }
.rufesto__lede { margin-top: 26px; font-size: 19px; color: #4a3e38; max-width: 52ch; }
.feats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feats li { padding: 16px 0; border-top: 1px solid rgba(26, 20, 18, .12); }
.feats b { display: block; font-weight: 680; letter-spacing: -.02em; }
.feats span { display: block; color: #6a5d55; font-size: 15px; margin-top: 4px; }
.rufesto__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.link-arrow { font-weight: 650; color: var(--burgundy); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: #a03450; }

.device { position: relative; justify-self: center; padding: 30px 60px 40px 40px; }
.phone { width: 290px; border-radius: 44px; padding: 12px; background: #17110f; box-shadow: 0 60px 90px -40px rgba(60, 20, 28, .55), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 0 0 2px #2a201d; transform: rotate(-3deg); }
.phone__notch { width: 92px; height: 24px; border-radius: 0 0 16px 16px; background: #17110f; margin: 0 auto -24px; position: relative; z-index: 2; }
.phone__screen { border-radius: 33px; background: #fbf7f1; padding: 36px 16px 16px; min-height: 560px; display: flex; flex-direction: column; gap: 10px; color: #241a17; font-size: 13px; }
.rf-top { display: flex; justify-content: space-between; align-items: center; }
.rf-logo { font-weight: 760; letter-spacing: -.04em; font-size: 17px; background: linear-gradient(145deg, var(--burgundy), var(--gold) 60%, var(--burgundy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-table { font: 500 10px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--burgundy); color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.rf-venue { font-size: 24px; font-weight: 720; letter-spacing: -.04em; margin-top: 6px; }
.rf-tabs { display: flex; gap: 6px; }
.rf-tabs span { padding: 6px 11px; border-radius: 999px; background: #efe6da; font-size: 12px; font-weight: 550; }
.rf-tabs .on { background: #241a17; color: #fbf7f1; }
.rf-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(36, 26, 23, .06), 0 6px 16px -10px rgba(36, 26, 23, .3); }
.rf-item b { display: block; font-weight: 650; font-size: 13.5px; letter-spacing: -.01em; }
.rf-item small { color: #8a7b72; font-size: 11.5px; }
.rf-item em { font-style: normal; font-weight: 700; color: var(--burgundy); }
.rf-item--off { opacity: .45; }
.rf-img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.rf-img--1 { background: radial-gradient(circle at 35% 40%, #f0b26b 0 18%, transparent 19%), radial-gradient(circle at 62% 60%, #c7612e 0 22%, transparent 23%), radial-gradient(circle at 50% 50%, #e8d7b8 0 48%, #d9c3a0 49%); }
.rf-img--2 { background: radial-gradient(circle at 50% 55%, #f3c64f 0 34%, transparent 35%), radial-gradient(circle at 40% 38%, #7a3b1e 0 9%, transparent 10%), radial-gradient(circle at 50% 50%, #f6efe2 0 48%, #e3d6bf 49%); }
.rf-img--3 { background: linear-gradient(135deg, transparent 30%, #e7c58c 30% 48%, #6c8f3d 48% 52%, #e7c58c 52% 70%, transparent 70%), radial-gradient(circle at 50% 50%, #f6efe2 0 48%, #e3d6bf 49%); }
.rf-img--4 { background: radial-gradient(circle at 50% 50%, #c99a58 0 30%, #f6efe2 31% 48%, #e3d6bf 49%); }
.rf-cart { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--burgundy), #a03450); color: #fff; box-shadow: 0 14px 26px -12px rgba(139, 45, 66, .7); }
.rf-cart span { font-size: 12px; opacity: .8; }
.ticket { position: absolute; right: -6px; top: 70px; width: 190px; padding: 14px; border-radius: 14px; background: #1d1614; color: #f6ece0; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); transform: rotate(4deg); font: 400 12.5px/1.6 var(--mono); animation: floaty 6s ease-in-out infinite; }
.ticket__h { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px dashed rgba(246, 236, 224, .2); }
.ticket__h b { color: var(--f3); }
.ticket__t { margin-left: auto; color: var(--f2); }
.ticket__s { margin-top: 8px; display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(255, 138, 43, .16); color: var(--f2); font-size: 11px; }
.chip-split { position: absolute; left: -4px; bottom: 70px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 24px 40px -20px rgba(60, 20, 28, .45); transform: rotate(-5deg); animation: floaty 7s ease-in-out -2s infinite; }
.chip-split b { display: block; font-size: 13px; color: var(--burgundy); }
.chip-split span { font-size: 12.5px; color: #6a5d55; }
@keyframes floaty { 50% { translate: 0 -8px; } }

/* ---------- work ---------- */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.offer { padding: 32px 28px 36px 0; position: relative; }
.offer + .offer { padding-left: 28px; border-left: 1px solid var(--line); }
.offer__i { display: block; font-size: 30px; color: var(--f2); margin-bottom: 26px; line-height: 1; }
.offer h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 12px; }
.offer p { color: var(--fg-2); font-size: 15.5px; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 120%, rgba(255, 77, 26, .3), transparent 65%), var(--bg); }
.skyline { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 1800px); height: auto; aspect-ratio: 320 / 90; image-rendering: pixelated; opacity: .9; pointer-events: none; }
.contact__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 170px) var(--pad) calc(min(100vw, 1800px) * 0.3 + 40px); text-align: center; }
.contact__title { max-width: 14ch; margin: 0 auto; font-size: clamp(46px, 7.4vw, 116px); }
.mail { display: inline-block; margin-top: 44px; font-size: clamp(22px, 3vw, 40px); font-weight: 650; letter-spacing: -.03em; text-decoration: none; padding: 10px 6px; border-bottom: 2px solid var(--f2); transition: color .2s, border-color .2s; }
.mail:hover { color: var(--f3); border-color: var(--f3); }
.contact__meta { margin-top: 22px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }

.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 26px var(--pad); border-top: 1px solid var(--line); font: 400 12.5px/1.4 var(--mono); color: var(--fg-3); background: #090807; }
.foot__mid { flex: 1; text-align: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; }
.js .hero .line:nth-child(2) { animation-delay: .1s; }
.js .hero .lede { animation-delay: .22s; }
.js .hero .lede--dim { animation-delay: .3s; }
.js .hero .cta { animation-delay: .38s; }
.js .hero .office { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__grid, .process__grid, .rufesto__inner { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer:nth-child(3) { padding-left: 0; border-left: 0; }
  .offer:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .lede { max-width: 52ch; }
}
@media (max-width: 760px) {
  .nav__links, .clock { display: none; }
  .kicker { font-size: 11px; letter-spacing: .08em; }
  .nav { padding-block: 12px; }
  .crew { grid-template-columns: 1fr; }
  .card--human, .card--council { grid-column: auto; }
  .card--council { flex-direction: column; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer + .offer { padding: 28px 0; border-left: 0; }
  .offer + .offer { border-top: 1px solid var(--line); }
  .feats { grid-template-columns: 1fr; }
  .log { height: 118px; font-size: 11px; }
  .log li { grid-template-columns: 54px 70px 1fr; gap: 8px; }
  .device { padding: 20px 24px 40px 12px; transform: scale(.92); }
  .ticket { right: -14px; width: 168px; }
  .step { grid-template-columns: 48px 1fr; }
  .foot__mid { order: 3; flex-basis: 100%; text-align: left; }
}
@media (max-width: 380px) { .log li { grid-template-columns: 0 70px 1fr; } .log time { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
