/* ============================================
   CLOUD TERMINUS · v2
   Full-bleed photography, monochrome + amber.
   Inter Tight / JetBrains Mono.
   ============================================ */

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

:root {
    --black: #0a0a0a;
    --ink-2: #141414;
    --ink-3: #1f1f1f;
    --white: #ffffff;
    --grey: #f3f3f1;
    --amber: #ffc400;
    --mute: #9a9a9a;
    --mute-ink: #5c5c5c;
    --line-d: rgba(255, 255, 255, 0.14);
    --line-l: rgba(10, 10, 10, 0.12);

    --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    --max: 1320px;
    --pad: 40px;
    --nav-h: 76px;
    --r: 32px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.45;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ── Brand ── */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 9px; }
.brand-word { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.brand-word b { font-weight: 800; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 34px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn-sm { padding: 11px 22px; font-size: 0.92rem; }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--amber); }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: var(--white); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); transition: background 0.35s var(--ease); }
.nav.scrolled { background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.nav-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 0.98rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 3px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.lang-btn { background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); padding: 6px 10px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--white); color: var(--black); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform 0.3s var(--ease); }
.nav-toggle.active span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ── Shared type ── */
.tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 28px;
}
.tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

h1, h2, h3 { text-wrap: balance; }
h1 em, h2 em { font-style: normal; }

.title {
    font-size: clamp(2.6rem, 6.2vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin-bottom: 64px;
    max-width: 14ch;
}
.sect-black .title em, .contact .title em { color: var(--amber); }
.sect-white .title em, .sect-grey .title em { color: var(--mute); }

.sect { padding: 140px 0; position: relative; }
.sect-black { background: var(--black); }
.sect-white { background: var(--white); color: var(--black); }
.sect-grey { background: var(--grey); color: var(--black); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    padding: calc(var(--nav-h) + 60px) 0 64px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { position: absolute; left: 0; top: -35%; max-width: none; width: 140%; height: 140%; object-fit: cover; object-position: 50% 60%; filter: grayscale(1) contrast(1.08) brightness(1.45); transform: scale(1.08); animation: settle 2.4s var(--ease) both; will-change: transform; }
@keyframes settle { from { transform: scale(1.2); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.05) 28%, rgba(10, 10, 10, 0.35) 55%, rgba(10, 10, 10, 0.96) 100%), radial-gradient(60% 50% at 82% 30%, rgba(255, 196, 0, 0.2), transparent 70%); }

.hero-copy { width: 100%; }
.hero h1 {
    font-size: clamp(3rem, 7.6vw, 7.2rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.055em;
    max-width: 13ch;
    margin-bottom: 40px;
}
.hero h1 em { color: var(--amber); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; color: rgba(255, 255, 255, 0.86); max-width: 30em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-copy > *, .hero-foot > * { animation: rise 1s var(--ease) both; }
.hero-copy h1 { animation-delay: 0.1s; }
.hero-foot > :nth-child(1) { animation-delay: 0.22s; }
.hero-foot > :nth-child(2) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }

/* Glass cards: machine + human */
.hero-cards { position: absolute; right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); top: calc(var(--nav-h) + 8vh); width: 320px; display: grid; gap: 14px; }
.glass {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    backdrop-filter: blur(26px) saturate(1.5);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    animation: float-in 1.2s var(--ease) 0.5s both, bob 7s ease-in-out 1.7s infinite alternate;
}
.g-human { display: flex; align-items: center; gap: 14px; margin-left: 46px; animation-delay: 0.75s, 2.4s; }
@keyframes float-in { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
@keyframes bob { to { translate: 0 -10px; } }
.glass-head { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 600; margin-bottom: 12px; }
.glass-head em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: var(--mute); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0); } }
.mono { font-family: var(--mono); font-size: 0.78rem; line-height: 1.7; }
.t-amber { color: var(--amber); margin-right: 8px; }
.t-dim { color: rgba(255, 255, 255, 0.62); }
.bars { display: grid; gap: 6px; margin-top: 14px; }
.bars i { height: 5px; width: var(--w); border-radius: 5px; background: rgba(255, 255, 255, 0.28); transform-origin: left; animation: fill 1.4s var(--ease) 1.1s both; }
.bars i:first-child { background: var(--amber); }
@keyframes fill { from { transform: scaleX(0); } }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; }
.avatar svg { width: 24px; height: 24px; }
.glass-title { font-size: 0.92rem; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.glass-ok { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--amber); }
.glass-ok svg { width: 15px; height: 15px; }

/* ── Metrics ── */
.metrics-sect { background: var(--white); color: var(--black); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.metric dt { font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; margin-bottom: 12px; }
.metric dd { font-size: 1rem; font-weight: 500; color: var(--mute-ink); max-width: 17em; }

/* ── AI × human ── */
.mega {
    font-size: clamp(2.8rem, 8.6vw, 8.4rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
    max-width: 13ch;
    margin-bottom: 84px;
}
.mega em { color: var(--amber); }
.scrub .w { opacity: 0.4; transition: opacity 0.5s ease-out; }
.scrub .w.lit { opacity: 1; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { position: relative; height: clamp(420px, 46vw, 640px); border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.duo-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.8); transition: transform 1.2s var(--ease), filter 0.8s var(--ease); }
.duo-card:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.02) brightness(0.86); }
.duo-card canvas { width: 100%; height: 100%; }
.duo-machine { background: radial-gradient(90% 80% at 70% 20%, #2a2100 0%, #0f0d05 55%, var(--black) 100%); }
.duo-card figcaption { position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, 0.82) 100%); pointer-events: none; }
.duo-card strong { font-size: clamp(1.8rem, 3.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; max-width: 9ch; }
.chip { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 0.86rem; font-weight: 700; letter-spacing: -0.01em; }
.chip-amber { background: var(--amber); }

.ai-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; margin-top: 64px; }
.ai-big { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.ai-p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; color: rgba(255, 255, 255, 0.78); max-width: 26em; padding-left: 30px; }

/* ── Tiles ── */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { position: relative; height: clamp(440px, 44vw, 600px); border-radius: var(--r); overflow: hidden; background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 32px; isolation: isolate; }
.t-7 { grid-column: span 7; }
.t-5 { grid-column: span 5; }
.t-6 { grid-column: span 6; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.74); transition: transform 1.2s var(--ease), filter 0.8s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.05) 42%, rgba(10, 10, 10, 0.86) 100%); }
.tile:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.04) brightness(0.8); }
.tile-n { display: block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 14px; }
.tile h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; max-width: 9ch; }
.tile p { font-size: 1.12rem; font-weight: 500; max-width: 26em; color: rgba(255, 255, 255, 0.92); }

/* ── Sectors belt ── */
.sectors { background: var(--amber); color: var(--black); padding: 56px 0 64px; overflow: hidden; }
.sectors-label { font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.belt { display: flex; width: max-content; animation: slide 48s linear infinite; }
.belt:hover { animation-play-state: paused; }
.belt-track { display: flex; flex: none; }
.belt-track li { font-size: clamp(3rem, 8vw, 7.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.05; white-space: nowrap; padding-right: 0.5em; display: flex; align-items: center; gap: 0.5em; }
.belt-track li::after { content: ''; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--black); }
.belt-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 2px var(--black); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Rules ── */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.split-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.split-head .title { margin-bottom: 0; }
.rules li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line-d); }
.rules li:last-child { border-bottom: 1px solid var(--line-d); }
.rule-n { font-size: clamp(3.4rem, 6vw, 5.6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: var(--ink-3); transition: color 0.5s var(--ease); }
.rules li .rule-n { color: var(--amber); }
.rules h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 10px; }
.rules p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.7); max-width: 24em; }

/* ── Why ── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: var(--white); border-radius: var(--r); padding: 32px 30px 38px; min-height: 340px; display: flex; flex-direction: column; transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease); }
.why:hover { background: var(--black); color: var(--white); transform: translateY(-6px); }
.why svg { width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--amber); color: var(--black); margin-bottom: auto; }
.why h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 40px 0 10px; }
.why p { font-size: 1.05rem; color: var(--mute-ink); transition: color 0.4s; }
.why:hover p { color: rgba(255, 255, 255, 0.72); }

/* ── Contact ── */
.contact { position: relative; padding: 150px 0; overflow: hidden; isolation: isolate; }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.62); }
.contact-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0.2) 30%, rgba(10, 10, 10, 0.55) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.contact-copy .title { margin-bottom: 28px; }
.contact-sub { font-size: 1.25rem; font-weight: 500; color: rgba(255, 255, 255, 0.86); max-width: 24em; margin-bottom: 36px; }
.contact-mail { display: inline-block; font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -0.03em; border-bottom: 2px solid var(--amber); padding-bottom: 4px; overflow-wrap: anywhere; transition: color 0.2s; }
.contact-mail:hover { color: var(--amber); }

.form { background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); border-radius: var(--r); padding: 36px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.form input, .form textarea { width: 100%; background: rgba(255, 255, 255, 0.1); border: 1.5px solid transparent; border-radius: 16px; padding: 15px 18px; font-size: 1rem; transition: border-color 0.2s, background 0.2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); background: rgba(255, 255, 255, 0.16); }
.form .btn { justify-self: start; }

/* ── Footer ── */
.foot { background: var(--black); padding: 44px 0; }
.foot-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; font-size: 0.92rem; color: var(--mute); }
.foot .brand { color: var(--white); }
.foot .brand-word { font-size: 1.12rem; }
.foot-copy { margin-left: auto; }

/* ── Reveal ── */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease-out var(--rd, 0s), transform 0.6s ease-out var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .nav-cta { display: none; }
    .hero-cards { width: 280px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .why { min-height: 280px; }
    .rules li { grid-template-columns: 110px 1fr; }
}

@media (max-width: 860px) {
    :root { --pad: 20px; --nav-h: 64px; --r: 24px; }
    .sect { padding: 92px 0; }
    .title { margin-bottom: 44px; }

    .nav-toggle { display: flex; }
    .nav-right { margin-left: auto; gap: 6px; }
    .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--black); flex-direction: column; gap: 0; padding: 20px var(--pad) 40px; margin: 0; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.045em; color: var(--white); padding: 16px 0; border-bottom: 1px solid var(--line-d); }
    .nav-links-cta { display: block; color: var(--amber) !important; }
    .nav.menu-open { background: var(--black); }

    .hero { padding-bottom: 40px; }
    .hero-media img { top: 0; width: 100%; height: 58%; object-position: 52% 78%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
    .hero-cards { display: none; }
    .hero h1 { margin-bottom: 28px; }
    .hero-foot { flex-direction: column; align-items: stretch; gap: 28px; }
    .hero-btns .btn { flex: 1 1 auto; }

    .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; padding-top: 56px; padding-bottom: 56px; }
    .mega { margin-bottom: 52px; }
    .duo { grid-template-columns: 1fr; }
    .duo-card { height: 400px; }
    .ai-foot { grid-template-columns: 1fr; margin-top: 44px; }
    .ai-p { padding-left: 0; }
    .tiles { grid-template-columns: 1fr; gap: 14px; }
    .tile { grid-column: auto; height: 440px; padding: 26px; }
    .split { grid-template-columns: 1fr; gap: 0; }
    .split-head { position: static; }
    .split-head .title { margin-bottom: 44px; }
    .rules li { grid-template-columns: 84px 1fr; padding: 30px 0; }
    .contact { padding: 100px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .foot-copy { margin-left: 0; }
}

@media (max-width: 560px) {
    .brand-word { font-size: 1.14rem; }
    .lang-btn { padding: 6px 7px; }
    .why-grid { grid-template-columns: 1fr; }
    .why { min-height: 0; }
    .why h3 { margin-top: 28px; }
    .form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .belt-track li:nth-child(even) { -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .rv { opacity: 1; transform: none; }
    .scrub .w { opacity: 1; }
    .hero-media img { transform: none; }
}
