/*
Theme Name: ForgeFive
Theme URI: https://forgefive.co.uk
Author: ForgeFive
Description: A precision-led dark WordPress agency theme with an animated five-pillar homepage.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: forgefive
*/

:root {
  --ff-bg: #09090b;
  --ff-surface: #111114;
  --ff-surface-2: #18181b;
  --ff-line: rgba(255,255,255,.11);
  --ff-text: #fafafa;
  --ff-muted: #a1a1aa;
  --ff-accent: #4f8cff;
  --ff-accent-soft: rgba(79,140,255,.18);
  --ff-max: 1240px;
  --ff-radius: 22px;
  --ff-shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ff-bg);
  color: var(--ff-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

.ff-container { width: min(calc(100% - 40px), var(--ff-max)); margin-inline: auto; }
.ff-skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; }
.ff-skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled { background: rgba(9,9,11,.78); border-color: var(--ff-line); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display:flex; align-items:center; gap:11px; color:var(--ff-text); }
.ff-logo-mark { width:32px; height:28px; display:block; color:currentColor; }
.ff-logo-mark svg { width:100%; height:100%; display:block; overflow:visible; }
.ff-logo-pillars path,.ff-logo-cut { fill:currentColor; }
.ff-logo-base { fill:none; stroke:currentColor; stroke-width:4; stroke-linecap:square; }
.ff-wordmark { font-size:.9rem; line-height:1; font-weight:850; letter-spacing:.16em; }
.site-branding:hover .ff-logo-mark { color:#a9c4ff; }
.site-branding:hover .ff-logo-pillars path { transform:translateY(-2px); }
.ff-logo-pillars path { transform-box:fill-box; transform-origin:center bottom; transition:transform .28s cubic-bezier(.2,.75,.2,1); }
.ff-logo-pillars path:nth-child(2){transition-delay:.025s}.ff-logo-pillars path:nth-child(3){transition-delay:.05s}.ff-logo-pillars path:nth-child(4){transition-delay:.075s}.ff-logo-pillars path:nth-child(5){transition-delay:.1s}
.primary-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; margin: 0; color: #d4d4d8; font-size: .94rem; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; }
.ff-header-cta { padding: 10px 16px; border: 1px solid var(--ff-line); border-radius: 999px; background: rgba(255,255,255,.04); }
.ff-menu-toggle { display:none; background:transparent; color:#fff; border:1px solid var(--ff-line); border-radius:10px; padding:8px 11px; }

.ff-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 150px 0 72px;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ff-hero::before { content:""; position:absolute; inset:-25% 10% auto; height:520px; background:radial-gradient(circle, rgba(79,140,255,.14), transparent 65%); filter:blur(25px); pointer-events:none; }
.ff-hero-grid { display:grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr); align-items:center; gap: clamp(40px,7vw,100px); position:relative; }
.ff-eyebrow { display:inline-flex; align-items:center; gap:10px; color:#c7d2fe; font-size:.78rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
.ff-eyebrow::before { content:""; width:34px; height:1px; background:var(--ff-accent); box-shadow:0 0 18px var(--ff-accent); }
.ff-hero h1 { max-width: 790px; margin: 24px 0; font-size: clamp(3.5rem, 8vw, 7.6rem); line-height: .88; letter-spacing: -.075em; font-weight: 760; }
.ff-gradient-text { background: linear-gradient(100deg,#fff 15%,#91b6ff 58%,#fff 88%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ff-lead { max-width: 650px; color: var(--ff-muted); font-size: clamp(1.05rem,1.6vw,1.3rem); }
.ff-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.ff-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:50px; padding:0 20px; border-radius:999px; border:1px solid var(--ff-line); transition:transform .2s ease, box-shadow .2s ease, background .2s ease; font-weight:700; }
.ff-button:hover { transform: translateY(-2px); }
.ff-button-primary { background:#fff; color:#09090b; box-shadow:0 10px 30px rgba(255,255,255,.12); }
.ff-button-secondary { background:rgba(255,255,255,.04); }
.ff-proof { display:flex; flex-wrap:wrap; gap:18px; margin-top:34px; color:#71717a; font-size:.85rem; }
.ff-proof span { display:flex; align-items:center; gap:8px; }
.ff-proof i { width:6px; height:6px; border-radius:50%; background:var(--ff-accent); box-shadow:0 0 12px var(--ff-accent); }

.ff-pillars-wrap { min-height:540px; position:relative; display:flex; align-items:flex-end; justify-content:center; perspective:1200px; }
.ff-pillars { width:min(100%,510px); height:500px; display:grid; grid-template-columns:repeat(5,1fr); align-items:end; gap:13px; padding:20px; }
.ff-pillar { --height: 60%; position:relative; height:var(--height); border:1px solid rgba(255,255,255,.15); border-radius:18px 18px 7px 7px; background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.025)); box-shadow:inset 0 1px 0 rgba(255,255,255,.2), var(--ff-shadow); transform:translateY(22px) scaleY(0); transform-origin:bottom; overflow:hidden; transition:height .35s ease, transform .35s ease, border-color .35s ease, background .35s ease; cursor:default; }
.ff-pillar:nth-child(1){--height:58%;--delay:.08s}.ff-pillar:nth-child(2){--height:73%;--delay:.18s}.ff-pillar:nth-child(3){--height:100%;--delay:.28s}.ff-pillar:nth-child(4){--height:82%;--delay:.38s}.ff-pillar:nth-child(5){--height:66%;--delay:.48s}
.ff-pillars::after { content:""; position:absolute; left:20px; right:20px; bottom:20px; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent); opacity:0; transform:scaleX(.15); transform-origin:center; }
.ff-page-loaded .ff-pillars::after { animation:ffBaseIn .55s ease-out .08s forwards; }
.ff-page-loaded .ff-pillar { animation:ffRise 1.05s cubic-bezier(.16,.82,.2,1) forwards; animation-delay:calc(.24s + var(--delay)); }
.ff-pillar-label { opacity:0; }
.ff-page-loaded .ff-pillar-label { animation:ffPillarLabelIn .5s ease-out forwards; animation-delay:calc(1.05s + var(--delay)); }
.ff-pillar::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(79,140,255,.34),transparent 48%); opacity:0; transition:opacity .3s ease; }
.ff-pillar:hover,.ff-pillar:focus-within { transform:translateY(-10px) scaleY(1); border-color:rgba(129,167,255,.75); background:linear-gradient(180deg,rgba(79,140,255,.22),rgba(255,255,255,.04)); }
.ff-pillar:hover::after,.ff-pillar:focus-within::after { opacity:1; }
.ff-pillar-label { position:absolute; inset:auto 8px 14px; z-index:2; writing-mode:vertical-rl; transform:rotate(180deg); color:rgba(255,255,255,.72); font-size:.72rem; text-transform:uppercase; letter-spacing:.16em; font-weight:800; }
.ff-pillar-number { position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:2; color:rgba(255,255,255,.35); font-size:.72rem; }
.ff-orbit { position:absolute; width:430px; aspect-ratio:1; border:1px solid rgba(255,255,255,.07); border-radius:50%; bottom:20px; animation:ffSpin 22s linear infinite; }
.ff-orbit::before,.ff-orbit::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.055); border-radius:50%; }
.ff-orbit::before{inset:45px}.ff-orbit::after{inset:95px}
@keyframes ffRise { from { transform:translateY(22px) scaleY(0); } to { transform:translateY(0) scaleY(1); } }
@keyframes ffPillarLabelIn { from { opacity:0; transform:rotate(180deg) translateX(-8px); } to { opacity:1; transform:rotate(180deg) translateX(0); } }
@keyframes ffBaseIn { from { opacity:0; transform:scaleX(.15); } to { opacity:1; transform:scaleX(1); } }
@keyframes ffSpin { to { transform:rotate(360deg); } }

.ff-section { padding: clamp(90px,11vw,150px) 0; border-top:1px solid var(--ff-line); }
.ff-section-head { display:grid; grid-template-columns:.65fr 1.35fr; gap:40px; align-items:end; margin-bottom:55px; }
.ff-kicker { color:var(--ff-accent); text-transform:uppercase; letter-spacing:.15em; font-size:.75rem; font-weight:800; }
.ff-section h2 { margin:0; font-size:clamp(2.35rem,5vw,4.8rem); line-height:.98; letter-spacing:-.055em; }
.ff-section-head p { color:var(--ff-muted); max-width:650px; margin:0; font-size:1.05rem; }

.ff-pillar-cards { display:grid; grid-template-columns:repeat(5,1fr); border:1px solid var(--ff-line); border-radius:var(--ff-radius); overflow:hidden; background:var(--ff-surface); }
.ff-pillar-card { min-height:310px; padding:28px 22px; border-right:1px solid var(--ff-line); display:flex; flex-direction:column; justify-content:space-between; transition:background .25s ease, transform .25s ease; }
.ff-pillar-card:last-child { border-right:0; }
.ff-pillar-card:hover { background:var(--ff-surface-2); }
.ff-pillar-card .num { color:#52525b; font-size:.77rem; }
.ff-pillar-card h3 { font-size:1.35rem; margin:0 0 10px; }
.ff-pillar-card p { color:var(--ff-muted); font-size:.93rem; margin:0; }
.ff-icon { width:42px; height:42px; border:1px solid var(--ff-line); border-radius:12px; display:grid; place-items:center; color:#c7d2fe; }

.ff-projects { display:grid; gap:28px; }
.ff-project { min-height:520px; border:1px solid var(--ff-line); border-radius:30px; overflow:hidden; position:relative; display:grid; align-items:end; background:radial-gradient(circle at 72% 28%,rgba(79,140,255,.22),transparent 28%),linear-gradient(145deg,#18181b,#0d0d10); }
.ff-project::before { content:""; position:absolute; width:62%; height:74%; right:-4%; top:13%; border:1px solid rgba(255,255,255,.16); border-radius:20px; background:linear-gradient(150deg,rgba(255,255,255,.09),rgba(255,255,255,.015)); transform:rotate(-5deg); box-shadow:var(--ff-shadow); }
.ff-project-content { position:relative; z-index:2; padding:40px; max-width:620px; }
.ff-project-meta { color:#93c5fd; text-transform:uppercase; letter-spacing:.13em; font-size:.74rem; font-weight:800; }
.ff-project h3 { font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.045em; margin:12px 0; }
.ff-project p { color:var(--ff-muted); }

.ff-process { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.ff-step { border-top:1px solid var(--ff-line); padding:24px 8px 8px; }
.ff-step b { color:var(--ff-accent); font-size:.78rem; }
.ff-step h3 { margin:32px 0 8px; font-size:1.2rem; }
.ff-step p { margin:0; color:var(--ff-muted); font-size:.92rem; }

.ff-cta { padding:clamp(80px,10vw,130px) 0; }
.ff-cta-panel { border:1px solid var(--ff-line); border-radius:34px; padding:clamp(38px,7vw,90px); background:radial-gradient(circle at 85% 15%,rgba(79,140,255,.20),transparent 32%),var(--ff-surface); text-align:center; box-shadow:var(--ff-shadow); }
.ff-cta-panel h2 { font-size:clamp(2.5rem,6vw,5.8rem); line-height:.95; letter-spacing:-.06em; max-width:900px; margin:0 auto 24px; }
.ff-cta-panel p { color:var(--ff-muted); max-width:620px; margin:0 auto 30px; }

.site-footer { border-top:1px solid var(--ff-line); padding:34px 0; color:#71717a; }
.footer-inner { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; font-size:.88rem; }

.ff-content { padding:140px 0 90px; min-height:70svh; }
.ff-content article { max-width:820px; }
.ff-content h1 { font-size:clamp(2.5rem,6vw,5rem); letter-spacing:-.055em; }
.ff-content p,.ff-content li { color:#d4d4d8; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
@media (max-width: 980px) {
  .ff-hero-grid { grid-template-columns:1fr; }
  .ff-pillars-wrap { min-height:450px; }
  .ff-pillars { height:410px; }
  .ff-section-head { grid-template-columns:1fr; }
  .ff-pillar-cards { grid-template-columns:repeat(2,1fr); }
  .ff-pillar-card { border-bottom:1px solid var(--ff-line); }
  .ff-process { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .ff-container { width:min(calc(100% - 28px),var(--ff-max)); }
  .ff-menu-toggle { display:block; }
  .primary-nav { display:none; position:absolute; top:68px; left:14px; right:14px; padding:18px; border:1px solid var(--ff-line); border-radius:16px; background:rgba(9,9,11,.96); }
  .primary-nav.is-open { display:block; }
  .primary-nav ul { flex-direction:column; align-items:flex-start; gap:16px; }
  .ff-hero { padding-top:120px; }
  .ff-hero h1 { font-size:clamp(3.1rem,17vw,5.2rem); }
  .ff-pillars-wrap { min-height:370px; }
  .ff-pillars { height:350px; gap:8px; padding:10px; }
  .ff-pillar { border-radius:12px 12px 5px 5px; }
  .ff-pillar-label { font-size:.6rem; }
  .ff-orbit { width:310px; }
  .ff-pillar-cards { grid-template-columns:1fr; }
  .ff-pillar-card { min-height:220px; border-right:0; }
  .ff-project { min-height:500px; }
  .ff-project::before { width:88%; height:58%; top:10%; right:-12%; }
  .ff-project-content { padding:26px; }
  .ff-process { grid-template-columns:1fr; }
}

/* ForgeFive motion system — v0.2 */
.ff-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(8px);
  transition:
    opacity .75s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0s),
    transform .85s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0s),
    filter .7s ease var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}
.ff-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
.ff-stagger > .ff-reveal:nth-child(1){--reveal-delay:.02s}
.ff-stagger > .ff-reveal:nth-child(2){--reveal-delay:.09s}
.ff-stagger > .ff-reveal:nth-child(3){--reveal-delay:.16s}
.ff-stagger > .ff-reveal:nth-child(4){--reveal-delay:.23s}
.ff-stagger > .ff-reveal:nth-child(5){--reveal-delay:.30s}

.ff-pillar {
  --pillar-rgb: 79,140,255;
  isolation: isolate;
}
.ff-pillar:nth-child(1){--pillar-rgb:168,85,247}
.ff-pillar:nth-child(2){--pillar-rgb:34,211,238}
.ff-pillar:nth-child(3){--pillar-rgb:79,140,255}
.ff-pillar:nth-child(4){--pillar-rgb:52,211,153}
.ff-pillar:nth-child(5){--pillar-rgb:251,146,60}
.ff-pillar::before {
  content:"";
  position:absolute;
  inset:auto -35% -12% -35%;
  height:65%;
  z-index:-1;
  background:radial-gradient(circle at 50% 100%, rgba(var(--pillar-rgb),.72), rgba(var(--pillar-rgb),.15) 42%, transparent 72%);
  opacity:.28;
  transform:translateY(42%);
  transition:opacity .45s ease, transform .55s cubic-bezier(.2,.75,.2,1);
}
.ff-pillar::after {
  background:linear-gradient(180deg,rgba(var(--pillar-rgb),.55),rgba(var(--pillar-rgb),.10) 42%,transparent 72%);
}
.ff-pillar:hover,.ff-pillar:focus-visible,.ff-pillar.is-active {
  border-color:rgba(var(--pillar-rgb),.8);
  background:linear-gradient(180deg,rgba(var(--pillar-rgb),.28),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 20px 70px rgba(var(--pillar-rgb),.20);
}
.ff-pillar:hover::before,.ff-pillar:focus-visible::before,.ff-pillar.is-active::before { opacity:1; transform:translateY(0); }
.ff-pillar:hover::after,.ff-pillar:focus-visible::after,.ff-pillar.is-active::after { opacity:1; }
.ff-pillar-message {
  position:absolute;
  inset:22px 10px auto;
  z-index:4;
  display:flex;
  flex-direction:column;
  gap:4px;
  opacity:0;
  transform:translateY(12px) scale(.96);
  transition:opacity .35s ease, transform .4s cubic-bezier(.2,.75,.2,1);
  text-align:center;
  pointer-events:none;
}
.ff-pillar-message b { font-size:.76rem; letter-spacing:-.02em; }
.ff-pillar-message em { color:rgba(255,255,255,.68); font-size:.6rem; line-height:1.25; font-style:normal; }
.ff-pillar:hover .ff-pillar-message,.ff-pillar:focus-visible .ff-pillar-message,.ff-pillar.is-active .ff-pillar-message { opacity:1; transform:translateY(0) scale(1); }
.ff-pillar:hover .ff-pillar-number,.ff-pillar:focus-visible .ff-pillar-number,.ff-pillar.is-active .ff-pillar-number { opacity:0; }
.ff-pillar-number { transition:opacity .25s ease; }

.ff-project { grid-template-columns:1fr 1.15fr; align-items:center; }
.ff-project::before { display:none; }
.ff-project-visual { min-height:520px; display:grid; place-items:center; padding:50px 22px 50px 38px; perspective:1200px; }
.ff-browser {
  width:min(100%,680px);
  aspect-ratio:1.22;
  border:1px solid rgba(255,255,255,.17);
  border-radius:20px;
  overflow:hidden;
  background:#0b0b0e;
  transform:rotateY(-7deg) rotateX(3deg) translateX(18px);
  box-shadow:0 45px 100px rgba(0,0,0,.55), 0 0 80px rgba(79,140,255,.12);
  transition:transform 1.1s cubic-bezier(.2,.75,.2,1), box-shadow .8s ease;
}
.ff-project-reveal:not(.is-visible) .ff-browser { transform:rotateY(-18deg) rotateX(8deg) translateX(90px) scale(.88); }
.ff-project:hover .ff-browser { transform:rotateY(-2deg) rotateX(1deg) translateX(0) scale(1.015); box-shadow:0 55px 120px rgba(0,0,0,.62), 0 0 100px rgba(79,140,255,.2); }
.ff-browser-bar { height:42px; display:flex; align-items:center; gap:7px; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.09); background:#121216; }
.ff-browser-bar i { width:8px; height:8px; border-radius:50%; background:#3f3f46; }
.ff-browser-bar span { margin-left:8px; color:#71717a; font-size:.65rem; }
.ff-browser-screen { min-height:calc(100% - 42px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:30px; background:radial-gradient(circle at 50% 30%,rgba(79,140,255,.22),transparent 38%),linear-gradient(145deg,#17171d,#08080a); }
.ff-ww-crest { width:74px; aspect-ratio:1; display:grid; place-items:center; border:1px solid rgba(255,255,255,.2); border-radius:22px; margin-bottom:18px; font-family:Georgia,serif; font-size:2.25rem; box-shadow:inset 0 0 30px rgba(79,140,255,.16),0 12px 40px rgba(0,0,0,.35); }
.ff-browser-screen strong { font-size:clamp(1.25rem,2.3vw,2.5rem); letter-spacing:-.04em; }
.ff-browser-screen small { color:#a1a1aa; margin-top:6px; }
.ff-browser-lines { width:min(82%,320px); display:grid; gap:8px; margin-top:28px; }
.ff-browser-lines span { height:7px; border-radius:99px; background:linear-gradient(90deg,rgba(79,140,255,.85),rgba(255,255,255,.08)); }
.ff-browser-lines span:nth-child(2){width:78%}.ff-browser-lines span:nth-child(3){width:56%}

.ff-pillar-card.ff-reveal.is-visible:hover { transform:translateY(-7px); }
.ff-step.ff-reveal.is-visible:hover { transform:translateY(-5px); }

@media (max-width:980px){
  .ff-project { grid-template-columns:1fr; }
  .ff-project-visual { min-height:390px; padding:38px 28px 0; }
  .ff-browser { transform:rotateY(-4deg) rotateX(2deg); }
}
@media (max-width:760px){
  .ff-pillar-message { display:none; }
  .ff-project-visual { min-height:290px; padding:30px 18px 0; }
  .ff-browser { border-radius:14px; }
  .ff-browser-bar { height:34px; }
  .ff-browser-screen { min-height:calc(100% - 34px); }
  .ff-ww-crest { width:54px; border-radius:15px; font-size:1.65rem; }
}

/* ForgeFive refinement system — v0.3 */
.ff-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: 2px;
  pointer-events: none;
}
.ff-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,#a855f7,#22d3ee,#4f8cff,#34d399,#fb923c);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.primary-nav a.is-current { color: var(--ff-text); }
.primary-nav a.is-current::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--ff-accent);
  transform: scaleX(1);
}
.ff-section-reveal {
  position: relative;
}
.ff-section-reveal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px),var(--ff-max));
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);
  transform: translateX(-50%) scaleX(.25);
  opacity: 0;
  transition: transform 1s cubic-bezier(.2,.75,.2,1),opacity .7s ease;
}
.ff-section-reveal.is-section-visible::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}
.ff-section-head .ff-reveal:first-child { transform: translate3d(-28px,28px,0); }
.ff-section-head .ff-reveal:last-child { transform: translate3d(28px,28px,0); }
.ff-section-head .ff-reveal.is-visible { transform: translate3d(0,0,0); }

.ff-quality { padding: 16px 0 24px; }
.ff-quality-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-block: 1px solid var(--ff-line);
}
.ff-quality-item {
  padding: 28px 24px;
  border-right: 1px solid var(--ff-line);
}
.ff-quality-item:last-child { border-right: 0; }
.ff-quality-item strong { display:block; font-size:1rem; margin-bottom:4px; }
.ff-quality-item span { color:var(--ff-muted); font-size:.82rem; }

.ff-capabilities { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ff-capability {
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius);
  background: linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008));
  transition: transform .35s ease,border-color .35s ease,background .35s ease;
}
.ff-capability:hover { transform:translateY(-7px); border-color:rgba(79,140,255,.45); background:linear-gradient(180deg,rgba(79,140,255,.07),rgba(255,255,255,.01)); }
.ff-capability > span { color:#71717a; font-size:.75rem; }
.ff-capability h3 { font-size:1.65rem; letter-spacing:-.035em; margin:54px 0 12px; }
.ff-capability p { color:var(--ff-muted); }
.ff-capability ul { list-style:none; padding:0; margin:34px 0 0; display:grid; gap:12px; }
.ff-capability li { color:#d4d4d8; font-size:.9rem; padding-top:12px; border-top:1px solid var(--ff-line); }
.ff-capability li::before { content:"↳"; color:var(--ff-accent); margin-right:8px; }

/* Restore the original Winners Warband feature-card direction. */
.ff-project {
  min-height: 520px;
  display:grid;
  grid-template-columns:1fr;
  align-items:end;
  background:radial-gradient(circle at 72% 28%,rgba(79,140,255,.22),transparent 28%),linear-gradient(145deg,#18181b,#0d0d10);
}
.ff-project::before {
  display:block;
  content:"";
  position:absolute;
  width:62%;
  height:74%;
  right:-4%;
  top:13%;
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  background:linear-gradient(150deg,rgba(255,255,255,.09),rgba(255,255,255,.015));
  transform:rotate(-5deg);
  box-shadow:var(--ff-shadow);
  transition:transform 1s cubic-bezier(.2,.75,.2,1),opacity .8s ease;
}
.ff-project:not(.is-visible)::before { transform:translate3d(100px,20px,0) rotate(-12deg) scale(.9); opacity:0; }
.ff-project.is-visible::before { transform:rotate(-5deg); opacity:1; }
.ff-project-content { position:relative; z-index:2; padding:40px; max-width:650px; }
.ff-project-tags { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 28px; }
.ff-project-tags span { padding:7px 10px; border:1px solid var(--ff-line); border-radius:999px; color:#d4d4d8; font-size:.72rem; background:rgba(9,9,11,.52); }

.ff-step { transition:transform .3s ease,border-color .3s ease; }
.ff-step:hover { border-color:var(--ff-accent); }
.ff-cta-panel { overflow:hidden; position:relative; }
.ff-cta-panel::after {
  content:"";
  position:absolute;
  width:280px;
  aspect-ratio:1;
  right:-90px;
  bottom:-140px;
  border-radius:50%;
  border:1px solid rgba(79,140,255,.22);
  box-shadow:0 0 90px rgba(79,140,255,.12);
  transform:scale(.75);
  opacity:0;
  transition:transform 1.1s cubic-bezier(.2,.75,.2,1),opacity .8s ease;
}
.ff-section-reveal.is-section-visible .ff-cta-panel::after { transform:scale(1); opacity:1; }

@media (max-width:980px){
  .ff-quality-grid { grid-template-columns:repeat(2,1fr); }
  .ff-quality-item:nth-child(2) { border-right:0; }
  .ff-quality-item:nth-child(-n+2) { border-bottom:1px solid var(--ff-line); }
  .ff-capabilities { grid-template-columns:1fr; }
  .ff-capability { min-height:auto; }
}
@media (max-width:760px){
  .ff-quality-grid { grid-template-columns:1fr; }
  .ff-quality-item { border-right:0; border-bottom:1px solid var(--ff-line); }
  .ff-quality-item:last-child { border-bottom:0; }
  .ff-section-head .ff-reveal:first-child,.ff-section-head .ff-reveal:last-child { transform:translate3d(0,28px,0); }
  .ff-section-head .ff-reveal.is-visible { transform:none; }
  .ff-project::before { width:88%; height:58%; top:10%; right:-12%; }
  .ff-project-content { padding:26px; }
}

/* ForgeFive v0.4 — load choreography and logo refinement */
@media (max-width:420px){.ff-wordmark{font-size:.76rem;letter-spacing:.11em}.ff-logo-mark{width:29px;height:25px}}

/* Homepage Evolution — cinematic hero + interactive architectural pillars */
.ff-cinematic-hero {
  min-height:100svh;
  padding:110px 0 54px;
  isolation:isolate;
  background:#08090c;
}
.ff-cinematic-hero::before {
  inset:-20% -10% auto;
  height:78%;
  background:radial-gradient(circle at 54% 42%,rgba(79,140,255,.19),transparent 46%);
  filter:blur(38px);
  opacity:0;
  animation:ffHeroAura 1.8s ease 1.1s forwards;
}
.ff-cinematic-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background-image:linear-gradient(rgba(148,177,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(148,177,255,.07) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.85) 68%,transparent 100%);
  opacity:0;
  animation:ffGridFade .9s ease .05s forwards;
}
.ff-hero-blueprint { position:absolute; inset:76px 0 0; z-index:-1; pointer-events:none; opacity:.55; }
.ff-blueprint-axis { position:absolute; display:block; background:rgba(139,174,255,.15); transform-origin:left center; opacity:0; }
.ff-blueprint-axis-x { left:4%; right:4%; top:58%; height:1px; animation:ffBlueprintX 1.2s ease .5s forwards; }
.ff-blueprint-axis-y { top:7%; bottom:9%; left:50%; width:1px; transform-origin:center top; animation:ffBlueprintY 1.2s ease .7s forwards; }
.ff-blueprint-measure { position:absolute; color:rgba(176,199,255,.35); font-size:.6rem; letter-spacing:.18em; opacity:0; animation:ffSoftIn .7s ease 1.4s forwards; }
.ff-blueprint-measure-one { left:4%; top:calc(58% - 22px); }
.ff-blueprint-measure-two { right:4%; bottom:8%; }
.ff-cinematic-stage { min-height:calc(100svh - 164px); display:grid; grid-template-columns:minmax(0,.78fr) minmax(560px,1.22fr); gap:clamp(28px,5vw,78px); align-items:center; position:relative; }
.ff-hero-intro { position:relative; z-index:5; padding-bottom:24px; }
.ff-cinema-eyebrow { color:#9ebdff; font-size:.72rem; font-weight:800; letter-spacing:.2em; text-transform:uppercase; opacity:0; transform:translateY(10px); animation:ffSoftUp .65s ease 1.78s forwards; }
.ff-cinema-wordmark { margin:16px 0 0; font-size:clamp(4rem,8vw,8.1rem); line-height:.82; letter-spacing:-.075em; font-weight:850; opacity:0; filter:blur(14px); transform:scale(.97); animation:ffWordmarkFocus .85s cubic-bezier(.2,.75,.2,1) 2s forwards; }
.ff-cinema-tagline { margin:24px 0 0; font-size:clamp(1.12rem,2vw,1.55rem); letter-spacing:-.025em; font-weight:650; opacity:0; transform:translateY(14px); animation:ffSoftUp .65s ease 2.4s forwards; }
.ff-cinema-lead { max-width:520px; margin:13px 0 0; color:var(--ff-muted); font-size:1rem; opacity:0; transform:translateY(14px); animation:ffSoftUp .65s ease 2.58s forwards; }
.ff-cinema-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:29px; opacity:0; transform:translateY(16px); animation:ffSoftUp .68s ease 2.8s forwards; }
.ff-architecture { height:min(68vh,650px); min-height:490px; position:relative; display:flex; align-items:flex-end; padding:28px 14px 44px; perspective:1400px; }
.ff-foundation { position:absolute; left:0; right:0; bottom:43px; height:18px; display:flex; align-items:center; }
.ff-foundation::before,.ff-foundation::after { content:""; position:absolute; left:0; right:0; border-top:1px solid rgba(181,203,255,.24); opacity:0; transform:scaleX(0); transform-origin:left; }
.ff-foundation::before { top:4px; animation:ffFoundationDraw .72s cubic-bezier(.2,.75,.2,1) .5s forwards; }
.ff-foundation::after { top:13px; animation:ffFoundationDraw .72s cubic-bezier(.2,.75,.2,1) .62s forwards; }
.ff-foundation span { width:100%; height:100%; opacity:0; background:repeating-linear-gradient(90deg,transparent 0 18px,rgba(181,203,255,.18) 18px 19px); animation:ffSoftIn .4s ease .85s forwards; }
.ff-architectural-pillars { width:100%; height:100%; display:grid; grid-template-columns:repeat(5,1fr); gap:clamp(8px,1.15vw,16px); align-items:end; position:relative; }
.ff-architectural-pillar {
  --lift:0px;
  position:relative;
  height:var(--pillar-height);
  min-width:0;
  padding:0;
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  border-bottom:0;
  border-radius:8px 8px 1px 1px;
  background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.13) 48%,rgba(255,255,255,.025));
  box-shadow:inset 1px 0 rgba(255,255,255,.08),inset -1px 0 rgba(0,0,0,.5),0 30px 80px rgba(0,0,0,.28);
  overflow:visible;
  transform:translateY(calc(100% + 44px)) scaleY(.04);
  transform-origin:center bottom;
  opacity:0;
  cursor:pointer;
  transition:height .5s cubic-bezier(.2,.75,.2,1),transform .5s cubic-bezier(.2,.75,.2,1),border-color .35s ease,background .35s ease,box-shadow .35s ease;
  animation:ffArchitecturalRise .82s cubic-bezier(.16,.86,.25,1) calc(1s + (var(--pillar-index) * .2s)) forwards;
}
.ff-architectural-pillar::before { content:""; position:absolute; inset:10px; border-left:1px solid rgba(255,255,255,.08); border-right:1px solid rgba(255,255,255,.035); pointer-events:none; }
.ff-architectural-pillar::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(var(--pillar-rgb),.36),rgba(var(--pillar-rgb),.08) 45%,transparent 78%); opacity:0; transition:opacity .35s ease; }
.ff-pillar-top { position:absolute; left:-5px; right:-5px; top:-9px; height:10px; border:1px solid rgba(255,255,255,.22); background:linear-gradient(90deg,#11131a,#2a2d37 50%,#101116); box-shadow:0 5px 15px rgba(0,0,0,.4); }
.ff-pillar-index { position:absolute; top:18px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,.38); font-size:.66rem; letter-spacing:.12em; transition:opacity .25s ease; }
.ff-architectural-pillar strong { position:absolute; left:50%; bottom:20px; transform:translateX(-50%) rotate(180deg); writing-mode:vertical-rl; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; white-space:nowrap; }
.ff-pillar-icon { position:absolute; top:23px; left:50%; transform:translate(-50%,8px); font-size:1.25rem; color:rgb(var(--pillar-rgb)); opacity:0; transition:opacity .3s ease,transform .35s ease; }
.ff-pillar-detail { position:absolute; z-index:5; left:50%; bottom:72px; width:min(220px,21vw); padding:13px 14px; border:1px solid rgba(var(--pillar-rgb),.42); border-radius:11px; background:rgba(8,9,12,.92); backdrop-filter:blur(16px); color:#d9deea; font-size:.72rem; line-height:1.45; text-align:left; opacity:0; transform:translate(-50%,16px) scale(.96); pointer-events:none; transition:opacity .3s ease,transform .38s cubic-bezier(.2,.75,.2,1); box-shadow:0 18px 45px rgba(0,0,0,.5); }
.ff-pillar-blueprint { position:absolute; inset:-34px -13px -28px; border:1px dashed rgba(var(--pillar-rgb),.34); opacity:0; transform:scale(.92); transition:opacity .35s ease,transform .4s ease; pointer-events:none; }
.ff-pillar-blueprint::before,.ff-pillar-blueprint::after { content:""; position:absolute; background:rgba(var(--pillar-rgb),.34); }
.ff-pillar-blueprint::before { left:50%; top:-18px; bottom:-18px; width:1px; }
.ff-pillar-blueprint::after { top:50%; left:-18px; right:-18px; height:1px; }
.ff-architectural-pillar:hover,.ff-architectural-pillar:focus-visible,.ff-architectural-pillar.is-active { --lift:-14px; height:calc(var(--pillar-height) + 5%); transform:translateY(var(--lift)) scaleY(1.01); outline:none; border-color:rgba(var(--pillar-rgb),.72); background:linear-gradient(90deg,rgba(var(--pillar-rgb),.08),rgba(var(--pillar-rgb),.24) 48%,rgba(var(--pillar-rgb),.06)); box-shadow:inset 1px 0 rgba(255,255,255,.15),0 28px 90px rgba(var(--pillar-rgb),.19); z-index:10; }
.ff-architectural-pillar:hover::after,.ff-architectural-pillar:focus-visible::after,.ff-architectural-pillar.is-active::after,.ff-architectural-pillar:hover .ff-pillar-blueprint,.ff-architectural-pillar:focus-visible .ff-pillar-blueprint,.ff-architectural-pillar.is-active .ff-pillar-blueprint { opacity:1; }
.ff-architectural-pillar:hover .ff-pillar-blueprint,.ff-architectural-pillar:focus-visible .ff-pillar-blueprint,.ff-architectural-pillar.is-active .ff-pillar-blueprint { transform:scale(1); }
.ff-architectural-pillar:hover .ff-pillar-icon,.ff-architectural-pillar:focus-visible .ff-pillar-icon,.ff-architectural-pillar.is-active .ff-pillar-icon { opacity:1; transform:translate(-50%,0); }
.ff-architectural-pillar:hover .ff-pillar-index,.ff-architectural-pillar:focus-visible .ff-pillar-index,.ff-architectural-pillar.is-active .ff-pillar-index { opacity:0; }
.ff-architectural-pillar:hover .ff-pillar-detail,.ff-architectural-pillar:focus-visible .ff-pillar-detail,.ff-architectural-pillar.is-active .ff-pillar-detail { opacity:1; transform:translate(-50%,0) scale(1); }
.ff-architecture-caption { position:absolute; left:14px; right:14px; bottom:12px; display:flex; justify-content:space-between; color:rgba(172,193,238,.35); font-size:.55rem; letter-spacing:.16em; opacity:0; animation:ffSoftIn .6s ease 2.15s forwards; }
.ff-scroll-cue { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); display:flex; align-items:center; gap:11px; color:#727682; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; opacity:0; animation:ffSoftIn .7s ease 3.25s forwards; }
.ff-scroll-cue i { width:34px; height:1px; background:#7fa6ff; position:relative; overflow:hidden; }
.ff-scroll-cue i::after { content:""; position:absolute; inset:0; background:#fff; transform:translateX(-100%); animation:ffScrollSweep 2s ease-in-out 3.5s infinite; }
@keyframes ffGridFade { to{opacity:1} }
@keyframes ffFoundationDraw { to{opacity:1;transform:scaleX(1)} }
@keyframes ffArchitecturalRise { 0%{opacity:0;transform:translateY(calc(100% + 44px)) scaleY(.04)} 25%{opacity:1} 100%{opacity:1;transform:translateY(0) scaleY(1)} }
@keyframes ffWordmarkFocus { to{opacity:1;filter:blur(0);transform:scale(1)} }
@keyframes ffSoftUp { to{opacity:1;transform:translateY(0)} }
@keyframes ffSoftIn { to{opacity:1} }
@keyframes ffHeroAura { to{opacity:1} }
@keyframes ffBlueprintX { from{opacity:0;transform:scaleX(.05)} to{opacity:1;transform:scaleX(1)} }
@keyframes ffBlueprintY { from{opacity:0;transform:scaleY(.05)} to{opacity:1;transform:scaleY(1)} }
@keyframes ffScrollSweep { 0%,15%{transform:translateX(-100%)} 55%,100%{transform:translateX(100%)} }
@media (max-width:1080px) {
  .ff-cinematic-stage { grid-template-columns:1fr; padding-top:50px; }
  .ff-hero-intro { max-width:780px; }
  .ff-architecture { width:min(100%,760px); height:510px; min-height:0; margin:-20px auto 0; }
  .ff-cinematic-hero { padding-bottom:76px; }
}
@media (max-width:700px) {
  .ff-cinematic-hero { padding-top:90px; }
  .ff-cinematic-stage { min-height:auto; padding-top:35px; }
  .ff-cinema-wordmark { font-size:clamp(3.5rem,19vw,5.6rem); }
  .ff-cinema-lead { font-size:.93rem; }
  .ff-architecture { height:390px; margin-top:12px; padding-inline:0; }
  .ff-architectural-pillars { gap:6px; }
  .ff-architectural-pillar strong { font-size:.58rem; bottom:14px; }
  .ff-pillar-detail { position:fixed; left:14px; right:14px; bottom:16px; width:auto; transform:translateY(16px) scale(.98); }
  .ff-architectural-pillar:hover .ff-pillar-detail,.ff-architectural-pillar:focus-visible .ff-pillar-detail,.ff-architectural-pillar.is-active .ff-pillar-detail { transform:translateY(0) scale(1); }
  .ff-architecture-caption span:nth-child(2) { display:none; }
  .ff-scroll-cue { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .ff-cinematic-hero::after,.ff-cinematic-hero::before,.ff-blueprint-axis,.ff-blueprint-measure,.ff-cinema-eyebrow,.ff-cinema-wordmark,.ff-cinema-tagline,.ff-cinema-lead,.ff-cinema-actions,.ff-architectural-pillar,.ff-foundation::before,.ff-foundation::after,.ff-foundation span,.ff-architecture-caption,.ff-scroll-cue { animation:none!important; opacity:1!important; transform:none!important; filter:none!important; }
}

/* The Forge — scroll-engineered process v0.6 */
.ff-forge {
  position: relative;
  overflow: clip;
  padding: clamp(100px,12vw,180px) 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 18% 20%,rgba(79,140,255,.12),transparent 30%),
    radial-gradient(circle at 82% 78%,rgba(34,211,238,.06),transparent 28%),
    #07090d;
}
.ff-forge-grid {
  position:absolute;
  inset:0;
  opacity:.34;
  background-image:
    linear-gradient(rgba(121,169,255,.075) 1px,transparent 1px),
    linear-gradient(90deg,rgba(121,169,255,.075) 1px,transparent 1px),
    linear-gradient(rgba(121,169,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(121,169,255,.035) 1px,transparent 1px);
  background-size:80px 80px,80px 80px,16px 16px,16px 16px;
  mask-image:linear-gradient(90deg,rgba(0,0,0,.8),#000 50%,rgba(0,0,0,.5));
}
.ff-forge-layout { position:relative; display:grid; grid-template-columns:minmax(260px,.72fr) minmax(540px,1.28fr); gap:clamp(45px,8vw,110px); align-items:start; }
.ff-forge-intro { position:sticky; top:150px; padding-top:12px; }
.ff-forge-intro h2 { margin:18px 0 25px; font-size:clamp(3rem,5vw,5.4rem); line-height:.92; letter-spacing:-.065em; }
.ff-forge-intro > p { max-width:510px; color:#aeb8c8; font-size:1.04rem; line-height:1.75; }
.ff-forge-spec { display:grid; gap:9px; margin-top:42px; padding-top:19px; border-top:1px solid rgba(136,180,255,.24); color:rgba(175,204,255,.5); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.63rem; letter-spacing:.13em; }
.ff-forge-blueprint { position:relative; display:grid; gap:54px; padding:42px 0 44px; }
.ff-forge-spine { position:absolute; left:50%; top:30px; bottom:72px; width:1px; background:rgba(119,166,246,.15); transform:translateX(-50%); }
.ff-forge-spine span { display:block; width:1px; height:100%; background:linear-gradient(#9cc2ff,#55d7ef 78%,#79f2c0); transform:scaleY(0); transform-origin:top; box-shadow:0 0 14px rgba(105,174,255,.45); transition:transform 2.4s cubic-bezier(.2,.7,.15,1); }
.ff-forge.is-forging .ff-forge-spine span { transform:scaleY(1); }
.ff-forge-stage { position:relative; width:calc(50% - 42px); opacity:.32; filter:saturate(.2); transform:translateY(30px); transition:opacity .6s ease,filter .6s ease,transform .8s cubic-bezier(.2,.75,.2,1); transition-delay:calc(var(--stage) * .18s); }
.ff-forge-stage:nth-of-type(odd) { margin-right:auto; }
.ff-forge-stage:nth-of-type(even) { margin-left:auto; }
.ff-forge-stage::after { content:""; position:absolute; top:50%; width:42px; height:1px; background:linear-gradient(90deg,rgba(126,177,255,.9),rgba(126,177,255,.18)); transform:scaleX(0); transition:transform .48s ease calc(var(--stage) * .18s + .18s); }
.ff-forge-stage:nth-of-type(odd)::after { left:100%; transform-origin:left; }
.ff-forge-stage:nth-of-type(even)::after { right:100%; transform-origin:right; background:linear-gradient(90deg,rgba(126,177,255,.18),rgba(126,177,255,.9)); }
.ff-forge-stage.is-forged { opacity:1; filter:saturate(1); transform:translateY(0); }
.ff-forge-stage.is-forged::after { transform:scaleX(1); }
.ff-forge-node { position:absolute; top:50%; width:13px; height:13px; border:1px solid rgba(139,185,255,.8); background:#090d14; transform:translateY(-50%) rotate(45deg) scale(.45); opacity:.2; transition:transform .5s ease calc(var(--stage) * .18s + .3s),opacity .4s ease; z-index:2; }
.ff-forge-stage:nth-of-type(odd) .ff-forge-node { left:calc(100% + 36px); }
.ff-forge-stage:nth-of-type(even) .ff-forge-node { right:calc(100% + 36px); }
.ff-forge-stage.is-forged .ff-forge-node { transform:translateY(-50%) rotate(45deg) scale(1); opacity:1; box-shadow:0 0 18px rgba(83,164,255,.65); }
.ff-forge-node i { position:absolute; inset:3px; background:#96bdff; }
.ff-forge-box { position:relative; min-height:230px; padding:27px 27px 24px; border:1px solid rgba(137,178,242,.20); background:linear-gradient(145deg,rgba(19,28,43,.83),rgba(8,12,19,.72)); clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); transition:border-color .45s ease,background .45s ease,box-shadow .45s ease,transform .45s ease; }
.ff-forge-box::before,.ff-forge-box::after { content:""; position:absolute; background:rgba(140,188,255,.8); opacity:0; transition:opacity .35s ease .25s; }
.ff-forge-box::before { top:-1px; left:18px; width:44px; height:1px; }
.ff-forge-box::after { left:-1px; top:18px; width:1px; height:44px; }
.ff-forge-stage.is-forged .ff-forge-box { border-color:rgba(132,183,255,.48); background:linear-gradient(145deg,rgba(28,44,67,.92),rgba(8,13,21,.82)); box-shadow:inset 0 0 34px rgba(75,143,240,.06),0 18px 70px rgba(0,0,0,.25); }
.ff-forge-stage.is-forged .ff-forge-box::before,.ff-forge-stage.is-forged .ff-forge-box::after { opacity:1; }
.ff-forge-stage:hover .ff-forge-box { transform:translateY(-5px); border-color:rgba(134,192,255,.72); box-shadow:inset 0 0 45px rgba(75,143,240,.1),0 25px 80px rgba(0,0,0,.38); }
.ff-forge-number,.ff-forge-box small { display:block; color:rgba(159,197,255,.52); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.62rem; letter-spacing:.14em; }
.ff-forge-number { margin-bottom:28px; }
.ff-forge-icon { position:absolute; top:23px; right:24px; display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(139,187,255,.23); color:#a7c8ff; font-size:1.15rem; }
.ff-forge-box h3 { margin:0 0 11px; font-size:clamp(1.7rem,2.7vw,2.5rem); letter-spacing:-.045em; }
.ff-forge-box p { margin:0 0 26px; color:#9da9ba; line-height:1.62; font-size:.91rem; }
.ff-forge-output { justify-self:center; position:relative; z-index:2; display:grid; gap:4px; width:min(84%,420px); padding:18px 22px; border:1px solid rgba(103,227,190,.27); background:rgba(20,61,53,.12); text-align:center; opacity:0; transform:translateY(18px); transition:opacity .55s ease 1.15s,transform .55s ease 1.15s; }
.ff-forge.is-complete .ff-forge-output { opacity:1; transform:none; }
.ff-forge-output span { color:rgba(116,231,198,.7); font:600 .6rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.18em; }
.ff-forge-output strong { color:#d9fff3; font-size:.9rem; letter-spacing:.08em; }
.ff-forge-coordinate { position:absolute; color:rgba(154,191,255,.34); font:500 .58rem/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.12em; }
.ff-forge-coordinate-a { top:5px; left:10px; }
.ff-forge-coordinate-b { right:6px; bottom:14px; writing-mode:vertical-rl; }
@media (max-width:980px){
  .ff-forge-layout { grid-template-columns:1fr; }
  .ff-forge-intro { position:relative; top:auto; max-width:720px; }
  .ff-forge-blueprint { max-width:780px; width:100%; margin-inline:auto; }
}
@media (max-width:680px){
  .ff-forge { padding-block:90px; }
  .ff-forge-grid { background-size:48px 48px,48px 48px,12px 12px,12px 12px; }
  .ff-forge-blueprint { gap:34px; padding-left:34px; }
  .ff-forge-spine { left:8px; transform:none; }
  .ff-forge-stage,.ff-forge-stage:nth-of-type(odd),.ff-forge-stage:nth-of-type(even) { width:100%; margin:0; }
  .ff-forge-stage::after,.ff-forge-stage:nth-of-type(odd)::after,.ff-forge-stage:nth-of-type(even)::after { right:100%; left:auto; width:26px; transform-origin:right; background:linear-gradient(90deg,rgba(126,177,255,.2),rgba(126,177,255,.9)); }
  .ff-forge-stage .ff-forge-node,.ff-forge-stage:nth-of-type(odd) .ff-forge-node,.ff-forge-stage:nth-of-type(even) .ff-forge-node { right:calc(100% + 20px); left:auto; }
  .ff-forge-box { min-height:0; padding:24px 22px; }
  .ff-forge-number { margin-bottom:24px; }
  .ff-forge-output { width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .ff-forge-spine span,.ff-forge-stage,.ff-forge-stage::after,.ff-forge-node,.ff-forge-output { transition:none!important; }
}


/* ForgeFive v0.7 — supplied brand logo and header spacing fix */
.header-inner { min-height:88px; }
.site-branding {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-width:0;
  padding:8px 0;
}
.ff-header-logo {
  display:block;
  width:auto;
  height:64px;
  max-width:150px;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.22));
  transition:transform .28s cubic-bezier(.2,.75,.2,1),filter .28s ease;
}
.site-branding:hover .ff-header-logo,
.site-branding:focus-visible .ff-header-logo {
  transform:translateY(-1px);
  filter:drop-shadow(0 8px 22px rgba(79,140,255,.22));
}
@media (max-width:900px) {
  .header-inner { min-height:78px; }
  .ff-header-logo { height:54px; max-width:126px; }
}
@media (max-width:420px) {
  .header-inner { min-height:72px; }
  .ff-header-logo { height:48px; max-width:112px; }
}


/* ForgeFive v0.8 — clean white transparent identity */
.ff-header-logo {
  height:58px;
  max-width:190px;
  filter:none;
}
.site-branding:hover .ff-header-logo,
.site-branding:focus-visible .ff-header-logo {
  transform:translateY(-1px);
  filter:drop-shadow(0 8px 22px rgba(255,255,255,.12));
}
.ff-cinema-logo-wrap {
  margin:18px 0 0;
  width:min(100%,690px);
  line-height:1;
  opacity:0;
  filter:blur(14px);
  transform:scale(.97);
  animation:ffWordmarkFocus .85s cubic-bezier(.2,.75,.2,1) 2s forwards;
}
.ff-cinema-logo {
  display:block;
  width:100%;
  height:auto;
  max-height:300px;
  object-fit:contain;
  object-position:left center;
}
.ff-hero-intro {
  padding-bottom:42px;
}
@media (max-width:900px) {
  .ff-header-logo { height:50px; max-width:164px; }
  .ff-cinema-logo-wrap { width:min(100%,570px); margin-inline:auto; }
  .ff-cinema-logo { object-position:center; }
  .ff-hero-intro { padding-bottom:28px; }
}
@media (max-width:420px) {
  .ff-header-logo { height:44px; max-width:145px; }
  .ff-cinema-logo-wrap { width:min(100%,430px); }
}
@media (prefers-reduced-motion:reduce) {
  .ff-cinema-logo-wrap { animation:none!important; opacity:1!important; transform:none!important; filter:none!important; }
}


/* ForgeFive v0.9 — text header, mobile polish, ownership model and interaction fixes */
.ff-text-brand { padding:0; flex-shrink:0; }
.ff-text-wordmark {
  display:block;
  color:#fff;
  font-size:clamp(1.12rem,1.45vw,1.42rem);
  line-height:1;
  font-weight:850;
  letter-spacing:.185em;
  white-space:nowrap;
  text-shadow:0 0 24px rgba(255,255,255,.05);
  transition:color .25s ease,text-shadow .25s ease;
}
.ff-text-brand:hover .ff-text-wordmark,.ff-text-brand:focus-visible .ff-text-wordmark { color:#dce8ff; text-shadow:0 0 20px rgba(116,167,255,.24); }

/* Hero's primary action illuminates instead of lifting. */
.ff-cinema-actions .ff-button-primary:hover,
.ff-cinema-actions .ff-button-primary:focus-visible {
  transform:none;
  background:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.2),0 0 30px rgba(111,164,255,.3),0 12px 34px rgba(0,0,0,.28);
}

/* Stop the schematic spine before the verified output module. */
.ff-forge-spine { bottom:132px; }
.ff-forge-output::before {
  content:"";
  position:absolute;
  left:50%;
  top:-18px;
  width:9px;
  height:9px;
  border:1px solid rgba(103,227,190,.58);
  background:#09110f;
  transform:translateX(-50%) rotate(45deg);
  box-shadow:0 0 15px rgba(103,227,190,.22);
}

.ff-ownership { position:relative; overflow:hidden; }
.ff-ownership::before { content:""; position:absolute; inset:10% -15% auto auto; width:480px; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(79,140,255,.1),transparent 68%); pointer-events:none; }
.ff-ownership-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ff-ownership-card { position:relative; min-height:360px; padding:34px; border:1px solid var(--ff-line); border-radius:24px; background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); }
.ff-ownership-card-featured { border-color:rgba(112,164,255,.38); background:linear-gradient(145deg,rgba(67,111,184,.14),rgba(255,255,255,.018)); box-shadow:inset 0 0 55px rgba(79,140,255,.035); }
.ff-ownership-number { color:#93b9ff; font:700 .68rem/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.15em; }
.ff-ownership-card h3 { margin:54px 0 14px; font-size:clamp(1.75rem,3vw,2.65rem); letter-spacing:-.045em; }
.ff-ownership-card p { max-width:540px; color:var(--ff-muted); line-height:1.65; }
.ff-ownership-card ul { display:grid; gap:10px; margin:28px 0 0; padding:0; list-style:none; color:#d7dce6; }
.ff-ownership-card li { display:flex; align-items:center; gap:10px; }
.ff-ownership-card li::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--ff-accent); box-shadow:0 0 10px rgba(79,140,255,.55); }

@media (max-width:980px) {
  .header-inner { min-height:74px; gap:16px; }
  .primary-nav ul { gap:20px; font-size:.88rem; }
  .ff-text-wordmark { font-size:1.18rem; }
  .ff-cinematic-stage { padding-top:18px; }
  .ff-architecture { width:min(100%,720px); margin-inline:auto; }
}
@media (max-width:760px) {
  html,body { max-width:100%; overflow-x:hidden; }
  .header-inner { min-height:68px; }
  .ff-text-wordmark { font-size:1.08rem; letter-spacing:.15em; }
  .primary-nav { top:72px; max-height:calc(100svh - 88px); overflow:auto; }
  .primary-nav a { display:block; width:100%; padding:5px 0; }
  .ff-header-cta { text-align:center; padding:12px 16px!important; }
  .ff-cinematic-hero { min-height:auto; padding:112px 0 62px; }
  .ff-cinematic-stage { width:min(calc(100% - 24px),var(--ff-max)); }
  .ff-hero-intro { text-align:center; padding-bottom:20px; }
  .ff-cinema-eyebrow { justify-content:center; }
  .ff-cinema-lead { max-width:34rem; margin-inline:auto; font-size:1rem; }
  .ff-cinema-actions { justify-content:center; }
  .ff-cinema-actions .ff-button { width:100%; max-width:330px; }
  .ff-architecture { min-height:430px; margin-top:24px; }
  .ff-architectural-pillars { gap:7px; padding-inline:3px; }
  .ff-architectural-pillar strong { font-size:.58rem; letter-spacing:.11em; }
  .ff-pillar-detail { position:fixed; left:14px; right:14px; bottom:18px; width:auto; transform:translateY(16px) scale(.98); }
  .ff-architectural-pillar.is-active .ff-pillar-detail { transform:translateY(0) scale(1); }
  .ff-architecture-caption { font-size:.52rem; gap:7px; }
  .ff-section { padding:76px 0; }
  .ff-section h2 { font-size:clamp(2.35rem,12vw,3.7rem); }
  .ff-section-head { margin-bottom:36px; gap:22px; }
  .ff-capabilities { grid-template-columns:1fr; }
  .ff-capability { min-height:auto; }
  .ff-project { min-height:450px; border-radius:22px; }
  .ff-forge-layout { gap:40px; }
  .ff-forge-intro h2 { font-size:clamp(2.65rem,13vw,4rem); }
  .ff-forge-blueprint { padding-left:28px; }
  .ff-forge-spine { left:7px; bottom:118px; }
  .ff-forge-stage::after,.ff-forge-stage:nth-of-type(odd)::after,.ff-forge-stage:nth-of-type(even)::after { width:20px; }
  .ff-forge-stage .ff-forge-node,.ff-forge-stage:nth-of-type(odd) .ff-forge-node,.ff-forge-stage:nth-of-type(even) .ff-forge-node { right:calc(100% + 14px); }
  .ff-forge-box h3 { font-size:1.8rem; }
  .ff-forge-output { padding:18px 14px; }
  .ff-ownership-options { grid-template-columns:1fr; }
  .ff-ownership-card { min-height:0; padding:27px 23px; border-radius:20px; }
  .ff-ownership-card h3 { margin-top:40px; }
  .ff-cta-panel { padding:42px 22px; border-radius:24px; }
  .ff-cta-panel .ff-button { width:100%; max-width:360px; overflow-wrap:anywhere; }
}
@media (max-width:420px) {
  .ff-container { width:min(calc(100% - 22px),var(--ff-max)); }
  .ff-text-wordmark { font-size:1rem; letter-spacing:.135em; }
  .ff-menu-toggle { padding:7px 10px; }
  .ff-cinematic-hero { padding-top:98px; }
  .ff-cinema-logo-wrap { width:100%; }
  .ff-architecture { min-height:380px; }
  .ff-architectural-pillar { min-width:0; }
  .ff-pillar-index { font-size:.52rem; }
  .ff-pillar-icon { font-size:1rem; }
  .ff-forge-blueprint { gap:28px; padding-left:25px; }
  .ff-forge-box { padding:22px 18px; }
  .ff-forge-icon { width:34px; height:34px; right:17px; }
}


/* ForgeFive v1.0 — header logo restored, hero simplified, CTA glow-only */
.site-branding {
  padding:4px 0;
  overflow:visible;
}
.ff-header-logo {
  display:block;
  width:auto;
  height:76px;
  max-width:220px;
  object-fit:contain;
  object-position:left center;
  filter:none;
  transform:none!important;
}
.site-branding:hover .ff-header-logo,
.site-branding:focus-visible .ff-header-logo {
  transform:none!important;
  filter:drop-shadow(0 0 18px rgba(255,255,255,.16));
}
.ff-cinema-wordmark {
  margin:18px auto 0;
  max-width:none!important;
  color:#fff;
  font-size:clamp(3.2rem,8.8vw,8.4rem)!important;
  line-height:.84!important;
  font-weight:850;
  letter-spacing:.12em!important;
  text-indent:.12em;
  text-align:center;
  opacity:0;
  filter:blur(14px);
  transform:scale(.97);
  animation:ffWordmarkFocus .85s cubic-bezier(.2,.75,.2,1) 2s forwards;
}
.ff-cinema-tagline {
  margin:26px 0 0;
  color:#aeb6c5;
  font-size:clamp(.78rem,1.35vw,1rem);
  font-weight:700;
  letter-spacing:.34em;
  text-transform:uppercase;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  animation:ffCinemaReveal .65s ease 2.4s forwards;
}
.ff-hero-intro { padding-bottom:38px; }

/* Start Project in the header: illuminate only, never lift. */
.ff-header-cta,
.ff-header-cta:hover,
.ff-header-cta:focus-visible,
.primary-nav a.ff-header-cta:hover,
.primary-nav a.ff-header-cta:focus-visible {
  transform:none!important;
  translate:none!important;
}
.ff-header-cta:hover,
.ff-header-cta:focus-visible {
  color:#fff;
  border-color:rgba(150,190,255,.72);
  background:rgba(83,138,230,.12);
  box-shadow:0 0 0 1px rgba(111,164,255,.16),0 0 24px rgba(79,140,255,.28),inset 0 0 18px rgba(79,140,255,.08);
}
.ff-cinema-actions .ff-button-primary,
.ff-cinema-actions .ff-button-primary:hover,
.ff-cinema-actions .ff-button-primary:focus-visible {
  transform:none!important;
  translate:none!important;
}

@media (max-width:900px) {
  .ff-header-logo { height:66px; max-width:190px; }
  .ff-cinema-wordmark { font-size:clamp(3rem,12vw,6.2rem)!important; letter-spacing:.09em!important; text-indent:.09em; }
  .ff-cinema-tagline { letter-spacing:.24em; }
}
@media (max-width:600px) {
  .header-inner { min-height:74px; }
  .ff-header-logo { height:58px; max-width:168px; }
  .ff-cinema-wordmark { margin-top:12px; font-size:clamp(2.25rem,13vw,4.2rem)!important; letter-spacing:.055em!important; text-indent:.055em; }
  .ff-cinema-tagline { margin-top:18px; font-size:.66rem; letter-spacing:.18em; line-height:1.55; }
  .ff-hero-intro { padding-bottom:24px; }
}
@media (max-width:380px) {
  .ff-header-logo { height:52px; max-width:150px; }
  .ff-cinema-wordmark { font-size:2.05rem!important; }
}
@media (prefers-reduced-motion:reduce) {
  .ff-cinema-wordmark,.ff-cinema-tagline { animation:none!important; opacity:1!important; transform:none!important; filter:none!important; }
}

/* ForgeFive v1.1 — definitive header scale and non-overlapping hero */
.site-header .header-inner {
  min-height:108px;
}
.site-header .site-branding {
  width:122px;
  height:98px;
  padding:0;
  flex:0 0 122px;
  overflow:visible;
  align-items:center;
}
.site-header .ff-header-logo {
  width:122px!important;
  height:98px!important;
  max-width:none!important;
  object-fit:contain;
  object-position:center;
}

/* The wordmark and pillars are separate horizontal bands — never layered. */
.ff-cinematic-hero {
  padding-top:138px;
}
.ff-cinematic-stage {
  min-height:auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
}
.ff-hero-intro {
  width:100%;
  max-width:980px;
  margin-inline:auto;
  padding:26px 0 0;
  text-align:center;
  z-index:20;
}
.ff-cinema-eyebrow {
  display:flex;
  justify-content:center;
}
.ff-cinema-wordmark {
  margin:26px auto 0!important;
  font-size:clamp(4.5rem,9.5vw,9rem)!important;
  line-height:.86!important;
  letter-spacing:.1em!important;
  text-indent:.1em;
}
.ff-cinema-lead {
  margin-inline:auto;
}
.ff-cinema-actions {
  justify-content:center;
}
.ff-architecture {
  width:min(100%,920px);
  height:520px;
  min-height:520px;
  margin:62px auto 0;
  padding-top:28px;
  z-index:4;
}

/* Start Project only glows; all movement is disabled in every state. */
.ff-header-cta,
.ff-header-cta:hover,
.ff-header-cta:focus,
.ff-header-cta:focus-visible,
.ff-header-cta:active,
.primary-nav .ff-header-cta,
.primary-nav .ff-header-cta:hover,
.primary-nav .ff-header-cta:focus-visible {
  transform:none!important;
  translate:0 0!important;
  top:auto!important;
  margin-top:0!important;
}

@media (max-width:900px) {
  .site-header .header-inner { min-height:94px; }
  .site-header .site-branding { width:106px; height:84px; flex-basis:106px; }
  .site-header .ff-header-logo { width:106px!important; height:84px!important; }
  .ff-cinematic-hero { padding-top:118px; }
  .ff-cinema-wordmark { font-size:clamp(3.7rem,12vw,6.7rem)!important; }
  .ff-architecture { width:min(100%,760px); height:480px; min-height:480px; margin-top:46px; }
}
@media (max-width:760px) {
  .site-header .header-inner { min-height:82px; }
  .site-header .site-branding { width:90px; height:72px; flex-basis:90px; }
  .site-header .ff-header-logo { width:90px!important; height:72px!important; }
  .ff-cinematic-hero { padding-top:102px; }
  .ff-hero-intro { padding-top:18px; }
  .ff-cinema-wordmark { margin-top:18px!important; font-size:clamp(2.7rem,14vw,5rem)!important; letter-spacing:.065em!important; text-indent:.065em; }
  .ff-architecture { height:410px; min-height:410px; margin-top:34px; }
}
@media (max-width:420px) {
  .site-header .site-branding { width:82px; height:66px; flex-basis:82px; }
  .site-header .ff-header-logo { width:82px!important; height:66px!important; }
  .ff-cinema-wordmark { font-size:clamp(2.25rem,13.3vw,3.55rem)!important; }
  .ff-architecture { height:375px; min-height:375px; margin-top:28px; }
}

/* ForgeFive v1.2 — ownership choice replaces repeated foundations section */
.ff-ownership {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 10vw, 150px);
}
.ff-ownership::before {
  width: min(620px, 54vw);
  opacity: .75;
}
.ff-ownership-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
  align-items: end;
  gap: clamp(38px, 7vw, 110px);
  margin-bottom: clamp(46px, 6vw, 78px);
}
.ff-ownership-head h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.1rem, 6.3vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.072em;
}
.ff-ownership-head h2 span {
  color: #aab3c2;
}
.ff-ownership-head > p {
  max-width: 650px;
  margin: 0 0 .4rem;
  color: var(--ff-muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.72;
}
.ff-ownership-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.ff-ownership-card {
  min-height: 0;
  padding: clamp(30px, 3.4vw, 52px);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
}
.ff-ownership-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ff-ownership-status {
  color: #aeb7c6;
  font: 600 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ff-ownership-card h3 {
  margin: clamp(42px, 5vw, 74px) 0 16px;
  font-size: clamp(2.05rem, 3.6vw, 3.7rem);
  line-height: .98;
  letter-spacing: -.057em;
}
.ff-ownership-summary {
  max-width: 590px;
  min-height: 3.3em;
  margin: 0;
}
.ff-ownership-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px !important;
  margin: clamp(30px, 3.5vw, 46px) 0 0 !important;
}
.ff-ownership-list li {
  min-width: 0;
  color: #eef2f8;
  font-weight: 600;
}
.ff-ownership-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 160, 255, .42);
  border-radius: 50%;
  background: rgba(79, 140, 255, .08);
  color: #9ec1ff;
  box-shadow: none;
  font-size: .72rem;
}
.ff-ownership-best {
  margin: auto 0 0 !important;
  padding-top: clamp(32px, 4vw, 54px);
  color: #fff !important;
  font-weight: 700;
}
.ff-ownership-card-featured .ff-ownership-best {
  color: #bcd2ff !important;
}
.ff-buyout-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  margin-top: clamp(24px, 3vw, 38px);
  padding: clamp(25px, 3vw, 40px);
  border: 1px solid rgba(112, 164, 255, .35);
  border-radius: 24px;
  background: linear-gradient(105deg, rgba(79,140,255,.1), rgba(255,255,255,.025));
}
.ff-buyout-label {
  color: #90b8ff;
  font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ff-buyout-callout > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
}
.ff-buyout-callout strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -.025em;
}
.ff-buyout-callout > div span {
  color: var(--ff-muted);
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
}
.ff-buyout-callout .ff-button {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ff-ownership-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .ff-ownership-head h2 {
    max-width: 760px;
  }
  .ff-ownership-options {
    grid-template-columns: 1fr;
  }
  .ff-ownership-card h3 {
    margin-top: 42px;
  }
  .ff-buyout-callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .ff-ownership {
    padding-block: 76px;
  }
  .ff-ownership-head {
    margin-bottom: 34px;
  }
  .ff-ownership-head h2 {
    font-size: clamp(2.65rem, 14vw, 4.25rem);
    line-height: .95;
  }
  .ff-ownership-card {
    padding: 26px 22px;
    border-radius: 21px;
  }
  .ff-ownership-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .ff-ownership-card h3 {
    margin-top: 34px;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }
  .ff-ownership-summary {
    min-height: 0;
  }
  .ff-ownership-list {
    grid-template-columns: 1fr;
    gap: 12px !important;
  }
  .ff-buyout-callout {
    padding: 24px 21px;
    border-radius: 20px;
  }
  .ff-buyout-callout > div {
    display: grid;
    gap: 8px;
  }
  .ff-buyout-callout .ff-button {
    width: 100%;
    justify-content: center;
  }
}


/* ForgeFive v1.3 — section-aware navigation and stable project CTA */
.primary-nav ul {
  align-items:center;
}
.primary-nav li {
  display:flex;
  align-items:center;
}
.primary-nav a:not(.ff-header-cta) {
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  transform:translateY(0);
  transition:color .22s ease, transform .3s cubic-bezier(.2,.75,.2,1);
}
.primary-nav a:not(.ff-header-cta)::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:2px;
  margin:0;
  background:linear-gradient(90deg,transparent,var(--ff-accent) 18%,#8bb5ff 82%,transparent);
  box-shadow:0 0 13px rgba(79,140,255,.7);
  transform:scaleX(0);
  transform-origin:center;
  opacity:0;
  transition:transform .3s ease, opacity .22s ease;
}
.primary-nav a:not(.ff-header-cta):hover,
.primary-nav a:not(.ff-header-cta):focus-visible,
.primary-nav a:not(.ff-header-cta).is-current {
  color:#fff;
  transform:translateY(-4px);
}
.primary-nav a:not(.ff-header-cta):hover::after,
.primary-nav a:not(.ff-header-cta):focus-visible::after,
.primary-nav a:not(.ff-header-cta).is-current::after {
  transform:scaleX(1);
  opacity:1;
}

/* CTA never participates in the raised navigation treatment. */
.primary-nav .ff-header-cta,
.primary-nav .ff-header-cta:hover,
.primary-nav .ff-header-cta:focus,
.primary-nav .ff-header-cta:focus-visible,
.primary-nav .ff-header-cta:active,
.primary-nav .ff-header-cta.is-current {
  position:relative!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 18px!important;
  transform:translate3d(0,0,0)!important;
  translate:none!important;
  top:0!important;
  bottom:auto!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  line-height:1;
  overflow:hidden;
  transition:color .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease!important;
}
.primary-nav .ff-header-cta::before {
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:radial-gradient(circle at 50% 100%,rgba(79,140,255,.22),transparent 68%);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.primary-nav .ff-header-cta::after {
  content:none!important;
  display:none!important;
}
.primary-nav .ff-header-cta:hover,
.primary-nav .ff-header-cta:focus-visible,
.primary-nav .ff-header-cta.is-current {
  color:#fff;
  border-color:rgba(111,164,255,.75);
  background:rgba(79,140,255,.1);
  box-shadow:0 0 0 1px rgba(79,140,255,.12),0 0 24px rgba(79,140,255,.28),inset 0 0 16px rgba(79,140,255,.07);
}
.primary-nav .ff-header-cta:hover::before,
.primary-nav .ff-header-cta:focus-visible::before,
.primary-nav .ff-header-cta.is-current::before {
  opacity:1;
}

@media (max-width:900px) {
  .primary-nav li { width:100%; }
  .primary-nav a:not(.ff-header-cta) {
    width:100%;
    min-height:42px;
    padding:9px 2px;
  }
  .primary-nav a:not(.ff-header-cta):hover,
  .primary-nav a:not(.ff-header-cta):focus-visible,
  .primary-nav a:not(.ff-header-cta).is-current {
    transform:translateX(5px);
  }
  .primary-nav a:not(.ff-header-cta)::after {
    left:2px;
    right:auto;
    width:48px;
    bottom:3px;
    transform-origin:left;
  }
  .primary-nav .ff-header-cta,
  .primary-nav .ff-header-cta:hover,
  .primary-nav .ff-header-cta:focus-visible,
  .primary-nav .ff-header-cta.is-current {
    width:100%;
    transform:none!important;
  }
}
