:root {
  --fire: #e32246;
  --crimson: #9e162d;
  --deep: #701329;
  --ink: #050506;
  --panel: #0c0c0f;
  --paper: #f5f1ea;
  --muted: #aaa5a5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.16'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.showcase-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(5,5,6,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mini-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: "Orbitron", sans-serif; font-weight: 900; letter-spacing: .12em; }
.mini-brand img { width: 45px; height: 45px; object-fit: contain; }
.showcase-links { display: flex; align-items: center; gap: 8px; }
.showcase-links a { padding: 10px 14px; color: #cbc8c8; text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; }
.showcase-links a:hover, .showcase-links a.active { color: #fff; background: rgba(227,34,70,.16); }
.nav-cta { border: 1px solid rgba(227,34,70,.55); }

.cinematic-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.12); }
.cinematic-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.58) 48%, rgba(0,0,0,.12)), linear-gradient(0deg, #050506 0%, transparent 55%); }
.cinematic-hero::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -240px; bottom: -230px; background: var(--fire); border-radius: 50%; filter: blur(150px); opacity: .22; }
.hero-copy { padding: 150px 0 10vh; max-width: 850px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: #ff6b85; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.display { margin: 20px 0; font-family: "Syne", sans-serif; font-size: clamp(3.4rem, 9vw, 8.4rem); line-height: .82; letter-spacing: -.07em; text-transform: uppercase; max-width: 10ch; }
.display em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.8); }
.hero-lead { max-width: 650px; margin: 0 0 30px; color: #d5d0d0; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.65; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fire-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 21px; border-radius: 3px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.fire-button { background: var(--fire); color: #fff; box-shadow: 0 0 32px rgba(227,34,70,.25); }
.fire-button:hover { background: #ff3155; transform: translateY(-2px); }
.ghost-button { border: 1px solid rgba(255,255,255,.24); background: rgba(0,0,0,.25); }

.section-block { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin: 12px 0 0; font-family: "Syne", sans-serif; font-size: clamp(2.5rem, 5vw, 5.2rem); letter-spacing: -.055em; line-height: .95; text-transform: uppercase; }
.section-heading p { color: var(--muted); line-height: 1.7; max-width: 580px; }
.red { color: var(--fire); }

.first-explainer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; background: linear-gradient(120deg, rgba(158,22,45,.18), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.1); padding: clamp(28px, 5vw, 60px); }
.first-mark { font-family: "Orbitron", sans-serif; font-size: clamp(4rem, 10vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--fire); text-shadow: 0 0 30px rgba(227,34,70,.25); }
.first-copy h2 { font-family: "Syne", sans-serif; font-size: clamp(2rem, 4vw, 3.8rem); margin: 0 0 18px; line-height: 1; }
.first-copy p { color: #c1bcbc; line-height: 1.75; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.levels span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); color: #eee; font-size: .78rem; letter-spacing: .1em; font-weight: 800; }

.feature-grid { display: grid; grid-template-columns: 1.45fr .85fr; grid-template-rows: 300px 300px; gap: 14px; }
.story-card { position: relative; overflow: hidden; cursor: pointer; min-height: 290px; border: 1px solid rgba(255,255,255,.12); background: #111; }
.story-card:first-child { grid-row: 1 / 3; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.story-card:hover img { transform: scale(1.055); filter: brightness(.68); }
.glass-caption { position: absolute; inset: auto 0 0; padding: 32px; background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.15)); }
.glass-caption small { color: #ff8196; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.glass-caption h3 { margin: 8px 0 6px; font-family: "Syne", sans-serif; font-size: clamp(1.5rem, 3vw, 3rem); }
.glass-caption p { color: #c9c5c5; margin: 0; max-width: 600px; }
.open-hint { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; backdrop-filter: blur(10px); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio-card { min-height: 450px; position: relative; overflow: hidden; text-decoration: none; background: #151515; border: 1px solid rgba(255,255,255,.1); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.75); transition: .6s; }
.portfolio-card:hover img { filter: brightness(.75) saturate(1); transform: scale(1.04); }
.portfolio-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.95), transparent 72%); }
.portfolio-info { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 25px; }
.portfolio-info b { display: block; font-family: "Syne", sans-serif; font-size: 1.55rem; margin-bottom: 6px; }
.portfolio-info span { color: #bbb; font-size: .88rem; }
.download { position: absolute; z-index: 3; right: 18px; top: 18px; padding: 8px 10px; font-size: .7rem; letter-spacing: .12em; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }

.robot-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 670px; background: radial-gradient(circle at 70% 40%, rgba(158,22,45,.22), transparent 45%), #09090b; border: 1px solid rgba(255,255,255,.1); }
.robot-copy { padding: clamp(32px, 6vw, 75px); align-self: center; }
.robot-name { font-family: "Orbitron", sans-serif; font-size: clamp(3rem, 7vw, 7rem); margin: 8px 0 18px; line-height: .9; letter-spacing: -.07em; }
.robot-copy p { color: #bbb5b5; line-height: 1.75; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0; }
.spec { padding: 16px; background: rgba(255,255,255,.035); border-left: 2px solid var(--fire); }
.spec b { display: block; font-family: "Orbitron", sans-serif; font-size: .75rem; text-transform: uppercase; }
.spec span { font-size: .84rem; color: #9d9898; }
.robot-visual { position: relative; min-height: 520px; }
.robot-visual img { width: 100%; height: 100%; object-fit: cover; }
.robot-visual::after { content: "AMATERASU"; position: absolute; right: -1px; bottom: 18px; color: rgba(255,255,255,.12); font: 900 clamp(2.2rem, 5vw, 5rem)/1 "Orbitron", sans-serif; writing-mode: vertical-rl; }

.memory-section { overflow: hidden; padding: 90px 0; background: #080809; }
.camp-memory-section { margin-top: 28px; padding: 18px 0 0; background: transparent; }
.memory-title { width: min(1200px, calc(100% - 40px)); margin: 0 auto 30px; }
.memory-title h2 { font: 800 clamp(2.4rem, 5vw, 5rem)/1 "Syne", sans-serif; margin: 10px 0; }
.memory-track { display: flex; width: max-content; gap: 12px; margin-bottom: 12px; animation: train 42s linear infinite; }
.memory-track.reverse { animation-direction: reverse; animation-duration: 50s; transform: translateX(-15%); }
.memory-track:hover { animation-play-state: paused; }
.memory-frame { width: 300px; height: 190px; flex: none; position: relative; overflow: hidden; border-radius: 3px; }
.memory-frame:nth-child(3n) { width: 390px; }
.memory-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.memory-frame span { position: absolute; left: 12px; bottom: 10px; padding: 6px 9px; background: rgba(0,0,0,.68); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@keyframes train { to { transform: translateX(-50%); } }

.project-list { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.project-row { display: grid; grid-template-columns: 90px 1fr 1fr 48px; align-items: center; gap: 26px; padding: 30px; background: #09090b; text-decoration: none; transition: background .3s; }
.project-row:hover { background: #131014; }
.project-row .num { font: 800 1rem "Orbitron", sans-serif; color: var(--fire); }
.project-row h3 { margin: 0; font: 800 clamp(1.3rem, 2.4vw, 2.2rem) "Syne", sans-serif; }
.project-row p { margin: 0; color: #9f9a9a; line-height: 1.55; }
.project-row .arrow { font-size: 1.7rem; }

.final-cta { padding: 100px 20px; text-align: center; background: radial-gradient(circle at 50% 100%, rgba(227,34,70,.28), transparent 45%); }
.final-cta h2 { margin: 0 auto 28px; max-width: 850px; font: 800 clamp(2.6rem, 6vw, 6rem)/.95 "Syne", sans-serif; text-transform: uppercase; }
.showcase-footer { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8b8787; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }

.story-dialog { width: min(760px, calc(100% - 30px)); color: white; padding: 0; border: 1px solid rgba(255,255,255,.18); background: rgba(10,10,12,.88); backdrop-filter: blur(25px); box-shadow: 0 30px 100px #000; }
.story-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-photo { width: 100%; height: min(45vh, 400px); object-fit: cover; }
.dialog-copy { padding: 30px; }
.dialog-copy h3 { margin: 6px 0 12px; font: 800 clamp(2rem, 5vw, 3.5rem)/1 "Syne", sans-serif; }
.dialog-copy p { color: #c4bfbf; line-height: 1.7; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 43px; height: 43px; color: white; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; cursor: pointer; font-size: 1.2rem; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.1); margin-top: -1px; }
.metric-box { padding: clamp(22px, 4vw, 44px); border-right: 1px solid rgba(255,255,255,.1); }
.metric-box:last-child { border-right: 0; }
.metric-box strong { display: block; color: var(--fire); font: 800 clamp(2rem, 5vw, 4.8rem)/1 "Orbitron", sans-serif; }
.metric-box span { color: #a9a4a4; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
.editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.editorial-card { grid-column: span 6; min-height: 460px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #111; }
.editorial-card.wide { grid-column: span 8; }
.editorial-card.slim { grid-column: span 4; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.editorial-card:hover img { transform: scale(1.045); }
.editorial-copy { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(0deg, rgba(0,0,0,.97), rgba(0,0,0,.08)); }
.editorial-copy small { color: #ff6c85; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.editorial-copy h3 { margin: 8px 0; font: 800 clamp(1.8rem, 3vw, 3rem)/1 "Syne",sans-serif; }
.editorial-copy p { color: #b8b3b3; line-height: 1.55; margin-bottom: 0; }
.identity-card { padding: 35px; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(circle at 90% 10%, var(--team-glow, rgba(227,34,70,.25)), transparent 45%), #0b0b0d; }
.identity-card h3 { font: 800 clamp(2rem, 4vw, 4rem)/1 "Orbitron", sans-serif; margin: 10px 0; }
.identity-card p { color: #aaa5a5; line-height: 1.6; }
.identity-card img { height: 170px; width: 100%; object-fit: cover; margin-bottom: auto; filter: saturate(.8); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quote-block { padding: clamp(35px, 7vw, 85px); border-left: 3px solid var(--fire); background: rgba(255,255,255,.035); font: 700 clamp(1.7rem, 4vw, 3.6rem)/1.2 "Syne",sans-serif; }
.quote-block small { display: block; margin-top: 22px; color: #9f9999; font: 500 .9rem "Outfit",sans-serif; }
.photo-ribbon { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 12px; height: 430px; }
.photo-ribbon img { width: 100%; height: 100%; object-fit: cover; }
.legacy-robots { display: none; }

@media (max-width: 850px) {
  .showcase-links a:not(.nav-cta) { display: none; }
  .section-heading, .first-explainer, .robot-stage { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .story-card:first-child { grid-row: auto; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 45px 1fr 35px; gap: 12px; }
  .project-row p { display: none; }
  .robot-visual { min-height: 480px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-box { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .editorial-card, .editorial-card.wide, .editorial-card.slim { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: 1fr; }
  .photo-ribbon { height: auto; grid-template-columns: 1fr; }
  .photo-ribbon img { height: 320px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1200px); }
  .mini-brand span { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 390px; }
  .feature-grid { display: block; }
  .story-card { margin-bottom: 12px; }
  .section-block { padding: 75px 0; }
  .section-heading { gap: 12px; }
  .robot-copy { padding: 28px 22px; }
  .spec-grid { grid-template-columns: 1fr; }
  .memory-frame { width: 245px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
